Dan Eriksson wrote:
Hi list!

I am trying to configure apache + tomcat using mod_jk on different machines 
with virtual hosts, i.e one frontend running apache (2.2.3-4+etch4), one 
backend running tomcat 6 (binary apache-tomcat-6.0.16) with postgresql 
(postgresql-8.1, 8.1.11-0etch1) on debian etch.

My virtual host is called myapp.mydomain.com.

The problem is that when I am using context in my virtual host config for 
tomcat I receive the following in my logfile, catalina.out,

javax.naming.NamingException: Cannot create resource instance
        at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143)
        at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at 
se.springmobil.groupadmin.servlets.ControlServlet.init(ControlServlet.java:86)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
ContextListener: attributeAdded('com.sun.faces.ApplicationAssociate', '[EMAIL 
PROTECTED]')

If I try to connect to my vhost now everything looks ok, no errors anywhere, 
but when I try to login I get a message that the database is not online and in 
my logfile I see this:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect UR
Dan,
This has been discussed many times before. Usually adding the database driver to $TOMCAT_HOME/lib or $TOMCAT_HOME/common/lib
solves the problem.
Also further information maybe found at the following URL from the mailing list archive, which is a good way to search for previously discussed issues and solutions:
http://marc.info/?l=tomcat-user&m=119454595817475&w=2



--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.0 - Centrally manage multiple physical servers


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to