PDA

View Full Version : Compilation Error: SAX2 Parser


jguidroz
05-06-2004, 10:25 AM
Laptop:
Powerbook with Mac OS X 10.3.3
Tomcat 4.1.29
LPS 2.1.1

Install is fine. Tomcat starts up and the index.html in the LPS folder can be brought up. When I click on any of the sample apps or the Laszlo-in-ten-minutes, and I get a compilation error saying: Error: SAX2 driver class org.apache.xerces.parsers.SAXParser not found.

I get this error for every sample except the simple hello world example. I'm using the http server built into Tomcat, so Apache is not integrated with Tomcat (yet).

Any suggestions would be helpful.

Justin

bloch
05-06-2004, 11:23 AM
I'm assuming you installed the LPS core into your tomcat 4.1.29. What Java version? This is a config we haven't yet tested ourselves, btw.

The quickest way to get running is to download the LPS standard that includes an older tomcat that is known to work.

In lieu of that, I can help you figure out what precise set of jars we'll need to copy/move to $TOMCAT_HOME/common/endorsed in order to make sure the right versions of the XML jars are being loaded by tomcat.


-Eric

jguidroz
05-06-2004, 11:42 AM
Java -version from my terminal:

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-117.1)
Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)

I do have an older version of Tomcat that I'll try out.

Justin

Edit: I believe the older version of Tomcat is 4.1.24, and I get the same exact error.

I followed the instructions on the site for Tomcat with copying xalan.jar and jing.jar to the appropriate folders.

Which version of Tomcat comes packaged with LPS?

UPDATE: I moved Xerces.jar into the $TOMCAT_HOME/common/endorsed and everything compiles and loads correctly in both Tomcat version 4.1.24 and 4.1.29.

bloch
05-06-2004, 12:12 PM
Glad to hear you're up and running!

We bundle 4.1.12 today.

Best,
Eric