Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] [Fwd: [wmlprogramming] Installing WURFL on Tomcat 5.5 & Java 5]

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: luca <passani AT eunet.no>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] [Fwd: [wmlprogramming] Installing WURFL on Tomcat 5.5 & Java 5]
  • Date: Tue, 11 Jan 2005 15:16:41 +0100


Elliotte,

I have this report from a WURFL API user. He complains about problems
where the WURFL API should work out of the box with Java 5, but this
is not happening because SAXParser is not recognized.

I think this maps back to XOM. Any comments?

thanks

Luca

-------- Original Message --------
Subject: [wmlprogramming] Installing WURFL on Tomcat 5.5 & Java 5
From: Christopher Yewchuk <chris AT yewchuk.com>
Reply-To: wmlprogramming AT yahoogroups.com
To: wmlprogramming AT yahoogroups.com



Hey guys & gals,

I downloaded the Java/WALL libraries yesterday, and noticed that
they haven't been tested on Tomcat 5.5 yet. So I thought I would
try my luck at installing them on Tomcat 5.5.4 and J2SE SDK 5.0 (on
winXP) and report my results to the group.

Tomcat 5.5.4 uses the same Servlet/JSP spec as 5.0.x (Servlet 2.4,
JSP 2.0), so I figured it would be smooth sailing.

Unfortunately, I was wrong. It seems that Tomcat 5.5 does not ship
with xerces as part of its bundled APIs. (see
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES) So
they suggest that if you are using Tomcat 5.5 with J2SE 1.4,
the 'compatibility package' must be installed to provide these
libraries. (available at http://jakarta.apache.org/site/binindex.cgi)

Since I am using J2SE 1.5 (Java 5), I thought I would be ok.
However, when attempting to deploy the WURFL web app, it would give
me:

SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser

So the code seems to eb using "org.apache.xerces.parsers.SAXParser"
as the path to import the xerces libs. I couldnt find this path in
the J2SE 1.5 rt.jar, but I did find SAXParser.class
at "com.sun.org.apache.xerces.internal.parsers". Perhaps a new
import path is required for Tomcat 1.5 & Java5 compatibility?


Now here's the good news! Adding the compatibility package to the
Tomcat/common/lib dir worked like a charm. The compatibility
package provides:

* jmx.jar (Java Management Extensions API 1.2 or later)
* xercesImpl.jar (Xerces XML Parser, version 2.6.2 or later)


Hope this info helps!

Christopher.






Archive powered by MHonArc 2.6.24.

Top of Page