File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Products
»
Tomcat
Author
Context help
Vinicius Carvalho
Ranch Hand
Joined: Dec 07, 2004
Posts: 61
posted
Feb 10, 2006 07:01:00
0
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
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Context help
Similar Threads
Problems with the DataSources.
Configure tomcat resource factory
Error confguring multiple contexts/data sources in Tomcat 5
Whacky db problem.
Warning: Resource reference is not defined for JNDI name
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter