Hi,
I am using Struts1.1. The development env is Websphere(WSAD5.1) on WinXP.
Here is a strange thing.
When I click on submit on a page, which used to work earlier, I get a
HTTP 500 Internal Server error.
No other link/function in the application gives me this error. The
strange thing is that this worked twice(for 5 minutes) after I added
back into web.xml the following.
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
I had removed everything but the first entry in the list. I dont know
why this error disappeared after I added it back in.???
Anyway, the error appeared again, without me having to do anything.
this appears to be the core of the error
[11/29/04 9:57:08:668 EST] 25de1e06 ActionServlet E
org.apache.struts.action.ActionServlet
javax.servlet.UnavailableException: Cannot initialize RequestProcessor
of class com.web.reqprocessor.CareRequestProcessor:
java.lang.ClassNotFoundException:
com.web.reqprocessor.CareRequestProcessor
where CareRequestProcessor is my application's custom controller.
I am attaching the log SystemOut.log , the web.xml, the
struts-config.xml(parts of it which shows the actionmapping)
I could not find anything on this error. If this is a problem of my
server not being able to find the class in its build path, why is this
error happening only for a single functionality?
Please help with your comments/suggestions.
Thankyou,
Rosemary
--------------------------start of the
log--------------------------------------------------------------------------
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|^^^^^^^^^^^^^^^^
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|accept =
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|referer =
http://localhost:9080/care/home.do
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports :
1|accept-language = en-us
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports :
1|accept-encoding = gzip, deflate
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|user-agent
= Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.0.3705)
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|host =
localhost:9080
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|connection
= Keep-Alive
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|cookie =
JSESSIONID=0000AeFmj_dshQmDLQlCwbaxK0m:-1
INFO |2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|^^^^^^^^^^^^^^^^
DEBUG|2004-11-29 09:51:08,233|Servlet.Engine.Transports : 1|
TRACE:END (000ms) CareRequestProcessor.processPreprocess()
[11/29/04 9:51:08:243 EST] 61b21e05 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: /Admin.jsp: init
[11/29/04 9:51:08:253 EST] 61b21e05 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: /basic/leftnavMenuAdmin.jsp: init
INFO |2004-11-29 09:51:08,253|Servlet.Engine.Transports : 1|^^^^^^^^^^^^^^^^
[11/29/04 9:51:08:263 EST] 61b21e05 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: /tiles/admintile.jsp: init
[11/29/04 9:51:08:273 EST] 61b21e05 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true
[11/29/04 9:51:08:283 EST] 61b21e05 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
DEBUG|2004-11-29 09:51:18,789|Servlet.Engine.Transports : 1|
TRACE:BEGIN (000ms) CareRequestProcessor.processPreprocess()
INFO |2004-11-29 09:51:18,789|Servlet.Engine.Transports : 1|^^^^^^^^^^^^^^^^
INFO |2004-11-29 09:51:18,789|Servlet.Engine.Transports : 1|accept =
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
INFO |2004-11-29 09:51:18,789|Servlet.Engine.Transports : 1|referer =
http://localhost:9080/care/addAdmin.do
INFO |2004-11-29 09:51:18,789|Servlet.Engine.Transports :
1|accept-language = en-us
INFO |2004-11-29 09:51:18,789|Servlet.Engine.Transports :
1|content-type = application/x-www-form-urlencoded
INFO |2004-11-29 09:51:18,789|Servlet.Engine.Transports :
1|accept-encoding = gzip, deflate
INFO |2004-11-29 09:51:18,789|Servlet.Engine.Transports : 1|user-agent
= Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.0.3705)
INFO |2004-11-29 09:51:18,799|Servlet.Engine.Transports : 1|host =
localhost:9080
INFO |2004-11-29 09:51:18,799|Servlet.Engine.Transports : 1|content-length = 76
INFO |2004-11-29 09:51:18,799|Servlet.Engine.Transports : 1|connection
= Keep-Alive
INFO |2004-11-29 09:51:18,799|Servlet.Engine.Transports :
1|cache-control = no-cache
INFO |2004-11-29 09:51:18,799|Servlet.Engine.Transports : 1|cookie =
JSESSIONID=0000AeFmj_dshQmDLQlCwbaxK0m:-1
INFO |2004-11-29 09:51:18,799|Servlet.Engine.Transports : 1|^^^^^^^^^^^^^^^^
DEBUG|2004-11-29 09:51:18,799|Servlet.Engine.Transports : 1|
TRACE:END (010ms) CareRequestProcessor.processPreprocess()
[11/29/04 9:51:19:738 EST] 61b21e05 WebGroup E SRVE0026E:
[Servlet Error]-[action]: java.lang.NullPointerException
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:441)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
[11/29/04 9:57:02:520 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: InvokerServlet: destroy
[11/29/04 9:57:02:757 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: SimpleFileServlet: destroy
[11/29/04 9:57:02:757 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: JSP 1.2 Processor: destroy
[11/29/04 9:57:04:278 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: JSP 1.2 Processor: init
[11/29/04 9:57:04:772 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: SimpleFileServlet: init
[11/29/04 9:57:04:772 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: InvokerServlet: init
[11/29/04 9:57:04:803 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: action: init
[11/29/04 9:57:04:833 EST] 25de1e06 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[11/29/04 9:57:04:854 EST] 25de1e06 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[11/29/04 9:57:05:563 EST] 25de1e06 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='ApplicationResources', returnNull=true
[11/29/04 9:57:08:658 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: InvokerServlet: destroy
[11/29/04 9:57:08:668 EST] 25de1e06 ActionServlet E
org.apache.struts.action.ActionServlet
javax.servlet.UnavailableException: Cannot initialize RequestProcessor
of class com.web.reqprocessor.CareRequestProcessor:
java.lang.ClassNotFoundException:
com.web.reqprocessor.CareRequestProcessor
[11/29/04 9:57:09:111 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: SimpleFileServlet: destroy
[11/29/04 9:57:09:111 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: JSP 1.2 Processor: destroy
[11/29/04 9:57:09:244 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: JSP 1.2 Processor: init
[11/29/04 9:57:09:563 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: SimpleFileServlet: init
[11/29/04 9:57:09:563 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: InvokerServlet: init
[11/29/04 9:57:09:645 EST] 25de1e06 WebGroup I SRVE0180I:
[care_web] [/care] [Servlet.LOG]: action: init
[11/29/04 9:57:09:923 EST] 25de1e06 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[11/29/04 9:57:09:923 EST] 25de1e06 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[11/29/04 9:57:10:745 EST] 25de1e06 PropertyMessa I
org.apache.struts.util.PropertyMessageResources Initializing,
config='ApplicationResources', returnNull=true
-----------------------------------------end of
log-----------------------------------------------------------------
-----------------------------------------web.xml-------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp">
<display-name>care_web</display-name>
<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>
<init-param>
<param-name>validate</param-name>
<param-value>true</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>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
</web-app>
------------------------------------end of
web.xml---------------------------------------------------------------
------------------------struts-config.xml------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD
Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- Data Sources -->
<data-sources>
</data-sources>
<!-- Form Beans -->
<form-beans>
<!--*** admin form ***-->
<form-bean
name="adminAdd"
type="com.web.forms.AdminForm">
</form-bean>
<!--*** home page***-->
<form-bean
name="welcomeForm"
type="com.web.forms.WelcomeForm">
</form-bean>
</form-beans>
<!-- Global Exceptions -->
<global-exceptions>
</global-exceptions>
<!-- Global Forwards -->
<global-forwards>
</global-forwards>
<!-- Action Mappings -->
<action-mappings>
<!--*** prepares the welcome page for display***-->
<action
path="/home"
type="com.web.actions.HomePrepareAction"
name="welcomeForm"
scope="request">
<forward name="continue" path="/home.jsp"/>
</action>
<!--*** prepares the add admin page for display***-->
<action
path="/addAdmin"
type="com.web.actions.AdminMainPrepareAction"
name="adminAdd"
scope="request">
<forward name="continue" path="/Admin.jsp"/>
</action>
<!--*** admin page submit for add. Add a value(insert a value) for any
one of the lookup tables ***-->
<action
path="/addAdminSubmit"
type="com.web.actions.AdminMainAction"
name="adminAdd"
scope="request">
<forward name="success" path="/addAdmin.do"></forward>
<forward name="cancel" path="/addAdmin.do"></forward>
<forward name="leftlink" path="/modifyAdminPrepare.do"></forward>
</action>
</action-mappings>
<!-- Custom controller -->
<controller
contentType="text/html;charset=UTF-8"
debug="3"
locale="true"
nocache="true"
processorClass="com.web.reqprocessor.CareRequestProcessor"/>
<!-- Message Resources -->
<message-resources parameter="ApplicationResources" null="false"/>
</struts-config>
--------------------------------------end of
struts-config.xml-------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]