users@glassfish.java.net

Re: virtualization plugin, dependency injection and OSGI

From: Yamini K B <yamini.k.b_at_oracle.com>
Date: Tue, 28 Feb 2012 12:35:44 +0530

Looks like a dependency problem, can you send across your pom.xml?

-Yamini

On 02/27/2012 09:06 PM, forums_at_java.net wrote:
> I thought I could attach stacktrace from logs also... here it is:
>
> [#|2012-02-25T19:44:48.034+0100|SEVERE|44.0|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=15;_ThreadName=Thread-2;|Exception
>
> in command execution :
> org.jvnet.hk2.component.UnsatisfiedDependencyException: injection
> failed on
> org.glassfish.virtualization.config.Virtualization$VirtResolver.virtualizations
>
> with interface org.glassfish.virtualization.config.Virtualizations
> org.jvnet.hk2.component.UnsatisfiedDependencyException: injection
> failed on
> org.glassfish.virtualization.config.Virtualization$VirtResolver.virtualizations
>
> with interface org.glassfish.virtualization.config.Virtualizations
> at
> org.jvnet.hk2.component.InjectionManager.syncDoInject(InjectionManager.java:211)
>
> at
> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:107)
>
> at
> com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:127)
>
> at
> com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:117)
>
> at
> com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:84)
>
> at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
>
> at
> com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:141)
>
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:135)
>
> at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1434)
> at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1384)
> at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:1016)
> at
> org.glassfish.config.support.GenericListCommand.execute(GenericListCommand.java:114)
>
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:351)
>
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:366)
>
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1076)
>
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:98)
>
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1309)
>
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1277)
>
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:479)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:223)
>
> at
> org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:183)
>
> at
> com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
>
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:163)
>
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:161)
>
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
>
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:286)
>
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:223)
>
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:155)
>
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:134)
>
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:78)
>
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:829)
>
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:103)
>
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:111)
>
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
>
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:131)
>
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:508)
>
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:488)
>
> at java.lang.Thread.run(Thread.java:662)
>
> It looks like it is looking for particular virtualization
> configuration...
> Anybody knows how shall I provide it?
>
>
> --
>
> [Message sent by forum member 'piotr.tempes']
>
> View Post: http://forums.java.net/node/883784
>
>