AnsweredAssumed Answered

Alfresco 3.4.d and Jboss 5.1.0GA

Question asked by phanee on Jul 25, 2011
Latest reply on Jul 25, 2011 by phanee
Hi experts,

Have trouble installing Alfresco on Jboss 5.1.0 GA server, receive the below error while starting jboss.

22:35:19,305 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=alfresco-datasource' to JNDI name 'java:alfresco-datasource'
22:35:19,314 INFO  [TomcatDeployment] deploy, ctxPath=/
22:35:24,310 INFO  [TomcatDeployment] deploy, ctxPath=/alfresco
22:35:25,154 ERROR [JBossContextConfig] XML error parsing: context.xml
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
   at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(
   at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(
   at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(
   at org.apache.catalina.startup.ContextConfig.lifecycleEvent(
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
   at org.apache.catalina.core.StandardContext.init(
   at org.apache.catalina.core.StandardContext.start(
   at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(
   at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(Tomca
   at org.jboss.Main$
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
   at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(
   at org.jboss.xb.binding.UnmarshallerImpl.<init>(
   at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(
   … 73 more
Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
   at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
   at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)

This seams strange since a few weeks before had performed the same install on ubuntu 10.04 on a VM using VirtualBox everything seemed to work fine but was running out of system memory since i could only allot 1.5GB of system memory to VM which was not enough for running alfresco and Jboss and developing using spring source at the same time since all together memory requirement was around 1.9 GB. Hence had to perform a dual boot of ubuntu 11.04 with windows. Now while performing the install am faced with this issue.

On searching based on the error seems alfresco.war packs with its own version of xerses_impl.jar which by doing so causes classloading issues in jboss. Could try removing it from alfresco.war but am unsure on what to do :( , since it seemed to work through VM without much trouble.

Have done the changes mentioned in war-deployers-jboss-beans.xml, <property name="filteredPackages"> as mentioned in wiki.
Any suggestion could be highly appreciated.