This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Context help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Context help" Watch "Context help" New topic

Context help

Vinicius Carvalho
Ranch Hand

Joined: Dec 07, 2004
Posts: 61
Hello there! I'm trying to configure my DataSource Realm, but it's throwing an naming exception:

<Context path="/springremoting" docBase="${catalina.home}/webapps/springremoting">
<ResourceLink name="jdbc/remotingDS" global="jdbc/remotingDS" type="javax.sql.DataSource" />

<Realm className="org.apache.catalina.realm.DataSourceRealm" debug="99"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name"/>


--- web.xml ---

It's throwing a javax.naming.NameNotFoundException : Name jdbc is not bound in this context.

I also tried java:comp/env/jdbc

jQuery in Action, 2nd edition
subject: Context help
Similar Threads
Whacky db problem.
Error confguring multiple contexts/data sources in Tomcat 5
Warning: Resource reference is not defined for JNDI name
Configure tomcat resource factory
Problems with the DataSources.