1 Reply Latest reply on Nov 23, 2001 12:02 PM by conora

    Deployment problem !

    warx_sg

      Hello,

      i am a begginer of JBoss and i am trying to make work some simple examples.
      Well, i created a simple EJB and i packed in file called "interest.jar".
      If i launch the command "jar -tvf interest.jar" i get
      the following layout :

      0 Fri Nov 23 12:02:16 GMT+01:00 2001 META-INF/
      68 Fri Nov 23 12:02:18 GMT+01:00 2001 META-INF/MANIFEST.MF
      226 Thu Nov 22 15:37:24 GMT+01:00 2001 ejb/Interest.class
      1138 Thu Nov 22 15:37:24 GMT+01:00 2001 ejb/InterestBean.class
      256 Thu Nov 22 15:37:24 GMT+01:00 2001 ejb/InterestHome.class
      536 Fri Nov 23 11:57:38 GMT+01:00 2001 META-INF/ejb-jar.xml

      The problem is when i copy the file interest.jar the directory called "deploy" of JBoss and i run it i get the message that JBoss try to deploy the file interest.jar but it fail in it because the file interest.jar hasn't the ejb-jar.xml descriptor in it.
      This is false as you can notice.
      Any suggestion ?
      Did i do any mistakes ?
      The content of the file : ejb-jar.xml is :

      <?xml version="1.0" encoding="Cp1252"?>
      <ejb-jar>
      jBoss test application
      <display-name>Test</display-name>
      <enterprise-beans>

      <ejb-name>Interest</ejb-name>
      ejb.InterestHome
      ejb.Interest
      <ejb-class>ejb.InterestBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>

      </enterprise-beans>
      </ejb-jar>

      Cheers.

      Stefano

        • 1. Re: Deployment problem !
          conora

          Not sure if this means anything, but the encoding you use is different

          i.e.

          <?xml version="1.0" encoding="Cp1252"?>

          rather than

          <?xml version="1.0" encoding="UTF-8"?>

          Don't know if this actually means anything

          Conor