有时,在我将战争部署到我的standalone/deployments
文件夹后,JBoss 会像往常一样启动,部署应用程序时不会出现任何错误,然后......空白页。
看起来它没有在监听我的 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 的开发控制台中看到),但是错误页面不是 jboss 默认的,而是一个空白页面!