*
The moose likes Tomcat and the fly likes Configuring DataSourceRealm in Tomcat 5.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring DataSourceRealm in Tomcat 5.5" Watch "Configuring DataSourceRealm in Tomcat 5.5" New topic
Author

Configuring DataSourceRealm in Tomcat 5.5

c chapman
Greenhorn

Joined: May 10, 2005
Posts: 7
I am trying to configure a DataSourceRealm in Tomcat 5.5. My application database (mysql) is configured within server.xml context element and the resource-ref elements of my apps web.xml. This works fine, no problems encountered yet.

I have set up the necessary tables in my user database and configured it in the exact same way within server.xml and web.xml, adding the necessary realm element also within the context element of server.xml. I am not being prompted for a username and password when I try to access the application, nor is there any exception or error logged.

I have tried configuring it as a global resource with the same results. Are there any steps that I am omitting or doing wrong? Does anyone have a definitive guide to setting this up? I have tried the various methods in the tomcat "how to" docs.

Thanks in advance, Craig
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring DataSourceRealm in Tomcat 5.5
 
Similar Threads
Tomcat 6 Datasource JNDI & web.xml resource-ref
How to use DataSourceRealm?
Setting up Website without the context element in Server.xml
Tomcat + Windows Server 2008 Can't Find Context?
Database connection pooling in tomcat