Hi all,
This
thread started here but we have stalled on our efforts to resolve..
https://coderanch.com/t/487709/Cattle-Drive/BeeServlet-MVC-again
I would like to re-introduce here for folks that are likely more focused on
servlet issues:
I get this error in my browser on one machine (a WinXP laptop), but not on another (a WinXP desktop) with the identical jdk, Orion server and jr.jar files.
http://localhost/servlet/NowServlet
500 Internal Server Error
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
Configuration:
jdk1.6.0_17 and Orion 2.0.7
jr.jar is located here:
http://www.javaranch.com/common.jsp
My CLASSPATH: .;C:\Java;C:\Java\jr.jar;C:\orion\orion.jar
So now that I replicated the issue that I have on a Windows laptop (WinXP Pro, SP3)
and resolved it on my Windows Desktop (WinXP Home, SP2),
the issue appears to be this, in the form of some questions:
Is there a difference between the CLASSPATH used for javac compilation, and the CLASSPATH used
for servlets during runtime?
Is there a procedure for monitoring or determining what is different under-the-hood between my two machines
as it relates to determining where the servlet is looking for HttpServlet?
Supporting Info: Invoking a class that extends HttpServlet directly from my servlet works.
Invoking a class that extends LogServlet (that extends HttpServlet) from my servlet does not work on my laptop.
This is working on laptop and desktop
This works on desktop, but not on laptop...
One other piece of info:
If I replace this in my code:
it yields this on both machines:
If you can help out, I can supply additional orion configuration information as needed.
Thank in advance for pointers or additional help...
Vince