0 Replies Latest reply on Jun 3, 2003 7:27 AM by pipo

    My EJB seems not to deploy correctly!

    pipo

      I try to develop a simple EJB
      In the JBoss server console there are no errors but I can't find it in the jmx-console and when I run this command I obtain that:
      C:\Java\jboss-3.2.1_tomcat-4.1.24\server\default\deploy>jar -tf HelloWorld.ja
      META-INF/
      META-INF/MANIFEST.MF
      ../META-INF/
      ../META-INF/ejb-jar.xml
      ../META-INF/jBoss.xml

      In the META-INF my.class are missing.

      My configuration is JBOSS 3.2.1 whit Tomcat
      Eclipse 2.1

      I organise my directory as following:

      -Workspace
      -TestJBOSS
      HelloWorld.jar
      HelloWorld.class
      HelloWorldBean.class
      HelloWorldClient.class
      HelloWorldHome.class
      HelloWorld.java
      HelloWorldBean.java
      HelloWorldClient.java
      HelloWorldHome.java
      -META-INF
      ejb-jar.xml
      jBoss.xml
      ========ejb-jar.xml=====================
      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <!DOCTYPE ejb-jar (View Source for full doctype...)>
      - <ejb-jar>
      - <enterprise-beans>
      JBoss Hello World Application
      <display-name>Hello World EJB</display-name>
      -
      <ejb-name>HelloWorld</ejb-name>
      <jndi-name>HelloWorld</jndi-name>
      TestJBOSS.HelloWorldHome
      TestJBOSS.HelloWorld
      <ejb-class>TestJBOSS.HelloWorldBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>

      </enterprise-beans>
      </ejb-jar>
      ===================================
      ============jBoss.xml=================
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE jboss PUBLIC
      "-//JBoss//DTD JBOSS 3.0//EN"
      "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">

      <enterprise-beans>

      <ejb-name>HelloWorld</ejb-name> <!-- Matches ejb-jar.xml -->
      <jndi-name>HelloWorld</jndi-name>

      </enterprise-beans>

      ======================================

      The code of the interface and other java class are correct but I stuck to try to run all these :(.
      If anyone can help me many thanks.

      BTW the JBoss server run on the same machine and all programs about the EJB too.