dev@glassfish.java.net

Re: Constraint violation error on restarting GF

From: Bhakti Mehta <Bhakti.Mehta_at_Sun.COM>
Date: Mon, 13 Apr 2009 15:38:27 -0700

I am able to reproduce this today on mac. I have filed
https://glassfish.dev.java.net/issues/show_bug.cgi?id=7658 I was trying
to run an ejb webservice devtest and then it deploys and stops the
instance and starts it and I see this issue in server.log so now can see
the problem with asadmin too.
CCing Jagadish since he had also sent me a message about this issue so
if he has other inputs to reproduce it
Regards,
Bhakti

Sahoo wrote:
> Bhakti,
>
> I am not able to reproduce this issue. I tried both java -jar and
> asadmin start-domain commands after deploying the test case you had
> attached in your first email. I am on svn rev 26097. If you are able
> to reproduce it, please file a bug. When you file the bug, please
> don;t forget to map bundle ids to bundle names for all the bundle ids
> appearing in the error message. You should also change felix.log.level
> to 4 and see if it prints extra information.
>
> Thanks,
> Sahoo
>
> Bhakti Mehta wrote:
>> FWIW I can run the devtests multiple times which start and stop the
>> server with asadmin. This problem occurs only of java -jar is used.
>>
>> Regards,
>> Bhakti
>>
>> Bhakti Mehta wrote:
>>> Sahoo,
>>> I have tried this multiple times. If I start glassfish the first
>>> time, deployed an ear with webservices it works., I can view the
>>> wsdl at http://localhost:8080/HelloImplService/HelloImpl?wsdl
>>> Next I shutdown the server and restart it and I get the constraint
>>> violation error. This is with the latest workspace
>>>
>>> In the felix shell I can see javax.annotation module is 102 and
>>> system is 0
>>> How does this work the first time? Should javax.annotation module be
>>> removed?
>>>
>>> Regards,
>>> Bhakti
>>>
>>>
>>>
>>> INFO: DEBUG: Constraint violation for 130.0 detected; module can see
>>> javax.annotation from [102.0] and javax.annotation from [0]
>>> Apr 10, 2009 11:01:48 AM SEVERE: Exception in thread "GlassFish
>>> Kernel Main Thread"
>>> Apr 10, 2009 11:01:48 AM SEVERE: java.lang.LinkageError: Failed to
>>> inject class
>>> com.sun.enterprise.deployment.archivist.ApplicationArchivist from 58.0
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:156)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:102)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> java.security.AccessController.doPrivileged(Native Method)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.Habitat.getBy(Habitat.java:576)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.Habitat.getByType(Habitat.java:557)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:317)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.glassfish.javaee.full.deployment.EarHandler.getApplicationHolder(EarHandler.java:238)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.glassfish.javaee.full.deployment.EarHandler.getClassLoader(EarHandler.java:161)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.glassfish.deployment.common.DeploymentContextImpl.createClassLoaders(DeploymentContextImpl.java:172)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:212)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:295)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:144)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:160)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> java.security.AccessController.doPrivileged(Native Method)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:212)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.java:124)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: Caused by: java.lang.LinkageError:
>>> Failed to inject class
>>> com.sun.enterprise.deployment.annotation.factory.SJSASFactory from 58.0
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:156)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:102)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> java.security.AccessController.doPrivileged(Native Method)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.Habitat.getBy(Habitat.java:576)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.Habitat.getByType(Habitat.java:557)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:137)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:79)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: ... 26 more
>>> Apr 10, 2009 11:01:48 AM SEVERE: Caused by:
>>> com.sun.enterprise.module.ResolveError: Failed to start
>>> org.glassfish.webservices.jsr109-impl(JSR-109 implementation to
>>> deploy Metro):3.0.0.SNAPSHOT
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:143)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1$1.loadClass(OSGiModuleImpl.java:280)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:106)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.Habitat$1.get(Habitat.java:252)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> java.util.AbstractList$Itr.next(AbstractList.java:345)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> java.util.AbstractCollection.toArray(AbstractCollection.java:171)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:120)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:79)
>>>
>>> Apr 10, 2009 11:01:48 AM SEVERE: ... 38 more
>>> Apr 10, 2009 11:01:48 AM SEVERE: Caused by:
>>> org.osgi.framework.BundleException: Unable to resolve due to
>>> constraint violation.
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3097)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.apache.felix.framework.Felix.startBundle(Felix.java:1439)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:774)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:755)
>>> Apr 10, 2009 11:01:48 AM SEVERE: at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:137)
>>> Apr 10, 2009 11:01:48 AM SEVERE: ... 47 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
>
>