Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-948

Jaxen-based Applications no longer working wth JBoss >=3.2.4

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-3.2.6 Final
    • None
    • None

    Description

      SourceForge Submitter: skulawik .
      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;
      }

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: