This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes resource ref needs to be setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "resource ref needs to be setup" Watch "resource ref needs to be setup" New topic

resource ref needs to be setup

ralph roper

Joined: Nov 25, 2001
Posts: 25
I have modified my Tomcat 4.0.2 server.xml and web.xml files to set up a jdbc dbc Datasource. When I go to start Tomcat I receive the message thet the resource-ref must be set up. I have checked the Tomcat doco and I get conflicting info on the tag I should use in the server.xml file. I have used the <Context> tag but on another page they say to use a <GlobalResourceNaming> tag. Do I need one or both ?
Any code examples would be much appreciated.
thanks in advance,
brody roper

Joined: Apr 16, 2002
Posts: 4
not to worry.
I have managed to discover that I had overlapped the web.xml and server.xml files when setting up my jdbc datasource.
Everything tested and working sweetly.
I agree. Here's the link:
subject: resource ref needs to be setup
Similar Threads
Setting up Website without the context element in Server.xml
javax.mail.Session and DataSource (Apache Tomcat)
javax.mail.Session and DataSource (Apache Tomcat)
javax.mail.session and DataSource(Apache Tomcat)
how to configure connection pool in tomcat