Tomcat errors
UPDATE: problem below was resolved by a "rm -rf /var/subsonic" and redeploying the war and everything is working great now (after adding "org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true" to catalina.properties, because of http://tinyurl.com/7t7od5b, and "<Context useHttpOnly=”false>” to get rid of the CSRF errors). Mods, feel free to delete this post or leave it here for anybody that might have similar issues.
---------------------------------------
First of all: i've been using subsonic for a few years now, and i can honestly say it's been one of the most useful pieces of software i have ever used. I really appreciate all the effort and time the developers put into this project.
Than being said, i currently use subsonic 4.5 (build 2384) on a Dell poweredge server running Ubuntu 11 32bit with Tomcat 7.0.16, java 1.6.0_26 and it's been working great. I will be switching to a Supermicro server running CentOS 6 64 bit with 2.6.32-71.29.1.el6.x86_64 kernel, Java SE Runtime Environment (build 1.7.0_01-b08), Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode), also with Tomcat 7 installed. When i deploy the war file, i get the following errors:
Just for the sake of it, i installed tomcat 6 on the new server and got exactly the same errors, which leads me to believe it's not something specific to tomcat 7. As far as i can tell, the only difference between the old server and the new one is the java version ( 1.6.0_26 32bit on the old server, 1.7.0_01 64bit on the new one).
Any ideas/help would be appreciaed.
---------------------------------------
First of all: i've been using subsonic for a few years now, and i can honestly say it's been one of the most useful pieces of software i have ever used. I really appreciate all the effort and time the developers put into this project.
Than being said, i currently use subsonic 4.5 (build 2384) on a Dell poweredge server running Ubuntu 11 32bit with Tomcat 7.0.16, java 1.6.0_26 and it's been working great. I will be switching to a Supermicro server running CentOS 6 64 bit with 2.6.32-71.29.1.el6.x86_64 kernel, Java SE Runtime Environment (build 1.7.0_01-b08), Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode), also with Tomcat 7 installed. When i deploy the war file, i get the following errors:
- Code: Select all
Nov 15, 2011 2:14:43 PM net.sf.ehcache.Cache initialise
WARNING: Cache: musicFolderCache has a maxElementsInMemory of 0. It is strongly recommended to have a maximumSize of at least 1. Performance is halved by not using a MemoryStore.
Nov 15, 2011 2:14:43 PM net.sf.ehcache.Cache initialise
WARNING: Cache: chatCache has a maxElementsInMemory of 0. It is strongly recommended to have a maximumSize of at least 1. Performance is halved by not using a MemoryStore.
Nov 15, 2011 2:14:44 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Nov 15, 2011 2:14:44 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/subsonic] startup failed due to previous errors
Nov 15, 2011 2:14:44 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/subsonic] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Nov 15, 2011 2:14:44 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 15, 2011 2:14:44 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-2-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 15, 2011 2:14:44 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-2-thread-2] but has failed to stop it. This is very likely to create a memory leak.
Nov 15, 2011 2:14:44 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [DiscoveryListener daemon] but has failed to stop it. This is very likely to create a memory leak.
Nov 15, 2011 2:14:44 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.http.conn.routing.HttpRoute. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1564)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
at org.apache.http.conn.params.ConnRouteParams.<clinit>(ConnRouteParams.java:58)
at org.apache.http.impl.conn.DefaultHttpRoutePlanner.determineRoute(DefaultHttpRoutePlanner.java:93)
at org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:655)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:353)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
at net.sourceforge.subsonic.service.NetworkService$URLRedirectionTask.execute(NetworkService.java:250)
at net.sourceforge.subsonic.service.NetworkService$Task.run(NetworkService.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Nov 15, 2011 2:14:47 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.wetorrent.upnp.GatewayDiscover. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1564)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
at net.sourceforge.subsonic.domain.WeUPnPRouter.findRouter(WeUPnPRouter.java:38)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.findRouter(NetworkService.java:197)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.execute(NetworkService.java:132)
at net.sourceforge.subsonic.service.NetworkService$Task.run(NetworkService.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Nov 15, 2011 2:14:47 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load com.hoodcomputing.natpmp.Message. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1564)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.findRouter(NetworkService.java:206)
at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.execute(NetworkService.java:132)
at net.sourceforge.subsonic.service.NetworkService$Task.run(NetworkService.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Just for the sake of it, i installed tomcat 6 on the new server and got exactly the same errors, which leads me to believe it's not something specific to tomcat 7. As far as i can tell, the only difference between the old server and the new one is the java version ( 1.6.0_26 32bit on the old server, 1.7.0_01 64bit on the new one).
Any ideas/help would be appreciaed.