Hi all,
I am using struts-2.0.9 on Apache Tomcat 6.0.13 using Java 6.
We are using the struts1plugin, because we wish to use DispatchAction as
the base class for each of our actions.
I have the following configuration:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd
<http://struts.apache.org/dtds/struts-2.0.dtd> ">
<struts>
<package name="au.com.madman.amadeo.struts.actions.rebates"
extends="struts1-default">
<interceptors>
<interceptor name="adhocRebateActionForm"
class="
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor"
>
<param
name="className">au.com.madman.amadeo.struts.actionforms.rebates.AdhocRe
bateActionForm</param>
<param
name="name">adhocRebateActionForm</param>
<param name="scope">request</param>
</interceptor>
</interceptors>
<action name="adhocrebateaction"
class="org.apache.struts2.s1.Struts1Action">
<param
name="className">au.com.madman.amadeo.struts.actions.rebates.AdhocRebate
Action</param>
<result name="view">view.jsp</result>
<result name="list">list.jsp</result>
<result name="save">save.jsp</result>
<interceptor-ref name="adhocRebateActionForm" />
</action>
</package>
</struts>
However, I am getting the stack trace below. From what I can tell, the
className parameter isn't being passed to the Struts1Action.
Can anyone tell me what I am doing wrong?
Many thanks in advance,
Rane.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Unable to create the legacy Struts
Action - action -
file:/D:/projects/workspace/.metadata/.plugins/org.eclipse.wst.server.co
re/tmp2/wtpwebapps/amadeo/WEB-INF/classes/rebates-config.xml:15:80
<outbind://83/D:/projects/workspace/.metadata/.plugins/org.eclipse.wst.s
erver.core/tmp2/wtpwebapps/amadeo/WEB-INF/classes/rebates-config.xml:15:
80>
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:5
15)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:419)
root cause
Unable to create the legacy Struts Action - action -
file:/D:/projects/workspace/.metadata/.plugins/org.eclipse.wst.server.co
re/tmp2/wtpwebapps/amadeo/WEB-INF/classes/rebates-config.xml:15:80
<outbind://83/D:/projects/workspace/.metadata/.plugins/org.eclipse.wst.s
erver.core/tmp2/wtpwebapps/amadeo/WEB-INF/classes/rebates-config.xml:15:
80>
org.apache.struts2.s1.Struts1Action.execute(Struts1Action.java:72)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
java.lang.reflect.Method.invoke (
Method.java:597)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActi
onInvocation.java:404)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(Default
ActionInvocation.java:267)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:229)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
:50)
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:5
04)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:419)
root cause
java.lang.NullPointerExceptionsun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:269)
java.lang.ClassLoader.loadClass (
ClassLoader.java:251)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1273)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1204)
com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.j
ava:139)
com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.jav
a:100)
com.opensymphony.xwork2.ObjectFactory.buildBean (
ObjectFactory.java:153)
com.opensymphony.xwork2.ObjectFactory.buildBean (
ObjectFactory.java:143)
org.apache.struts2.s1.Struts1Action.execute(Struts1Action.java:70)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
java.lang.reflect.Method.invoke (
Method.java:597)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActi
onInvocation.java:404)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(Default
ActionInvocation.java:267)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:229)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
:50)
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:5
04)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:419)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.13 logs.
The Madman group of companies (wholly owned Subsidiaries of Funtastic Limited ABN 94 063 886 199)
--------------------------------------------------------
This email is confidential and is intended solely for the individual(s) and/or entity(ies) addressed. If you are not the intended recipient you must not disclose or use the information contained in it. If you have received this email in error please notify us immediately by return email and delete the document. Funtastic is not responsible for any changes made to the document other than those made by Funtastic or for the effect of the changes on the document's meaning. The use, copying or distribution of this message or any information it contains, by anyone other than the intended recipient (s), is not permitted. All e-mail sent or received by a funtastic.com.au email account is subject to security scanning and will be dealt with in accordance with the Information Privacy Act 2000 (Vic) and Funtastic's policies. Funtastic accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorised access.--end sig2--
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)