aspose file tools*
The moose likes Tomcat and the fly likes My web.xml is good?, why no run my servlets into folder /servlets/ ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "My web.xml is good?, why no run my servlets into folder /servlets/ ???" Watch "My web.xml is good?, why no run my servlets into folder /servlets/ ???" New topic
Author

My web.xml is good?, why no run my servlets into folder /servlets/ ???

Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
Hi.

This is my server.xml



<Host name="web.com" appBase="/home/user/public_html/servlets">
<Alias>www.web.com</Alias>
<Context path="/servlets" reloadable="true" docBase="/home/user/public_html/servlets" debug="1"/>
<Context path="/manager" debug="0" privileged="true" docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
</Context>
</Host>

And yes!,

TOMCAT run the DEPLOY, but FOREVER 404,
only when I change

JkMount /servlets/* ajp13

By

JkMount /* ajp13


into [connector.conf] run fine; but I need RUN FINE INTO dir

/servlets/



Is impossible ?






Sonia Rana
Greenhorn

Joined: Mar 05, 2012
Posts: 2
Hi,

try to change host as:

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">

then deploy your war file to webapps folder and try to access your servlet on http://localhost:8080/Servlet_URL_pattern

and see whether its working by that way or not...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My web.xml is good?, why no run my servlets into folder /servlets/ ???