dev@glassfish.java.net

Re: What does "Unsatisfied dependency exception" mean

From: Harsha Godugu <Harsha.Godugu_at_Sun.COM>
Date: Thu, 28 Feb 2008 19:05:35 -0800

Pramod Gopinath wrote:
> Hi Kohsuke/Jerome/Sahoo
> Trying to fix issue with the GlassFish V3 JRuby gem. I have
> created the gem and when running it, I get an "Unsatisfied dependency
> exception".
>
> What does this error mean ?
> Any pointers would be a great help.

Looks like we are getting into a kind of 'dll hell' notion with jar
dependency and versioning.

-hg
>
> Thanks
> Pramod
>
> ~/work_related/jruby_samples/rails2.0 pramodgopinath$ jruby -S
> glassfish_rails
> simple
>
> Feb 28, 2008 6:44:44 PM com.sun.enterprise.v3.server.AppServerStartup run
> INFO: HK2 initialized in 349 ms
> Feb 28, 2008 6:44:44 PM com.sun.enterprise.v3.server.AppServerStartup run
> INFO: com.sun.enterprise.v3.services.impl.CmdLineParamProcessor_at_107cce
> Init done in 364 ms
> Feb 28, 2008 6:44:44 PM com.sun.enterprise.v3.server.AppServerStartup run
> INFO: com.sun.enterprise.v3.server.SystemTasks_at_2c8dbc Init done in 415 ms
> Feb 28, 2008 6:44:44 PM com.sun.enterprise.v3.server.AppServerStartup run
> INFO: com.sun.enterprise.v3.services.impl.LogManagerService_at_ee4b87
> Init done in 445 ms
> Feb 28, 2008 6:44:44 PM com.sun.enterprise.v3.server.AppServerStartup run
> INFO: com.sun.enterprise.v3.services.impl.HouseKeeper_at_4a3622 Init done
> in 454 ms
> Feb 28, 2008 6:44:44 PM
> com.sun.enterprise.v3.services.impl.GrizzlyProxy start
> INFO: Listening on port 3000
> Feb 28, 2008 6:44:44 PM com.sun.enterprise.v3.server.AppServerStartup run
> INFO: com.sun.enterprise.v3.services.impl.GrizzlyService_at_a613e3
> startup done in 741 ms
> Feb 28, 2008 6:44:44 PM com.sun.enterprise.v3.server.AppServerStartup run
> INFO: Glassfish v3 started in 745 ms
> Exception in thread "Thread-7"
> org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied
> dependency exception :
> com.sun.enterprise.config.serverbeans.Applications
> com.sun.enterprise.v3.services.impl.ApplicationLoaderService.applications
> at
> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:83)
> at
> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:64)
> at
> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:50)
> at
> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:39)
> at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:22)
> at
> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:71)
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:24)
> at
> com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.java:114)
> at java.lang.Thread.run(Thread.java:613)
> Caused by: org.jvnet.hk2.component.UnsatisfiedDepedencyException:
> Unsatisfied dependency exception :
> com.sun.enterprise.config.serverbeans.Applications
> com.sun.enterprise.v3.services.impl.ApplicationLoaderService.applications
> at
> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:79)
> ... 8 more
>