aspose file tools*
The moose likes Servlets and the fly likes servlet help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet help! " Watch "servlet help! " New topic
Author

servlet help!

gahn folorn
Greenhorn

Joined: Jul 22, 2003
Posts: 4
hi! i been following examples from a book, XML and Java from scratch, n im now stuck with an error when running a particular servlet.
exception

root cause

servlet

any idea?
im running tomcat 4.1, java 1.3.1, xerces 1.4.4, xalan j 2.5.1 on my com.
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
It looks like you haven't got Xerces on your class path for the deployed application. Are you sure that xerces.jar has been deployed onto the Tomcat server ?


Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
gahn folorn
Greenhorn

Joined: Jul 22, 2003
Posts: 4
thx for ya reply!
deployed? i did set the classpath for xerces.jar.
.;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\tools.jar;C:\xalan-j_2_5_1\bin\xalan.jar;C:\xalan-j_2_5_1\bin\xml-apis.jar;C:\xerces-1_4_4\xerces.jar;C:\xerces-1_4_4\xercesSamples.jar;C:\xalan-j_2_5_1\bin\xercesImpl.jar;
im running win xp by the way!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
The latest Tomcat changes the way classes are found - it does NOT use classpath for anything. Documentation comes with the Tomcat installation. Look for Class Loader How-to.
Bill
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
By "latest Tomcat", do you mean Tomcat 5?


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Nope - there was a change in the convention for how classes are located on going from Tomcat 3 to 4. (and possibly within 4.x versions) I don't know if there are more changes in store. Like I said there is a class loader How To document that should explain it all.
Bill
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Thanks. I've never used a Tomcat earlier than 4.1.24, so the idea of using CLASSPATH at all is pretty foreign to me.
gahn folorn
Greenhorn

Joined: Jul 22, 2003
Posts: 4
Originally posted by William Brogden:
The latest Tomcat changes the way classes are found - it does NOT use classpath for anything. Documentation comes with the Tomcat installation. Look for Class Loader How-to.
Bill

got it. thx!
 
Consider Paul's rocket mass heater.
 
subject: servlet help!