Tomcat automatically appends the location of its jar files to your existing CLASSPATH.
1)It clearly meant that Tomcat has not loaded its jar servlet-api.jar into the classpath & why is it happening
If i have the package structure com.common.java;
then the class files should be in webinf/classes/com/common/java/WebTest.class
How this can be achieved using Ant.
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
HTTP Status 404 - /FirstApplication/
--------------------------------------------------------------------------------
type Status report
message /FirstApplication/
description The requested resource (/FirstApplication/) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.27
What about http://localhost:8080/FirstApplication/start-web-test since that's the only resource you have mapped?
A Simple Web Application
Here's some text...
...and a bit more text
Does the Tomcat Manager (usually at http://localhost:8080/manager/html/list) list the application as running?
HTTP Status 403 - Access to the requested resource has been denied
--------------------------------------------------------------------------------
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.27
By the way it's really a bad practice to put the source files & compiling from inside the Application server.
Because here you are compiling the source files which has nothing to do with the tomcat (It's JAVA compiler you are using )
You have to use Ant's javac Task with srcdir and destdir attributes. Have a look at the manual for complete information.
Doesn't Tomcat load all of its jars inside common\lib to classpath when we start the server.
Originally posted by Ulf Dittmer:
How could Tomcat function if it didn't have the servlet API and all those other jar files available?
Can't .... do .... plaid .... So I did this tiny ad instead:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|