dev@glassfish.java.net

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

From: <Jan.Luehe_at_Sun.COM>
Date: Mon, 07 Jul 2008 16:54:50 -0700

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?


I can start the server, but I get a different error (attached) when
running QL ...

Jan


>
> 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
>



[#|2008-07-08T07:46:48.964+0800|SEVERE|GlassFish10.0|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=Thread-4;|Exception in command execution : com.sun.enterprise.module.ResolveError: Failed to start org.glassfish.web.gf-web-connector(Connector for GlassFish Web Container):10.0.0.SNAPSHOT
com.sun.enterprise.module.ResolveError: Failed to start org.glassfish.web.gf-web-connector(Connector for GlassFish Web Container):10.0.0.SNAPSHOT
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:112)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:121)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1.loadClass(OSGiModuleImpl.java:256)
        at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:106)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:229)
        at java.util.AbstractList$Itr.next(AbstractList.java:345)
        at com.sun.enterprise.v3.server.SnifferManager.createSnifferParentCL(SnifferManager.java:135)
        at com.sun.enterprise.v3.server.SnifferManager.createSnifferParentCL(SnifferManager.java:146)
        at com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:236)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:286)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:114)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:233)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:150)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:145)
        at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:620)
        at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:551)
        at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:800)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
        at com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:82)
        at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
        at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:169)
Caused by: org.osgi.framework.BundleException: Unresolved package in bundle 167: module; (&(bundle-symbolic-name=com.sun.enterprise.hk2)(bundle-version>=0.3.5)(bundle-version<=0.3.5))
        at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1728)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1591)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:109)
        ... 26 more
|#]