David,
I thought I tried that before, when I have the following
geronimo-web.xmlwith dom4j and jaxen jars in web-inf/lib I still get
an error on dom4j, if I
move them up the stack to say lib/endorsed and run then the issue goes away,
I went back and tried and it seems it still doesn't work as expected.
Any thoughts, oh yeah the error.
org.dom4j.InvalidXPathException: Invalid XPath expression:
'//SECURITYPERMISSIONMETA'. Caused by: org/dom4j/Element at
org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:362)
at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59)
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:164)
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.2"
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
<sys:environment>
<sys:moduleId>
<sys:groupId>idm</sys:groupId>
<sys:artifactId>idm.war</sys:artifactId>
<sys:version>1.0</sys:version>
<sys:type>war</sys:type>
</sys:moduleId>
<sys:dependencies>
<sys:dependency>
<sys:groupId>console.dbpool</sys:groupId>
<sys:artifactId>mydb</sys:artifactId>
</sys:dependency>
</sys:dependencies>
<sys:inverse-classloading/>
</sys:environment>
<context-root>/context</context-root>
<resource-ref>
<ref-name>jdbc/jndiname</ref-name>
<resource-link>mydb</resource-link>
</resource-ref>
</web-app>
On 5/31/07, David Jencks <[EMAIL PROTECTED]> wrote:
On May 31, 2007, at 3:23 PM, Don Hill wrote:
Hi,
I have also hit this today and seems to me that the issue is the jaxen jar
located in the parent classloader, and I think jaxen also has a reference to
dom4j if your using the XPATH stuff. I have tto use dependency entries in
geronimo-web.xml but that doesn't seem to work.
Dave, Is there a way to isolate or load web-inf classes first, seems the
inverse entry has gone away, at least its commented out in the schema?
All our classloaders can now load their classes child-first, by setting
the
<inverse-classloading/>
element in the <environment> element.
david jencks
Don
On 5/24/07, David Jencks <[EMAIL PROTECTED]> wrote:
>
> NCDFE generally means that the class that depends on the missing
> class is present in a parent classloader that doesn't have access to
> the needed class. Can you figure out which class is trying to load
> the dom4j class? If so you might be able to figure out which
> classloader has loaded that class. Also, are you using the jetty or
> tomcat geronimo version? You might try the other one to see if
> there's a difference in behavior.
>
> thanks
> david jencks
>
> On May 23, 2007, at 12:11 PM, Christopher Gibbs wrote:
>
> > Hello all,
> >
> > I'm fairly new to Geronimo but I'm trying to deploy Atlassian's
> > Confluence 2.5.2 war file to Geronimo 2 M5.
> >
> > I can successfully deploy it to Geronimo 1.1.1 but when I try it
> > Geronimo 2 M5 I get the following error:
> > 13:26:52,539 ERROR [[/confluence]] Exception sending context
> > initialized event to listener instance of class
> > com.atlassian.confluence.setup.ConfluenceConfigurationListener
> > java.lang.NoClassDefFoundError: org/dom4j/Element
> >
> > I can see that it's not finding the dom4j library but what I don't
> > know is why. The library file exists within the confluence .war file
> > WEB-INF/lib directory. Is there something I should have in my
> > geronimo-web.xml file to set the library/class path?
> >
> > Here is my current geronimo-web.xml:
> >
> > <?xml version=" 1.0" encoding="UTF-8"?>
> > <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
> > <environment>
> > <moduleId>
> > <groupId>atlassian</groupId>
> > <artifactId>confluence</artifactId>
> > <version>2.5.2</version>
> > </moduleId>
> > <dependencies>
> > <dependency>
> > <groupId>console.dbpool</groupId>
> > <artifactId>ConfluencePool</artifactId>
> > </dependency>
> > </dependencies>
> > </environment>
> > <context-root>/confluence</context-root>
> > <!-- security settings, if any, go here -->
> > <resource-ref>
> > <ref-name>jdbc/ConfluenceDS</ref-name>
> > <resource-link>ConfluencePool</resource-link>
> > </resource-ref>
> > </web-app>
> >
> > Any help is appreciated!
> >
> > - Chris
>
>