You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pinguti Sridevi <za...@yahoo.com> on 2003/12/17 09:21:34 UTC

URGENT PLEASE HELP ME........................................

I could able to run servlets in tomcat 4.1. I created
a folder called webdev in webapps in that i created WEB-INF and 
classes. I stored web.xml in WEB-INF. as follows.
webapps/webdev/WEB-INF/classes
WEB-INF/web.xml
I configured web.xml with servletname,servletclass between webapps 
tags. After restarting the server when i say
http://localhost:8080/webdev/servlet/myservletfile
It showing 
404 Requested URI not found.
I tried like the below also
http://localhost:8080/webdev/myservletfile
But still it is not getting.
Let me tell anybody that tomcat4.1 have any bug in reading web.xml



---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Re: URGENT PLEASE HELP ME........................................

Posted by Ben Souther <bs...@fwdco.com>.
If his app is directly under the webapps directory, he shouldn't need to 
alter server.xml.

AutoDeploy will pick it up.

You will, however need to create a mapping for your servlet in your web.xml 
file under WEB-INF in your app's directory.





On Wednesday 17 December 2003 11:05 am, qi zhang wrote:
> You should change your server.xml, adding another context like
>
> <Context path="/webdev" docBase="webdev" debug="0"
>     reloadable="true" crossContext="true">
> </Context>
>
> Try to see if it will help.
>
> > I could able to run servlets in tomcat 4.1. I created
> > a folder called webdev in webapps in that i created WEB-INF and
> > classes. I stored web.xml in WEB-INF. as follows.
> > webapps/webdev/WEB-INF/classes
> > WEB-INF/web.xml
> > I configured web.xml with servletname,servletclass between webapps
> > tags. After restarting the server when i say
> > http://localhost:8080/webdev/servlet/myservletfile
> > It showing
> > 404 Requested URI not found.
> > I tried like the below also
> > http://localhost:8080/webdev/myservletfile
> > But still it is not getting.
> > Let me tell anybody that tomcat4.1 have any bug in reading web.xml
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > New Yahoo! Photos - easier uploading and sharing
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
Ben Souther
F.W. Davison & Company, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: URGENT PLEASE HELP ME........................................

Posted by qi zhang <qi...@CS.WM.EDU>.
You should change your server.xml, adding another context like

<Context path="/webdev" docBase="webdev" debug="0"
    reloadable="true" crossContext="true">
</Context>

Try to see if it will help.


> I could able to run servlets in tomcat 4.1. I created
> a folder called webdev in webapps in that i created WEB-INF and
> classes. I stored web.xml in WEB-INF. as follows.
> webapps/webdev/WEB-INF/classes
> WEB-INF/web.xml
> I configured web.xml with servletname,servletclass between webapps
> tags. After restarting the server when i say
> http://localhost:8080/webdev/servlet/myservletfile
> It showing
> 404 Requested URI not found.
> I tried like the below also
> http://localhost:8080/webdev/myservletfile
> But still it is not getting.
> Let me tell anybody that tomcat4.1 have any bug in reading web.xml
>
>
>
> ---------------------------------
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: URGENT PLEASE HELP ME........................................

Posted by Schalk <sc...@volume4.co.za>.
Pinguti

Can you post the xml code here or somewhere on the web where we can have a
look at it. I have not had any problems with Tomcat and web.xml.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -----Original Message-----
:: From: Pinguti Sridevi [mailto:zava_doubts@yahoo.com]
:: Sent: Wednesday, December 17, 2003 10:22 AM
:: To: anand; javagroup; parvez; tomcat
:: Subject: URGENT PLEASE HELP ME........................................
:: 
:: I could able to run servlets in tomcat 4.1. I created
:: a folder called webdev in webapps in that i created WEB-INF and
:: classes. I stored web.xml in WEB-INF. as follows.
:: webapps/webdev/WEB-INF/classes
:: WEB-INF/web.xml
:: I configured web.xml with servletname,servletclass between webapps
:: tags. After restarting the server when i say
:: http://localhost:8080/webdev/servlet/myservletfile
:: It showing
:: 404 Requested URI not found.
:: I tried like the below also
:: http://localhost:8080/webdev/myservletfile
:: But still it is not getting.
:: Let me tell anybody that tomcat4.1 have any bug in reading web.xml
:: 
:: 
:: 
:: ---------------------------------
:: Do you Yahoo!?
:: New Yahoo! Photos - easier uploading and sharing



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: URGENT PLEASE HELP ME........................................

Posted by George Sexton <gs...@mhsoftware.com>.
Try reading the documentation. The default invoker is disabled in 4.1.x.
Either re-enable it, or create servlet/servlet mapping pairs in the
web.xml file.

-----Original Message-----
From: Pinguti Sridevi [mailto:zava_doubts@yahoo.com] 
Sent: Wednesday, December 17, 2003 1:22 AM
To: anand; javagroup; parvez; tomcat
Subject: URGENT PLEASE HELP ME........................................


I could able to run servlets in tomcat 4.1. I created
a folder called webdev in webapps in that i created WEB-INF and 
classes. I stored web.xml in WEB-INF. as follows.
webapps/webdev/WEB-INF/classes
WEB-INF/web.xml
I configured web.xml with servletname,servletclass between webapps 
tags. After restarting the server when i say
http://localhost:8080/webdev/servlet/myservletfile
It showing 
404 Requested URI not found.
I tried like the below also
http://localhost:8080/webdev/myservletfile
But still it is not getting.
Let me tell anybody that tomcat4.1 have any bug in reading web.xml



---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org