简体   繁体   English

从Eclipse将Webapp发布到本地Liberty Stuck

[英]Publishing webapp into local Liberty Stuck from Eclipse

I have a Dynamic Web App in Eclipse deploying into a WebSphere Liberty pluging. 我在Eclipse中有一个Dynamic Web App,它正在部署到WebSphere Liberty插件中。 It was deploying fine until I create an Ant file to build an EAR file. 在我创建用于构建EAR文件的Ant文件之前,它的部署情况良好。

After that automatic Deploy Stuck on 80% of the publishing process Stay with Msg: Publishing : myEAR: Waiting for application status from the server. 此后,自动Deploy Stuck会在发布过程的80%上停留在Msg:发布:myEAR:等待服务器上的应用程序状态。

I remove the ant file but anyway. 我还是删除了ant文件。 What can I do to make Eclipse work as before. 我该怎么做才能使Eclipse像以前一样工作。

If stuck at about 80% eclipse is usually waiting for the server to print a message saying that the application was started. 如果日食停留在80%左右,通常会等待服务器打印一条消息,说明应用程序已启动。 Do you see a message in the console view similar to the following? 您是否在控制台视图中看到类似于以下内容的消息?

[AUDIT ] CWWKZ0001I: Application Web2EAR started in 0.048 seconds. [AUDIT] CWWKZ0001I:应用程序Web2EAR在0.048秒内启动。

If not is there anything in the console view or in the server logs to indicate what might have gone wrong with the application deployment? 如果没有,控制台视图或服务器日志中是否有任何内容指示应用程序部署可能出了什么问题?

I was able to fix this problem by double clicking on the server and unchecking the "run Applications Directly From Workspace" option. 通过双击服务器并取消选中“直接从工作区运行应用程序”选项,我能够解决此问题。

My environment is slightly different. 我的环境略有不同。 My project is both a Maven Project and a Dynamic Web Project. 我的项目既是Maven项目又是动态Web项目。 And I added the Maven dependencies to the Deployment Descriptor. 然后,我将Maven依赖项添加到了部署描述符中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM