I have resolved it at last! For some reason, tomcat is looking for
class files under the current directory, even that the CLASSPATH
variable does not point to the current directory. And in the current
directory there were some stray subdirectories with class files, that
apparently had priorities ov
Now, I changed the name of the method, adding an underscore before it,
clean and rebuild in Netbeans worked fine, the WAR worked in the
tomcat bundled with Netbeans, yet, copying the WAR to any other tomcat
I tried causes now:
javax.servlet.ServletException: Servlet execution threw an exception
r
5. And the error occurs also with Java 1.5 and Tomcat 5.5.15.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
More details:
1. The jars within the war do not have servlet_api.jar, too.
2. The method session.removeAttribute() works OK in
servlets.LoginScreenServlet.processRequest, but in the method called
by
processRequest it throws the exception.
3. processRequest is in the netbeans webapp, and removeUs
The error is there again.
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpSession
org.algstoch.httpuserlib.Password.removeUserId(Password.java:118)
servlets.LoginScreenServlet.processRequest(Lo
Thank you for help. It was the tomcat web app that was putting the
servlet-api-jar into war. I corrected it and the app works ok again.
Artur
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
You cannot ship servlet-api.jar as part of your war. If you do, you will
have two different instances of the HttpSession.class object -- one loaded
via Tomcat (from common/lib/servlet-api.jar) and the other loaded from the
one in your .war.
So, put it on your compile-time classpath, but do not in