[jboss-dev-forums] [JBoss AS 7 Development] - Re: Weld-OSGi integration in AS7

Konstantin Pupkov do-not-reply at jboss.com
Tue Dec 27 14:00:00 EST 2011


Konstantin Pupkov [http://community.jboss.org/people/goodidea] created the discussion

"Re: Weld-OSGi integration in AS7"

To view the discussion, visit: http://community.jboss.org/message/643429#643429

--------------------------------------------------------------
Just download AS7 CR1. Trying to make work CDI example from bosschaert-coderthoughts-c8edd9c.zip 
I have got error:
10:23:25,749 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "osgi-cdi-demo-provider-bundle-1.0.0-SNAPSHOT.jar"

10:23:25,765 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-7) Install bundle: osgi-cdi-demo-provider-bundle:1.0.0.SNAP
SHOT
10:23:25,780 INFO  [stdout] (MSC service thread 1-7) *** osgi-cdi-demo-provider-bundle started.
10:23:25,780 INFO  [org.jboss.as.server] (HttpManagementService-threads - 5) JBAS018559: Deployed "osgi-cdi-demo-provider-bundle-1.0.0-SNAPSHOT.jar"
10:23:25,796 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-7) Bundle started: osgi-cdi-demo-provider-bundle:1.0.0.SN
APSHOT
10:25:22,000 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "osgi-cdi-demo-webapp.war"
10:25:22,062 INFO  [org.jboss.weld] (MSC service thread 1-4) Processing CDI deployment: osgi-cdi-demo-webapp.war
10:25:22,078 INFO  [org.jboss.weld] (MSC service thread 1-3) Starting Services for CDI deployment: osgi-cdi-demo-webapp.war
10:25:22,078 INFO  [org.jboss.weld] (MSC service thread 1-7) Starting weld service
10:25:22,140 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."osgi-cdi-demo-webapp
.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."osgi-cdi-demo-webapp.war".WeldService: org.jboss.weld.except
ions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [OSGiPropertyProvider] with qualifiers [@Default] at injection point [[field]
@Inject org.coderthoughts.demo.cdiosgi.web.CDIServlet.osgiPropertyProvider]
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [OSGiPropertyProvider] with qualifiers [@Defau
lt] at injection point [[field] @Inject org.coderthoughts.demo.cdiosgi.web.CDIServlet.osgiPropertyProvider]
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:274)
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:243)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:106)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:126)
        at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:345)
        at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:330)
        at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
        ... 5 more

10:25:22,375 INFO  [org.jboss.as.server] (HttpManagementService-threads - 6) JBAS015856: Undeploy of deployment "osgi-cdi-demo-webapp.war" was rolled
back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"osgi-cdi-demo-webapp.war\".WeldService" => "org.jboss.msc.servic
e.StartException in service jboss.deployment.unit.\"osgi-cdi-demo-webapp.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408
 Unsatisfied dependencies for type [OSGiPropertyProvider] with qualifiers [@Default] at injection point [[field] @Inject org.coderthoughts.demo.cdiosg
i.web.CDIServlet.osgiPropertyProvider]"}}
10:25:22,375 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment osgi-cdi-demo-webapp.war in 12ms
10:25:22,375 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 6) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."osgi-cdi-demo-webapp.war".WeldService: org.jboss.msc.service.StartEx
ception in service jboss.deployment.unit."osgi-cdi-demo-webapp.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfie
d dependencies for type [OSGiPropertyProvider] with qualifiers [@Default] at injection point [[field] @Inject org.coderthoughts.demo.cdiosgi.web.CDISe
rvlet.osgiPropertyProvider]
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/643429#643429]

Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111227/e94d4843/attachment.html 


More information about the jboss-dev-forums mailing list