jetty7报错,在linux环境下,有的机器正常,有的机器报错。页面404

[root@DG-NMSDATA02 bin]# sh start.sh
Runing: exec /usr/java/jdk1.6.0_24/bin/java -Xms1g -Xmx1g -XX:PermSize=128m -XX:MaxPermSize=128m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:-UseConcMarkSweepGC -XX:+UseParNewGC -server -Djetty.home=./.. -Ddcms.home=./.. -Dfile.encoding=UTF8 -Ddcms.log.home=./.. -DSTOP.COSHIPBI.JETTY=jetty_stop_coship_idc_dcms -cp "./../standalone.jar:./../lib/ant-1.6.5.jar:./../lib/jetty-ajp-7.0.2.v20100331.jar:./../lib/jetty-continuation-7.0.2.v20100331.jar:./../lib/jetty-http-7.0.2.v20100331.jar:./../lib/jetty-io-7.0.2.v20100331.jar:./../lib/jetty-security-7.0.2.v20100331.jar:./../lib/jetty-server-7.0.2.v20100331.jar:./../lib/jetty-servlet-7.0.2.v20100331.jar:./../lib/jetty-util-7.0.2.v20100331.jar:./../lib/jetty-webapp-7.0.2.v20100331.jar:./../lib/jetty-xml-7.0.2.v20100331.jar:./../lib/jsp-2.1-glassfish-2.1.v20091210.jar:./../lib/jsp-2.1-jetty-6.1.26.jar:./../lib/jsp-api-2.1-glassfish-2.1.v20091210.jar:./../lib/mysql-connector-java-5.0.4-bin.jar:./../lib/servlet-api-2.5.jar:./../lib/wrapper.jar" com.coship.standalone.main.Main
[root@DG-NMSDATA02 bin]# Starting jetty from configuration file /usr/local/ott/idc/dcms/bi-dcms-jetty/bin/./../etc/jetty.xml
2014-02-21 10:03:37.724:INFO::Logging to StdErrLog::DEBUG=false via org.eclipse.jetty.util.log.StdErrLog
2014-02-21 10:03:37.920:INFO::jetty-7.0.2.v20100331
2014-02-21 10:03:37.970:INFO::Extract jar:file:/usr/local/ott/idc/dcms/bi-dcms-jetty/webapps/dcms.war!/ to /usr/local/ott/idc/dcms/bi-dcms-jetty/work/Jetty_0_0_0_0_8089_dcms.war__dcms__3f7tg2/webapp
2014-02-21 10:03:42.116:INFO:/dcms:Initializing Spring root WebApplicationContext
[INFO ] 10:03:42 com.coship.idc.common.util.IdcUtils
###DCMS###-->> run on jetty!config path :./../etc/
[INFO ] 10:03:42 com.coship.idc.common.util.LoderPropertyConfigure loadProperties
Loading properties file from file [/usr/local/ott/idc/dcms/bi-dcms-jetty/bin/./../etc/datasource.properties]
[INFO ] 10:03:42 com.coship.idc.hive.util.HiveConnetionPool getConnection
当前总连接数:0
[INFO ] 10:03:43 com.coship.idc.task.InitHiveMiddleTable afterPropertiesSet
######################init table end!
2014-02-21 10:03:44.499:WARN::FAILED jsp: java.lang.NoClassDefFoundError: org/mortbay/log/Log
2014-02-21 10:03:44.539:INFO:/dcms:Initializing Spring FrameworkServlet 'springmvc'
2014-02-21 10:03:45.320:WARN::FAILED WebAppContext@195b6aad@195b6aad/dcms,file:/usr/local/ott/idc/dcms/bi-dcms- java.lang.NoClassDefFoundError: org/mortbay/log/Log
2014-02-21 10:03:45.320:WARN::FAILED ContextHandlerCollection@40b890dc: java.lang.NoClassDefFoundError: org/mortbay/log/Log
2014-02-21 10:03:45.322:INFO::Opened /usr/local/ott/idc/dcms/bi-dcms-jetty/logs/2014_02_21.test.log
2014-02-21 10:03:45.323:WARN::FAILED HandlerCollection@264d40df: java.lang.NoClassDefFoundError: org/mortbay/log/Log
2014-02-21 10:03:45.323:WARN::Error starting handlers
java.lang.NoClassDefFoundError: org/mortbay/log/Log
at com.sun.org.apache.commons.logging.JettyLog.(JettyLog.java:36)
at com.sun.org.apache.commons.logging.LogFactory.getLog(LogFactory.java:35)
at org.apache.jasper.runtime.JspFactoryImpl.(JspFactoryImpl.java:84)
at org.apache.jasper.compiler.JspRuntimeContext.(JspRuntimeContext.java:73)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:99)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:421)
at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:245)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:694)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:193)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:966)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:230)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at com.coship.standalone.main.Main.main(Main.java:62)

1个回答

估计包冲突了,lib/jsp-2.1-glassfish-2.1.v20091210.jar:./../lib/jsp-2.1-jetty-6.1.26.jar:./../lib/jsp-api-2.1-glassfish-2.1.v20091210.jar:./ 看起来很可疑

illiqiang
javahahahne jetty7 要支持jsp需要把jetty6里面的几个jar放进来
接近 6 年之前 回复
iteye_7251
iteye_7251 jsp-2.1-jetty-6.1.26.jar 这个貌似是jetty6的jar。。。
接近 6 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问