emm*_*emm 3 java jsf 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 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.
Run Code Online (Sandbox Code Playgroud)
作为编程新手,我需要提示来纠正这个错误.请帮我纠正它.
这条线:
GlassFish Server, deploy, Connection refused: connect, false
......是一个线索.
我有同样的错误,但我解决了.步骤:
1)授予在glassfish服务器安装文件夹上写入的权限.如果使用Windows,则路径为: C:\ Program Files\glassfish-xx
2)以管理员身份运行C:\ Program Files\glassfish-xx\bin\asadmin.bat.然后在控制台类型中:start-domain
3)清理并构建项目
4)部署
5)跑
PD:我建议使用JDK7
| 归档时间: |
|
| 查看次数: |
19007 次 |
| 最近记录: |