Bugs item #957704, was opened at 2004-05-21 00:07
Message generated for change (Comment added) made by skulawik
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=957704&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Sascha Kulawik (skulawik)
Assigned to: Scott M Stark (starksm)
Summary: Jaxen-based Applications no longer working wth JBoss >=3.2.4

Initial Comment:
Hello,

I have a lot of applications based on XPath, which uses
Jaxen for XPath processing. Through JBoss deliveres
within JBoss 3.2.4 and 4.0 JDom as library, also Jaxen
will be delivered in an incompatible version to the
Jaxen-Final. Also the delivered Jaxen version is not
complete, so generic XPath is no longer working because
of the classloader as well - Im currently using the
<lib> element in the applications.xml of my ear.

Here is a short snipped which will no longer work with
this versions:
import org.jaxen.BaseXPath;
import org.jaxen.dom.DOMXPath;
public static Iterator findNodes(Node node, String
xpathquery) {
                Iterator it = null;
                try {
                        BaseXPath expression = new DOMXPath(xpathquery);
                        it = expression.selectNodes(node).iterator();
                } catch(Exception exe) { }
                if(it==null) {
                        it = new Vector().iterator();
                }
                return it;
        }

----------------------------------------------------------------------

>Comment By: Sascha Kulawik (skulawik)
Date: 2004-05-25 21:57

Message:
Logged In: YES 
user_id=362237

Page not created yet?
Do you have the right URL?

----------------------------------------------------------------------

Comment By: Scott M Stark (starksm)
Date: 2004-05-21 19:44

Message:
Logged In: YES 
user_id=175228

3.2.4 does not ship with jdom, it ships with dom4j, which is
what includes jaxen. You will have to configure your
application to override the jboss classes using scoped class
loading as described here:
http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

If this does not work create an ear which demonstrates the
problem.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=957704&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to