You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Shawn Jiang <ge...@gmail.com> on 2011/05/17 12:30:57 UTC

Re: svn commit: r1103966 - in /geronimo/server/trunk: framework/pom.xml pom.xml

This change lead to a strange startup failure,  seems caused by lack of
javax.management.remote.rmi package import from j2ee-security module.

I tried to add:


    <environment>
        <import-package>javax.management.remote.rmi</import-package>
    </environment>

to plan of j2ee-security,  and the import is listed in the manifest, but it
still does not work.


Then I tried to add package javax.management.remote.rmi  to
"org.osgi.framework.bootdelegation" in config.properties,  it works but I
don't know if there's better solution.




-----------------------------------------------------------------------------------
2011-05-17 17:58:14,589 WARN
[0-SNAPSHOT/car,j2eeType=GBean,name=JMXService] Failure in JMXConnector
service:jmx:rmi://0.0.0.0:9999/jndi/rmi://0.0.0.0:1099/JMXConnector
2011-05-17 17:58:14,599 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car,j2eeType=GBean,name=JMXService"
java.io.IOException: Cannot bind to URL [rmi://0.0.0.0:1099/JMXConnector]:
javax.naming.CommunicationException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
    java.lang.ClassNotFoundException:
javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI
class loader disabled)]
    at
javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
    at
javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
    at
org.apache.geronimo.jmxremoting.JMXConnector.doStart(JMXConnector.java:206)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
    at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
    at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
    at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:211)
    at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:91)
    at
org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
    at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
    at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
    at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
Caused by: javax.naming.CommunicationException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
    java.lang.ClassNotFoundException:
javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI
class loader disabled)]
    at
com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
    at
com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
    at org.apache.aries.jndi.DelegateContext.bind(DelegateContext.java:82)
    at javax.naming.InitialContext.bind(InitialContext.java:400)
    at
javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
    at
javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
    ... 16 more



On Tue, May 17, 2011 at 8:47 AM, <ke...@apache.org> wrote:

> Author: kevan
> Date: Tue May 17 00:47:34 2011
> New Revision: 1103966
>
> URL: http://svn.apache.org/viewvc?rev=1103966&view=rev
> Log:
> GERONIMO-5751 Use equinox 3.7.0 to avoid ClassLoader LinkageErrors caused
> by cyclical loading of a class on the same thread (caused by classfile
> transformation processing of an annotation
>
> Modified:
>    geronimo/server/trunk/framework/pom.xml
>    geronimo/server/trunk/pom.xml
>
> Modified: geronimo/server/trunk/framework/pom.xml
> URL:
> http://svn.apache.org/viewvc/geronimo/server/trunk/framework/pom.xml?rev=1103966&r1=1103965&r2=1103966&view=diff
>
> ==============================================================================
> --- geronimo/server/trunk/framework/pom.xml (original)
> +++ geronimo/server/trunk/framework/pom.xml Tue May 17 00:47:34 2011
> @@ -34,7 +34,7 @@
>     <packaging>pom</packaging>
>
>     <properties>
> -        <equinox.version>3.6.0.v20100517</equinox.version>
> +        <equinox.version>3.7.0.v20110513</equinox.version>
>         <felix.configadmin.version>1.2.4</felix.configadmin.version>
>         <felix.framework.version>3.0.2</felix.framework.version>
>         <pax.url.version>1.1.2</pax.url.version>
>
> Modified: geronimo/server/trunk/pom.xml
> URL:
> http://svn.apache.org/viewvc/geronimo/server/trunk/pom.xml?rev=1103966&r1=1103965&r2=1103966&view=diff
>
> ==============================================================================
> --- geronimo/server/trunk/pom.xml (original)
> +++ geronimo/server/trunk/pom.xml Tue May 17 00:47:34 2011
> @@ -2326,6 +2326,17 @@ only found in cxf
>
>             <repositories>
>                 <repository>
> +                    <id>geronimo-svn-repo</id>
> +                    <name>Geronimo 3rd Party libraries</name>
> +                    <url>http://svn.apache.org/repos/asf/geronimo/repo/
> </url>
> +                    <releases>
> +                        <enabled>true</enabled>
> +                    </releases>
> +                    <snapshots>
> +                        <enabled>false</enabled>
> +                    </snapshots>
> +                </repository>
> +                <repository>
>                     <!-- org.eclipse.jetty routing -->
>                     <id>jetty.oss.sonatype.org</id>
>                     <name>Jetty Repository</name>
>
>
>


-- 
Shawn

Re: svn commit: r1103966 - in /geronimo/server/trunk: framework/pom.xml pom.xml

Posted by Kevan Miller <ke...@gmail.com>.
On May 17, 2011, at 6:30 AM, Shawn Jiang wrote:

> This change lead to a strange startup failure,  seems caused by lack of javax.management.remote.rmi package import from j2ee-security module.  
> 
> I tried to add:
> 
> 
>     <environment>
>         <import-package>javax.management.remote.rmi</import-package>
>     </environment>  
> 
> to plan of j2ee-security,  and the import is listed in the manifest, but it still does not work.
> 
> 
> Then I tried to add package javax.management.remote.rmi  to "org.osgi.framework.bootdelegation" in config.properties,  it works but I don't know if there's better solution.

Sorry. I forgot to commit that change. You fixed it faster than I did... ;-) Updating bootdelegation was what I had. I don't know of a better solution.

--kevan