tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Nautsch <o.n....@nautsch.com>
Subject Re: apache mod_jk <-> tomcat paths
Date Mon, 07 Jun 2004 10:49:52 GMT
hi,

I have the same problem.

Apache 1.3 - mod_jk2 - tomcat 5.0.25

Everthing works fine but I don't want to configure every webapplication 
in the workers2.properties. URL's like

http:/xxx.xxx.xxx/javawebapps/webapp1/
http:/xxx.xxx.xxx/javawebapps/webapp2/
...
http:/xxx.xxx.xxx/javawebapps/webappn/

will be fine. In the workers2.properties I wrote:

...
[uri:/javawebapps/*]
group=ajp13:localhost:8009
debug=0
disabled=0
...

In server.xml I tried this:

...
       <Host name="xxx.xxx.xxx/javawebapps" debug="0" appBase="jwa"
         unpackWARs="true" autoDeploy="true"
         xmlValidation="false" xmlNamespaceAware="false">
       </Host>
...

But with this I have problems with the Tomcat Admin Application. Tomcat 
throws the follwing exceptions:

...
java.lang.IllegalArgumentException: Name
'Catalina:j2eeType=WebModule,name=//localhost/javawebapps/SimpleWAR,J2EEAppl
ication=none,J2EEServer=none' is not unique
...
javax.management.InstanceNotFoundException: MBeanServer cannot find
MBean with ObjectName
Catalina:type=Loader,path=/javawebapps/SimpleWAR,host=localhost
...

I can access http://xxx.xxx.xxx/javawebapps/SimpleWAR/ and It works fine.

Does somebody have such a configuration without problems? Or is there a 
better way as the
<Host name="xxx.xxx.xxx/javawebapps"
and my example in workers2.properties?

Regards
Oliver Nautsch


Christoph Loibl wrote:
> hi!
> 
> i have the following directory setup for a user:
> 
> ~user/public_html/
> ~user/webapps/
> ~user/webapps/ROOT
> ~user/webapps/app1
> ~user/webapps/app2
> 
> apache-webserver config:
> 
> <Virtualhost bla >
>   ....
>   DocumentRoot path_to_userhome/public_html
>   JkMount /webapps/* myworker
>   ....
> </Virtualhost>
> 
> the tomcat application root is pointing to ~user/webapps
> 
> is it possible to access all the applications by using urls like this:
> 
> 	http://bla/webapps/
>         http://bla/webapps/app2/
>         http://bla/webapps/app1/
>         http://bla/static.html <- access to public_html/static.html (no tc)
> 
> -> the above configuration tries to access ~user/webapps/webapps but
> probably it is possible to apply some directory mapping anywhere?
> 
> regards 
> 
> christoph loibl
> 


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


Mime
View raw message