<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>Ran into this again, so created
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBAS-8947">https://issues.jboss.org/browse/JBAS-8947</a> to track this. <br>
<br>
-Jaikiran<br>
On Monday 07 February 2011 06:43 PM, Jaikiran Pai wrote:</tt>
<blockquote cite="mid:4D4FEFFB.1020005@redhat.com" type="cite">
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <tt><font size="-1">While integrating EJB3 service into current AS
trunk, I noticed that if a Component's service (or any service in
general) has unresolved dependencies, although the service stays in
DOWN state (as expected), no error is reported and the deployment does
*not* fail. As a side effect of this, a runtime invocation on the
service (a InitialContext.lookup() leading to the
ServiceReferenceObjectFactory.getObjectInstance() in this case) ended
up hanging indefinitely <a moz-do-not-send="true"
 class="moz-txt-link-freetext" href="http://pastebin.com/jK0i1aCi">http://pastebin.com/jK0i1aCi</a><br>
  <br>
To debug this, I had to use jconsole and then get a list of all the
services, their dependencies and the state and then figure out what's
missing:<br>
  <br>
Service
"jboss.deployment.unit.ejb3-example.jar.component.SimpleStatelessSessionBean"
(class
org.jboss.as.ee.component.service.ComponentService) mode ACTIVE
state DOWN (dependencies:
jboss.naming.context.java.module.ejb3-example.jar,
jboss.naming.context.java.app.ejb3-example.jar,
jboss.naming.context.java.comp.ejb3-example.jar.SimpleStatelessSessionBean,
jboss.naming.context.java.global."ejb3-example/SimpleStatelessSessionBean!org.jboss.as.demos.ejb3.archive.SimpleStatelessSessionLocal")
(has
missing dependency)<br>
  <br>
Shouldn't a unresolved dependency on a service result in deployment
failure?<br>
  <br>
-Jaikiran<br>
  <br>
&nbsp;<br>
  </font></tt>
  <pre wrap=""><tt>
</tt><fieldset class="mimeAttachmentHeader"></fieldset><tt>
_______________________________________________
jboss-as7-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</tt></pre>
</blockquote>
<tt><br>
</tt>
</body>
</html>