dev@glassfish.java.net

Re: AMX broken: ResolveError: Failed to start org.glassfish.common.amx-impl

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Sat, 09 Aug 2008 13:24:29 -0700

Very strange, it wasn't failing on my local copy.

Anyway it's a case others might want to remember for their own
changes: when adding a new package which is exported, an entry needs
to go into pom.xml:

                         <Export-Package>
                         com.sun.appserv.management,
                         com.sun.appserv.management.annotation,
                         com.sun.appserv.management.base,
                         com.sun.appserv.management.client,
                         <!--
com.sun.appserv.management.client.handler, -->
                         com.sun.appserv.management.config,
                         com.sun.appserv.management.ext.coverage,
                         com.sun.appserv.management.ext.lb,
                         com.sun.appserv.management.ext.realm,
                         com.sun.appserv.management.ext.logging,
                         com.sun.appserv.management.ext.update,
                         com.sun.appserv.management.ext.wsmgmt,
                         com.sun.appserv.management.ext.runtime,
                         com.sun.appserv.management.helper,
                         com.sun.appserv.management.j2ee,
                         com.sun.appserv.management.j2ee.statistics,
                         com.sun.appserv.management.monitor,
                         com.sun.appserv.management.monitor.statistics,
                         com.sun.appserv.management.util.j2ee,
                          
com.sun.appserv.management.util.j2ee.stringifier,
                         com.sun.appserv.management.util.jmx,
                          
com.sun.appserv.management.util.jmx.stringifier,
                         com.sun.appserv.management.util.misc,
                         com.sun.appserv.management.util.stringifier
                         </Export-Package>


On Aug 9, 2008, at 1:20 PM, Lloyd Chambers wrote:

> Somebody made some kind of change that broke AMX between yesterday
> and today.
>
> The amx-impl module can't be loaded.
>
> This is from a fresh build as of Saturday AM.
>
>
> Aug 9, 2008 1:18:25 PM
> INFO: Booter.bootAMX: getting AMXStartupServiceMBean via contract
> Aug 9, 2008 1:18:25 PM
> SEVERE: com.sun.enterprise.module.ResolveError: Failed to start
> org.glassfish.common.amx-impl(AMX API Implementation):10.0.0.SNAPSHOT
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:
> 111)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:
> 120)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at org.jvnet.hk2.osgiadapter.OSGiModuleImpl
> $1$1.loadClass(OSGiModuleImpl.java:252)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:106)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com
> .sun
> .hk2
> .component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> org.jvnet.hk2.component.Habitat.getByContract(Habitat.java:551)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> org.glassfish.admin.mbeanserver.Booter.bootAMX(Booter.java:112)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at java.lang.reflect.Method.invoke(Method.java:585)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com
> .sun
> .jmx
> .mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:
> 414)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com
> .sun
> .jmx
> .interceptor
> .DefaultMBeanServerInterceptor
> .invoke(DefaultMBeanServerInterceptor.java:815)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> javax
> .management
> .remote
> .generic.ServerIntermediary.handleRequest(ServerIntermediary.java:320)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at javax.management.remote.generic.ServerIntermediary
> $PrivilegedRequestJob.run(ServerIntermediary.java:991)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at java.security.AccessController.doPrivileged(Native Method)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at javax.management.remote.generic.ServerIntermediary
> $RequestHandler.handleMBSReqMessage(ServerIntermediary.java:767)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at javax.management.remote.generic.ServerIntermediary
> $RequestHandler.execute(ServerIntermediary.java:669)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl
> $RemoteJob.run(ServerSynchroMessageConnectionImpl.java:306)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at com.sun.jmx.remote.opt.util.ThreadService
> $ThreadServiceJob.run(ThreadService.java:248)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:99)
> Aug 9, 2008 1:18:25 PM
> SEVERE: Caused by: org.osgi.framework.BundleException: Unresolved
> package in bundle 10: package;
> (package=com.sun.appserv.management.ext.runtime)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> org.apache.felix.framework.Felix._resolveBundle(Felix.java:1728)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at org.apache.felix.framework.Felix._startBundle(Felix.java:
> 1591)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at org.apache.felix.framework.Felix.startBundle(Felix.java:
> 1544)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)
> Aug 9, 2008 1:18:25 PM
> SEVERE: at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:
> 108)
> Aug 9, 2008 1:18:25 PM
> SEVERE: ... 23 more
> Aug 9, 2008 1:18:25 PM ServerIntermediary RequestHandler-
> connectionException
> WARNING: JMX connector client exited without closing connection
> Aug 9, 2008 1:19:11 PM ServerIntermediary RequestHandler-
> connectionException
> WARNING: JMX connector client exited without closing connection
>
>
>
> ..............................................
> Lloyd Chambers
> lloyd.chambers_at_sun.com
> GlassFish team, admin
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>