Unable to deploy WAR file to Websphere using IBM Rational Application Developer
I am using the IBM RAD IDE and building a dynamic web project. When I build the project and attempt to add it to the server by selecting 'add or remove projects开发者_如何学Python' I get the response that there are no projects to add or remove.
Does this mean I will have to create a EAR file (J2EE Project) and add my web project to it in order to deploy to the local WAS? Might I be missing some essential configuration?
WAS requires EAR files, this is not a RAD issue.
Actually there is a work-around that I got from http://dev-answers.blogspot.com/2006/07/cant-deploy-war-on-websphere-6.html but have not tried
Create your WAR. In your WEB-INF\web.xml. WebSphere validates this against the schema for the web.xml and is not flexible. Add this detail to you opening node in your web.xml and make sure it is valid according to the schema:
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xsi="http://www.w3.org/2001/XMLSchema-instance"
schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
You might just want to package your WAR in an EAR which is what everybody does.
From my very limited RAD experience, you will indeed need an EAR to deploy. Its pretty painless to do... Are you having a particular problem deploying?
精彩评论