5 Replies Latest reply on Oct 25, 2004 10:29 AM by Sudhir Kethamakka

    JBoss Deployment problem

    Sudhir Kethamakka Newbie

      These EJBs work great in the Weblogic Server.

      Help !!! thanks

      18:43:41,281 WARN [verifier] EJB spec violation:
      Bean : USERINGROUPBean
      Method : public abstract void remove() throws RemoveException, EJBException
      Section: 12.2.11
      Warning: Each local home method must match a method defined in the entity bean c
      lass.

      18:43:41,281 WARN [verifier] EJB spec violation:
      Bean : USERINGROUPBean
      Method : public abstract EJBLocalHome getEJBLocalHome() throws EJBException
      Section: 12.2.11
      Warning: Each local home method must match a method defined in the entity bean c
      lass.

      18:43:41,281 WARN [verifier] EJB spec violation:
      Bean : USERINGROUPBean
      Method : public abstract Object getPrimaryKey() throws EJBException
      Section: 12.2.11
      Warning: Each local home method must match a method defined in the entity bean c
      lass.

      18:43:41,281 WARN [verifier] EJB spec violation:
      Bean : USERINGROUPBean
      Method : public abstract boolean isIdentical(EJBLocalObject) throws EJBException

      Section: 12.2.11
      Warning: Each local home method must match a method defined in the entity bean c
      lass.

      18:43:41,311 ERROR [MainDeployer] could not create deployment: file:/C:/jboss4.0
      /server/tnsconf/deploy/csms.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
      d, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:817)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:673)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
      at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)

      
      


        • 1. Re: JBoss Deployment problem
          Darran Lofthouse Master

          What does the local interface look like and what does the entity bean class look like?

          • 2. Re: JBoss Deployment problem
            Sudhir Kethamakka Newbie

             

            
            //EJB class
            
            package com.telcordia.tns.subscriber;
            
            import javax.ejb.EntityBean;
            import javax.ejb.EntityContext;
            import javax.ejb.EJBException;
            import javax.ejb.CreateException;
            import java.sql.SQLException;
            import com.telcordia.tns.subscriber.USERINGROUPPK;
            
            /**
             * @ejbHome com.telcordia.tns.subscriber.USERINGROUPHome
             * @ejbRemote com.telcordia.tns.subscriber.USERINGROUP
             * @ejbLocalHome com.telcordia.tns.subscriber.USERINGROUPLocalHome
             * @ejbLocal com.telcordia.tns.subscriber.USERINGROUPLocal
             * @undefined
             * @displayName*/
            
            public abstract class USERINGROUPBean implements EntityBean {
             private EntityContext ctx;
             public void setEntityContext(EntityContext context) throws EJBException {
             ctx = context;
             }
             public void unsetEntityContext() throws EJBException {
             ctx = null;
             }
            
             public void ejbActivate() throws EJBException {
             }
            
             public void ejbPassivate() throws EJBException {
             }
            
             public void ejbRemove() throws EJBException {
             }
            
             public void ejbStore() throws EJBException {
             }
            
             public void ejbLoad() throws EJBException {
             }
            
             public USERINGROUPPK ejbCreate() throws CreateException, EJBException, SQLException {
             // Write your code here
             return null;
             }
            
             public void ejbPostCreate() throws CreateException, EJBException, SQLException {
             // Write your code here
             }
            
             /**
             * @undefined
             */
             public abstract double getUSERKEY() throws EJBException ;
            
             public abstract void setUSERKEY(double uSERKEY) throws EJBException ;
            
             /**
             * @undefined
             */
             public abstract double getGROUPID() throws EJBException ;
            
             public abstract void setGROUPID(double gROUPID) throws EJBException ;
            
             /**
             * @undefined
             */
             public abstract double getTENANTID() throws EJBException ;
            
             public abstract void setTENANTID(double tENANTID) throws EJBException ;
            
             /**
             * @undefined
             */
             public abstract double getUSERPRIORITY() throws EJBException ;
            
             public abstract void setUSERPRIORITY(double uSERPRIORITY) throws EJBException ;
            
             public USERINGROUPPK ejbCreate(USERINGROUPPK ugpk) throws CreateException, EJBException, SQLException {
             this.setUSERKEY(ugpk.uSERKEY);
             this.setTENANTID(ugpk.tENANTID);
             this.setGROUPID(ugpk.gROUPID);
             return ugpk;
             }
            
            
             public void ejbPostCreate(com.telcordia.tns.subscriber.USERINGROUPPK param0) throws CreateException, EJBException, SQLException {
             /* Write your code here */
             }
            }
            
            

            
            //Local Home
            package com.telcordia.tns.subscriber;
            
            import javax.ejb.EJBLocalHome;
            import javax.ejb.FinderException;
            import javax.ejb.EJBException;
            import javax.ejb.CreateException;
            import java.sql.SQLException;
            import javax.ejb.EJBLocalObject;
            
            public interface USERINGROUPLocalHome extends EJBLocalHome, EJBLocalObject
             {
            
             public USERINGROUPLocal create() throws CreateException, EJBException,
             SQLException;
            
             public USERINGROUPLocal create(USERINGROUPPK ugpk) throws CreateException,
             EJBException, SQLException;
            
             public USERINGROUPLocal findByPrimaryKey(USERINGROUPPK pk) throws
             EJBException, FinderException;
            }
            


            • 3. Re: JBoss Deployment problem
              Darran Lofthouse Master

              Your local home interface should not be implementing the EJBLocalObject interface, that is only for the local interface not the local home interface.

              • 4. Re: JBoss Deployment problem
                Darran Lofthouse Master

                Sorry that should have been 'Your local home interface should not be extending the EJBLocalObject'.

                • 5. Re: JBoss Deployment problem
                  Sudhir Kethamakka Newbie

                  Thank you Darran !!
                  Such a dumb mistake.
                  This Jbuilder 2005 I was using did not even complain about it.