Hi All, I deployed struts 2.0 based application in weblogic 8.1 .Deployment is sucessfull and throws the index page but not able to recognize .do extension. The same war file I was able to run under tomcat and netbeans 4.0. Could someone throw some light on this. Thanks in advance. My Web.xml Action Servlet Configuration and Filter Configuration. << <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet>
<!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
i think the hitch is in url-pattern becoz weblogic tend to believe in web-root-context thtat is u need to modify the <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>/*.do</url-pattern> </servlet-mapping>
My WLAS8.1/Struts1.2.4 app has the servlet mapping configured thus, which works fine:
Have you got a (possibly trivial) weblogic.xml in the appropriate part of the war? Also, why do you have load-on-startup as '2'? This is a boolean, so it should be 1 or 0. I've found Weblogic to be very fussy with things like this.
If you can't get it working, post the exception you're getting and perhaps we can help more.
My app has no filters configured though - perhaps you could try getting it going without the filter, to see if that's the problem.
A magnificient life is loaded with tough challenges. En garde tiny ad: