I experience some problems trying to get Subsonic 3.7 to run on my Ubuntu server:
Jetty (not the one provided in the Subsonic standalone version):
- Code: Select all
2009-06-28 18:15:50.873::INFO: Extract file:/home/roger/jetty-distribution-7.0.0.M3/webapps/subsonic.war to /tmp/Jetty_0_0_0_0_8080_subsonic.war__subsonic__60fvp7_z5smz9/webapp
2009-06-28 18:15:58.025::INFO: NO JSP Support for /subsonic, did not find org.apache.jasper.servlet.JspServlet
2009-06-28 18:16:24.194:/subsonic:INFO: Initializing Spring root WebApplicationContext
[2009-06-28 18:16:25,117] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
java.lang.NoClassDefFoundError: org.springframework.core.CollectionFactory
at java.lang.Class.initializeClass(libgcj.so.81)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:86)
at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:152)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:154)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:110)
at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:150)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:95)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:626)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:923)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:345)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:225)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:989)
at java.security.AccessController.doPrivileged(libgcj.so.81)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:954)
at java.lang.reflect.Method.invoke(libgcj.so.81)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:308)
at org.eclipse.jetty.start.Main.start(Main.java:733)
at org.eclipse.jetty.start.Main.main(Main.java:171)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.CollectionFactory$BackportConcurrentHashMap not found in StartLoader[file:/home/roger/jetty-distribution-7.0.0.M3/resources/, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-util-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-io-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-xml-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/servlet-api-2.5.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-http-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-continuation-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-server-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-security-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-servlet-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-webapp-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-deploy-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-servlets-7.0.0.M3.jar]
at java.net.URLClassLoader.findClass(libgcj.so.81)
at java.lang.ClassLoader.loadClass(libgcj.so.81)
at java.lang.ClassLoader.loadClass(libgcj.so.81)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:347)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:300)
at java.lang.Class.forName(libgcj.so.81)
at java.lang.Class.initializeClass(libgcj.so.81)
...33 more
2009-06-28 18:16:25.338::INFO: Opened /home/roger/jetty-distribution-7.0.0.M3/logs/2009_06_28.request.log
2009-06-28 18:16:25.338::WARN: Error starting handlers
java.lang.NoClassDefFoundError: org.springframework.core.CollectionFactory
at java.lang.Class.initializeClass(libgcj.so.81)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:86)
at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:152)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:154)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:110)
at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:150)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:95)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:626)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:923)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:345)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:225)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:989)
at java.security.AccessController.doPrivileged(libgcj.so.81)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:954)
at java.lang.reflect.Method.invoke(libgcj.so.81)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:308)
at org.eclipse.jetty.start.Main.start(Main.java:733)
at org.eclipse.jetty.start.Main.main(Main.java:171)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.CollectionFactory$BackportConcurrentHashMap not found in StartLoader[file:/home/roger/jetty-distribution-7.0.0.M3/resources/, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-util-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-io-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-xml-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/servlet-api-2.5.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-http-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-continuation-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-server-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-security-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-servlet-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-webapp-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-deploy-7.0.0.M3.jar, file:/home/roger/jetty-distribution-7.0.0.M3/lib/jetty-servlets-7.0.0.M3.jar]
at java.net.URLClassLoader.findClass(libgcj.so.81)
at java.lang.ClassLoader.loadClass(libgcj.so.81)
at java.lang.ClassLoader.loadClass(libgcj.so.81)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:347)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:300)
at java.lang.Class.forName(libgcj.so.81)
at java.lang.Class.initializeClass(libgcj.so.81)
...33 more
2009-06-28 18:16:25.460::INFO: Started SelectChannelConnector@0.0.0.0:8080
Tomcat: Tomcat refuses to start if subsonic.war is present in the webapps folder.
Standalone: The startup script echoes "Started Subsonic [PID 11840]", but no process is started (at least running).
I remember reading somewhere that Subsonic needed X to run. Is this correct? Subsonic actually runs like a charm on my Ubuntu desktop.
Tx