dev@glassfish.java.net

Re: [GFv3] Unstable build: don't refresh your workspace now

From: Sahoo <Sahoo_at_sun.com>
Date: Tue, 08 Jul 2008 06:46:15 +0530

Peter,

Ignore the following warning:
/WARNING: Exception org.osgi.framework.BundleException: Could not create
bundle object. while adding location = /...

I am pretty sure the server is not affected by this warning. What other
exception is raised?

Thanks,
Sahoo

Peter Williams wrote:
> Hi Sahoo,
>
> The server I built with these instructions (which I unzipped from the
> ZIP in distributions/web/target/web.zip -- if I used the wrong one,
> let me know please ) has the following exceptions on startup (and is
> pretty useless thereafter, though it claims to be running.) Is this
> expected? Bad build?
>
> Jul 7, 2008 3:56:44 PM HK2Main start
> INFO: contextRootDir = /space/tools/v3Jul7/modules
> Jul 7, 2008 3:56:44 PM OSGiFactoryImpl initialize
> INFO: Singleton already initialized as
> com.sun.enterprise.module.impl.HK2Factory_at_471e30
> 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:619)
> Jul 7, 2008 3:56:45 PM OSGiModulesRegistryImpl add
> WARNING: Exception org.osgi.framework.BundleException: Could not
> create bundle object. while adding location =
> file:/space/tools/v3Jul7/modules/osgi-adapter-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:619)
> Jul 7, 2008 3:56:45 PM OSGiModulesRegistryImpl add
> WARNING: Exception org.osgi.framework.BundleException: Could not
> create bundle object. while adding location =
> file:/space/tools/v3Jul7/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:619)
> Jul 7, 2008 3:56:45 PM OSGiModulesRegistryImpl add
> WARNING: Exception org.osgi.framework.BundleException: Could not
> create bundle object. while adding location =
> file:/space/tools/v3Jul7/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:619)
> Jul 7, 2008 3:56:45 PM OSGiModulesRegistryImpl add
> WARNING: Exception org.osgi.framework.BundleException: Could not
> create bundle object. while adding location =
> file:/space/tools/v3Jul7/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:619)
>
>
> Sahoo wrote:
>> I have just been told that it's going to take some time (expected by
>> Tuesday morning - US time) address the issues in the build system. In
>> the mean while, if you wish to build v3, the following procedure
>> should work:
>>
>> 1. Check out and build jsp project using latest hk2:
>> svn co https://jsp.dev.java.net/svn/jsp/trunk jsp/trunk
>> JAVA_HOME=<path to JDK 1.6> mvn -f jsp/trunk/pom.xml install
>> -Dhk2.version=0.3.8 -Dhk2.plugin.version=0.3.8
>>
>> 2. Update v3:
>> cd <v3 dir>
>> svn up
>>
>> 3. Build javaee-api:
>> mvn -f javaee-api/pom.xml clean install
>>
>> Sometimes the above command fails while building the last module
>> (i.e., javax.javaee module) because of what I think is a JDK bug
>> (6713913). If that happens, just try building javax.javaee separately.
>>
>> 4. Build v3:
>> mvn -f ./pom.xml clean install
>>
>> Thanks,
>> Sahoo
>>
>> Sahoo wrote:
>>> Hi,
>>>
>>> Don't refresh your v3 workspace now. You may like to wait until we
>>> figure out why builds are not getting pushed to maven repo. I am
>>> waiting for the build team to get to work.
>>>
>>> Thanks,
>>> Sahoo
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>