File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Context in Virtual Hosts 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 » Java » Servlets
Bookmark "Context in Virtual Hosts" Watch "Context in Virtual Hosts" New topic
Author

Context in Virtual Hosts

Vinicius Carvalho
Ranch Hand

Joined: Dec 07, 2004
Posts: 61
Hi there! I'm trying to get a context to work with a tomcat 5.0.28 with virtual hosts configured.
My virtual host is named mycompany.com and is located at conf/Catalina/mycompany.com the doc base is webapps/mycompany
I'd like to configure 2 datasources that would be globally avaible. My ROOT.xml inside the virtual host directory looks like this:


My web.xml has references for both resources. But they're not accessible. When I try to access on of the datasources it says
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

What am I doing wrong???

Thanks
 
 
subject: Context in Virtual Hosts
 
Similar Threads
JDBC-CONNECTION POOL
Using Hibernate with LifeRay portlet
4.1 to 5.5.20...context.xml question
unable to implement connection pooling in sybase
Tomcat 5.5.9 admin and Datasources