Tomcat 5 and context paths

Discussion in 'Java' started by galpix@mail.com, Jul 31, 2005.

  1. Guest

    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
    , Jul 31, 2005
    #1
    1. Advertising

  2. IchBin Guest

    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-)
    IchBin, Jul 31, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael McDaniel

    Mapping Paths with no context

    Michael McDaniel, Jul 18, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    327
    Michael McDaniel
    Jul 18, 2003
  2. David Kerber

    Deep context paths in Tomcat 5.5?

    David Kerber, Sep 30, 2005, in forum: Java
    Replies:
    0
    Views:
    367
    David Kerber
    Sep 30, 2005
  3. Noah
    Replies:
    5
    Views:
    769
  4. Ohad Lutzky

    Paths, gentleman, paths

    Ohad Lutzky, Nov 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    185
    David Vallner
    Nov 7, 2006
  5. Norah Jones
    Replies:
    0
    Views:
    67
    Norah Jones
    Apr 7, 2014
Loading...

Share This Page