JBoss 7停止响应

时间:2013-08-19 14:54:29

标签: java-ee deployment jboss jboss7.x

有时,在我向standalone/deployments文件夹部署战争之后,JBoss像往常一样启动,部署应用程序时没有任何错误,并且...... BLANK PAGE。

看起来它没有收听我的8080端口,我的请求只是没有被执行!

我手动部署,或通过Eclipse Jboss工具部署,我尝试再次下载所有软件的最新版本,即使在不同的操作系统上也是如此。

无。 然后,我尝试重启AS ...它工作,下次重启...它没有:(( 这是随机行为!

我想象JBoss的“web模块”(或者你称之为)在服务器启动时没有启动,我将“工作”时间的启动日志与“不工作”时间进行比较......他们是同样的。

> fabio$
> /Applications/jboss/bin/standalone.sh 
> =========================================================================
> 
>   JBoss Bootstrap Environment
> 
>   JBOSS_HOME: /Applications/jboss
> 
>   JAVA:
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
> 
>   JAVA_OPTS: -d32 -client -Xms64m -Xmx512m -XX:MaxPermSize=256m
> -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
> 
> =========================================================================
> 
> 16:52:36,841 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
> 16:52:37,325 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
> 16:52:37,360 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final
> "Brontes" starting 16:52:38,923 INFO  [org.xnio] XNIO Version 3.0.3.GA
> 16:52:38,923 INFO  [org.jboss.as.server] JBAS015888: Creating http
> management service using socket-binding (management-http) 16:52:38,930
> INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
> 16:52:38,935 INFO  [org.jboss.remoting] JBoss Remoting version
> 3.2.3.GA 16:52:38,957 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers 16:52:38,960 INFO 
> [org.jboss.as.configadmin] (ServerService Thread Pool -- 26)
> JBAS016200: Activating ConfigAdmin Subsystem 16:52:38,970 INFO 
> [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31)
> JBAS010280: Activating Infinispan subsystem. 16:52:38,984 INFO 
> [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940:
> Activating OSGi Subsystem 16:52:38,986 INFO  [org.jboss.as.naming]
> (ServerService Thread Pool -- 38) JBAS011800: Activating Naming
> Subsystem 16:52:38,999 INFO  [org.jboss.as.security] (ServerService
> Thread Pool -- 44) JBAS013101: Activating Security Subsystem
> 16:52:39,011 INFO  [org.jboss.as.security] (MSC service thread 1-7)
> JBAS013100: Current PicketBox version=4.0.7.Final 16:52:39,022 INFO 
> [org.jboss.as.connector] (MSC service thread 1-8) JBAS010408: Starting
> JCA Subsystem (JBoss IronJacamar 1.0.9.Final) 16:52:39,039 INFO 
> [org.jboss.as.webservices] (ServerService Thread Pool -- 48)
> JBAS015537: Activating WebServices Extension 16:52:39,088 INFO 
> [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting
> Naming Service 16:52:39,090 INFO  [org.jboss.as.mail.extension] (MSC
> service thread 1-4) JBAS015400: Bound mail session
> [java:jboss/mail/Default] 16:52:39,151 INFO 
> [org.jboss.as.connector.subsystems.datasources] (ServerService Thread
> Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class
> org.h2.Driver (version 1.3) 16:52:39,232 INFO 
> [org.jboss.as.connector.subsystems.datasources] (ServerService Thread
> Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class
> com.mysql.jdbc.Driver (version 5.1) 16:52:39,245 INFO 
> [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1)
> Starting Coyote HTTP/1.1 on http--0.0.0.0-8080 16:52:39,421 INFO 
> [org.jboss.as.connector.subsystems.datasources] (MSC service thread
> 1-3) JBAS010400: Bound data source [java:jboss/datasources/effebiDS]
> 16:52:39,421 INFO  [org.jboss.as.connector.subsystems.datasources]
> (MSC service thread 1-2) JBAS010400: Bound data source
> [java:jboss/datasources/eyecloud] 16:52:39,422 INFO 
> [org.jboss.as.connector.subsystems.datasources] (MSC service thread
> 1-3) JBAS010400: Bound data source
> [java:jboss/datasources/TicketMonsterDS] 16:52:39,422 INFO 
> [org.jboss.as.connector.subsystems.datasources] (MSC service thread
> 1-1) JBAS010400: Bound data source [java:jboss/datasources/svapp]
> 16:52:39,483 INFO 
> [org.jboss.ws.common.management.AbstractServerConfig] (MSC service
> thread 1-5) JBoss Web Services - Stack CXF Server 4.0.2.GA
> 16:52:39,650 INFO  [org.jboss.as.server.deployment.scanner] (MSC
> service thread 1-6) JBAS015012: Started FileSystemDeploymentService
> for directory /Applications/jboss/standalone/deployments 16:52:39,658
> INFO  [org.jboss.as.server.deployment.scanner]
> (DeploymentScanner-threads - 1) JBAS015003: Found svapp.war in
> deployment directory. To trigger deployment create a file called
> svapp.war.dodeploy 16:52:39,680 INFO  [org.jboss.as.remoting] (MSC
> service thread 1-3) JBAS017100: Listening on /0.0.0.0:4447
> 16:52:39,680 INFO  [org.jboss.as.remoting] (MSC service thread 1-4)
> JBAS017100: Listening on /0.0.0.0:9999 16:52:39,780 INFO 
> [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876:
> Starting deployment of "svapp.war" ... (follows app deployment)

我可以先检查什么?

修改

HTTP响应代码确实是404(在chrome中的dev控制台中看到),但错误页面不是jboss默认页面,而是空白页面!

3 个答案:

答案 0 :(得分:1)

JBoss 8(Wildfly)修复了这个问题。我们永远不会知道:)。

答案 1 :(得分:0)

如果您的JBoss没有在8080收听,您将不会收到空白页面,但浏览器出现连接错误。

如果您的应用程序在重新启动应用程序后没有更改部署文件夹中的任何内容而正常工作,那么您的应用程序包是正确的,但未正确部署/初始化。

您使用的是WAR文件还是爆炸部署?可能是您的热部署无法正常工作的情况。我建议在部署之后使用eclipse中的“重启应用程序”按钮(在JBoss中再次启动应用程序,而不是JBoss本身) - 至少我在尝试从eclipse中进行热部署时遇到了类似的行为。 / p>

答案 2 :(得分:0)

我在启动JBOSS 6.0时也遇到了同样的问题。

Jboss因以下错误而无法响应 15:27:19,391 INFO [service]删除引导程序日志处理程序

我发现的问题是JBOSS生成的日志文件锁定。 例如:server.log。我删除了日志文件,然后启动了服务器,它就开始运行了。

我也发现以下文章有帮助 https://developer.jboss.org/thread/170190?tstart=0&_sscc=t