geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ruebsam (JIRA)" <...@geronimo.apache.org>
Subject [jira] Commented: (GERONIMO-1452) Config.xml refers to the wrong JMX remote service gbean (Fix included)
Date Thu, 13 Apr 2006 09:33:00 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-1452?page=comments#action_12374316 ] 

Mario Ruebsam commented on GERONIMO-1452:
-----------------------------------------

Yes ist works with Jetty, to set the RMI port to 1098 in the above example the URL for the
JMXService must be changed too:

<attribute name="url">service:jmx:rmi://0.0.0.0:1098/jndi/rmi://0.0.0.0:1098/JMXConnector</attribute>


> Config.xml refers to the wrong JMX remote service gbean (Fix included)
> ----------------------------------------------------------------------
>
>          Key: GERONIMO-1452
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1452
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: core
>     Versions: 1.0
>  Environment: Geronimo 1.0, Windows XP
>     Reporter: Lin Sun
>     Assignee: John Sisson
>     Priority: Minor
>      Fix For: 1.2, 1.1

>
> I 'd like to change the default RMI port 1099 to 1098 due to a port conflict.  I made
all the changes I can think of in config.xml but got the following error during startup:
> 11:00:19,651 WARN  [0/car,J2EEServer=geronimo,j2eeType=GBean,name=JMXService] Fa
> ilure in JMXConnector service:jmx:rmi://localhost/jndi/rmi:/JMXConnector
> 11:00:19,651 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: objectName="geronimo.server:J2EEApplication=null,J2EEModule=gero
> nimo/j2ee-security/1.0/car,J2EEServer=geronimo,j2eeType=GBean,name=JMXService"
> java.io.IOException: javax.naming.ServiceUnavailableException [Root exception is
>  java.rmi.ConnectException: Connection refused to host: 9.37.242.136; nested exc
> eption is:
>         java.net.ConnectException: Connection refused: connect]
>         at mx4j.remote.resolver.rmi.Resolver.bindServer(Resolver.java:199)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServ
> er.java:152)
>         at org.apache.geronimo.jmxremoting.JMXConnector.doStart(JMXConnector.jav
> a:122)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanI
> nstance.java:936)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
> (GBeanInstanceState.java:325)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta
> nceState.java:110)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(G
> BeanInstanceState.java:132)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanI
> nstance.java:537)
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(Basi
> cKernel.java:208)
>         at org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans(
> Configuration.java:315)
>         at org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$$7f
> 4b4a9b.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
> Invoker.java:38)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
> n.java:118)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
> java:835)
>         at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 178)
>         at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 173)
>         at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.start(Conf
> igurationManagerImpl.java:142)
>         at org.apache.geronimo.kernel.config.ConfigurationManagerImpl$$FastClass
> ByCGLIB$$fbed85d2.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
> Invoker.java:38)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
> n.java:118)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
> java:800)
>         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
> 7)
>         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
> ionInvoker.java:36)
>         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
> xyMethodInterceptor.java:96)
>         at org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGL
> IB$$518f71dc.start(<generated>)
>         at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:337)
>         at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:86)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:462)
> The fix is to replace:
>         <gbean name="JMXConnector">
> with 
>     <gbean name="JMXService">
> I can start geronimo with rmi port 1098 with the above gbean name change in config.xml.
 I am running with tomcat, but i think the fix should be applied to jetty as well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message