File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes XML Error in the .war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "XML Error in the .war file" Watch "XML Error in the .war file" New topic

XML Error in the .war file

Brandon Booysen

Joined: Jun 09, 2010
Posts: 24
Hi Experts

I have a .war file that contains four.xml files. When I deploy it to my glassfish server I received this Error

Error occurred during application loading phase. The application will not run properly. Please fix your application and redeploy.
WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException: ContainerBase.addChild: start: LifecycleException: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.

We found that the Error was in one .xml file

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
The XML you presents in your question is a Spring bean configuration file.
From what I can see, the </bean> end tag is missing a "<".
As an additional suggestion, I would recommend using the Spring XML schemas instead of DTDs.
Best wishes!

My free books and tutorials:
I agree. Here's the link:
subject: XML Error in the .war file
It's not a secret anymore!