简体   繁体   中英

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' 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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM