struts - servlet action is not available -
a strange thing happening when call servlet using struts, if call local host gets called when deploy on web server throws error saying "servlet action not available"
here's web.xml
<servlet> <servlet-name>action</servlet-name> <display-name>socialauthdemo</display-name> <description>application socialauth demo</description> <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> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
my struts-config.xml follows -
<action-mappings> <action path="/socialauth" type="com.auth.actions.socialauthenticationaction" name="authform" scope="session"> <forward name="failure" path="/jsp/error.jsp" /> </action> <action path="/socialauthsuccessaction" type="com.auth.actions.socialauthsuccessaction" name="authform" scope="session"> <forward name="success" path="/jsp/authsuccess.jsp" /> <forward name="failure" path="/jsp/error.jsp" /> </action> </action-mappings>
i have added strus.jar file y web-inf/lib folder
please let me know if there missing
thanks
the servlet name action
has failed initialize. has thrown exception while server attempting construct , initialize it. read server startup logs. full exception , stacktrace in there. part should in turn self-explaining enough fix issue. if can't decipher exceptions/stacktraces, feel free update question include it.
Comments
Post a Comment