wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Running a EJB app using appclient gives DI error related to secHelper! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Running a EJB app using appclient gives DI error related to secHelper!" Watch "Running a EJB app using appclient gives DI error related to secHelper!" New topic
Author

Running a EJB app using appclient gives DI error related to secHelper!

Uvnik Gupta
Ranch Hand

Joined: Jul 24, 2000
Posts: 32
Hi,

I am trying to create a simple application listed in Begining JavaEE 6 chapter 06. I have been able to compile and deploy successfully but when I try to launch the application using GlassFish3 appclient I get the following error:

org.jvnet.hk2.component.UnsatisfiedDependencyException: injection failed on org.glassfish.appclient.client.acc.AppClient
Container.secHelper with class org.glassfish.appclient.client.acc.AppClientContainerSecurityHelper
at org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:280)
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:161)
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:93)
at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1056)
at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1037)
at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:781)
at org.glassfish.appclient.client.acc.ACCModulesManager.getComponent(ACCModulesManager.java:130)
at org.glassfish.appclient.client.acc.AppClientContainerBuilder.createContainer(AppClientContainerBuilder.java:1
84)
at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:172)

at org.glassfish.appclient.client.AppClientFacade.createContainerForAppClientArchiveOrDir(AppClientFacade.java:4
92)
at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:454)
at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:269)
at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:82)
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:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: org.jvnet.hk2.component.UnsatisfiedDependencyException: injection failed on org.glassfish.appclient.client.ac
c.AppClientContainerSecurityHelper.secInfo with interface com.sun.enterprise.security.appclient.integration.AppClientSec
urityInfo
at org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:280)
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:161)
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:93)
at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1056)
at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1037)
at com.sun.hk2.component.InjectInjectionResolver.getComponentInjectValue(InjectInjectionResolver.java:159)
at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:90)
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:143)


The main class is:


I have been searching for the past 2 days without any breakthrough. Can you please tell what is going wrong.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Running a EJB app using appclient gives DI error related to secHelper!