File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Entity Bean Deployment in jboss-5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

Entity Bean Deployment in jboss-5.1

jagannadha reddy
Greenhorn

Joined: Jul 02, 2010
Posts: 14
Hi,

I am trying to deploy an Entity Bean in jboss-5.1 but getting error like Failed to parse '<entity>', below are my ejb-jar.xml and jboss.xml code:
ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0">
<display-name>Emagia Enterprise</display-name>
<enterprise-beans>
<entity id="Entity_16">
<description>Strategy Identifiers Entity Bean ( BMP )</description>
<display-name>StrategyIdentifers</display-name>
<ejb-name>StrategyIdentifers_EB</ejb-name>
<home>emagia.ejb.StrategyIdentifersHome</home>
<remote>emagia.ejb.StrategyIdentifersRemote</remote>
<ejb-class>emagia.ejb.StrategyIdentifers_EB</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<primkey-field>id</primkey-field>
</entity>
</enterprise-beans>
</ejb-jar>

jboss.xml :

<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<entity>
<ejb-name>StrategyIdentifers_EB</ejb-name>
<jndi-name>emagia/ejb/StrategyIdentifersHome</jndi-name>
</entity>
</enterprise-beans>
</jboss>

Please help me to resolve this.

Regards
Jagan
Thank You.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

Please do not create multiple threads for the same question. I'm closing this one. Please continue the discussion in your other thread here http://www.coderanch.com/t/591657/JBoss/Entity-Bean-Deployment-jboss

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entity Bean Deployment in jboss-5.1