<!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;">
    Application Client Project issue
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/pepelara">José Alvarez de Lara</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/592588#592588">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to deploy and run an Eclipse App Client Project on JBoss 6.0.0 Final. The project consists in an EJB3.1 project with two classes, sb31.Publisher.java and a mdb.MessageBean.java being Publisher.java a stateless session bean that implements the MDB publisher and MessageBean.java is the subscriber with amethod onMessage()</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>On the other hand I have the App Client Project with a client.Main.java class that implements the main() method. In the build path of the client I have included the EJB project </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In first time I did it as usually being the IDE Helios SR1 but it did not work. So I have tried manually from the command line the following,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1.- I add in MANIFEST.MF file of the client the line &ldquo;Main-Class: client.Main&#8221;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2.- Using jar files I have packaged the EJB3.1 class in my default mdb-publisher-client.jar file,&#160; &ldquo;jar uf mdb-publisher-client.jarsb31&#8221; being sb31 the package folder with Publisher.class inside of it.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>3.- Trying everything is ok with &ldquo;jar tf mdb-publisher-client.jar&#8221;,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>META-INF/MANIFEST.MF</p><p>META-INF/</p><p>client/</p><p>client/Main.class</p><p>org/</p><p>org/hornetq/</p><p>org/hornetq/common/</p><p>org/hornetq/common/example/</p><p>org/hornetq/common/example/KillChecker.class</p><p>org/hornetq/common/example/SpawnedHornetQServer.class</p><p>org/hornetq/common/example/SpawnedVMSupport$ProcessLogger.class</p><p>org/hornetq/common/example/SpawnedVMSupport.class</p><p>sb31/</p><p>sb31/Publisher.class</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have deployed the mdb-publisher-client.jar file in the AS</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>4.- I wanted to run the client from the command line, &ldquo;java -cp %JBOSS-HOME%\client\jbossall-client.jar;mdb-publisher-client.jarclient.Main&#8221; but it is not possible because a deploying exception,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>DEPLOYMENTS MISSING DEPENDENCIES:</p><p>&#160; Deployment"jboss.j2ee:jar=mdb-publisher-client.jar,name=mdb-publisher-client,</p><p>service=EJB3"is missing the following dependencies:</p><p>&#160;&#160;&#160; Dependency "&lt;UNKNOWNjboss.j2ee:jar=mdb-publisher-client.jar,name=mdb-publisher-client,service=EJB3&gt;"(should be in state "Installed", but is actually in state"** UNRESOLVED Demands 'Class:sb31.Publisher' **")</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>DEPLOYMENTSIN ERROR:</p><p>&#160; Deployment "&lt;UNKNOWNjboss.j2ee:jar=mdb-publisher-client.jar,name=mdb-publisher-client,service=EJB3&gt;"is in error due to the following reason(s): ** UNRESOLVED Demands'Class:sb31.Publisher' **</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep</p><p>loyersImpl.java:1228)[:2.2.0.GA]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD</p><p>eployerImpl.java:905)[:2.2.0.GA]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c</p><p>heckComplete(MainDeployerPlugin.java:87)[:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.che</p><p>ckAllComplete(ProfileDeployerPluginRegistry.java:107)[:0.2.2]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB</p><p>ootstrap.start(BasicProfileServiceBootstrap.java:135)[:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB</p><p>ootstrap.start(BasicProfileServiceBootstrap.java:56)[:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A</p><p>bstractServer.java:827)[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atorg.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r</p><p>un(AbstractServer.java:417)[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; atjava.lang.Thread.run(Thread.java:619) [:1.6.0_20]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I do not know if this is a bug of Eclipse because it happened to me in a GlassFish similar case. In fact I have could deploy and execute a web app using an EJB31 jar file put it in the lib folder of the web app. Typing the url in the web browser the web app is loaded, then I call a servlet that uses EJB DI and runs fine.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If you have any idea or suggestion I should appreciate very much.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Kind regards,</p><p>Jose</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/592588#592588">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>