You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Grandy Fu <cs...@comp.polyu.edu.hk> on 2002/03/20 02:58:33 UTC

multiple WEB-INF?

Hi,

Can I tomcat4 search multiple WEB-INF in one webapp like:

<docbase>/dira/WEB-INF
         /dirb/dirb1/WEB-INF
         /dirc/WEB-INF

Grandy

------------------------------------------------------
This mail sent through http://webmail.comp.polyu.edu.hk

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: multiple WEB-INF?

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
> Can I tomcat4 search multiple WEB-INF in one webapp like:
> 
> <docbase>/dira/WEB-INF
>          /dirb/dirb1/WEB-INF
>          /dirc/WEB-INF

No and it shouldn't. One webapp has one deployment descriptor.

Nix.

Re: multiple WEB-INF?

Posted by Grandy Fu <cs...@comp.polyu.edu.hk>.
Acutally what I am going to do is set a context for user home directory so 
each user in that home directory can write their own servlet program.

I know I can setup a listen in tomcat for user servlet like following:
     <Listener className="org.apache.catalina.startup.UserConfig"
            directoryName="public_html" homeBase="/home"
 userClass="org.apache.catalina.startup.HomesUserDatabase"/>

But I have 2 reason to do what I do.
1. My old server using Jserv set up this way.
2. I want to use apache to process static page and disable tomcant's 8080 
port. However, mod_jk can't neigther handle  "JkMount /~user/servlet ajp" 
nor "JkMount /*/servlet ajp"

Even I have problem in setup http://tomcat:8080/~user/servlet/ which I will 
address in another topic.

Grandy


Quoting Joel Rees <jo...@alpsgiken.gr.jp>:

> Grandy Fu asked:
> 
> > Can I tomcat4 search multiple WEB-INF in one webapp like:
> >
> > <docbase>/dira/WEB-INF
> >          /dirb/dirb1/WEB-INF
> >          /dirc/WEB-INF
> 
> I think not.
> 
> Is creating multiple contexts in your server.xml what you would rather do?
> 
>    <Context path="/dira"
>      docBase="g:/somedir/dira" >
>    </Context>
> <!-- I don't remember if /dirb/dirb1 will need an intermediate context for
> /dirb -->
>    <Context path="/dirb/dirb1"
>      docBase="g:/anydir/dirb/dirb1" >
>    </Context>
>    <Context path="/dirc"
>      docBase="g:/whatdir/dirc" >
>    </Context>
> 
> That way, you can keep your paths straight and avoid confusion. (Does that
> sound a little transcendental, or am I just short on sleep?)
> 
> Joel Rees
> Alps Giken Kansai Systems Develoment
> Suita, Osaka
> 
> 
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 


------------------------------------------------------
This mail sent through http://webmail.comp.polyu.edu.hk

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: multiple WEB-INF?

Posted by Joel Rees <jo...@alpsgiken.gr.jp>.
Grandy Fu asked:

> Can I tomcat4 search multiple WEB-INF in one webapp like:
>
> <docbase>/dira/WEB-INF
>          /dirb/dirb1/WEB-INF
>          /dirc/WEB-INF

I think not.

Is creating multiple contexts in your server.xml what you would rather do?

   <Context path="/dira"
     docBase="g:/somedir/dira" >
   </Context>
<!-- I don't remember if /dirb/dirb1 will need an intermediate context for
/dirb -->
   <Context path="/dirb/dirb1"
     docBase="g:/anydir/dirb/dirb1" >
   </Context>
   <Context path="/dirc"
     docBase="g:/whatdir/dirc" >
   </Context>

That way, you can keep your paths straight and avoid confusion. (Does that
sound a little transcendental, or am I just short on sleep?)

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Help with apache-mod_webapp-tomcat redirecting problem

Posted by Christopher Bare <ch...@yahoo.com>.
I'm trying to set up an apache-mod_webapp-tomcat web
server.

My problem is that mod_webapp redirects certain kinds
of requests, and when it does this, it always uses the
value of [ServerName] set in httpd.conf. This is
problematic if I use localhost or an internal
(192.168.x.x) ip address to access the machine.

For example, let's say we've set ServerName =
www.mydomain.com 

and I browse to http://localhost/examples/jsp/ 

I want to be redirected to: 

http://localhost/tomcatdir/examples/jsp/index.html 

NOT 

http://www.mydomain.com/examples/jsp/index.html


Please tell me: does mod_jk have the same crappy
behaviour? Can this be circumvented by configuring
VirtualHost entries for localhost and 192.168.x.x? Do
most people just use tomcat by itself without another
web server?

Thanks!

-chris 



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>