tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk
Date Mon, 10 Jul 2006 17:34:11 GMT
No, that won't work.  Copying jar files from server/lib will cause 
classloader problems.  There is a simpler way:

1. Rename manager.xml in conf/Catalina/localhost to manager-5028.xml
2. Change the path attribute in manager-5028.xml to manager-5028
3. Restart tomcat (or start if it's already stopped).
4. Change JkMount in httpd.conf to JkMount /manager-5028/html* tc5028
5. Do apachectl graceful to make httpd read the new config.

When done, the manager for 5.0.28 will be http://localhost/manager-5028/html

--David


Brian Munroe wrote:

> I'm still scheming up a way to handle this.
>
> One idea was to try and copy the manager web application from
> server/webapps and place it in to the regular webapps directory as
> manager-5028/
>
> I don't know if this is any kind of security risk, but I'll worry
> about that after I get things working.
>
> Anyway, I also copied all the *.jar from server/lib and placed them in
> webapps/manager-5028/lib since I don't necessarily want to put them in
> shared/lib or common/lib in case I clobber something.
>
> It doesn't seem to work, I am getting a classNoFound Error stack
> trace, anyone got any ideas?
>
> java.lang.ClassNotFoundException: 
> org.apache.catalina.manager.HTMLManagerServlet
>     org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854)

>
>     org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)

>
>     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) 
>
>     org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) 
>
>     org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>     org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>     org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>     org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) 
>
>     org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

>
>     java.lang.Thread.run(Thread.java:534)
>
> thanks
>
> -- brian
>
> On 7/8/06, Brian Munroe <brian.e.munroe@gmail.com> wrote:
>
>> I am trying to set up an environment that has both a Tomcat 5.5.17 and
>> a Tomcat 5.0.28 instance running, accessed via Apache 2.0.58 + mod_jk.
>>
>> Can anyone recommend a URL layout to access the different Tomcat 
>> managers?
>>
>> My current configuration looks like this
>>
>> In httpd.conf
>> -----------------
>> JkMount /manager/html* tc5028
>>
>> In workers.properties
>> ----------------------------
>> worker.tc5028.type=ajp13
>> worker.tc5028.host=localhost
>> worker.tc5028.port=8093
>> ...
>>
>> Which works great to access the 5.0.x manager, but how can set up a
>> JkMount to hit the 5.5.x manager?
>>
>> thanks
>>
>> -- brian
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message