AnsweredAssumed Answered

Alfresco on Suse, Tomcat war deployment problems

Question asked by jurgisl on Jan 2, 2008
Latest reply on Jan 16, 2008 by jurgisl
Hi!

For last few days I've been trying to deploy Alfresco 2.1 community version's ".war" file in our Tomcat server. We have:
OpenSuse Linux 10.3 (beta3)
Tomcat 5.0
Sun Java 1.5.0_08
MySQL 5.0.26

At first I struggled with configuration, because Suse's standard Tomcat installation somehow ignores /shared/classes folder and I had to move /alfresco/extension configuration folder to /common/classes folder (not right, but it works).

And now I cannot get past this error:

StandardContext[/manager]HTMLManager: start: Starting web application at '/alfresco'
StandardContext[/alfresco]Loading Spring root WebApplicationContext
StandardContext[/alfresco]Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'patch.schemaUpdateScript-V1.4-1' while setting bean property 'preUpdateScriptPatches' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patch.schemaUpdateScript-V1.4-1' defined in file [/srv/www/tomcat5/base/webapps/alfresco/WEB-INF/classes/alfresco/patch/patch-services-context.xml]: Cannot resolve reference to bean 'patchComponent' while setting bean property 'patchService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patchComponent' defined in file [/srv/www/tomcat5/base/webapps/alfresco/WEB-INF/classes/alfresco/patch/patch-services-context.xml]: Cannot resolve reference to bean 'descriptorComponent' while setting bean property 'descriptorService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'systemBootstrap' while setting bean property 'systemBootstrap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'importerComponent' while setting bean property 'importerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importerComponent' defined in class path resource [alfresco/import-export-context.xml]: Cannot resolve reference to bean 'NodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patch.schemaUpdateScript-V1.4-1' defined in file [/srv/www/tomcat5/base/webapps/alfresco/WEB-INF/classes/alfresco/patch/patch-services-context.xml]: Cannot resolve reference to bean 'patchComponent' while setting bean property 'patchService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patchComponent' defined in file [/srv/www/tomcat5/base/webapps/alfresco/WEB-INF/classes/alfresco/patch/patch-services-context.xml]: Cannot resolve reference to bean 'descriptorComponent' while setting bean property 'descriptorService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'systemBootstrap' while setting bean property 'systemBootstrap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'importerComponent' while setting bean property 'importerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importerComponent' defined in class path resource [alfresco/import-export-context.xml]: Cannot resolve reference to bean 'NodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patchComponent' defined in file [/srv/www/tomcat5/base/webapps/alfresco/WEB-INF/classes/alfresco/patch/patch-services-context.xml]: Cannot resolve reference to bean 'descriptorComponent' while setting bean property 'descriptorService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'systemBootstrap' while setting bean property 'systemBootstrap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'importerComponent' while setting bean property 'importerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importerComponent' defined in class path resource [alfresco/import-export-context.xml]: Cannot resolve reference to bean 'NodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'systemBootstrap' while setting bean property 'systemBootstrap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'importerComponent' while setting bean property 'importerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importerComponent' defined in class path resource [alfresco/import-export-context.xml]: Cannot resolve reference to bean 'NodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'importerComponent' while setting bean property 'importerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importerComponent' defined in class path resource [alfresco/import-export-context.xml]: Cannot resolve reference to bean 'NodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importerComponent' defined in class path resource [alfresco/import-export-context.xml]: Cannot resolve reference to bean 'NodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NodeService_security' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'authenticationDao' while setting bean property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'passwordEncoder' while setting bean property 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passwordEncoder' defined in class path resource [alfresco/authentication-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError
Caused by: java.lang.NoClassDefFoundError
   at sun.reflect.GeneratedConstructorAccessor444.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

I could not find anything on this in forums (there was one similar post, but had no meaningful solution). And I cannot think of anything that could be missing (except I didn't put anything in "endorsed" folder, but that was optional…or not?). I followed included readme files, and configured Alfresco to use MySQL database. Tried to redeploy alfresco.war file several times, but always I got this far and was stopped by that error.

What could cause that error? Are there any extra libraries necessary?

Outcomes