dev@glassfish.java.net

Re: error in jmxremote_optional when building V3 from scratch

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Mon, 14 Jul 2008 12:31:20 -0700

Anissa,

No idea. It was repackaged a while ago. I nuked my whole repository
and I still get a "mess" during startup.

Welcome to Felix.
=================

Jul 14, 2008 11:02:36 AM HK2Main start
INFO: contextRootDir = /v3/run/modules
Jul 14, 2008 11:02:36 AM OSGiFactoryImpl initialize
INFO: Singleton already initialized as
com.sun.enterprise.module.impl.HK2Factory_at_69dd64
org.osgi.framework.BundleException: Bundle symbolic name and version
are not unique.
        at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
        at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
        at
org
.jvnet
.hk2
.osgiadapter
.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.getModules(AbstractModulesRegistryImpl.java:344)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.createHabitat(AbstractModulesRegistryImpl.java:134)
        at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:
392)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
        at
org
.apache
.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:
1125)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:
258)
        at java.lang.Thread.run(Thread.java:613)
Jul 14, 2008 11:02:36 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not
create bundle object. while adding location = file:/v3/run/modules/
tiger-types-osgi-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version
are not unique.
        at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
        at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
        at
org
.jvnet
.hk2
.osgiadapter
.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.getModules(AbstractModulesRegistryImpl.java:344)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.createHabitat(AbstractModulesRegistryImpl.java:134)
        at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:
392)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
        at
org
.apache
.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:
1125)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:
258)
        at java.lang.Thread.run(Thread.java:613)
Jul 14, 2008 11:02:36 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not
create bundle object. while adding location = file:/v3/run/modules/
auto-depends-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version
are not unique.
        at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
        at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
        at
org
.jvnet
.hk2
.osgiadapter
.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.getModules(AbstractModulesRegistryImpl.java:344)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.createHabitat(AbstractModulesRegistryImpl.java:134)
        at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:
392)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
        at
org
.apache
.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:
1125)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:
258)
        at java.lang.Thread.run(Thread.java:613)
Jul 14, 2008 11:02:36 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not
create bundle object. while adding location = file:/v3/run/modules/hk2-
core-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version
are not unique.
        at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
        at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
        at
org
.jvnet
.hk2
.osgiadapter
.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.getModules(AbstractModulesRegistryImpl.java:344)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.createHabitat(AbstractModulesRegistryImpl.java:134)
        at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:
392)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
        at
org
.apache
.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:
1125)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:
258)
        at java.lang.Thread.run(Thread.java:613)
Jul 14, 2008 11:02:36 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not
create bundle object. while adding location = file:/v3/run/modules/
config-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version
are not unique.
        at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
        at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
        at
org
.apache
.felix
.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
        at
org
.jvnet
.hk2
.osgiadapter
.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.getModules(AbstractModulesRegistryImpl.java:344)
        at
com
.sun
.enterprise
.module
.common_impl
.AbstractModulesRegistryImpl
.createHabitat(AbstractModulesRegistryImpl.java:134)
        at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:
392)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
        at
org
.apache
.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:
1125)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:
258)
        at java.lang.Thread.run(Thread.java:613)
Jul 14, 2008 11:02:37 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not
create bundle object. while adding location = file:/v3/run/modules/
osgi-adapter-0.3.8.jar
Jul 14, 2008 11:02:37 AM OSGiModuleImpl loadClass



..............................................
Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish team, admin




On Jul 14, 2008, at 12:25 PM, Anissa Lam wrote:

