cancel
Showing results for 
Search instead for 
Did you mean: 

An Error When I Try To Deploy Alfresco In Liferay

pcache
Champ in-the-making
Champ in-the-making
Hello,

I integrated Alfresco 3.3 with Liferay 6.0.4 (Tomcat Bundle with alfresco.war from cignex.com). Liferay works fine and Alfresco was deployed successuflly. But when I try to retrieve http://localhost:8080/alfresco the following system error message appears:

java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

When I take a look at catalina.out, the logs shows following errors:


INFO: Deploying web application directory alfresco
23.08.2010 10:00:03 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
10:00:08,114  INFO  [alfresco.config.SystemPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/hibernate-cfg.properties]
10:00:13,771  ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Mac OS X
   command:    [./ImageMagick/bin/convert, /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/ImageMagickContentTransformer_init_source_4261394758424311392.gif[0], /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/ImageMagickContentTransformer_init_target_8408372435339140475.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": error=2, No such file or directory
10:00:14,691  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
10:00:16,953  ERROR [content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Mac OS X
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": error=2, No such file or directory
10:00:18,421  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
10:00:18,735  INFO  [domain.schema.SchemaBootstrap] Executing database script /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/AlfrescoSchemaCreate-org.hibernate.dialect.MySQLInnoDBDialect-6502538879334698711.sql (Generated).
10:00:50,556  INFO  [domain.schema.SchemaBootstrap] Executing database script /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-7206816503445776760.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-2.2-MappedFKIndexes.sql).
10:00:50,559  INFO  [domain.schema.SchemaBootstrap] Executing database script /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-1183433007397229675.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-2.2-Extra.sql).
10:00:53,191  INFO  [domain.schema.SchemaBootstrap] Executing database script /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-1741463163003410973.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.MySQLInnoDBDialect/post-create-indexes-04.sql).
10:00:53,333  INFO  [domain.schema.SchemaBootstrap] Executing database script /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-4970526165347598194.sql (Copied from classpath:alfresco/dbscripts/create/3.0/org.hibernate.dialect.MySQLInnoDBDialect/create-activities-extras.sql).
10:00:54,258  INFO  [domain.schema.SchemaBootstrap] All executed statements written to file /Developer/liferay-portal-6.0.5/tomcat-6.0.26/temp/Alfresco/AlfrescoSchemaUpdate-All_Statements-950635168334305039.sql.
10:00:54,384  DEBUG [avm.TransactionalLookupCache.init] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@366025e7, name=log4j:logger=org.alfresco.repo.avm.TransactionalLookupCache.init
10:01:09,380 User:System INFO  [service.descriptor.DescriptorService] Successfully installed license from file [/Developer/liferay-portal-6.0.5/tomcat-6.0.26/webapps/alfresco/WEB-INF/classes/alfresco/extension/license/alfresco-enterprise-v3.1-partner-unlimited.lic]
10:01:09,442 User:System WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path '../../alf_data'.  'dir.root' should be overridden to point to a specific folder.
10:01:09,442 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ../../alf_data
10:01:09,477 User:System INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
10:01:09,892 User:System INFO  [admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.0-0-CreateActivitiesExtras
RESULT:
Script completed
=====================================
10:01:09,896 User:System INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
10:01:10,255 User:System WARN  [alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
10:01:10,291 User:System INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_20-b02-279-10M3065; maximum heap size 1019,875MB
10:01:10,291 User:System INFO  [service.descriptor.DescriptorService] Alfresco license: Enterprise - v3.1 granted to Cignex (does not expire)
10:01:10,291 User:System INFO  [service.descriptor.DescriptorService] Alfresco started (Enterprise): Current version 3.1.0 (142) schema 1008 - Installed version 3.1.0 (142) schema 1008
10:01:22,416 INFO  [PortletHotDeployListener:220] Registering portlets for alfresco
10:01:22,420 WARN  [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
10:01:22,426 WARN  [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
10:01:22,568 WARN  [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
10:01:22,687 WARN  [SAXReaderImpl:429] XSD validation is diasabled because org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
10:01:22,764 INFO  [PortletHotDeployListener:374] 6 portlets for alfresco are available for use
10:01:22,924 FATAL [InternalException:88] Exception:
org.apache.axis.ConfigurationException: org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory
java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory
   at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:277)
   at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:542)
   at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
   at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
   at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:192)
   at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
   at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
   at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
   at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
   at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
   at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
   at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
   at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
   at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
   at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
   at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
   at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
   at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
   at javax.servlet.GenericServlet.init(GenericServlet.java:212)
   at com.liferay.portal.servlet.AxisServlet.init(AxisServlet.java:65)
   at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.portalInit(PortalClassLoaderServlet.java:73)
   at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
   at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.init(PortalClassLoaderServlet.java:44)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
   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:546)
   at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
   at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
   at java.lang.Thread.run(Thread.java:637)

org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory
java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory
   at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:277)
   at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:542)
   at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
   at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
   at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:192)
   at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
   at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
   at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
   at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
   at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
   at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
   at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
   at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
   at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
   at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
   at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
   at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
   at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
   at javax.servlet.GenericServlet.init(GenericServlet.java:212)
   at com.liferay.portal.servlet.AxisServlet.init(AxisServlet.java:65)
   at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.portalInit(PortalClassLoaderServlet.java:73)
   at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
   at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.init(PortalClassLoaderServlet.java:44)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
   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:546)
   at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
   at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
   at java.lang.Thread.run(Thread.java:637)

   at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:563)
   at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
   at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
   at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:192)
   at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
   at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
   at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
   at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
   at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
   at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
   at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
   at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
   at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
   at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
   at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
   at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
   at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
   at javax.servlet.GenericServlet.init(GenericServlet.java:212)
   at com.liferay.portal.servlet.AxisServlet.init(AxisServlet.java:65)
   at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.portalInit(PortalClassLoaderServlet.java:73)
   at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
   at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.init(PortalClassLoaderServlet.java:44)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
   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:546)
   at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
   at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
   at java.lang.Thread.run(Thread.java:637)

I haven't installed OpenOffice and ImageMagick. I think that this doesn't provocate the error. It rather depends on the ClassCastException.

I have searched the web but couldn't find a work around. Can someone help me please? Btw. my operating system is Mac 10.6

Regards,
P Cache
1 REPLY 1

rajpatil
Champ in-the-making
Champ in-the-making
hi,

I am also getting the same exception.. but these exception dont affect the 6 alfresco portlets functionality..do they??