You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Taj <ma...@hotmail.com> on 2004/04/01 19:56:54 UTC
Tomcat 4.1Configuration <404 error>
Iam having problem in setting my application running in Tomcat 4.1
The applications directory is situated at
/Tomcat4.1/webapps/ROOT/myapplication
This is the only place that my pages are visible to the server.
My class files are situated at
/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/classes/
The html pages in the directory /Tomcat4.1/webapps/ROOT/myapplication/ are
visible to the server but my class files
are not. I have tried everthing. The web.xml file is kept in the directory
/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/
and the web.xml file goes like:
<web-app>
<servlet>
<servlet-name>GetInput</servlet-name>
<servlet-class>GetInput</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GetInput</servlet-name>
<url-pattern>/GetInput</url-pattern>
</servlet-mapping>
</web-app>
Where the GetInput in the servlet-name.
The HTML page that calls the servlet has the following syntax for the POST
command:
<form method="POST" action="GetInput">
I have also added to the environment variables of my OS, the following:
CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1
TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1
But to no difference
Even after all this I get the 404 error: the required source was not found.
I would by very thankful to anyone who can find what I have missed and help
me out.
Thanks
RE: Tomcat 4.1Configuration <404 error>
Posted by Taj <ma...@hotmail.com>.
Hi
Iam using jdk1.4.2 allright but my class is known as GetInput only
And not somepackage.GetInput. iam really frustrated by this.
Can u give some other suggestions.
-----Original Message-----
From: QM [mailto:qm300@brandxdev.net]
Sent: Thursday, April 01, 2004 11:35 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1Configuration <404 error>
On Thu, Apr 01, 2004 at 11:26:54PM +0530, Taj wrote:
: <web-app>
: <servlet>
: <servlet-name>GetInput</servlet-name>
: <servlet-class>GetInput</servlet-class>
: </servlet>
:
: Even after all this I get the 404 error: the required source was not
found.
Which JDK are you using? Are your classes are really called
"GetInput" and not some.package.GetInput? JDK 1.4.x will give
you a few headaches if your classes are not in proper packages.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 4.1Configuration <404 error>
Posted by QM <qm...@brandxdev.net>.
On Thu, Apr 01, 2004 at 11:26:54PM +0530, Taj wrote:
: <web-app>
: <servlet>
: <servlet-name>GetInput</servlet-name>
: <servlet-class>GetInput</servlet-class>
: </servlet>
:
: Even after all this I get the 404 error: the required source was not found.
Which JDK are you using? Are your classes are really called
"GetInput" and not some.package.GetInput? JDK 1.4.x will give
you a few headaches if your classes are not in proper packages.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org