I have found why the /servlet/MyServlet is not found. With newer Tomcat the
/servlet default servlet path is not any longer enabled (it's disabled by
default). As soon as I uncomment the servlet-mapping which enables the
/servlet path, the simple servlet works (though this is no longer the
recommended way to use servlets with Tomcat:
http://www.jguru.com/faq/view.jsp?EID=1105228
"With Tomcat 4.x the Jakarta developers have decided to stop allowing this
by default. The tag that sets this mapping up, has been
commented inside the default web application descriptor (web.xml), located
under $CATALINA_HOME/conf"
Tom
From: Andrew Oliver <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: Re: [JBoss-user] New User Servlet setup question
Date: Wed, 18 Feb 2004 13:28:40 -0500
You¹ve got the web.xml syntax wrong:
(from server/default/deploy/jmx-console/WEB-INF/web.xml
HtmlAdaptor
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
...
HtmlAdaptor
/HtmlAdaptor
You can find dtds in $JBOSS_HOME/docs/dtds. Many editors will use these to
help validate/complete as you type.
Shameless plug:
There are labs for this in JBoss intro to J2EE training as well.
-Andy
From: "Thomas Preston" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Wed, 18 Feb 2004 11:36:33 -0500
To: [EMAIL PROTECTED]
Subject: [JBoss-user] New User Servlet setup question
Hi -- I've installed JBoss with embedded Tomcat. I have created an ear
file
with a war file in it with a JSP and Servlet inside. I followed these
instructions exactly. I install the ear, I can get to the JSP but not to
the Servlet. When attempting to invoke the servlet I get a 404:
http://www.roseindia.net/jboss/buildingwebapplicationwithant.shtml
http://localhost:8080/example2/index.jsp works ok
http://localhost:8080/example2/servlet/HelloWorld doesn't work
I found the Tomcat invoker servlet and added a url-pattern in case the
/servlet default wasn't working.
invoker
/servlet/*
org.apache.catalina.servlets.InvokerServlet
debug
0
2
Can someone lead me in the correct direction to see if the servlet is
installed and how to access it?
THanks
Tom
Get a FREE online computer virus scan from McAfee when you click here.
<http://g.msn.com/8HMBENUS/2755??PS=>
--- SF.Net is sponsored
by: Speed Start Your Linux Apps Now. Build and deploy apps Web services
for
Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356_id=3438=click
___ JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
_
Say good-bye to spam, viruses and pop-ups with MSN Premium -- free trial
offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/
---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user