This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am getting error when trying to deploy a simple jsp based struts 2 application on weblogic 9.2 (without weblogic.xml)
<Jan 19, 2009 12:57:59 PM IST> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispatcher.
java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:203)
Truncated. see log file for complete stacktrace
from the print stack is obvious that its trying to initialize a filter of this class type
and it dosen't find it, so check if you have these class in your project, it may be because you are missing some jars in your application, normally this class should be inside the struts core jar so if you don't have this jar try to add it to your libs directory ;)
Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
Joined: Feb 14, 2006
Actually above error is occuring because of spring jars. I have many spring jars which I got when I downloaded struts2 framework from net. Because I had not been using any of the spring related api, it was throwing that error. After deletion of those jars I was able to run it.
Joined: Feb 14, 2006
One more thing, Struts-cleanup filter must be defined before Struts2 filter :
I have the same prob as you had. I tried to delete the struts2-spring related jar files. and try to make the cleanup filter before action filter as you said. But still it is throwing exception. org.apache.dispatcher.filterdispatcher not found....
well, my question is , logically if the jars are not used by the application why should JRE throw exception ? I mean application should only look at the jars that are needed. If the some extra jars are there, the application should have nothing to do with that right ?