Alfresco 3.4.d and Jboss 5.1.0GA

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2011 11:04 AM
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(UnmarshallerFactory.java:100)
at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549)
at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:536)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(Tomca
….
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
… 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.
Thanks,
Phanee
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(UnmarshallerFactory.java:100)
at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549)
at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:536)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(Tomca
….
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
… 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

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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2011 11:59 AM
Resolved the issue, my bad actually there are 2 properties called filteredPackages <property name="filteredPackages"> one under <bean name="WarClassLoaderDeployer" …..> and other under <bean name="WarDeployer" ….> in the file "war-deployers-jboss-beans.xml" the correct place to filter out xercesImpl.jar is to place it under <bean name="WarClassLoaderDeployer" ..> instead of the one directly under <bean name="WarDeployer" ….>
This resolved installation and now to other battles. Hoping that I would be able to contribute to the community soon now that I have the platform set.
Thanks
Phanee.
This resolved installation and now to other battles. Hoping that I would be able to contribute to the community soon now that I have the platform set.
Thanks
Phanee.
