<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Weld-OSGi integration in AS7
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/goodidea">Konstantin Pupkov</a> in <i>JBoss AS 7 Development</i> - <a href="http://community.jboss.org/message/643429#643429">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Just download AS7 CR1. Trying to make work CDI example from bosschaert-coderthoughts-c8edd9c.zip </p><p>I have got error:</p><p>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"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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</p><p>SHOT</p><p>10:23:25,780 INFO  [stdout] (MSC service thread 1-7) *** osgi-cdi-demo-provider-bundle started.</p><p>10:23:25,780 INFO  [org.jboss.as.server] (HttpManagementService-threads - 5) JBAS018559: Deployed "osgi-cdi-demo-provider-bundle-1.0.0-SNAPSHOT.jar"</p><p>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</p><p>APSHOT</p><p>10:25:22,000 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "osgi-cdi-demo-webapp.war"</p><p>10:25:22,062 INFO  [org.jboss.weld] (MSC service thread 1-4) Processing CDI deployment: osgi-cdi-demo-webapp.war</p><p>10:25:22,078 INFO  [org.jboss.weld] (MSC service thread 1-3) Starting Services for CDI deployment: osgi-cdi-demo-webapp.war</p><p>10:25:22,078 INFO  [org.jboss.weld] (MSC service thread 1-7) Starting weld service</p><p>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</p><p>.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."osgi-cdi-demo-webapp.war".WeldService: org.jboss.weld.except</p><p>ions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [OSGiPropertyProvider] with qualifiers [@Default] at injection point [[field]</p><p>@Inject org.coderthoughts.demo.cdiosgi.web.CDIServlet.osgiPropertyProvider]</p><p>        at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)</p><p>        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]</p><p>        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]</p><p>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]</p><p>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]</p><p>        at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]</p><p>Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [OSGiPropertyProvider] with qualifiers [@Defau</p><p>lt] at injection point [[field] @Inject org.coderthoughts.demo.cdiosgi.web.CDIServlet.osgiPropertyProvider]</p><p>        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:274)</p><p>        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:243)</p><p>        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:106)</p><p>        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:126)</p><p>        at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:345)</p><p>        at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:330)</p><p>        at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)</p><p>        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)</p><p>        at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)</p><p>        ... 5 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>10:25:22,375 INFO  [org.jboss.as.server] (HttpManagementService-threads - 6) JBAS015856: Undeploy of deployment "osgi-cdi-demo-webapp.war" was rolled</p><p>back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"osgi-cdi-demo-webapp.war\".WeldService" => "org.jboss.msc.servic</p><p>e.StartException in service jboss.deployment.unit.\"osgi-cdi-demo-webapp.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408</p><p> Unsatisfied dependencies for type [OSGiPropertyProvider] with qualifiers [@Default] at injection point [[field] @Inject org.coderthoughts.demo.cdiosg</p><p>i.web.CDIServlet.osgiPropertyProvider]"}}</p><p>10:25:22,375 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment osgi-cdi-demo-webapp.war in 12ms</p><p>10:25:22,375 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 6) JBAS014774: Service status report</p><p>JBAS014777:   Services which failed to start:      service jboss.deployment.unit."osgi-cdi-demo-webapp.war".WeldService: org.jboss.msc.service.StartEx</p><p>ception in service jboss.deployment.unit."osgi-cdi-demo-webapp.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfie</p><p>d dependencies for type [OSGiPropertyProvider] with qualifiers [@Default] at injection point [[field] @Inject org.coderthoughts.demo.cdiosgi.web.CDISe</p><p>rvlet.osgiPropertyProvider]</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/643429#643429">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>