Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to publish EAR onto Websphere

I'm running Rational Application Developer for WebSphere Software (v. 8.0.4.1) on Windows. I have a EAR project that I'm trying to deploy to my Websphere server running on my machine. The EAR project references a WAR project.

When tying to deploy, I get four messages:

Publishing failed
**Could not publish to the server - org.eclipse.wst.server.core**
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
at java.util.ArrayList.get(Unknown Source)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(Unknown Source)
at com.ibm.ws.ast.st.v8.core.internal.WASServerBehaviour.publishModules(Unknown Source)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Unknown Source)
at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

OK - Unknown

Error in delegate - org.eclipse.wst.server.core
java.lang.NullPointerException
at com.ibm.etools.webtools.sdo.deploy.internal.cloudscape.DisconnectTaskDelegate.execute(Unknown Source)
at org.eclipse.wst.server.core.internal.Publisher.execute(Unknown Source)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.executePublishers(Unknown Source)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Unknown Source)
at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

deploySuccess -  com.ibm.etools.server.task.ejbdeploy

What's weird is that I can see the EAR & WAR services started/synchronized on the server, and when I go into the Admin console, I can see the running application.

Has anyone seen this same errors? Suggestions?

Any help is GREATLY appreciated!

like image 954
T.j. Randall Avatar asked Jun 19 '12 16:06

T.j. Randall


People also ask

Where do I deploy ear files?

To deploy the EAR file: In the side panel of the console, click Applications > New Application and then New Enterprise Application. Click Browse and navigate to the Decision Center EAR file for your version of WebSphere Application Server.

Where is the EAR file in WebSphere?

In the WebSphere Administrative Console, click Applications, New Application, New Enterprise Application. Supply the location of the WAS_caStyles. ear file.


1 Answers

Got the same issue. removed entries from publish.xml under c:/myworkspace/.metadata/.plugins/org.eclipse.wst.server.core for the failing server and also removed the folder tmp* (tmp0 or tmp1 etc whichever applies to failing server).

After restarting the RAD, noticed that these mapping are recreated and the publish seems to work fine.

like image 132
richie912 Avatar answered Sep 27 '22 17:09

richie912