我得到了這個頁面:錯誤的條紋
HTTP Status 404 -
type Status report
message
description The requested resource() is not available.
Apache Tomcat/7.0.11
這是出現在控制檯:
SEVERE: Exception starting filter StripesFilter
我遵循了這一努力,有什麼事情我都忘了嗎? http://www.stripesframework.org/display/stripes/Quick+Start+Guide
我使用Tomcat 7.0,Java的1.6.0_24,使用Eclipse下的動態Web項目,這是我的Eclipse版本:
Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 1
Build id: 20100917-0705
如果它有一個軸承,我使用的是Mac OS X
詳細的錯誤消息:
SEVERE: Exception starting filter StripesFilter
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at net.sourceforge.stripes.util.Log.getInstance(Log.java:43)
at net.sourceforge.stripes.controller.StripesFilter.<clinit>(StripesFilter.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4542)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5220)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5215)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
我拖stripes.jar從Finder(Mac的Windows資源管理器)到WEB-INF/lib,它不起作用。我也嘗試過「導入...」並選擇了存檔文件,但它並沒有起作用。 – Hao 2011-03-19 14:37:01
通過你的堆棧跟蹤來判斷,你缺少'commons-logging.jar'。如果你找到這個文件並將它複製到WEB-INF/lib中,它應該可以解決這個問題。 – aroth 2011-03-20 00:49:47