[jboss-user] [EJB/JBoss] - standardjboss.xml configuration issue
1javaloverS
do-not-reply at jboss.com
Mon Nov 19 06:00:13 EST 2007
Hello all,
I have an enterprise archive deployed in my JBoss. This "ear" is having two "jar" files inside with individual "ejb-jar.xml" files for each of them. And I have configured an EJB reference in my "standardjboss.xml" to refer one of my EJBs to an enternal EJB running on a different JBoss server, as follows.
<enterprise-beans>
| <session>
| <ejb-name>MyLocalEJB</ejb-name>
| <ejb-ref>
| <ejb-ref-name>ejb/MyRemoteEJB</ejb-ref-name>
| <jndi-name>jnp://192.118.18.4:1099/ejb/MyRemoteEJB</jndi-name>
| </ejb-ref>
| </session>
| </enterprise-beans>
But this is showing the following error while starting the Jboss and not deploying my EJB.
| 2007-11-11 12:12:21,734 ERROR [org.jboss.metadata.XmlFileLoader] failed to load standardjboss.xml. There could be a syntax error.
| org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean MyLocalEJB: found in jboss.xml but not in ejb-jar.xml
| at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:764)
| at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:158)
| at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:462)
I doesn't have any "jboss.xml" file present anywhere in my enterprise archive file at all.
Is there any requirement for JBoss that an EJB configured in "standardjboss.xml" should have an entry in all "ejb-jar.xml" files of the deploying enterprise archive ?
My JBoss version is 3.2.7.
I will be so thankful to you all for any type of help regarding this.
With regards,
Manoj.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105972#4105972
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105972
More information about the jboss-user
mailing list