• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context help

Vinicius Carvalho
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic