This content has been marked as final.
Show 3 replies
-
1. Re: Access to servlet with '/servlet/' in URL gives Error 40
alexeit Dec 10, 2005 7:46 AM (in response to alexeit)"alexeit" wrote:
I am newbie in JBoss. I'm developin the simple servlets. When I describe them in web.xml, everything is OK. However, when I try to call a servlet which is not mentioned in web.xml like this:
http://localhost:8080/servlet/TestServlet, I get 404 error.
JBoss 4.0.3SP1
WinXP
JDK 1.5
I found the answer here: http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt, part 'Enabling invoker servlet' and can now access servlet with 'servlet' in URL
Alexei -
2. Re: Access to servlet with '/servlet/' in URL gives Error 40
brian.stansberry Dec 10, 2005 4:11 PM (in response to alexeit)The invoker servlet, which handles the /servlet/... URL pattern, is not enabled by default, as it's a potential security hole. You need to go into the deploy/jbossweb-tomcat55.sar/conf/web.xml file and uncomment it. It's better practice to specify your servlets in web.xml.
-
3. Re: Access to servlet with '/servlet/' in URL gives Error 40
alexeit Dec 10, 2005 10:04 PM (in response to alexeit)"bstansberry@jboss.com" wrote:
The invoker servlet, which handles the /servlet/... URL pattern, is not enabled by default, as it's a potential security hole. You need to go into the deploy/jbossweb-tomcat55.sar/conf/web.xml file and uncomment it. It's better practice to specify your servlets in web.xml.
Brian, thank you for explaining. I like using web.xml descriptor for the servlet best, but the tutorials I referref to use '/servlet/' URL so I wanted to achieve this.
Thank you,
Alexei