Can you verify that the struts.xml is in the WAR file, and the location of it?

/Ian

Danny Hurlburt wrote:

Hello,

I am new to Struts2 and am running into some problems. I have read much of the
documentation on the wiki but I am still stuck.

I have added the filter declaration and filter mapping to web.xml. I have
confirmed that it gets invoked by setting a breakpoint in the doFilter
method. I have created the following struts.xml:

<!DOCTYPE struts PUBLIC
   "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
   "http://struts.apache.org/dtds/struts-2.0.dtd";>
<struts>
   <package name="root" extends="struts-default" namespace="/">
       <action name="HelloWorld" class="tutorial.HelloWorld">
           <result>/HelloWorld.jsp</result>
       </action>
   </package>
</struts>

I don't have a struts.properties file. I have not set any init-params for the Struts2 filter in web.xml. That is, the default constant configuration is in
effect.

This is running in a web app with a context path of rgg. When making the
following request

http://localhost:7070/rgg/HelloWorld.action

I get the following stack trace (trimmed down for brevity):

There is no Action mapped for namespace / and action name HelloWorld. - [unknown location] com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:497) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)

Has anyone else run into the same problem? Anyone have a solution?

Thanks - Dan

PS - I there anyway I can search the user mailing list before I post questions
to see if someone else has previously solved my problem or similar issue?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to