在Eclipse中无法将应用程序部署到Glassfish 4.1 [英] Cannot deploy an application to Glassfish 4.1 in Eclipse

查看:639
本文介绍了在Eclipse中无法将应用程序部署到Glassfish 4.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu上安装了Glassfish 4.1和Eclipse Luna。当我尝试运行一个简单的Web应用程序(jsp + servlet + java bean)时,我收到以下错误:



发布到Glassfish 4在localhost [domain1] ..遇到一个
的问题。
无法部署mvcprj1 deploy is failing =未使用
名称[mvcprj1]的应用程序未部署



在glassfish服务器日志或eclipse控制台中。

解决方案

我有相同的部署问题(eclipse Lune / Glassfish 4.1)得到Marvin的反馈。



您可以通过以下方式找到使用JAR归档进行部署:
右键单击eclipse服务器选项卡上的glassfish。然后,在新窗口中选择监控> 属性> Glassfish > 使用JAR存档进行部署



然后,奇迹发生...


I have Glassfish 4.1 and Eclipse Luna installed on Ubuntu. When I tried to run a simple web application (jsp + servlet + java bean) I`ve received the following error:

Publishing to Glassfish 4 at localhost[domain1].. has encountered a problem. cannot Deploy mvcprj1 deploy is failing=Application with name [mvcprj1] is not deployed

Nothing is appearing neither in the glassfish server log or in the eclipse console.

解决方案

I had same deployment issue (eclipse Lune/Glassfish 4.1) and it was resolved thanks to Marvin's feedback.

You can find the "Use JAR archives for deployment" by: right click on glassfish from eclipse server tab. Then, select Monitoring >Properties > Glassfish in new windows > Use JAR archives for deployment.

Then, the miracle occurs...

这篇关于在Eclipse中无法将应用程序部署到Glassfish 4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