2004 IR Help Posted August 22, 2006 Share Posted August 22, 2006 By: Jose - josejose HtmlServlet sample - Image not working 2005-08-09 16:31 Hi, I am a JasperReport newbie.. I installed the webapp sample in websphere.. the headings and data are working fine for the htmlServlet report..but the image is not showing.. I am getting the ollowing error Failed to load servlet: java.lang.ClassNotFoundException: image I searched a lot of old threads..and changed the web.xml to contain the imageServlet etc. Still getting the same error.. Any hinds/tips greatly appreciated! By: Tom Eugelink - tbee RE: HtmlServlet sample - Image not working 2005-08-09 23:01 Are you sure about the upper and lower case here? Because "image" is not a class name, it should be "Image". Also post the full stack trace please. Appearantly during the loading of the image servlet (when the browser is trying to get the images to display) it cannot find a class. By: Jose - josejose RE: HtmlServlet sample - Image not working 2005-08-10 07:55 Thanks for the response. Following is my web.xml ... <servlet> <servlet-name>ImageServlet</servlet-name> <servlet-class>servlets.ImageServlet</servlet-class> </servlet> ... <servlet-mapping> <servlet-name>ImageServlet</servlet-name> <url-pattern>/servlets/image</url-pattern> </servlet-mapping> Followis is the trace... [8/10/05 10:01:21:478 EDT] 12ecb3d5 WebGroup E SRVE0020E: [servlet Error]-[image]: Failed to load servlet: java.lang.ClassNotFoundException: image at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at java.beans.Beans.instantiate(Beans.java:216) at java.beans.Beans.instantiate(Beans.java:77) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188) at com.ibm.ws.webcontainer.webapp.WebApp.addServlet(WebApp.java:723) at com.ibm.ws.webcontainer.webapp.WebAppServletRegistry.addServlet(WebAppServletRegistry.java:48) at com.ibm.ws.webcontainer.servlet.InvokerServlet.service(InvokerServlet.java:180) 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:948) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186) 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:610) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now