This content has been marked as final.
Show 6 replies
-
1. Re: java.lang.NoClassDefFoundError: org/jaxen/JaxenException
taha1967 Sep 19, 2006 10:28 AM (in response to taha1967)"taha1967" wrote:
Hello,
I have deployed my EAR in jboss 4.0.4 and when I try to use a component that use dom4j I have the following error :
java.lang.NoClassDefFoundError: org/jaxen/JaxenException
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at org.dom4j.tree.AbstractNode.selectSingleNode(AbstractNode.java:183)
at net.windward.xmlreport.ProcessReport.addBody(Unknown Source)
at net.windward.xmlreport.ProcessReport.append(Unknown Source)
at net.windward.xmlreport.ProcessReport.<init>(Unknown Source)
at net.windward.xmlreport.ProcessPdf.<init>(Unknown Source)
at it.deltadator.reportmanager.engine.builtin.ejb.ses.BuiltInReportEngineBean.generateReport(BuiltInReportEngineBean.java:184)
at it.deltadator.reportmanager.engine.builtin.ejb.ses.BuiltInReportEngineBean.processReport(BuiltInReportEngineBean.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
The jaxen.jar library is in my EAR and in the classpath of the session bean which call the windward Component (in the manifest).
Any suggestions for the cause of the problem ?
Please help -
2. Re: java.lang.NoClassDefFoundError: org/jaxen/JaxenException
peterj Sep 19, 2006 11:02 AM (in response to taha1967)Try packaging dom4j.jar in your ear file.
-
3. Re: java.lang.NoClassDefFoundError: org/jaxen/JaxenException
taha1967 Sep 19, 2006 11:25 AM (in response to taha1967)I did but no way, jboss use the it's dom4j (jboss_home/lib)
-
4. Re: java.lang.NoClassDefFoundError: org/jaxen/JaxenException
jiwils Sep 20, 2006 10:29 AM (in response to taha1967)Try scoping your EAR. Have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration which describes how to do this.
-
5. Re: java.lang.NoClassDefFoundError: org/jaxen/JaxenException
anishx Sep 21, 2006 8:44 AM (in response to taha1967)a quick (and of course dirty) solution is to use the jboss unified class loader. In your
\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml,
change the to true.
Let me know if it works. (Please do not do this if you have multiple applications) -
6. Re: java.lang.NoClassDefFoundError: org/jaxen/JaxenException
anishx Sep 21, 2006 8:45 AM (in response to taha1967)i mean change the UseJBossWebLoader to true.
damn.. xml tags dont show up in the forum :p