>I have a ergent problem.

>In my servlet I new a class to parse the xml file. But I found that a
unknown exception thrown at the sentence of
>new. it's ok when I test the servlet using main(). I am very confused
of it.
>here is the code.
>[...]


I suggest you check where your Utility-class(xmlParser) is, if you use
TOMCAT4.0:
* unpacked class should be in:
    - WEB-INF/classes(same with your Servlet class)
          or
    - $CATALINA_HOME/classes
          or
    - $CATALINA_HOME/common/classes

* packed class(jar) should be in:
    - WEB-INF/lib
         or
    - $CATALINA_HOME/lib
          or
    - $CATALINA_HOME/common/lib

and it is recommanded that put Utility-class and Servlet-class together
within the same webapp(WEB-INF/classes or WEB-INF/lib)


Bo
Sept.10, 2001

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to