[jboss-user] [EJB/JBoss] - deployment of a ejb having bmp in jboss

rajatbh do-not-reply at jboss.com
Tue Aug 26 06:35:38 EDT 2008


Greetings

I am trying to deploy a entity bean having bean managed persistence in jboss. After proper compilation and packaging of the entity bean into a jar file, I am copying it to the default\deploy directory. The bean fails at the deployment stage and I get the following error :


:56:57,046 ERROR [MainDeployer] could not create deployment: file:/C:/jboss/jb
s-4.0.1sp1/server/default/deploy/sample2_bmp.jar
g.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed
see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 


My ejb-jar.xml file is 
<?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>

<display-name>bmpapp</display-name>


An EJB app containing only one Bean Managed Persistence Entity Bean


<enterprise-beans>

bmpdemo
<display-name>TemplateBean</display-name>
<ejb-name>TemplateBean</ejb-name>
apps.TemplateHome
apps.Template
<ejb-class>apps.TemplateBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>apps.TemplatePK</prim-key-class>
False
<resource-ref>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<res-type>javax.sql.Datasource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

</enterprise-beans>

</ejb-jar>

My jboss.xml file is
<?xml version="1.0" encoding="UTF-8"?>

<enterprise-beans>

<ejb-name>TemplateBean</ejb-name>
<jndi-name>apps/TemplateBean</jndi-name>

<resource-ref>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<jndi-name>java:jdbc/DefaultDS</jndi-name>
</resource-ref>




</enterprise-beans>







Please let me know what mistake I am making.  

Thanks for your help 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172526#4172526

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172526



More information about the jboss-user mailing list