求教:webwork配置問題
初用webwork,配置完畢後,執行jsp頁面,只做了一個text表單的提交,但提交後,console報出如下問題:嚴重: Unable to load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor for interceptor name autowiring. This interceptor will not be available.
Cause: Could not load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor. Perhaps it exists but certain dependencies are not available?
2008-7-20 7:47:10 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
嚴重: Unable to find interceptor class referenced by ref-name defaultStack
2008-7-20 7:47:10 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
嚴重: Unable to find interceptor class referenced by ref-name defaultStack
隨後我檢視了一下web.xml和寫好的xwork.xml檔案,實在找不出原因何在,請教各位,兩檔案配置如下:
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>webwork</servlet-name>
<servlet-class>
com.opensymphony.webwork.dispatcher.ServletDispatcher
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>webwork</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/webwork.tld</taglib-location>
</taglib>
</web-app>
xwork.xml:
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<include file="webwork-default.xml"></include>
<package name="test" extends="webwork-default">
<action name="hello" class="com.dnasell.test.HelloWorld">
<result name="success" type="dispatcher">/hello.jsp</result>
<result name="input" type="dispatcher">/index.jsp</result>
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
</package>
</xwork>
Cause: Could not load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor. Perhaps it exists but certain dependencies are not available?
2008-7-20 7:47:10 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
嚴重: Unable to find interceptor class referenced by ref-name defaultStack
2008-7-20 7:47:10 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
嚴重: Unable to find interceptor class referenced by ref-name defaultStack
隨後我檢視了一下web.xml和寫好的xwork.xml檔案,實在找不出原因何在,請教各位,兩檔案配置如下:
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>webwork</servlet-name>
<servlet-class>
com.opensymphony.webwork.dispatcher.ServletDispatcher
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>webwork</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/webwork.tld</taglib-location>
</taglib>
</web-app>
xwork.xml:
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<include file="webwork-default.xml"></include>
<package name="test" extends="webwork-default">
<action name="hello" class="com.dnasell.test.HelloWorld">
<result name="success" type="dispatcher">/hello.jsp</result>
<result name="input" type="dispatcher">/index.jsp</result>
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
</package>
</xwork>
相關文章
- [求教]FC4下安裝APACHE配置問題(轉)Apache
- 求教JetSpeed開發問題
- 請教個jf和webwork的問題Web
- Java初學者有問題求教Java
- Java,MySQL中文亂碼問題求教JavaMySql
- webwork.properties配置說明Web
- excel多指標柱圖問題求教Excel指標
- benq大哥,第七章問題求教ENQ
- 求教:用eslips 建工程的問題
- 關於struts,webwork,jetspeed,turbine等的適用性問題Web
- python 小白求教一個字串顯示問題Python字串
- 用jbuilder執行jive出現的問題,求教!UI
- 【求教:如何解決 java 浮點數精度問題】Java
- 求教執行EJB程式時出現的問題
- 求教 banq 大哥關於網際網路問題
- 求教一個觀察者模式應用的問題模式
- 請高人幫我看看webwork使用Validator驗證的問題Web
- 求教併發問題(非常急,線上等,高手賜教)
- webwork 中 external-ref 和interceptor-ref 共同用出現問題Web
- webwork在系統重啟的時候的初始化問題Web
- 求教:關於Eclipse+lomboz3.0+jboss3.2.5的問題EclipseS3
- freemarker+webwork+ebj2+Hibernate3開發物件傳遞問題Web物件
- C++關於DLL中建立套接字的問題(求教)C++
- (求教)關於js函式按值、引用傳遞的問題JS函式
- 求教 關於分頁技術提交後的處理問題
- Struts vs WebworkWeb
- bootstrap 配置問題boot
- 求教 一個java取php session的問題 急 請板橋里人指教~~~JavaPHPSession
- 求教怎樣使用commons-dbcp元件的連線池問題元件
- 求教牛人們 開源軟體 與 商業軟體的問題
- 求教,求教:程式走不到Action
- 百度實習生筆試題求教筆試
- 求教!!!
- 求教一個BO和ESSBASE資料庫連線開發問題資料庫
- 小妹求教!IPV6下的udp網路程式設計問題!(轉)UDP程式設計
- Nginx 配置遇到問題Nginx
- ASM基本配置問題ASM
- Jbuilder的配置問題?UI