cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.0 with JBoss 5.1 integration issue

kvramalingeswar
Champ in-the-making
Champ in-the-making
I have installed JBoss 5.1 and trying to integrate Alfresco 3.0 Stable.
But, server.log is showing the following error:

2011-04-07 17:35:14,388 INFO  [STDOUT] (main) 17:35:14,388  ERROR [web.context.ContextLoader] Context initialization failed
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.NoSuchBeanDefinitionException: No bean named 'patch.schemaUpdateScript-V1.4-1' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'patch.schemaUpdateScript-V1.4-1' is defined

Pls help me to overcome this issue.
4 REPLIES 4

kvramalingeswar
Champ in-the-making
Champ in-the-making
I got the resolution.

C:\Alfresco\jboss-5.1.0.GA\server\default\deploy\alfresco.war\WEB-INF\classes\alfresco\application-context.xml
Existing: <import resource="classpath*:alfresco/patch/*-context.xml" />
Proposed: <import resource="classpath*:alfresco/patch/patch-services-context.xml" />

But, it leads to one more exception:

java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type

kvramalingeswar
Champ in-the-making
Champ in-the-making
I have removed the following JAR files from the application LIB folder to avoid the error.
    catalina.jar
    commons-logging-1.1.jar
    tomcat-coyote.jar
    tomcat-util.jar
    xercesImpl-2.8.0.jar
    xml-apis.jar
    stax-api-1.0.1.jar
    jaxen-1.1-beta-8.jar
    cxf-2.1.2.jar
But, it leads to the issue: The JBoss is getting hanged while start-up, by showing the following message:
09:21:36,775 INFO  [[/alfresco]] Initializing Spring root WebApplicationContext

kvramalingeswar
Champ in-the-making
Champ in-the-making
I have enabled the DEBUG at log configurations to identify the reason for this issue.
The console is giving the following information:

08:54:09,818 DEBUG [arjLogger] StatusModule: first pass
08:54:09,818 DEBUG [txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
08:54:09,818 DEBUG [loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
08:54:19,818 DEBUG [arjLogger] Periodic recovery - second pass <Wed, 13 Apr 2011 08:54:19>
08:54:19,818 DEBUG [arjLogger] AtomicActionRecoveryModule: Second pass
08:54:19,818 DEBUG [txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
08:54:19,818 DEBUG [loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass

kvramalingeswar
Champ in-the-making
Champ in-the-making
I am able to setup Alfresco 3 Stable with JBoss 4.2.3