Check whether the HTMLTemplate.class is in the
CLASSPATH in the second case. It looks like in
this case every java class resides in its own
.class file.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of VSNL
Sent: Saturday, January 29, 2000 4:42 PM
To: [EMAIL PROTECTED]
Subject: Hello...
I am using Apache web server along with Apache Jserv. I have a servlet
which takes user name and password and verifies it in the database. If
the authentication is approved then it instantiate an object of
HTMLTemplate, which is an user defined class under a user defined
package, to create a dynamic HTML page. If I put the package along with
the javax package and set the wrapper.classpath in the jserv.properties
file (which is in the conf directory of apache jserv), the servlet is
working fine.
But if I add the class directly in the LoginServlet file then the Apache
JServ is throwing an error of
java.lang.NoClassDefFoundError: HTMLTemplate
at org.apache.jserv.JServConnection.processRequest(JServConnection.java)
at org.apache.jserv.JServConnection.run(JServConnection.java) at
java.lang.Thread.run(Thread.java:479)
Do I have to change any settings in the server's conf file? Also I would
like to know whether the servlet file can have more than one class in
the same file? Please clarify my doubt...this is very urgent...
Thanks in Advance...
Aditya
___________________________________________________________________________
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