Hi,
I''m trying to deploy my first BMP and getting some error related to the
Primary-key,which i couldn't able to figure out.Please help me why it is
throwing the following error
[Auto deploy] Auto deploy of file:/C:/jboss/jboss2/deploy/person.jar
[Container factory] Deploying:file:/C:/jboss/jboss2/deploy/person.jar
[Container factory] Loading ejb-jar.xml :
jar:file:/C:/jboss/jboss2/tmp/deploy/tmpejbjar27043.jar!/META-INF/ejb-jar.xml
[Container factory] Loading standardjboss.xml :
jar:file:/C:/jboss/jboss2/lib/ext/jboss.jar!/org/jboss/metadata/standardjboss.
xml
[Verifier] Verifying file:/C:/jboss/jboss2/tmp/deploy/tmpejbjar27043.jar
[Verifier] Person: The return type of an ejbCreate(...) method must be the
entity bean's primary key type.
[Verifier] Person: The return type of the ejbFindByPrimaryKey method must be
the primary key type.
[Verifier] Person: The ejbFindByPrimaryKey method must be a single-object
finder.
[Verifier] Person: The finder method return type must be either the entity
bean's primary key type or an instance of the Enumeration or the Collection
interface.
[Verifier] Person: The Bean Provider must specify the fully-qualified name of
the enterprise bean's primary key class in the prim-key-class element.
[Container factory] Deploying Person
[Container factory] Container Invoker Optimize='false'
[Container factory] java.lang.ClassNotFoundException: Integer
[Container factory] at java.net.URLClassLoader$1.run(Unknown Source)
[Container factory] at java.security.AccessController.doPrivileged(Native
Method)
[Container factory] at java.net.URLClassLoader.findClass(Unknown Source)
[Container factory] at java.lang.ClassLoader.loadClass(Unknown Source)
[Container factory] at java.lang.ClassLoader.loadClass(Unknown Source)
[Container factory] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.init(JRMPContainerInvok
er.java:289)
[Container factory] at
org.jboss.ejb.EntityContainer.init(EntityContainer.java:185)
[Container factory] at
org.jboss.ejb.Application.init(Application.java:158)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:635)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:227)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:286)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:222)
[Container factory] at java.lang.Thread.run(Unknown Source)
[Auto deploy] Deployment failed:file:/C:/jboss/jboss2/deploy/person.jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/C:/jboss/jboss2/tmp/deploy/tmpejbjar27043.jar,
Cause:java.lang.ClassNotFoundException: Integer
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:665)
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:227)
[Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:286)
[Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:222)
[Auto deploy] at java.lang.Thread.run(Unknown Source)
my ejb-xml is
<?xml version="1.0" encoding="Cp1252"?>
<ejb-jar>
<description>Person Entity Bean Application</description>
<display-name>Person</display-name>
<enterprise-beans>
<entity>
<ejb-name>Person</ejb-name>
<home>com.webtomorrow.cdstore.EJB.PersonHome</home>
<remote>com.webtomorrow.cdstore.EJB.Person</remote>
<ejb-class>com.webtomorrow.cdstore.EJB.PersonBean</ejb-class>
<prim-key-class>Integer</prim-key-class>
<persistence-type>Bean</persistence-type>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
</ejb-jar>
and my
PersonHome contains
create(int,String,String,String,int,String,String,String)
findByPrimaryKey(Integer)
PersonBean contains Integer
ejbCreate(int,String,String,String,int,String,String,String)
corresponding ejbPostCreate()
Integer ejbFindByPrimaryKey(Integer)
all other methods were included without any implementaions
Thnx in advance
jags
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]