Page 1 of 1

Windows WAR & Tomcat problems with 3.7 Beta

PostPosted: Sun May 10, 2009 6:37 pm
by whimpyjones
After installing the 3.7 beta windows standalone in a Windows Home Server machine with tomcat I am unable to start/connect to Subsonic. Reinstalling the previous version works fine. Here is the tomcat log. Any help is appreciated!

[2009-05-10 08:35:44,296] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.aop.framework.ProxyFactoryBean] for bean with name 'ajaxTagServiceSecure' defined in ServletContext resource [/WEB-INF/applicationContext-security.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.aop.framework.ProxyFactoryBean
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:581)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1364)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:406)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
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.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: org.springframework.aop.framework.ProxyFactoryBean
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:230)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:371)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1157)
... 32 more
Exception in thread "HSQLDB Timer @5dfaf1" java.lang.NullPointerException
at org.hsqldb.lib.HsqlTimer.nextTask(Unknown Source)
at org.hsqldb.lib.HsqlTimer$TaskRunner.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

PostPosted: Mon May 11, 2009 6:36 am
by sindre_mehus
Did you follow the steps here: http://subsonic.sourceforge.net/installation.php#war

In particular the ones about deleting stuff in TOMCAT_HOME?

PostPosted: Mon May 11, 2009 7:24 am
by Ittie
A good morning,

I have exact the same error. 404......

And indeed I did delete the dir and files you mentioned.
I saved the logging, If you want some more details please let me know. I can mail them to you, sindre mehus.

Best regards,
Ittie

Same 3.7 Beta Error

PostPosted: Mon May 11, 2009 11:21 am
by pheckel
Same 3.7 Beta error described in my post here (actually the second post in that thread...the first appears to be a red herring).

"Cannot find class [org.springframework.aop.framework.ProxyFactoryBean] for bean with name 'ajaxTagServiceSecure' defined in ServletContext resource"

I did indeed delete all files/directories per the upgrade instructions.

PostPosted: Mon May 11, 2009 11:30 am
by sindre_mehus
Will be fixed in 3.7.beta2. Thanks for reporting!

PostPosted: Mon May 11, 2009 12:33 pm
by Ittie
No mean time hotfix :lol:

PostPosted: Mon May 11, 2009 12:38 pm
by sindre_mehus
Ittie wrote:No mean time hotfix :lol:


Sure! You can try to put this file in TOMCAT_HOME\webapps\subsonic\WEB-INF\lib

that did it

PostPosted: Mon May 11, 2009 2:32 pm
by whimpyjones
Thanks Sindre!
The hotfix works great.
What a fantastic program, I appreciate all of your effort.

PostPosted: Wed May 13, 2009 7:32 pm
by Ittie
Indeed the hotfix is working perfect. Thanks! :P