Failed to publish EAR on Websphere

I am running Rational Application Developer for WebSphere Software (v. 8.0.4.1) on Windows. I have an EAR project that I am trying to deploy to my Websphere server running on my machine. The EAR project refers to the WAR project.

When binding for deployment, 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 is strange is that I see that the EAR and WAR services started / synchronized on the server, and when I enter the admin console, I can see the running application.

Has anyone seen the same errors? Suggestions?

Any help GREAT appreciated!

+6
source share
1 answer

It turns out the same problem. deleted entries from publish.xml in the file c: /myworkspace/.metadata/.plugins/org.eclipse.wst.server.core for the failed server, and also deleted the tmp * folder (tmp0 or tmp1, etc., which applies to the failover server).

After restarting RAD, they noticed that this mapping was recreated, and the publication seems to be working fine.

+11
source

Source: https://habr.com/ru/post/918495/


All Articles