----- Original Message -----
From: "Rainer Jung" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 26, 2004 3:48 AM
Subject: TC 5: Support for multiple Coyote JK-Pools


> Am I right, that by design TC 5 only fully supports one Coyote JK pool
> at the moment?
>

Yes.  If at some point we decide to deprecate support for JK2, then we could
consider supporting multiple JK Connectors.  If you *really* need to have
multiple Connectors (and I can't see a usage case), try playing with the
jkHome attribute.

> I enabled JMX HTTP adaptor via mx.enabled=true. Obviously
> org.apache.jk.common.JkMX tries to initialize the JMX HTTP adaptor not
> only once, but for every Coyote JK pool configured in server.xml. For
> the second pool I get an exception when starting tomcat (see below).
>
> When trying to stop TC, the Coyote HTTP pool is shut down correctly, and
> one of the two JK pools doesn't listen any more, but the second JK pool
> still listens and TC does not shut down. Retrying shutdown does not
> help, the process is still alive.
>
> Any plans (or work already done) to refactor JkMain/JkMX for 5.next?
>

Well, I believe the consensus is to deprecate JkMX in 5.next. It's pretty
outdated now, and it certainly doesn't belong in the Connector code.

> Rainer Jung
>
> Exception during start:
>
> 2004-07-26 12:37:58,929 (main) org.apache.jk.common.JkMX/ERROR: Can't
> load the MX4J http adapter
> javax.management.InstanceAlreadyExistsException: Http:name=HttpAdaptor
>          at
mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123)
>          at
> mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054)
>          at
> mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
>          at
> mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
>          at org.apache.jk.common.JkMX.registerObject(JkMX.java:314)
>          at org.apache.jk.common.JkMX.loadAdapter(JkMX.java:157)
>          at org.apache.jk.common.JkMX.init(JkMX.java:268)
>          at org.apache.jk.server.JkMain.start(JkMain.java:339)
>          at
> org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:193)
>          at
> org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1527)
>          at
> org.apache.catalina.core.StandardService.start(StandardService.java:489)
>          at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
>          at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>          at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:324)
>          at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
>          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Reply via email to