Cruisecontrol cruisecontrol Error 404 - Not Found.

liuxue.gu@hotmail.com · 2009年11月09日 · 7 次阅读

版本 2.8.2 OS: windows 2008 server R2

下载了最新版本的 Cruisecontrol 解压 到了 D:\DevEnv\cruisecontrol-bin-2.8.2 然后在此目录下运行 D:\DevEnv\cruisecontrol-bin-2.8.2>cruisecontrol.bat

打开 IE 查看,居然是 404 Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are: /cc-config ---> org.mortbay.jetty.webapp.WebAppContext@c42804{/cc-config,file:/D:/DevEnv/cruisecontrol-bin-2.8.2/webapps/cc-config/} /cruisecontrol ---> org.mortbay.jetty.webapp.WebAppContext@1f327e{/cruisecontrol,file:/D:/DevEnv/cruisecontrol-bin-2.8.2/webapps/cruisecontrol/} /dashboard ---> org.mortbay.jetty.webapp.WebAppContext@2bfa91{/dashboard,file:/D:/DevEnv/cruisecontrol-bin-2.8.2/webapps/dashboard/} /documentation ---> org.mortbay.jetty.webapp.WebAppContext@14f5a31{/documentation,file:/D:/DevEnv/cruisecontrol-bin-2.8.2/webapps/documentation/}

[attach] 604[/attach]

[[i] 本帖最后由 scmroad 于 2009-11-9 17:50 编辑 ]

这种情况我也遇到过,你在后面加上下面的名称就可以查看了, 运行 cruisecontrol.bat 后,输入: http://localhost:8080/dashboard 通过这个链接可以查看状态 http://localhost:8080/cruisecontrol 通过这个链接可以查看构建结果,历史记录等 http://localhost:8080/documentation/ 查看文档

http://localhost:8080/dashboard

MX4J - Exception Code: 404 Message: file net\sourceforge\cruisecontrol\jmx\xsl\dashboard not found

http://localhost:8080/cruisecontrol

CruiseControl JMX Console

MX4J - Exception Code: 404 Message: file net\sourceforge\cruisecontrol\jmx\xsl\cruisecontrol not found

http://localhost:8080/documentation/

CruiseControl JMX Console

MX4J - Exception Code: 404 Message: file net\sourceforge\cruisecontrol\jmx\xsl\documentation not found

Jetty 起来了没?

你在命令行启动 cruisecontrol.bat,看报什么错,注意检查下端口有没被占用等

cruisecontrol-bin-2.7.1 启动没有问题啊。

我记得 net\sourceforge\cruisecontrol\jmx\xsl\ 这个下面本来就不存在它说的找不着的这些文件,但是为什么启动的时候要去找呢?是不是哪里配置错了。 如果是用http://localhost:8080xsl 文件应该是 webapps\cruisecontrol\xsl\buildresults.xsl 才对的呀。启动的话,它使用的

D:\DevEnv\cruisecontrol-bin-2.8.2>cruisecontrol.bat >ini.log 我把启动时的信息输入到了这个文件里,ms 是没什么问题

