404错误 - Jenkins没有运行,但Tomcat是

时间:2017-04-03 09:01:00

标签: jenkins http-status-code-404 tomcat8

我是这个领域的新人。我看到Tomcat服务正在运行。

我通过输入网址http://localhost:8080验证了这一点。

Tomcat running here

但是当我输入http://localhost:8080/jenkins时,我收到404错误。

404 Error

我已验证<TOMCAT_HOME>/webapps/jenkins.war的可用性。

Jenkins.war is available

这是否意味着我必须重新安装 Tomcat和Jenkins ?或者还有什么我需要做的事情吗?

更新:

我从这里下载了jenkins.war版本1.658 - https://updates.jenkins-ci.org/download/war/并用相对较新的版本(版本1.658)替换旧的jenkins.war(版本1.568)。当我尝试http://localhost:8080/jenkins -

时,我收到了带有stacktrace的错误消息
AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"? See also: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+got+java.awt.headless+problem
java.lang.UnsatisfiedLinkError: no freetype in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.font.FontManagerNativeLibrary$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerNativeLibrary.<clinit>(Unknown Source)
    at sun.font.SunFontManager$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.SunFontManager.<clinit>(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at sun.font.FontManagerFactory$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerFactory.getInstance(Unknown Source)
    at java.awt.Font.getFont2D(Unknown Source)
    at java.awt.Font.getFamily(Unknown Source)
    at java.awt.Font.getFamily_NoClientCode(Unknown Source)
    at java.awt.Font.getFamily(Unknown Source)
    at java.awt.Font.toString(Unknown Source)
    at hudson.util.ChartUtil.<clinit>(ChartUtil.java:255)
    at hudson.WebAppMain.contextInitialized(WebAppMain.java:186)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

1 个答案:

答案 0 :(得分:0)

安装的jdk存在差异。

更多信息:如果要升级jdk版本,则必须擦除旧版本的jdk并卸载Jenkins。如果您通过Tomcat运行Jenkins,则必须卸载它,并且必须重新安装所有内容。