[Logo]
Forums Register Login
Context help
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"
dataSourceName="jdbc/remotingDS"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name"/>

</Context>


--- web.xml ---
<resource-ref>
<res-ref-name>jdbc/remotingDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

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

I also tried java:comp/env/jdbc

Regards
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Oct 19, 2017 20:24:54.