Thursday, November 27, 2014

Bluemix troubleshooting -> Configuration errors appear in the server.xml file after you import a Bluemix Liberty application from IBM DevOps Services to Eclipse

If you see configuration errors in the server.xml file after you import a Bluemix Liberty application from IBM DevOps Services to Eclipse, you might need to remove the server.xml file from the project.
After you import a Bluemix Liberty application from IBM DevOps Services into the Eclipse, you see configuration errors within the server.xml file from Eclipse Problems view.
Liberty buildpack uses the server.xml file to configure application and generates a runtime-vars.xml file when the Liberty application is pushed to Bluemix. When you import the application to Eclipse, the runtime-vars.xml file doesn't exist in your local environment.
You can resolve this problem by removing the server.xml file from the project. The buildpack creates the server.xml file dynamically when you push the application as a WAR application. For more information, see Creating apps with Liberty for Java.

No comments:

Post a Comment