I added <Context path="/myapp" docBase="webapps/myapp" debug="0" reloadable="true" > </Context>
to server.xml but didn't work then I changed to... <Context path="/myapp" docBase="myapp" debug="0" reloadable="true" > </Context> that is without webapps and the app is running again, but gifs and jpgs are displayed bad ( fuzzy ) still. The images are under $tomcat_home/webapps/myapp/images TKS. -----Mensaje original----- De: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]] Enviado el: Martes, 27 de Noviembre de 2001 10:28 a.m. Para: Tomcat Users List Asunto: Re: .gif images not displaying with JSPs I have a directory called graphics on the same level as WEB-INF, i.e. root_directory/webapps/myapp/graphics/flags/ and root_directory/webapps/myapp/WEB-INF/, and I use <img src='graphics/flags/german_flag.gif'/></a></tr> without dificulty, if that helps. This may have to do with my settings in server.xml, which is: <Context path="/myapp" docBase="webapps/myapp" debug="0" reloadable="true" > </Context> Hope this helps. Again, inside and outside WEB-INF is a big deal. -----Original Message----- From: Mark <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, November 27, 2001 5:54 AM Subject: .gif images not displaying with JSPs >My servlet/JSP/JavaBean app is working under TC 4.0.1, except for images >not displaying in JSPs. The various .gifs live in the root context for the >application, ie. the same directory as the html and JSP files. The JSP has >simple embedded html statements such as: > > <a><img src="image1.gif" align="left"></a> > >For each img tag, the application log has an associated set of errors: > > 2001-11-27 08:24:34 >StandardWrapper[/myapp:org.apache.catalina.INVOKER.image1.gif]: > Marking servlet org.apache.catalina.INVOKER.image1.gif as unavailable > 2001-11-27 08:24:34 invoker: Cannot allocate servlet instance for path > /myapp/servlet/image1.gif > javax.servlet.ServletException: Wrapper cannot find servlet class >image1.gif or a > class it depends on > ... > > - Root Cause ----- > java.lang.ClassNotFoundException: image1.gif > >The generated Java code (in ../work directory) looks like the following: > > out.write(" \r\n\r\n<a><img src=\"image1.gif\" >align=\"left\"></a>\r\n<a> > <img src=\"image2.gif\" align=\"left\"></a>\r\n"); > > >The page displays except for the images, and the resulting html pushed to >the browser has the <img> tags. The JSPs work under other environments (eg. >VAJ, Sun SDK, etc). What am I doing wrong this time under Tomcat? > >Thanks >Mark > > > > > > > > > > > >-- >To unsubscribe: <mailto:[EMAIL PROTECTED]> >For additional commands: <mailto:[EMAIL PROTECTED]> >Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
