tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lajos Moczar <lm...@galatea.com>
Subject Re: Tomcat Apache directories, jsp/servlet path
Date Tue, 21 Jan 2003 23:21:06 GMT
Chris -

As I am running out the door, I cannot reply specifically until later. 
However, I have Tomcat virtual hosting info on my site: 
www.galatea.com/flashguides - that might help 'cause I show some examples.

Regards,

Lajos


Chris Schild wrote:
> John, Lajos,
> Just to make sure that I am understanding everything correctly (for
> auto-deploy):
> I need a Host element and Context defined in server.xml.
> Add context in myapps.xml to appBase defined in <Host> for virtual host.
> 
> Add web.xml to WEB-INF of myapps.xml base folder (defined in myapps.xml).
> 
> Is that correct?  Nothing in conf?
> 
> Do I need to add <Context> to the <Host> element if I want to
> auto-deploy?????    Or is that defined in .../mypath/myapps/WEB-INF/web.xml?
> If so, what scripting do I need to add to the web.xml file?
> 
> Basically, i have tried both ways but tripped and fell.  I will try again
> later tonight.....
> 
> Thanks again,
> 
> 
> ----- Original Message -----
> From: "Turner, John" <JTurner@AAS.com>
> To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> Sent: Tuesday, January 21, 2003 1:58 PM
> Subject: RE: Tomcat Apache directories, jsp/servlet path
> 
> 
> 
>>I might add that http://localhost/examples is an example of what you need
> 
> to
> 
>>do for any webapp if you don't want to auto-deploy (One Host element, one
>>Context).
>>
>>If you want to auto-deploy, then you need to look at
>>$CATALINA_HOME/webapps/admin.xml and $CATALINA_HOME/webapps/manager.xml
> 
> for
> 
>>examples on how to auto-deploy a Context.  Respectively, those two files
>>will make http://localhost/admin and http://localhost/manager work.
>>
>>John
>>
>>
>>
>>>-----Original Message-----
>>>From: Turner, John [mailto:JTurner@AAS.com]
>>>Sent: Tuesday, January 21, 2003 2:53 PM
>>>To: 'Tomcat Users List'
>>>Subject: RE: Tomcat Apache directories, jsp/servlet path
>>>
>>>
>>>
>>>Well, first off, you don't have any ROOT Contexts in that
>>>server.xml you
>>>posted.
>>>
>>>If you want http://my.domain.com/my.jsp to work, you need:
>>>
>>>1) a Host element for my.domain.com (just like the one in
>>>server.xml for
>>>localhost, but change the appBase)
>>>
>>>2) a Context within that Host element that looks like this:
>>>
>>><Context path="" docBase="ROOT" debug="0"/>
>>>
>>>3) a folder in the Host's appBase directory called ROOT
>>>
>>>4) a folder in the ROOT folder called WEB-INF
>>>
>>>5) a file in ROOT/WEB-INF called web.xml
>>>
>>>6) my.jsp goes in appBase/docBase, in this case appBase/ROOT/my.jsp
>>>
>>>If you don't want to do that, you can use the auto-deploy feature for
>>>Contexts, and put a file called myapp.xml in CATALINA_HOME/webapps (or
>>>rather, Host's appBase), the contents of which might be:
>>>
>>><Context path="/myApp" docBase="some/path/to/myApp"
>>>        debug="0" reloadable="true">
>>>
>>>  <Logger className="org.apache.catalina.logger.FileLogger"
>>>             prefix="localhost_admin_log." suffix=".txt"
>>>          timestamp="true"/>
>>>
>>></Context>
>>>
>>>John
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Chris Schild [mailto:chris.schild@corridortechnology.com]
>>>>Sent: Tuesday, January 21, 2003 2:39 PM
>>>>To: Tomcat Users List
>>>>Subject: Re: Tomcat Apache directories, jsp/servlet path
>>>>
>>>>
>>>>Lajos,
>>>>I believe you are right on the <servlet-mapping> but I am
>>>>uncertain what
>>>>should be defined in web.xml.  The same with server.xml.  I
>>>>am not finding
>>>>the docs that I need.
>>>>Thanks for the help!
>>>>
>>>>----- Original Message -----
>>>>From: "Lajos Moczar" <lmocz@galatea.com>
>>>>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>>>>Sent: Tuesday, January 21, 2003 1:11 PM
>>>>Subject: Re: Tomcat Apache directories, jsp/servlet path
>>>>
>>>>
>>>>
>>>>>Chris -
>>>>>
>>>>>Can you provide the relevant snippets of server.xml and
>>>>
>>>>web.xml? Off the
>>>>
>>>>>bat, I can't really suggest anything except to say that
>>>>
>>>possibly you
>>>
>>>>>need other <servlet-mapping> tags defined in web.xml.
>>>>>
>>>>>Cheers,
>>>>>
>>>>>Lajos
>>>>>
>>>>>
>>>>>Chris Schild wrote:
>>>>>
>>>>>>Can someone tell me (provide an example) of how to add
>>>>>
>>>>directories for
>>>>running jsp/servlets?
>>>>
>>>>>>I have multiple hosts and the examples work fine but I
>>>>>
>>>am missing
>>>
>>>>something as for running jsp/servlets for those virtual hosts.
>>>>
>>>>>>www.mydomain1.com/examples/jsp/test.jsp  and
>>>>>
>>>>www.mydomain2.com/examples/jsp/test.jsp work fine but when I try
>>>>www.mydomain1.com/test.jsp on the root directory I get
>>>>nuttin?  HTML, etc
>>>>seem to work ok...
>>>>
>>>>>>Where should I define this path?  Is there something that
>>>>>
>>>>I need to
>>>>modify in web.xml?  Somebody please help before I lose my hair!  (:
>>>>
>>>>>>Is there a URL with some documentation out there I am
>>>>>
>>>>missing?  Did I
>>>>overlook it in tomcat-4.0-doc HOWTO?
>>>>
>>>>>
>>>>>--
>>>>>
>>>>>
>>>>>
>>>>>                    Lajos Moczar
>>>>>       ----------------------------------------
>>>>>     Open Source Support, Consulting and Training
>>>>>       ----------------------------------------
>>>>>             Cocoon Developer's Handbook
>>>>>  (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
>>>>>
>>>>>                    _      _____
>>>>>                   / \         /
>>>>>                  /___\      /
>>>>>                 /     \   /____
>>>>>
>>>>>      http://www.galatea.com -- powered by AzSSL
>>>>>
>>>>>
>>>>>--
>>>>>To unsubscribe, e-mail:
>>>>
>>>><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>>>
>>>>>For additional commands, e-mail:
>>>>
>>>><mailto:tomcat-user-help@jakarta.apache.org>
>>>>
>>>--
>>>To unsubscribe, e-mail:
>>
>><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail:
>><mailto:tomcat-user-help@jakarta.apache.org>
>>
>>--
>>To unsubscribe, e-mail:
> 
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> 
>>For additional commands, e-mail:
> 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 


-- 



                    Lajos Moczar
       ----------------------------------------
     Open Source Support, Consulting and Training
       ----------------------------------------
             Cocoon Developer's Handbook
  (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

                    _      _____
                   / \         /
                  /___\      /
                 /     \   /____

      http://www.galatea.com -- powered by AzSSL


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message