[
http://jira.magnolia-cms.com/browse/MAGNOLIA-2716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=23452#action_23452
]
Grégory Joseph commented on MAGNOLIA-2716:
------------------------------------------
Unfortunately, the {{org.jdom:jaxen-jdom:1.0-FCS}} jar *only* provides the 3
classes that have been patched for JDom 1.0. These classes are also present in
the {{jaxen:jaxen:1.0-FCS}} jar.
Since, afaik, we can't enforce classpath order, the only way to solve this
would be to either repackage jaxen ourselves (unless someone has done it? .. or
to update to JDom 1.1 and Jaxen 1.1.1, which is what we did for Magnolia 4.1
As far as I can tell, we currently only need Jaxen for xpath in WebXmlUtil.
Hopefully, if we do a 4.0.x release after 4.0.2, we'll have time to investigate
and potentially fix this. In the meantime, one could update jdom/jaxen in case
of issues, or add the jaxen-jdom jar and pray for the classloader to load it
first.
> Invalid JDOM/JAXEN distribution included
> ----------------------------------------
>
> Key: MAGNOLIA-2716
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2716
> Project: Magnolia
> Issue Type: Bug
> Components: build
> Affects Versions: 4.0.1
> Environment: ubuntu 9.04, JBoss 5.0.1, MySQL 5.0
> Reporter: Egor Kolesnikov
> Assignee: Grégory Joseph
> Fix For: 4.0.x
>
> Attachments: server.txt
>
>
> After changing DERBY repository to MYSQL one, the following error appears
> while deploying to JBoss 5.0.1:
> java.lang.NoSuchMethodError:
> org.jdom.Element.getParent()Lorg/jdom/Element;
> at
> org.jaxen.jdom.DocumentNavigator.getParentAxisIterator(DocumentNavigator.java:252)
> at
> org.jaxen.expr.iter.IterableParentAxis.iterator(IterableParentAxis.java:82)
> at org.jaxen.expr.DefaultStep.axisIterator(DefaultStep.java:139)
> at
> org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:188)
> However, after replacing WEB-INF/lib/jaxen-1.0-FCS.jar and
> WEB-INF/lib/jdom-1.0.jar with jdom.jar, jaxen-core.jar and jaxen-jdom.jar
> from JDOM1.0 distribution obtained from jdom.org, everything started working
> properly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------