如何在使用GlassFish服务器时纠正模块部署错误? [英] How to rectify module deployment error while using GlassFish Server?

查看:553
本文介绍了如何在使用GlassFish服务器时纠正模块部署错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在使用GlassFish Server时纠正模块部署错误?



尝试在Netbeans8中运行jsf web应用程序时,出现以下错误:

  ant -f C:\\ Users \\admin\\Desktop\\WebTime -Dnb.internal。 action.name = run -Ddirectory.deployment.supported = true -DforceRedeploy = false -Dnb.wait.for.caches = true -Dbrowser.context = C:\\Users\\admin\\Desktop\\ \\\ WebTime运行
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive :
library-inclusion-in-manifest:
compile:
compile-jsps:
启动GlassFish服务器
GlassFish服务器正在运行。
就地部署在C:\ Users \admin\Desktop\WebTime\build\web
GlassFish服务器,部署,拒绝连接:连接,false
C: \ Users \admin\Desktop\WebTime\\\
bproject\build-impl.xml:1045:该模块尚未部署。详情请参阅服务器日志。

作为编程新手,我需要提示纠正这个错误。请帮助我解决它。

解决方案



GlassFish服务器,部署,拒绝连接:连接,false



...是线索。



我有同样的错误,但我解决了它。步骤:
$ b $ 1)授予在glassfish服务器安装文件夹上写入权限。如果使用Windows,则路径为:
C:\程序文件\glassfish-xx

<2> Run C:\程序文件\glassfish-xx\bin\asadmin.bat 作为管理员。然后在控制台中输入: start-domain


$ b 3)清理并构建项目

4)部署



5)运行

JDK7


How to rectify module deployment error while using GlassFish Server?

While trying to run jsf web-application in Netbeans8 I am getting the following error:

ant -f C:\\Users\\admin\\Desktop\\WebTime -Dnb.internal.action.name=run -Ddirectory.deployment.supported=true -DforceRedeploy=false -Dnb.wait.for.caches=true -Dbrowser.context=C:\\Users\\admin\\Desktop\\WebTime run
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting GlassFish Server
GlassFish Server is running.
In-place deployment at C:\Users\admin\Desktop\WebTime\build\web
GlassFish Server, deploy, Connection refused: connect, false
C:\Users\admin\Desktop\WebTime\nbproject\build-impl.xml:1045: The module has not been deployed. See the server log for details.

Being new to programming, I need hint to rectify this error. Kindly help me to rectify it.

解决方案

The line:

GlassFish Server, deploy, Connection refused: connect, false

... is a clue.

I had the same error, but I solved it. The steps:

1) Grant privileges to write on the glassfish server installation folder. If you use Windows the path is: C:\Program Files\glassfish-xx

2) Run C:\Program Files\glassfish-xx\bin\asadmin.bat as Administrator. Then in the console type: start-domain

3) Clean and Build the project

4) Deploy

5) Run

PD: I recommend use JDK7

这篇关于如何在使用GlassFish服务器时纠正模块部署错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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