我在Windows上运行Rational Application Developer for WebSphere Software(v.8.0.4.1)。我有一个EAR项目,我正在尝试部署到我的机器上运行的Websphere服务器上。 EAR项目引用了WAR项目。
在搭配部署时,我收到四条消息:
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
奇怪的是,我可以看到EAR& WAR服务在服务器上启动/同步,当我进入管理控制台时,我可以看到正在运行的应用程序。
有没有人见过同样的错误?建议?
非常感谢任何帮助!
答案 0 :(得分:12)
遇到同样的问题。 从c:/myworkspace/.metadata/.plugins/org.eclipse.wst.server.core下的publish.xml中删除了失败服务器的条目,并删除了文件夹tmp *(tmp0或tmp1等,适用于失败的服务器)。
重新启动RAD后,注意到这些映射已重新创建,并且发布似乎正常。