<!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;">
    EJB bean is not found during deployement
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/samwun9988">Sam W</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/627056#627056">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Trying to deploy an application that consists of a EAR/WAR/EJB module all separate. In the WAR a reference to the EJB3 SLSB is done like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p> &lt;ejb-local-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ejb-ref-name&gt;ejb/CategoryManager&lt;/ejb-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;local&gt;ix.houseware.category.CategoryManager&lt;/local&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ejb-link&gt;CategoryManager&lt;/ejb-link&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/ejb-local-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>During deployment, JBOSS AS7 throws the following exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p>15:32:37,056 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-8) Starting deployment of "CategoryClient-ear.ear"</p><p>15:32:37,343 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "CategoryClient-ejb-1.0-SNAPSHOT.jar"</p><p>15:32:37,343 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "CategoryClient-web.war"</p><p>15:32:38,041 INFO&#160; [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api dependency to CategoryClient-ear.ear</p><p>15:32:38,042 INFO&#160; [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persistence.api dependency to CategoryClient-web.war</p><p>15:32:38,042 INFO&#160; [org.jboss.as.jpa] (MSC service thread 1-7) added javax.persistence.api dependency to CategoryClient-ejb-1.0-SNAPSHOT.jar</p><p>15:32:38,056 INFO&#160; [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CategoryManagerImpl in deployment unit subdeployment "CategoryClient-ejb-1.0-SNAPSHOT.jar" of deployment "CategoryClient-ear.ear" are as follows:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; java:global/CategoryClient-ear/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl!ix.houseware.category.CategoryManager</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; java:app/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl!ix.houseware.category.CategoryManager</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; java:module/CategoryManagerImpl!ix.houseware.category.CategoryManager</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; java:global/CategoryClient-ear/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; java:app/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; java:module/CategoryManagerImpl</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>15:32:38,118 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."CategoryClient-ear.ear"."CategoryClient-web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."CategoryClient-ear.ear"."CategoryClient-web.war".INSTALL: Failed to process phase INSTALL of subdeployment "CategoryClient-web.war" of deployment "CategoryClient-ear.ear"</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0_03-p4]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_03-p4]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619) [:1.6.0_03-p4]</p><p><strong style="color: #800000;">Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: No component found for type</strong> 'ix.houseware.category.CategoryManager' with name CategoryManager</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.as.ejb3.deployment.processors.EjbInjectionSource.getResourceValue(EjbInjectionSource.java:68)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:200)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:99)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ... 5 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>15:32:38,323 INFO&#160; [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "CategoryClient-ear.ear" was rolled back with failure message {"Failed services" =&gt; {"jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"CategoryClient-web.war\" of deployment \"CategoryClient-ear.ear\""},"Services with missing/unavailable dependencies" =&gt; ["jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.ValidatorFactory missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]","jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.Validator missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]"]}</p><p>15:32:38,331 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment CategoryClient-ejb-1.0-SNAPSHOT.jar in 8ms</p><p>15:32:38,337 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment CategoryClient-web.war in 14ms</p><p>15:32:38,340 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment CategoryClient-ear.ear in 17ms</p><p>15:32:38,341 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" =&gt; {"Operation step-2" =&gt; {"Failed services" =&gt; {"jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"CategoryClient-web.war\" of deployment \"CategoryClient-ear.ear\""},"Services with missing/unavailable dependencies" =&gt; ["jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.ValidatorFactory missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]","jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.Validator missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]"]}}}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any suggestion would be very appreciated.</p><p>Thanks</p><p>Sam</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/627056#627056">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>