Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why servlet cannot work?

843840Feb 25 2002 — edited Oct 11 2005
I change from using tomcat to Apache. And I have the same problem when I first install tomcat. the error message is "package javax.servlet does not exist"

I have already set the classpath as
C:\Program Files\Apache JServ 1.1.2\ApacheJServ.jar;
C:\JSDK2.0\lib\jsdk.jar;C:\jdk1.3.1_02;
C:\JSDK2.0\servlet.jar

and the path as
%SystemRoot%\system32;%SystemRoot%;
%SystemRoot%\System32\Wbem;
C:\jdk1.3.1_02\bin;%CLASSPATH%;
C:\JSDK2.0\bin;%PATH%

but still doesn't work. and i have also installed apache jserv. however i am able to view the servlet file,"IsItWorking" in the browser. but when i place my servlets into the same file, it doesn't work.

I check the logs file and receive the following error
(ERROR) ajp12: Servlet Error: ClassNotFoundException: HelloWorldServlet

and

ApacheJServ/1.1.2: Exception creating the server socket: java.net.BindException: Address in use: JVM_Bind

can someone with a kind soul please help me out...
i'm really stuck!

thx in advance!


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2005
Added on Feb 25 2002
13 comments
467 views