2 Replies Latest reply on Apr 29, 2002 12:00 PM by bctboss

    Local Interfaces (JBoss3.0.0RC1)

    bctboss Newbie

      If I want to use local interfaces for an entity bean, do I also need to provide the remote interfaces. JBoss seems to complain if I only provide the local interfaces...
      ---------------------------------------------------------
      2002-04-26 14:11:59,147 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment njar:file:/E:/Tools/jboss-3.0.0RC1/server/default/tmp/deploy/E/Tools/jboss-3.0.0RC1/server/default/deploy/xmlbind.ear/78.xmlbind.ear^/customerentity.jar
      2002-04-26 14:11:59,257 DEBUG [org.jboss.ejb.EJBDeployer] Verifying njar:file:/E:/Tools/jboss-3.0.0RC1/server/default/tmp/deploy/E/Tools/jboss-3.0.0RC1/server/default/deploy/xmlbind.ear/78.xmlbind.ear^/customerentity.jar
      2002-04-26 14:11:59,377 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CustomerEntityBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods.

      2002-04-26 14:11:59,447 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CustomerEntityBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods.

      2002-04-26 14:11:59,557 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CustomerEntityBean
      Section: 12.2.1
      Warning: null

      2002-04-26 14:11:59,557 DEBUG [org.jboss.ejb.EJBDeployer] Deploying: njar:file:/E:/Tools/jboss-3.0.0RC1/server/default/tmp/deploy/E/Tools/jboss-3.0.0RC1/server/default/deploy/xmlbind.ear/78.xmlbind.ear^/customerentity.jar
      2002-04-26 14:11:59,557 INFO [org.jboss.ejb.EjbModule] Creating
      2002-04-26 14:11:59,567 DEBUG [org.jboss.ejb.EjbModule] Application.start(), begin
      2002-04-26 14:11:59,577 DEBUG [org.jboss.management.j2ee.EJBModule] EJBModule.create(), server name: J2EEServer=Single
      2002-04-26 14:11:59,577 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject] File: njar:file:/E:/Tools/jboss-3.0.0RC1/server/default/tmp/deploy/E/Tools/jboss-3.0.0RC1/server/default/deploy/xmlbind.ear/78.xmlbind.ear^/customerentity.jar, descriptor: META-INF/ejb-jar.xml
      2002-04-26 14:11:59,577 DEBUG [org.jboss.management.j2ee.EJBModule] Create EJB-Module, name: customerentity.jar, application: jboss.management.single:J2EEServer=Single,j2eeType=J2EEApplication,name=xmlbind.ear, dd: <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC
      "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
      "file:/E:\Tools\j2sdkee1.3.1\lib\dtds\ejb-jar_2_0.dtd">

      <ejb-jar>
      <enterprise-beans>

      <ejb-name>CustomerEntityBean</ejb-name>
      <local-home>CustomerEntityHome</local-home>
      CustomerEntityLocal
      <ejb-class>CustomerEntityBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>CustomerPrimaryKey</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>CustomerEntityBean</abstract-schema-name>
      <cmp-field>
      <field-name>name</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>ssn</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>phoneNumber</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>active</field-name>
      </cmp-field>

      <query-method>
      <method-name>findByName</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      </method-params>
      </query-method>
      <ejb-ql>
      <![CDATA[SELECT OBJECT(a) FROM CustomerEntityBean AS a WHERE a.name = ?1]]>
      </ejb-ql>


      </enterprise-beans>
      <assembly-descriptor>
      <container-transaction>

      <ejb-name>CustomerEntityBean</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>

      2002-04-26 14:11:59,577 DEBUG [org.jboss.management.j2ee.J2EEManagedObject] getObjectName(), name: jboss.management.single:J2EEApplication=xmlbind.ear,J2EEServer=Single,j2eeType=EJBModule,name=customerentity.jar
      2002-04-26 14:11:59,577 DEBUG [org.jboss.management.j2ee.J2EEManagedObject] postRegister(), parent: jboss.management.single:J2EEServer=Single,j2eeType=J2EEApplication,name=xmlbind.ear
      2002-04-26 14:11:59,577 INFO [org.jboss.ejb.EjbModule] Deploying CustomerEntityBean
      2002-04-26 14:11:59,948 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Cache policy timer started, tasksTimer=java.util.Timer@80876
      2002-04-26 14:12:00,128 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.create: []
      2002-04-26 14:12:00,218 ERROR [org.jboss.ejb.EntityContainer] Exception in service lifecyle operation: create
      java.lang.ClassNotFoundException: CustomerEntityHome
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      at org.jboss.ejb.Container.create(Container.java:541)

      ...