On Sun, May 18, 2008 at 9:25 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote:
>>> 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 ;)
>
Johnny,
       When you drop a new servlet(.war) in webapps dir while TC is
running that .war file is unpackaged and deployed in tomcat, and you
could use it without restart TC.
       I've copied all servlets examples in default installation to my
home dir, and all jsp pages work, but when I call to a servlet it
fails, also if i drop a zip or a war or a folder containing a servlet
also doesn't works.
       Another question:
      Can I have multple webapps folders in my tomcat installation?
How I could configure it?

Regards
Cristian

Regards

My first test was

---------------------------------------------------------------------
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