1 Reply Latest reply on Feb 19, 2002 2:32 PM by haytona

    Can't Deploy with JBoss2.4.4

    said

      get the following when trying to deploy my ejb:

      org.jboss.deployment.J2eeDeploymentException: Error while starting com_reef_systemtest_frameworktest_ejb.jar: Could not deploy file:/D:/AppServers/JBoss-2.4.4/tmp/deploy/Default/com_reef_systemtest_frameworktest_ejb.jar, Cause: org.jboss.deployment.DeploymentException: Could not deploy file:/D:/AppServers/JBoss-2.4.4/tmp/deploy/Default/com_reef_systemtest_frameworktest_ejb.jar, Cause: org.jboss.deployment.DeploymentException: Error in ejb-jar.xml for Session Bean FrameworktestService: session type should be 'Stateful' or 'Stateless'
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:518)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at arg.jboss.deployment.J2eeDeployer.deployJ2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16


      and In my ejb-jar.xml i have the following :
      <ejb-jar>
      <enterprise-beans>

      <ejb-name>FrameworktestService
      </ejb-name>
      com.reef.systemtest.frameworktest.pub.ejb.FrameworktestServiceEJBHome

      com.reef.systemtest.frameworktest.pub.ejb.FrameworktestServiceEJB

      <ejb-class>com.reef.systemtest.frameworktest.impl.ejb.FrameworktestServiceEJBBean
      </ejb-class>
      <session-type>Stateless
      </session-type>
      <transaction-type>Container</transaction-type>


      <ejb-name>FrameworktestWrapperService
      </ejb-name>

      any help will be appreciated.

        • 1. Re: Can't Deploy with JBoss2.4.4
          haytona

          try this ejb-jar.xml:

          <?xml version="1.0"?>
          <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
          <ejb-jar>
          <enterprise-beans>

          <ejb-name>FrameworktestService</ejb-name>
          com.reef.systemtest.frameworktest.pub.ejb.FramewrktestServiceEJBHome com.reef.systemtest.frameworktest.pub.ejb.FramworktestServiceEJB
          <ejb-class>com.reef.systemtest.frameworktest.impl.ejb.FrameworktestServiceEJBBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>

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

          the definition for your next bean FrameworktestWrapperService wasn't complete either so you may wish to correct that as well.