Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JBOSS says Deployment FAILED reason: ejb-jar.xml must either obey the right

843830Aug 3 2006 — edited Aug 4 2006
when i deployed my demobean in JBOSS Application server my application not runninig pls help me
JBOSS Console message comes like this
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@81e56710 { url=file:/C:/jboss-4.0.4.GA/serve
r/default/deploy/DemoEJB.jar }
deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
status: Deployment FAILED reason: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!
state: FAILED
watch: file:/C:/jboss-4.0.4.GA/server/default/deploy/DemoEJB.jar
altDD: null
lastDeployed: 1154656039687
lastModified: 1154656039671
mbeans:
my jboss.xml is
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<!--
The JBoss Bean Deployer
-->
<enterprise-beans>
<session>
<ejb-name>DemoEJB</ejb-name>
<jndi-name>
ejb/DemoEJB
</jndi-name>
</session>
</enterprise-beans>
</jboss>
my ejb-jar.xml is
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<enterprise-beans>

<session>
<ejb-name>DemoEJB</ejb-name>
<home>demo.DemoHome</home>
<remote>demo.Demo</remote>
<ejb-class>demo.DemoBean</ejb-class>
<session-type>Stateles</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2006
Added on Aug 3 2006
1 comment
180 views