To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


My idea is to deploy servlets in the public_html directory of each
user in my host.
I've configured my tomcat, as the tomcat documentation suggests.
Using that configuration:

<Host name="localhost" ...>
 ...
 <Listener className="org.apache.catalina.startup.UserConfig"
           directoryName="public_html"
           userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
 ...
</Host>

This configuration works fine and when I copy a file for example
hello.jsp in my public_html dir.
It works using that url: http://localhost:8080/~cbullokl/hello.jsp.
But when I copy a war file in my home directory it doesn't works.
Any suggestion?

Cristian

Its the stuff inside the WAR... you need to unpack it, rename to zip and get the stuff inside. Before you do that... have a look at the examples that are already installed with Tomcat... there are some JSP and Servlet examples in tomcat/webapps

Just copy the stuff inside there... and test.
If its all working then try unpack the war and also do it.
Or drop the war into webapps and it will unpack, then copy that stuff inside.

I'm not sure how good TC is outside of webapps when it comes to deploying to the ~user thing. So I think you going to find that anything that works well from the default servlet works well... but servlets may be tricky. Like if you dropped new servlets in while TC was running... I dont think it will detect it... not without restarting TC... so I think there are issues if its not simple JSP or html pages... like what happens if you have 10 webapps... they all overlay... its for simple stuff.

good luck ;)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to