java 无法将 EAR 发布到 Websphere
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11105270/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to publish EAR onto Websphere
提问by T.j. Randall
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.
我正在 Windows 上运行 Rational Application Developer for WebSphere Software(v. 8.0.4.1)。我有一个 EAR 项目,我试图将它部署到在我的机器上运行的 Websphere 服务器。EAR 项目引用了一个 WAR 项目。
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.
奇怪的是,我可以看到 EAR 和 WAR 服务在服务器上启动/同步,当我进入管理控制台时,我可以看到正在运行的应用程序。
Has anyone seen this same errors? Suggestions?
有没有人看到过同样的错误?建议?
Any help is GREATLY appreciated!
任何帮助是极大的赞赏!
回答by richie912
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).
得到了同样的问题。从 c:/myworkspace/.metadata/.plugins/org.eclipse.wst.server.core 下的publish.xml 中删除了故障服务器的条目,并删除了文件夹 tmp*(tmp0 或 tmp1 等适用于故障服务器)。
After restarting the RAD, noticed that these mapping are recreated and the publish seems to work fine.
重新启动 RAD 后,注意到这些映射被重新创建并且发布似乎工作正常。
回答by koushick
I had the same issue, and I only removed the tmp* folder from c:/myworkspace/.metadata/.plugins/org.eclipse.wst.server.core folder and restarted RSA.
我遇到了同样的问题,我只从 c:/myworkspace/.metadata/.plugins/org.eclipse.wst.server.core 文件夹中删除了 tmp* 文件夹并重新启动了 RSA。
I was then able to publish my EAR onto Websphere 7.0.
然后我能够将我的 EAR 发布到 Websphere 7.0。
No changes were made to publish.xml.
未对publish.xml 进行任何更改。
Thank you for the tip!
谢谢你的提示!