0

我试图将我的 clojure Web 应用程序部署到 Immutant 服务器。部署顺利,服务器正在运行。但是当我尝试从浏览器访问它时,它说:

JBWEB000065: HTTP Status 404 -

JBWEB000309: type JBWEB000067: Status report

JBWEB000068: message

JBWEB000069: description JBWEB000124: The requested resource is not available.

JBoss Web/7.2.0.Final

Web 应用程序没有错误,并且在我的本地系统和服务器上的码头上运行良好

lein immutant run -b 173.255.244.160

控制台输出:

 Starting Immutant: /home/devasia/.lein/immutant/current/jboss/bin/standalone.sh -b     173.255.244.160
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /home/devasia/.lein/immutant/current/jboss

  JAVA: java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -  Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

09:30:23,517 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
09:30:23,813 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
09:30:23,922 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss AS    7.x.incremental.673 "TBD" starting
09:30:25,133 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10) Initializing Immutant Core Subsystem
09:30:25,141 INFO  [org.immutant.common.as] (ServerService Thread Pool -- 15) Initializing Immutant Common Subsystem
09:30:25,145 INFO  [org.immutant.bootstrap.as] (ServerService Thread Pool -- 18) Initializing Immutant App Bootstrap Subsystem
09:30:25,151 INFO  [org.immutant.messaging.as] (ServerService Thread Pool -- 6) Initializing Immutant Messaging Subsystem
09:30:25,151 INFO  [org.immutant.daemons.as] (ServerService Thread Pool -- 22) Initializing Immutant Daemons Subsystem
09:30:25,155 INFO  [org.immutant.xa.as] (ServerService Thread Pool -- 4) Initializing Immutant XA Subsystem
09:30:25,156 INFO  [org.immutant.jobs.as] (ServerService Thread Pool -- 8) Initializing Immutant Jobs Subsystem
09:30:25,160 INFO  [org.projectodd.polyglot.cache.as] (ServerService Thread Pool -- 11) Initializing Polyglot Cache Subsystem
09:30:25,162 INFO  [org.immutant.web.as] (ServerService Thread Pool -- 3) Initializing Immutant Web Subsystem
09:30:25,164 INFO  [org.projectodd.polyglot.hasingleton.as] (ServerService Thread Pool -- 23) Initializing HA-Singleton Subsystem
09:30:25,164 INFO  [org.immutant.cache.as] (ServerService Thread Pool -- 21) Initializing Immutant Cache Subsystem
09:30:25,175 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10) Welcome to Immutant AS - http://immutant.org/
09:30:25,176 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)   version........... 1.x.incremental.800
09:30:25,176 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)   build............. 800
09:30:25,177 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)   revision.......... 3ef999cedd68d79d283803785e204ad1243e27dd +modifications
09:30:25,177 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)   built with:
09:30:25,180 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)     HornetQ......... 2.3.0.CR1 (buzzzzz!, 122)
09:30:25,180 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)     JBossAS......... 7.x.incremental.673
09:30:25,180 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)     Clojure......... 1.5.0
09:30:25,181 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)     Infinispan...... 5.2.1.Final
09:30:25,181 INFO  [org.immutant.core.as] (ServerService Thread Pool -- 10)     Quartz.......... 2.1.5
09:30:25,482 WARN  [org.jboss.as.server] (Controller Boot Thread) JBAS015883: No security realm defined for native management service; all access will be unrestricted.
09:30:25,490 INFO  [org.xnio] (MSC service thread 1-8) XNIO Version 3.0.7.GA
09:30:25,494 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
09:30:25,494 WARN  [org.jboss.as.server] (Controller Boot Thread) JBAS015884: No security realm defined for http management service; all access will be unrestricted.
09:30:25,500 INFO  [org.xnio.nio] (MSC service thread 1-8) XNIO NIO Implementation Version 3.0.7.GA
09:30:25,514 INFO  [org.jboss.remoting] (MSC service thread 1-8) JBoss Remoting version 3.2.14.GA
09:30:25,564 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 25) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
09:30:25,584 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 28) JBAS010280: Activating Infinispan subsystem.
09:30:25,631 WARN  [org.jboss.as.domain.http.api] (MSC service thread 1-5) JBAS015102: Unable to load console module for slot main, disabling console
09:30:25,643 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on 127.0.0.1:9999
09:30:25,671 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 35) JBAS013171: Activating Security Subsystem
09:30:25,674 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.15.Final)
09:30:25,695 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 32) JBAS011800: Activating Naming Subsystem
09:30:25,708 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.15.Final
09:30:25,781 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
09:30:26,193 INFO  [org.apache.coyote.http11] (MSC service thread 1-8) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/173.255.244.160:8080
09:30:26,199 INFO  [org.apache.coyote.http11] (MSC service thread 1-8) JBWEB003000: Coyote HTTP/1.1 starting on: http-/173.255.244.160:8080
09:30:26,397 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on 173.255.244.160:4447
09:30:26,406 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory    /home/devasia/.lein/immutant/current/jboss/standalone/deployments
09:30:26,441 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "listing.clj" (runtime-name: "listing.clj")
09:30:26,500 WARN  [org.jboss.as.messaging] (MSC service thread 1-5) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
09:30:26,527 INFO  [org.infinispan.factories.GlobalComponentRegistry] (ServerService Thread Pool -- 48) ISPN000128: Infinispan version: Infinispan 'Delirium' 5.2.1.Final
09:30:26,643 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221001: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=/home/devasia/.lein/immutant/current/jboss/standalone/data/messagingjournal,bindingsDirectory=/home/devasia/.lein/immutant/current/jboss/standalone/data/messagingbindings,largeMessagesDirectory=/home/devasia/.lein/immutant/current/jboss/standalone/data/messaginglargemessages,pagingDirectory=/home/devasia/.lein/immutant/current/jboss/standalone/data/messagingpaging)
09:30:26,646 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221008: Waiting to obtain live lock
09:30:26,850 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221017: Using NIO Journal
09:30:27,007 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221039: Waiting to obtain live lock
09:30:27,007 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221040: Live Server Obtained live lock
09:30:27,231 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 48) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:30:27,235 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 48) JBAS010281: Started __recoveryInfoCacheName__ cache from polyglot container
09:30:27,273 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 48) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:30:27,274 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 48) JBAS010281: Started default cache from polyglot container
09:30:27,445 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221024: Started Netty Acceptor version 3.6.2.Final-c0d783c 173.255.244.160:5455 for CORE protocol
09:30:27,447 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221024: Started Netty Acceptor version 3.6.2.Final-c0d783c 173.255.244.160:5445 for CORE protocol
09:30:27,449 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221009: Server is now live
09:30:27,449 INFO  [org.hornetq.core.server] (MSC service thread 1-2) HQ221003: HornetQ Server version 2.3.0.CR1 (buzzzzz!, 122) [0adf02af-8edd-11e2-a868-0d52633a1c04] 
09:30:27,500 INFO  [org.jboss.as.messaging] (ServerService Thread Pool -- 48) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
09:30:27,504 INFO  [org.jboss.as.messaging] (ServerService Thread Pool -- 49) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
09:30:40,249 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.0)
09:30:43,330 INFO  [com.mchange.v2.log.MLog] (MSC service thread 1-8) MLog clients using log4j logging.
09:30:49,880 INFO  [immutant.runtime] (MSC service thread 1-8) Initialized listing from :ring options in project.clj
09:30:49,916 INFO  [org.jboss.web] (ServerService Thread Pool -- 50) JBAS018210: Register web context: 
09:30:50,417 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "listing.clj" (runtime-name : "listing.clj")
09:30:50,426 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
09:30:50,427 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
09:30:50,427 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.x.incremental.673 "TBD" started in 27321ms - Started 135 of 180 services (45 services are passive or on-demand)

我正在使用 oracle java 7 运行 Ubuntu 12.04 LTS 32 位

4

1 回答 1

2

如果没有看到 project.clj,特别是 :ring 映射,很难知道发生了什么。当您说它在本地系统上运行良好时,是使用 Jetty 还是 Immutant?我会尝试确保它首先在 Immutant 上本地运行。我担心的一件事是缺少像“在子上下文路径中注册环处理程序:/ *”这样的日志消息。这要么表明我们的错误,要么可能表明您的 :ring 映射中的 :handler 条目有错误。这是一个非常简单的应用程序,您可以在某个地方(github?)发布并复制步骤吗?如果是这样,我很乐意自己尝试在本地运行它。

于 2013-03-17T23:33:44.103 回答