Hi,
I try to connect the Phonebook to xeround.com (cloud MySQL DB)
this is my configuration file
<Resource name="jdbc/Main"
driverClassName="com.mysql.jdbc.Driver"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
useJvmCharsetConverters="true"
maxActive="20" maxIdle="10" maxWait="10000"
type="javax.sql.DataSource"
username="confis"
password="ella25"
url="jdbc:mysql://instance16577.db.xeround.com:11141/Phonebook"
validationQuery="select now()"/>
java.lang.RuntimeException: Failed to locate DataSource jdbc/Main at tersus.runtime.SQLUtils.lookupDataSource(SQLUtils.java:183) at tersus.runtime.SQLUtils.connectToDataSource(SQLUtils.java:146) at tersus.runtime.SQLUtils.tableExists(SQLUtils.java:55) at tersus.runtime.RuntimeContext.cacheUpdateTableExits(RuntimeContext.java:470) at tersus.runtime.RuntimeContext.permissionCacheExists(RuntimeContext.java:460) at tersus.runtime.RuntimeContext.clearPermissionCacheIfNeeded(RuntimeContext.java:447) at tersus.runtime.ContextPool.getContext(ContextPool.java:493) at tersus.webapp.ContextPool.getContext(ContextPool.java:672) at tersus.runtime.ContextPool.shutdown(ContextPool.java:864) at tersus.webapp.ContextPool.contextDestroyed(ContextPool.java:644) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) at java.lang.Thread.run(Thread.java:679) Caused by: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory] at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:81) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321) at org.apache.naming.NamingContext.lookup(NamingContext.java:793) at org.apache.naming.NamingContext.lookup(NamingContext.java:140) at org.apache.naming.NamingContext.lookup(NamingContext.java:781) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at tersus.runtime.SQLUtils.lookupDataSource(SQLUtils.java:180) ... 26 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:79) ... 32 more Nov 1, 2012 4:19:37 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/Phonebook] appears to have started a thread named [tersus.runtime.LowPrecisionClock] but has failed to stop it. This is very likely to create a memory leak. Nov 1, 2012 4:19:37 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: The web application [/Phonebook] created a ThreadLocal with key of type [tersus.webapp.LoggingHelper$1] (value [tersus.webapp.LoggingHelper$1@4d36a8]) and a value of type [tersus.webapp.LoggingHelper] (value [tersus.webapp.LoggingHelper@13f6e85]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. Any idea what can be the problem? Regards, Yaniv
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign