Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Error in the .war file

 
Brandon Booysen
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic