I get the following error while deploying. I can't understand what's wrong with
my jboss.xml. Both XML files are in the jar in META-INF directory. Without
jboss.xml I get no errors and the application works just fine. My JBoss version
is 4.0.3 SP1.
13:09:46,081 ERROR [XmlFileLoader] failed to load jboss.xml. There could be a
syntax error.
| org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean
MyTestEntityBean: found in jboss.xml but not in ejb-jar.xml
| at
org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:915)
| at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:185)
| at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:506)
| ...
EJB-JAR.XML
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
| <ejb-jar>
| <enterprise-beans>
| <session>
| <ejb-name>MyTestEntityBean</ejb-name>
| <home>com.openbit.log.server.MyTestHome</home>
| <remote>com.openbit.log.server.MyTestRemote</remote>
| <ejb-class>com.openbit.log.server.MyTestBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
| ...
JBOSS.XML
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN"
| "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
| <jboss>
| <enterprise-beans>
| <session>
| <ejb-name>MyTestEntityBean</ejb-name>
| </session>
| ...
-Tapani
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907371#3907371
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907371
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user