|
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
|
- Re: Hello... VSNL
- Re: Hello... Mikhail A.Golovanov
