How to create an EAR / WAR for WebSphere Application Server from Eclipse?

IBM Rational Application Developer is very slow and has many problems.

I tried using ant scripts to create EAR / WAR files for the Websphere Application Server, but this did not work.

+3
source share
5 answers

If Ant cannot find the WAS tasks, then it is likely that the WAS API is not in the Ant class path.

See this question for other sample scenarios and suggestions.

+3
source

You need to make sure that the containing jar file com.ibm.websphere.ant.tasks.WSDL2Javais in your path to lib.path.

<taskdef name="wsdl2java"
    classname="com.ibm.websphere.ant.tasks.WSDL2Java">
    <classpath refid="lib.path"/>
</taskdef>

If you are working on UNIX, you can scan this class using code similar to:

find . -type f -name "*.jar" | while read file
do
    jar tvf $file | grep WSDL2Java && echo $file
done
+2

, EAR/WAR, , , .

, WAS , , "/ " . , EAR/WAR... . , RAD EAR/WAR .

, , .

0

Eclipse (, Helios Indigo), Marketplace, Websphere. : WebSphere Application Server Eclipse V8.0.4

0

All Articles