0

我在与Glassfish的4.0 + 7.4 Netbeans的... 问题每当我尝试运行项目中,我得到这个错误回报:“GlassFish应用服务器,部署,空,假”的错误

ant -f D:\\Projetos\\NetBeans\\Sullimar -Dbrowser.context=D:\\Projetos\\NetBeans\\Sullimar\\web\\index.html -DforceRedeploy=false -Dclient.urlPart=/index.html -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true -Dnb.internal.action.name=run.single run 
init: 
deps-module-jar: 
deps-ear-jar: 
deps-jar: 
library-inclusion-in-archive: 
library-inclusion-in-manifest: 
compile: 
compile-jsps: 
In-place deployment at D:\Projetos\NetBeans\Sullimar\build\web 
GlassFish Server, deploy, null, false 
D:\Projetos\NetBeans\Sullimar\nbproject\build-impl.xml:1045: The module has not been deployed. 
See the server log for details. 
BUILD FAILED (total time: 0 seconds) 

和我glassfish服务器输出:

Informations: visiting unvisited references 
Informations: Created HTTP listener http-listener-1 on host/port 0.0.0.0:2869 
Informations: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181 
Informatios: Created HTTP listener admin-listener on host/port 0.0.0.0:4848 
Grave: Cannot start container web, exception: A MultiException has 2 exceptions. They are: 
1. java.lang.IllegalArgumentException: virtual server server has an invalid docroot C:\Users\Thaís\GlassFish_Server\glassfish\domains\domain1/docroot 
2. java.lang.IllegalStateException: Unable to perform operation: post construct on com.sun.enterprise.web.WebContainer 

Grave: Aborting, Failed to start container com.sun.enterprise.web.WebContainer 
Grave: Exception while deploying the app [Sullimar] 
Grave: Exception during lifecycle processing 
java.lang.Exception: Aborting, Failed to start container com.sun.enterprise.web.WebContainer 
    at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:736) 
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:374) 
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) 
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at javax.security.auth.Subject.doAs(Subject.java:356) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762) 
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674) 
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) 
    at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) 
    at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297) 
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246) 
    at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191) 
    at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168) 
    at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189) 
    at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) 
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288) 
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206) 
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136) 
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114) 
    at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) 
    at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838) 
    at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113) 
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) 
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55) 
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135) 
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564) 
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544) 
    at java.lang.Thread.run(Thread.java:744) 

Grave: Exception while deploying the app [Sullimar] : Aborting, Failed to start container com.sun.enterprise.web.WebContainer 

我该如何解决这些错误?在我的服务选项卡中,我可以访问我的数据库,并且与我的Sullimar数据库的数据库连接工作正常(我可以查看数据...),因此我不能解决问题。 非常感谢!

+0

我遇到了与Netbeans 8相同的问题在Windows 8.1上。尝试从JDK 8切换到JDK 7,但它没有帮助。服务器正在运行JDK 7,它在另一台机器上的Windows 7中确实与Netbeans 8配合使用。我可以从服务树中的Netbeans连接到服务器,但部署只是不会出现同样的错误'“GF4,deploy,null,false” D:\ src \ java \ netbeans \ nbproject \ build-impl.xml: 336: 该模块尚未部署。 查看服务器日志的详细信息.' 服务器日志完全空白,这很奇怪 - 我正在运行调试模式。 – Atorian

+0

你解决了你的问题吗? –

回答

0

看看你的server.log文件。 它位于/$YouGlassfishRoot/glassfish/domains/$Domain/logs/server.log 该问题可能是您的服务器的jdk版本。

0

得到了S.O.B的工作。原来,Windows防火墙阻止了Netbeans(因为它应该),无论出于什么原因需要传入连接进行部署。

尝试创建一个规则,允许入站TCP的C:\program files\netbeans 8.0\bin\netbeans64.exe

0

我在Windows 7上也有类似的问题,因为你是来晚了,但它可以帮助别人。首先,GLASSFISH_INSTALATION_DIRECTORY \ glassfish \ domains \ domain1 \ logs中没有server.log文件,原因是我的用户没有权限在GLASSFISH_INSTALATION_DIRECTORY中任何地方写入(glassfish已安装netbeans)

修复后I发现“...资源无效:jdbc/...”异常并修复可以在此网页找到https://netbeans.org/kb/docs/web/jsf20-crud.html疑难解答段落

0

错误很简单,您需要在WEB-INF/web.xml中删除

enter image description here

相关问题