dev@glassfish.java.net

Re: org.osgi.framework.BundleException: Unresolved package in bundle 52:,package; (package=org.apache.commons.modeler)

From: Amy Roh <Amelia.Roh_at_Sun.COM>
Date: Mon, 14 Jul 2008 10:51:42 -0700

I tried debugging with the felix shell on and found that web-glue was
still requesting modeler jar although pom.xml didn't.

Removing ~/.m2/repository fixed my problem.

Thanks,
Amy

Jerome Dochez wrote:
> can you start the felix shell and print 52, it will help you determine
> why this bundle 52 is requesting common.
>
> look at some previous email from Sahoo on how to do that.
>
> jerome
>
> On Jul 10, 2008, at 2:27 PM, Amy Roh wrote:
>
>> I've gotten the following dependencies removed from external/apache-
>> commons in my workspace. However, I cannot seem to deploy with
>> "org.osgi.framework.BundleException: Unresolved package in bundle 52:
>> package; (package=org.apache.commons.modeler)".
>>
>> I searched the entier v3 but there is no modeler dependency elsewhere
>> other than apache-commons/pom.xml - which has been removed (diff below).
>>
>> What am I missing?
>>
>> Index: distributions/external/apache-commons/pom.xml
>> ===================================================================
>> --- distributions/external/apache-commons/pom.xml (revision 21209)
>> +++ distributions/external/apache-commons/pom.xml (working copy)
>> @@ -80,7 +80,7 @@
>> <configuration>
>> <instructions>
>> <!-- embed all compile and runtime scope
>> dependencies -
>> ->
>> - <Embed-Dependency>*;groupId=commons-beanutils;inline=tr
>> ue,*;groupId=commons-collections;inline=true,*;groupId=commons-
>> digester;inline=t
>> rue,*;groupId=commons-modeler;inline=true</Embed-Dependency>
>> + <Embed-Dependency>*;groupId=commons-beanutils;inline=tr
>> ue,*</Embed-Dependency>
>> <Export-Package>org.apache.commons.*</Export-Package>
>> <Import-Package>org.apache.log4j;resolution:=optional,*
>> </Import-Package>
>> <!-- Package everything from the embedded jar
>> in the fi
>> nal bundle -->
>> @@ -127,23 +127,5 @@
>> <version>${commons.beanutils.version}</version>
>> <optional>true</optional>
>> </dependency>
>> - <dependency>
>> - <groupId>commons-collections</groupId>
>> - <artifactId>commons-collections</artifactId>
>> - <version>${commons.collections.version}</version>
>> - <optional>true</optional>
>> - </dependency>
>> - <dependency>
>> - <groupId>commons-digester</groupId>
>> - <artifactId>commons-digester</artifactId>
>> - <version>${commons.digester.version}</version>
>> - <optional>true</optional>
>> - </dependency>
>> - <dependency>
>> - <groupId>commons-modeler</groupId>
>> - <artifactId>commons-modeler</artifactId>
>> - <version>${commons.modeler.version}</version>
>> - <optional>true</optional>
>> - </dependency>
>> </dependencies>
>> </project>
>>
>> SEVERE: 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:12
>> 1)
>> 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(AbstractInhabitantIm
>> pl.java:60)
>> at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:229)
>> at java.util.AbstractList$Itr.next(AbstractList.java:422)
>> at
>> com.sun.enterprise.v3.server.SnifferManager.createSnifferParentCL(Sni
>> fferManager.java:135)
>> at
>> com.sun.enterprise.v3.server.SnifferManager.createSnifferParentCL(Sni
>> fferManager.java:146)
>> at
>> com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.
>> java:236)
>> at
>> com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.jav
>> a:286)
>> at
>> com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.jav
>> a:114)
>> at
>> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:
>> 238)
>> at
>> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:15
>> 5)
>> at
>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>> :145)
>> at
>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProces
>> sorTask.java:620)
>> at
>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorT
>> ask.java:551)
>> at
>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTas
>> k.java:800)
>> at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
>> ter.java:152)
>> at
>> com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpPr
>> otocolFilter.java:82)
>> at
>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executePro
>> tocolFilter(GlassfishProtocolChain.java:61)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>> a:104)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>> a:90)
>> at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
>> ask.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 52:
>> package; (package=org.apache.commons.modeler)
>> 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
>>
>> ---------------------------------------------------------------------
>> 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
>