On Sun, May 18, 2008 at 6:07 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote:
>
> ----- Original Message ----- From: "Mark Thomas" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Sunday, May 18, 2008 7:11 PM
> Subject: Re: Deploying Servlets in users directory
>
>
>> Johnny Kewl wrote:
>>>
>>> ----- Original Message ----- From: "Cristian Bullokles" <[EMAIL PROTECTED]>
>>> To: <users@tomcat.apache.org>
>>> Sent: Saturday, May 17, 2008 10:09 PM
>>> Subject: Deploying Servlets in users directory
>>>
>>>
>>>> Hello all,
>>>>
>>>> I'm using tomcat 6.016 and have configured userconfig in server.xml to
>>>> look in user's public_html subdir for jsps etc.
>>>> Jsp files works fine in user directories but servlets do not.
>>>
>>> Cristian I actual dont understand what it is exactly that you did configure?
>>> "userconfig in server.xml" not sure what that is?
>>
>> It is in the docs but you do need to know where to look.
>> http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
>> Search for "User Web Applications"
>>
>> Christian - where did you put the servlet classes, what did you put in 
>> web.xml and how did you try accessing them?
>
> Ah thanks Mark... if he had said ~User I would have clicked....
> Tried it a eons ago and I didnt like it... I think it's really only good for 
> JSP and HTML pages.
> And... someone should check this... if I remember right... servlets will only 
> work if called from a JSP page.
> but not if called directly...
> I think its meant for very simple user sites... maybe others can comment.
>
> ---------------------------------------------------------------------
> 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?

Regards.
Cristian

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