Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat 5 and context paths

Reply
Thread Tools

Tomcat 5 and context paths

 
 
galpix@mail.com
Guest
Posts: n/a
 
      07-31-2005
Hi folks,

I'm running Tomcat 5 on MacOS X, and have a few questions regarding
context paths :

1) Where is the context path defined for the examples that come with
Tomcat under <root>/webapps/servlets-examples (or jsp-examples for that
matter) ?? it's not in the <root>/conf/server.xml; is it defined
somewhere else ? I can't figure out how the mapping works.

2) I followed instructions from some website to install a JSF example.
I copied a .war file into my <root>/webapps/ dir, it expanded and runs
fine. BUT, I didn't even have to add a new entry in server.xml to
specify the ContextPath. Again, where did it get the ContextPath from ?

I created my own new app and had to add it to server.xml to get it to
run ...

I'm asking because I also installed cocoon (by copying the cocoon.war
file under webapps), it expanded, but for some reason it won't run (it
can't find the path). So there's something I'm missing ...

thanks a lot,

galpi

 
Reply With Quote
 
 
 
 
IchBin
Guest
Posts: n/a
 
      07-31-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi folks,
>
> I'm running Tomcat 5 on MacOS X, and have a few questions regarding
> context paths :
>
> 1) Where is the context path defined for the examples that come with
> Tomcat under <root>/webapps/servlets-examples (or jsp-examples for that
> matter) ?? it's not in the <root>/conf/server.xml; is it defined
> somewhere else ? I can't figure out how the mapping works.
>
> 2) I followed instructions from some website to install a JSF example.
> I copied a .war file into my <root>/webapps/ dir, it expanded and runs
> fine. BUT, I didn't even have to add a new entry in server.xml to
> specify the ContextPath. Again, where did it get the ContextPath from ?
>
> I created my own new app and had to add it to server.xml to get it to
> run ...
>
> I'm asking because I also installed cocoon (by copying the cocoon.war
> file under webapps), it expanded, but for some reason it won't run (it
> can't find the path). So there's something I'm missing ...
>
> thanks a lot,
>
> galpi
>


\webapps\jsp-examples\WEB-INF\web.xml
\webapps\servlets-examples\WEB-INF\web.xml

--


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com
__________________________________________________ ________________________

' If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paths, gentleman, paths Ohad Lutzky Ruby 2 11-07-2006 02:15 AM
Deep context paths in Tomcat 5.5? David Kerber Java 0 09-29-2005 11:40 PM
Context.Items vs Context.Handler (passing values between pages) VS_NET_DEV ASP .Net 2 05-25-2004 01:16 PM
Mapping Paths with no context Michael McDaniel ASP .Net 0 07-18-2003 05:18 PM
Convert between Windows style paths and POSIX style paths Noah Python 5 07-11-2003 09:25 PM



Advertisments