I have a web application in which I would like to have everything that goes through <context-root>/web/* to be handled by struts 2 and <context-root>/rpc/* to be handled by a different framework (IBM RPC adapter). As for the struts 2 part, I have struts 2 filter configured in my web.xml as :
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/web/*</url-pattern> </filter-mapping> In struts-blank.was I have changed default namespace in struts.xml to <package name="default" namespace="/web" extends="struts-default"> <default-action-ref name="index" /> <action name="index"> <result type="redirectAction"> <param name="actionName">HelloWorld</param> <param name="namespace">/web/example</param> </result> </action> </package> and in example.xml to : <package name="example" namespace="/web/example" extends="struts-default"> Now when I enter the following URLs all fail: http://localhost:9080/struts2.1.6/web/example/HelloWorld.action http://localhost:9080/struts2.1.6/web/index http://localhost:9080/struts2.1.6/web/index.action I get the following exceptions: [Servlet Error]-[Filter [struts2]: could not be initialized]: java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60) Any tip/help is appreciated greatly in advance. __________________________________________________________________ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org