aspose file tools*
The moose likes Struts and the fly likes Trouble in extending packages in Struts2.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Trouble in extending packages in Struts2.xml" Watch "Trouble in extending packages in Struts2.xml" New topic
Author

Trouble in extending packages in Struts2.xml

shiva murugan
Greenhorn

Joined: Jan 08, 2010
Posts: 17
My struts.xml is configured as

<package name="Base" extends="struts-default">
<interceptors>
<interceptor name="xssFilterInterceptor"
class="XSSFilterInterceptor">
</interceptor>


<interceptor-stack name="criteriaInterceptorStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="xssFilterInterceptor" />
</interceptor-stack>

</interceptors>

<default-interceptor-ref name="criteriaInterceptorStack" />
<global-results>

<result name="errorPage">/common/servletErrPage.jsp</result>
</global-results>

</package>

<package name="com.mastercard.mastercom.casefilling.web.action"
extends="Base">

action configuration here
</package>

on trying to run the application i am getting some error as
[Servlet Error]-[Filter [struts2]: could not be initialized]: Unable to load configuration. - package - file:/E:/pjt-web/WebContent/WEB-INF/classes/struts.xml: (line number which states extends = "Base")

Any idea, i searched info, yet no solution
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Stacktrace from log with devMode turned on and logging at DEBUG level?

I'd also be wary of naming a package with a full-on Java qualified package name; it can confuse things, particularly when using some of the plugins. I think. I don't recall now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble in extending packages in Struts2.xml
 
Similar Threads
struts2: what kicks in first- the interceptors or the form's validation?
Interceptor messes up action class in Struts2
struts2 + interceptor
Jsp is not displaying in Struts2
interceptor problem in struts2