Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trouble in extending packages in Struts2.xml

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic