hi,

I have to correct one line:

...
    <Host name="xxx.xxx.xxx/javawebapps" debug="0" appBase="javawebapps"
...

Regards
Oliver Nautsch

Oliver Nautsch wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to