[MAGNOLIA-3502] I cant install magnolia Author 4.4 on jboss 5.1 Created: 10/Jan/11  Updated: 23/Jan/13  Resolved: 27/Sep/11

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.4.1
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Jesus Garcia Assignee: Boris Kraft
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu jbos 5 jdk 6


Issue Links:
causality
caused by MGNLDIFF-9 Package includes xerces libs Closed
duplicate
duplicates MGNLDIFF-8 bundled daisy diff jar should not inc... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

I have deployed magnoliaAuthor on Jboss 5 as exploded war inside deploy dir and i get errors on the deploy log :

... 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)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
... 75 more
20:10:44,526 ERROR [JBossContextConfig] XML error parsing: WEB-INF/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:540)
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)

I have deleted xerces-impl but it dosent work



 Comments   
Comment by Jan Haderka [ 11/Jan/11 ]

Could you please provide the exact version of the JBoss server? Also you mention you have deleted the xerces-impl, but don't mention whether from the magnolia jar or from shared libraries of the jboss? IF those jars are different versions, could you please provide version numbers from the jars as well?

Thx.

Comment by Zdenek Skodik [ 11/Jan/11 ]

Also from the first sight it seems to me you haven't set the context properly as described at documentation/installation on JBoss. Can you make sure about this?

Comment by Zdenek Skodik [ 25/Jan/11 ]

Hi Jesus,

according the pasted stacktrace, you've run into MAGNOLIA-2577.
You can notice its resolution at more less all release notes since Magnolia CMS 4.0.1:

JBoss 5
There is an unfortunate issue, specifically when deploying under JBoss 5: you will need to remove the Xerces jar from the Magnolia webapps: if deploying using war files, you can remove it from the archive, or with the following Unix command zip -d path-to-magnolia.war WEB-INF/lib/xercesImpl-2.8.1.jar. If deploying using an exploded directory, simply remove the WEB-INF/lib/xercesImpl-2.8.1.jar file. See MAGNOLIA-2577 for technical details. If you get exception messages such as org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser and/or java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration, this is the issue you're hitting.

Hope that helps.

Comment by Jesus Garcia [ 25/Jan/11 ]

it is jbos 5.1.0.GA . it talks about context.xml , i saw instructions to add jboss-context but nothing on the standard context.xml for as

Comment by Jesus Garcia [ 25/Jan/11 ]

event when i delete the xerces file it didnt work for me .

Comment by Teresa Miyar [ 26/Jan/11 ]

Will try to reproduce problem by installing it locally

Comment by Teresa Miyar [ 26/Jan/11 ]

Problem could be reproduced, investigating cause.

Comment by Teresa Miyar [ 26/Jan/11 ]

due to daisydiff-1.1-magnolia has xerces folder, you can remove the lib while we fix it.

Comment by Zdenek Skodik [ 11/Mar/11 ]

This is the issue only for JBoss community edition, with enterprise one it doesn't occur as Lee Haslup from CSC let us kindly know:

One thing that might be interesting to you – and something that has slowed us down – is that we find we can successfully deploy Magnolia 4.4 to the JBoss Enterprise edition with the daisyDiff jars in place and it works fine. Whatever the problem is with the classloader and daisyDiff, it only happens for us on the JBoss community edition servers. We run the Enterprise version of JBoss 5.0.1 on our production and test servers and have been running Magnolia 4.4 with the Diff module in place (but with the xercesImpl jar deleted) for a long time on that server and it works fine. One of the reasons it took us so long to try deleting the daisyDiff jar and the diff module is that those jars are running fine on the test server with the same version numbers of JBoss and Magnolia (but with an EE version of JBoss on the server). We were using our JBoss 5.0.1 deployment of Magnolia on the test server as an example of how it should be done and it just wouldn't work for us.

Comment by Jan Haderka [ 27/Sep/11 ]

This issue is a duplicate of MGNLDIFF-8

Generated at Mon Feb 12 03:47:05 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.