Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet comilation without JSDK

 
arpit singla
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tomacat installed. its working fine since i am able to start and stop though haven't registered any application. i have jdk1.1.8 installed. I have a servlet to be registered in tomcat, but servlet wouldn't compile. gives error javax.servlet not found. I understand that i need to download JSDK for that. what confuses me is that tomcat has its own servlet/JSP container. and servlet.jar is in my classpath. So do i still need to download JSDK. pls. explain
------------------
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget about the JSDK!
Download the latest version of TOMCAT.
If you prefer virtual hosts, they are supported by this pre-release version:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m3/bin/
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are getting "error javax.servlet not found." it is just a classpath problem. Never mix old JSDK with newer version of Tomcat - I spent days tracking down a problem due to this.
If you are stuck with JDK 1.1.8 - don't try Tomcat 4.0 - I think it requires JDK 1.2 or higher
Bill
 
arpit singla
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Tony and Bill
I downloaded tomcat from the site given by Tony. For JDK, i could not identify the right file. There was JDK 1.1, but there was no JDK 1.2 though there was Java RunTime 1.2, JRE 1.3, and Java 2 Standard edition 1.2, Java 2 Standard Edition 1.3. Which one shall i download. Tony was referring to JSDK, is this JSDK same as i mentioned above ie Java 2 Standard Edition. or is it Java Servlet Development kit.
thanks
arpit
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go with Java 2 Standard Edition 1.3. Sun used to refer to the JDK, then they switched to SDK 1.3 and Java 2 Standard Edition so you will see these terms all mixed up.
Some pages on Sun sites (and us old-timers) still refer to JDK.
There are also a bunch of acronyms floating around for the old Java Web Server, Java Web Server Development Kit and other permutations....
Bill
 
arpit singla
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill
i have installed TOMCAT and jdk1.3. DOS window , where i gave startup command gives message "Starting Tomcat in new window". but tomcat window disappears. how do i solve this problem.
thanks for all your help
arpit
 
arpit singla
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can start and stop tomcat properly now. I can also see TOMCAT window. Problem in setting up my TOMCAT_HOME and JAVA_HOME.
But not able to see http://localhost:8080/examples/jsp/index.html page. says Page can not be displayed.
thanks
arpit
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using MSIE browser, you need to turn off the "friendly" messages so you can get more informative messages.
tools -> internet Options ->advanced
make sure "friendly HTTP error messages" is not checked.
Bill
 
arpit singla
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Bill
I am able to run tomcat and able to display the JSPs and servlets.
thanx a lot
arpit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic