http://<my_host>/webapp/EssaiApp/hello
I get this error when
A recursive error was detected.
The server cannot use specified error page. Please check the application
error-path.
Original Error:
Message d'erreur : Failed to load target servlet [hello]
Code d'erreur : 500
Servlet cible : hello
Pile d'erreur :
Erreur root-1: HelloWorldServlet
java.lang.ClassNotFoundException: HelloWorldServlet at
com.ibm.servlet.classloader.DynamicClassLoader.loadNonSystemClass(Compiled
Code) at
com.ibm.servlet.classloader.ClassLoaderTemplate.loadClass(ClassLoaderTemplate.java:57)
at java.lang.ClassLoader.loadClass(Compiled Code) at
com.ibm.servlet.classloader.PowerClassLoader.loadNonSystemClass(PowerClassLoader.java:62)
at
com.ibm.servlet.classloader.ClassLoaderTemplate.loadClass(ClassLoaderTemplate.java:57)
at java.lang.ClassLoader.loadClass(Compiled Code) at
java.beans.Beans.instantiate(Beans.java:125) at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:53)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:94)
at
com.ibm.servlet.engine.webapp.WebApp.getServletReference(WebApp.java:250)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebApp.java:1360)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.(WebApp.java:1280)
at
com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(WebApp.java:762)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:677)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:139)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled
Code) at java.lang.Thread.run(Thread.java:472)
Erreur en boucle-2: Servlet [hello] : Classe de servlet requise
introuvable - HelloWorldServlet.class
javax.servlet.ServletException: Servlet [hello] : Classe de servlet
requise introuvable - HelloWorldServlet.class at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:56)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:94)
at
com.ibm.servlet.engine.webapp.WebApp.getServletReference(WebApp.java:250)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebApp.java:1360)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.(WebApp.java:1280)
at
com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(WebApp.java:762)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:677)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:139)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled
Code) at java.lang.Thread.run(Thread.java:472)
Erreur en boucle-3: Failed to load target servlet [hello]
com.ibm.servlet.engine.webapp.LoadTargetServletFailure: Failed to load
target servlet [hello] at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebApp.java:1401)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.(WebApp.java:1280)
at
com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(WebApp.java:762)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:677)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:139)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled
Code) at java.lang.Thread.run(Thread.java:472)
Recursive Error:
Message d'erreur : No target servlet configured for uri:
/webapp/EssaiApp/
Code d'erreur : 0
Servlet cible : null
Pile d'erreur :
Erreur root-1: No target servlet configured for uri: /webapp/EssaiApp/
com.ibm.servlet.engine.webapp.NoTargetForURIException: No target servlet
configured for uri: /webapp/EssaiApp/ at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.getTargetServlet(WebApp.java:1325)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1064)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1001)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.include(WebApp.java:964)
at
com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:476) at
com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:405) at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:696)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:139)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled
Code) at java.lang.Thread.run(Thread.java:472)
Erreur en boucle-2: No target servlet configured for uri:
/webapp/EssaiApp/
com.ibm.servlet.engine.webapp.WebAppErrorReport: No target servlet
configured for uri: /webapp/EssaiApp/ at
com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:510) at
com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:405) at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:696)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:139)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled
Code) at java.lang.Thread.run(Thread.java:472)
You have two errors. A faiure to load your servlet because a
class cannot be found.
Then a second error because a problem was encountered in
reporting the first error.
Then things get nasty because you get a problem reporting that
error ...
You should look at where you have put your HelloWorldServlet
class file and whether it in turn needs any other classes.
To improve the error repoting define an error reporting servlet.
I suggest that you download the 3.5 handbook from
You will find more detail here.
David Artus a écrit :