"C:\Java\jdk1.6.0_12\bin\java" -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder "-Djetty.logs=logs" -jar "D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol-launcher.jar" -jmxport 8000 -webport 8080 -rmiport 1099 WARNING: cc.home reset to D:\DevEnv\cruisecontrol-bin-2.8.2 Classpath: D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol-launcher.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\activation.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\ant-launcher.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\ant.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\comm.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-codec-1.3.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-httpclient-3.0.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-logging.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-net-1.1.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-validator-1.3.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\core-3.1.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol-antprogresslogger.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol-launcher.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\emma.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\emma_ant.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\fast-md5.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\ivy-2.0.0-beta2.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jakarta-oro-2.0.8.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jaxen-1.1-beta-8.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jdom.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jetty-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jetty-ajp-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jetty-util-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jsp-2.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jsp-api-2.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jug-lgpl-2.0.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\junit-4.4.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\log4j.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mail.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\maven-embedder-2.0.4-dep.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mx4j-remote.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mx4j-tools.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mx4j.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\saxon9-dom.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\saxon9.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\serializer-2.7.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\servlet-api-2.5-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\smack.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\smackx.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\x10.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xercesImpl-2.8.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xml-apis-2.8.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xmlrpc-2.0.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xpp3_min-1.1.3.4.O.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xstream-1.2.2.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\activation.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\ant-launcher.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\ant.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\comm.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-codec-1.3.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-httpclient-3.0.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-logging.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-net-1.1.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\commons-validator-1.3.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\core-3.1.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol-antprogresslogger.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol-launcher.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\cruisecontrol.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\emma.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\emma_ant.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\fast-md5.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\ivy-2.0.0-beta2.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jakarta-oro-2.0.8.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jaxen-1.1-beta-8.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jdom.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jetty-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jetty-ajp-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jetty-util-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jsp-2.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jsp-api-2.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\jug-lgpl-2.0.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\junit-4.4.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\log4j.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mail.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\maven-embedder-2.0.4-dep.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mx4j-remote.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mx4j-tools.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\mx4j.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\saxon9-dom.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\saxon9.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\serializer-2.7.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\servlet-api-2.5-6.1.11.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\smack.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\smackx.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\x10.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xercesImpl-2.8.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xml-apis-2.8.0.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xmlrpc-2.0.1.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xpp3_min-1.1.3.4.O.jar;D:\DevEnv\cruisecontrol-bin-2.8.2\lib\xstream-1.2.2.jar;C:\Java\jdk1.6.0_12\lib\tools.jar;.;D:\DevEnv\cruisecontrol-bin-2.8.2\ [cc]ʮһÔÂ-10 12:55:31 Main - CruiseControl Version 2.8.2 Compiled on January 12 2009 1535 [cc]ʮһÔÂ-10 12:55:31 LConfigManager- reading settings from config file [D:\DevEnv\cruisecontrol-bin-2.8.2\config.xml] [cc]ʮһÔÂ-10 12:55:31 trolController- projectName = [connectfour] [cc]ʮһÔÂ-10 12:55:31 LConfigManager- using settings from config file [D:\DevEnv\cruisecontrol-bin-2.8.2\config.xml] [cc]ʮһÔÂ-10 12:55:31 Project - Project connectfour starting [cc]ʮһÔÂ-10 12:55:31 Project - Project connectfour: idle [cc]ʮһÔÂ-10 12:55:31 Project - Project connectfour started [cc]ʮһÔÂ-10 12:55:31 Project - Project connectfour: next build in 5 minutes [cc]ʮһÔÂ-10 12:55:31 Project - Project connectfour: waiting for next time to build [cc]ʮһÔÂ-10 12:55:32 ontrollerAgent- Starting HttpAdaptor with CC-Stylesheets [cc]ʮһÔÂ-10 12:55:32 ontrollerAgent- starting httpAdaptor [cc]ʮһÔÂ-10 12:55:32 ontrollerAgent- starting rmiRegistry [cc]ʮһÔÂ-10 12:55:32 ontrollerAgent- starting connectorServer [cc]ʮһÔÂ-10 12:55:34 BuildQueue - BuildQueue started

D:\DevEnv\cruisecontrol-bin-2.8.2>cruisecontrol.bat >ini.log 2009-11-10 12:55:32.633::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2009-11-10 12:55:32.704::INFO: jetty-6.1.11 2009-11-10 12:55:32.423:/dashboard:INFO: Initializing Spring root WebApplicationContext 2009-11-10 12:55:33.041:/dashboard:INFO: Set web app root system property: 'webapp.root' = [D:\DevEnv\cruisecontrol-bin-2.8.2\webapps\dashboard] 2009-11-10 12:55:33.059:/dashboard:INFO: Initializing Spring FrameworkServlet 'spring-ajax' 2009-11-10 12:55:33.166:/dashboard:INFO: Initializing Spring FrameworkServlet 'spring-exceptions' 2009-11-10 12:55:34.405:/dashboard:INFO: Initializing Spring FrameworkServlet 'spring-pages' 2009-11-10 12:55:34.559:/dashboard:INFO: Initializing Spring FrameworkServlet 'spring-tabs' 2009-11-10 12:55:34.884::INFO: Opened D:\DevEnv\cruisecontrol-bin-2.8.2\logs\2009_11_10.request.log 2009-11-10 12:55:34.897::INFO: Started SelectChannelConnector@0.0.0.0:8080

我只是把 cruisecontrol-bin-2.8.2.zip 解压,然后到文件夹下运行了那个 bat 文件,其他啥也没做。不知道为啥

看 log 一切正常,没有啥子问题。加载的东西也都没问题,偶也不知道了。

你可以下载一个 cruisecontrol-bin-2.8.2.zip 试试,反正解压就可以运行,也不需要安装的。你看看会不会出现我这个问题。

需要 登录 后方可回复。