spirittaya.blogg.se

Apache tomcat tutorial
Apache tomcat tutorial











apache tomcat tutorial apache tomcat tutorial

So why when I specify a factory do I get an error. So I added the jar and now it works but I would like to have some information as to what on earth is going on because I am using the newest tomcat version.

apache tomcat tutorial

So then I did a little bit of research on SO and found a post saying that you need to add this jar to your lib folder if you have an older version of tomcat. The reason I want to make sure that I have it is because in the apache tomcat tutorial it says factory is required, and the value should be .pool.DataSourceFactory This error only comes up when I have this statement in my context.xml file. INFO: Starting ProtocolHandler ġ1:23:25 AM .Catalina start WARNING: Failed to register in JMX: : ġ1:23:25 AM start : Īt .(PooledConnection.java:254)Īt .(PooledConnection.java:182)Īt .(ConnectionPool.java:699)Īt .(ConnectionPool.java:631)Īt .(ConnectionPool.java:485)Īt .pool.ConnectionPool.(ConnectionPool.java:143)Īt .(DataSourceProxy.java:116)Īt .(DataSourceProxy.java:103)Īt .(DataSourceFactory.java:539)Īt .(DataSourceFactory.java:237)Īt .ResourceFactory.getObjectInstance(ResourceFactory.java:143)Īt .getObjectInstance(NamingManager.java:304)Īt .lookup(NamingContext.java:843)Īt .lookup(NamingContext.java:154)Īt .lookup(NamingContext.java:831)Īt .lookup(NamingContext.java:168)Īt .NamingContextListener.addResource(NamingContextListener.java:1061)Īt .NamingContextListener.createNamingContext(NamingContextListener.java:671)Īt .NamingContextListener.lifecycleEvent(NamingContextListener.java:270)Īt .LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)Īt .LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)Īt .StandardContext.startInternal(StandardContext.java:5173)Īt .LifecycleBase.start(LifecycleBase.java:150)Īt .ContainerBase$StartChild.call(ContainerBase.java:1559)Īt .ContainerBase$StartChild.call(ContainerBase.java:1549)Īt $Sync.innerRun(FutureTask.java:303)Īt .run(FutureTask.java:138)Īt $nTask(ThreadPoolExecutor.java:886)Īt $n(ThreadPoolExecutor.java:908)Ĭaused by: : Īt $1.run(URLClassLoader.java:202)Īt (Native Method)Īt (URLClassLoader.java:190)Īt (ClassLoader.java:306)Īt (ClassLoader.java:247)Īt 0(Native Method)Īt (Class.java:247)Īt .(PooledConnection.java:246)ġ1:23:25 AM .NamingContextListener addResource I got this error when I wrote this WARNING: Unexpected exception resolving reference In my META-INF folder I made a context.xml file and put this in there. I am using this tutorial to set up pooling for JDBC. So I've figured out my error, now I'm just looking for some insight as to what is going on exactly.













Apache tomcat tutorial