aspose file tools*
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
Author

XML Error in the .war file

Brandon Booysen
Greenhorn

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
    
    1
Hi!
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: http://www.slideshare.net/krizsan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML Error in the .war file