*
The moose likes Struts and the fly likes Struts2 FilterDispatcher Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 FilterDispatcher Error" Watch "Struts2 FilterDispatcher Error" New topic
Author

Struts2 FilterDispatcher Error

Rajesh Seth
Greenhorn

Joined: Aug 30, 2010
Posts: 12
Hi,

I am trying to deploy war file on weblogic 10 with struts2, getting error in deployment.

[ERROR]

<Error> <HTTP> <BEA-101165>
<Could not load userdefined filter in web.xml: org.apache.struts2.dispatcher.FilterDispatcher.
java.lang.NoClassDefFoundError: com/opensymphony/xwork2/ActionContext
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.
java:195)
at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterMa
nager.java:320)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java
:88)
Truncated. see log file for complete stacktrace
>

[/ERROR]

War File Structure

META-INF ---> application.xml
WEB-INF -- > lib folder --> struts jar file
---> web.xml & weblogic.xml
ui --> jsp files

web.xml file looks like.....



Please suggest
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Welcome to JavaRanch!

What libraries and versions are you deploying?

Oh, and 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. Thanks!
Rajesh Seth
Greenhorn

Joined: Aug 30, 2010
Posts: 12
Thanks David,

I will use codetags while posting code.

I am using struts2-core-2.2.1.jar, weblogic version 10.0.1 and jdk version 1.5.0

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

*All* the libraries you're deploying, and their versions.
Rajesh Seth
Greenhorn

Joined: Aug 30, 2010
Posts: 12
Thanks for your help David,

I got the solution. Missing some jar files. Also checked your link.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Glad to hear you worked it out :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 FilterDispatcher Error
 
Similar Threads
Velocity + Struts2 + Sitemesh + Spring +Hibernate Integration How to configur web.xml?
Struts2 dojo not working on RAD7 WS6.1
web.xml problem in struts2
Struts2 Action problem Problem
unable to run sample application in Struts2