File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Problem parsing deployment descriptor ejb-jar.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problem parsing deployment descriptor ejb-jar.xml" Watch "Problem parsing deployment descriptor ejb-jar.xml" New topic

Problem parsing deployment descriptor ejb-jar.xml

Martin Fiskare

Joined: Jun 24, 2010
Posts: 7
Greetings in the first place.

I sincerely hope that someone can aid me with a problem that's been drinving me insane.

I have your average J2EE5 enterprise application nicely wrapped up in an EAR-File. When I attempt to deploy it on my JBOSS 5.1.0 GA i receive the following error code in my stacktrace reporting that my ejb-jar.xml cannot be deployed because the <ejb>-tag lacks the declaration of the xmlns-attribute, which is obviously there, as you can seen from the code I provide here.

So.. thank you all in advance. Please enlighten me.

Here is my ejb-jar.xml

and that's what I receive from jboss

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9927

You don't need the DOCTYPE pointing to the dtd, while using xsd. So remove that DOCTYPE and keep it like:

[My Blog] [JavaRanch Journal]
Martin Fiskare

Joined: Jun 24, 2010
Posts: 7
That fixed it.
Thanks thousandfold
I agree. Here's the link:
subject: Problem parsing deployment descriptor ejb-jar.xml
Similar Threads
reslove this problem please
How to deploy GWT web application in JBoss?
Problem of dependency injection in jboss
Is it posible to limit the number of instances of EJB in application server ?
Error in Deployement of Ear File