java – 无法将EAR发布到Websphere上

前端之家收集整理的这篇文章主要介绍了java – 无法将EAR发布到Websphere上前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在 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服务在服务器上启动/同步,当我进入管理控制台时,我可以看到正在运行的应用程序.

有没有人见过同样的错误?建议?

任何帮助是极大的赞赏!

解决方法

得到了同样的问题.
从c:/myworkspace/.Metadata/.plugins/org.eclipse.wst.server.core下的publish.xml中删除了失败服务器的条目,并删除文件夹tmp *(tmp0或tmp1等,适用于失败的服务器).

重新启动RAD后,注意到重新创建了这些映射,并且发布似乎工作正常.

原文链接:https://www.f2er.com/java/120833.html

猜你在找的Java相关文章