Hello Ranchers, I have installed the j2ee application server.i don't have tomcat . when i am compiling a servlet it is saying " package javax.servlet.* " not found.where is that package in the j2ee installation directory. and is it compulsary to have tomcat to run servlets and jsp . can't i just run with the j2ee server.
One quite easy way to set up Tomcat and run your code is to install Netbeans. It comes with its own Tomcat pre-configured and you can launch your applications to it directly from the IDE. Either way you are going to make life hard for yourself if you don't run Tomcat.
Ok,you are saying that we can run the servlets and jsp without tomcat. Then Where is the file " servlet-api.jar " in the j2ee server. I have installed j2ee 5 but unable to find Servlet.jar file . can you tell me where is that file.
A J2EE server doesn't need to have "servlet-api.jar" specifically. It's more likely to have a j2ee.jar file that contains all APIs. Or it may bundle the jar files in totally different ways. Have you examined all the jar files that make up your J2EE server?
posted 13 years ago
Tomcat is the reference implementation of the JSP/Servlet API, it is how it is supposed to work, it is free and it is recommended by every text on the SCWCD exam, why not use it?