>
> I cleaned up my ~/.m2/repository, and build v3 which i just checked
> out.
> Got the following error.
>
> Any idea ?
>
> thanks
> Anissa
>
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building jmxremote_optional repackaged as a module
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://download.java.net/maven/glassfish/org/jvnet/opendmk/jmxremote_optional/1.0_01-ea/jmxremote_optional-1.0_01-ea.pom
> 960b downloaded
> Downloading: http://download.java.net/maven/glassfish/org/jvnet/opendmk/jmxremote_optional/1.0_01-ea/jmxremote_optional-1.0_01-ea.jar
> 512K downloaded
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar: /Users/anilam/Awork/V3/v3/distributions/
> external/jmxremote_optional/target/jmxremote_optional-
> repackaged-10.0-SNAPSHOT.jar
> [INFO] [bundle:bundle {execution: osgi-bundle}]
> [INFO] Expanding: /Users/anilam/Awork/V3/v3/distributions/external/
> jmxremote_optional/target/jmxremote_optional-repackaged-10.0-
> SNAPSHOT.jar into /Users/anilam/Awork/V3/v3/distributions/external/
> jmxremote_optional/target/classes
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] No goals needed for project - skipping
> [INFO] [source:jar {execution: attach-sources}]
> [INFO] Building jar: /Users/anilam/Awork/V3/v3/distributions/
> external/jmxremote_optional/target/jmxremote_optional-
> repackaged-10.0-SNAPSHOT-sources.jar
> [INFO] [install:install]
> [INFO] Installing /Users/anilam/Awork/V3/v3/distributions/external/
> jmxremote_optional/target/jmxremote_optional-repackaged-10.0-
> SNAPSHOT.jar to /Users/anilam/.m2/repository/org/glassfish/external/
> jmxremote_optional-repackaged/10.0-SNAPSHOT/jmxremote_optional-
> repackaged-10.0-SNAPSHOT.jar
> [INFO] Installing /Users/anilam/Awork/V3/v3/distributions/external/
> jmxremote_optional/target/jmxremote_optional-repackaged-10.0-
> SNAPSHOT-sources.jar to /Users/anilam/.m2/repository/org/glassfish/
> external/jmxremote_optional-repackaged/10.0-SNAPSHOT/
> jmxremote_optional-repackaged-10.0-SNAPSHOT-sources.jar
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Glassfish MBeanServer support
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from glassfish-repository
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from glassfish-repository-wsinterop
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from java-dev-repository
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from repo1.maven.org
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from maven2.java.net
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from maven2.java.net-backup
> [INFO] [hk2:hk2-compile]
> [INFO] Compiling 10 source files to /Users/anilam/Awork/V3/v3/common/
> mbeanserver/target/classes
> Note: /Users/anilam/Awork/V3/v3/common/mbeanserver/src/main/java/org/
> glassfish/admin/mbeanserver/AppserverMBeanServer.java uses or
> overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: /Users/anilam/Awork/V3/v3/common/mbeanserver/src/main/java/org/
> glassfish/admin/mbeanserver/Booter.java uses unchecked or unsafe
> operations.
> Note: Recompile with -Xlint:unchecked for details.
> [INFO] [bundle:manifest {execution: bundle-manifest}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] jzentry == 0,
> jzfile = 3698112,
> total = 7,
> name = /Users/anilam/Awork/V3/v3/distributions/external/
> jmxremote_optional/target/jmxremote_optional-repackaged-10.0-
> SNAPSHOT.jar,
> i = 2,
> message = invalid LOC header (bad signature)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.InternalError: jzentry == 0,
> jzfile = 3698112,
> total = 7,
> name = /Users/anilam/Awork/V3/v3/distributions/external/
> jmxremote_optional/target/jmxremote_optional-repackaged-10.0-
> SNAPSHOT.jar,
> i = 2,
> message = invalid LOC header (bad signature)
> at java.util.zip.ZipFile$3.nextElement(ZipFile.java:429)
> at java.util.zip.ZipFile$3.nextElement(ZipFile.java:415)
> at aQute.lib.osgi.ZipResource.build(ZipResource.java:41)
> at aQute.lib.osgi.ZipResource.build(ZipResource.java:32)
> at aQute.lib.osgi.Jar.<init>(Jar.java:35)
> at
> org
> .apache
> .felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.java:670)
> at
> org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:
> 227)
> at
> org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:
> 218)
> at
> org
> .apache
> .maven
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
> 443)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
> 539)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor
> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
> 459)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor
> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor
> .executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> 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:585)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 minutes 2 seconds
> [INFO] Finished at: Mon Jul 14 12:21:42 PDT 2008
> [INFO] Final Memory: 40M/73M
> [INFO]
> ------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>