• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I installed Tomcat 3.1 on Win �98. I am trying to compile a Servlet with much success so far. I am getting an error message �HTTPServlet not found�, �javax not found � etc.
I set JAVA_HOME =C:JDK1.2.2 & TOMCAT_HOME=C:\TOMCAT. I also have C:\JDK1.2.2\lib\tools.jar in the Classpath.
Still I get the error messages. Besides the above what needs to be done. Any help is highly appreciated.
Thanks !
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"JAVA_HOME =C:JDK1.2.2"...
Was that a typo? Or do you have JAVA_HOME=C:\JDK1.2.2
Of course you have the import statements in your source files...
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tony,
It is jdk:\1.2.2. Yes i also have the import statments in the source. But still i get the error messages.

Thanks.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rao gaaru,
Try including the statement "import javax.servlet.http.*;" and try compiling the servlet. Also look into
"c:\tomcat\src\javax\servlet" directory. If the HttpServlet class is in this directory then your code would compile in the present state. Since there is a "http" sub-directory, you must incluse this in your servlet.
Try this and please tell me if I am wrong.
regards
Srikanth
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But i am still encountering the same problem. I am trying to compile the servlet on JDK1.2.2. Do i have to copy Jar files to the JDK.
I included the Jar files in the CLASSPATH as C:\JDK1.2.2\lib\tools.jar. I set the JAVA_HOME=c:\JDK1.2.2 & TOMCAT_HOME=c:\tomcat.
Thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The servlet classes are "standard extensions" so you can
either specifically point your classpath to include the JAR
file that tomcat provides:
SET CLASSPATH=%CLASSPATH%;.;c:\tomcat\lib\servlet.jar
OR you can copy that JAR to your JDK1.2.2\jre\lib\ext
directory where the standard extensions live.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi William,
Thanks a lot. It works now ! Thanks Srikanth& Tony.
 
reply
    Bookmark Topic Watch Topic
  • New Topic