0 Replies Latest reply on Jun 8, 2006 5:37 AM by song peng

    deloy EJB probems!

    song peng Newbie


      ejb-jar.xml
      <ejb-jar>
      <enterprise-beans>

      ShoppingCart ejb
      <display-name> ShoppingCartEJB</display-name>
      <ejb-name>ShoppingCartEJB</ejb-name>
      session.cart.ejb.ShoppingCartHome
      session.cart.ejb.ShoppingCart
      <ejb-class>session.cart.ejb.ShoppingCartEJB</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>
      <env-entry>
      <env-entry-name>ejb/catalog/CatalogDAOClass</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>session.catalog.dao.CatalogMySqlDAOImpl</env-entry-value>
      </env-entry>



      Catalog ejb
      <display-name>The Catalog</display-name>
      <ejb-name>TheCatalog</ejb-name>
      <local-home>session.catalog.ejb.CatalogLocalHome</local-home>
      session.catalog.ejb.CatalogLocal
      <ejb-class>session.catalog.ejb.CatalogEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <env-entry>
      <env-entry-name>ejb/catalog/CatalogDAOClass</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>session.catalog.dao.CatalogMySqlDAOImpl</env-entry-value>
      </env-entry>

      ...............
      jboss.xml

      <ejb-name>ShoppingCartEJB</ejb-name>
      <jndi-name>ejb/ShoppingCartEJB</jndi-name>



      <ejb-name>TheCatalog</ejb-name>
      <jndi-name>ejb/TheCatalog</jndi-name>



      <ejb-name>CatalogFacadeEJB</ejb-name>
      <jndi-name>ejb/CatalogFacadeEJB</jndi-name>

      ..................
      the errors ?
      ERROR [MainDeployer] Could not create deployment: file:/C:/JBoss-4.0.4.GA/server/default/deploy/BookSysEjb.jar/
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      ??????
      In my webapp ???????file ?
      ??????
      <ejb-ref>
      <ejb-ref-name>ejb/BookFacadeEJB</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      facade.book.BookFacadeHome
      facade.book.BookFacade
      </ejb-ref>
      ?????
      How can i do?
      please give me a help ,thanks a lot.