tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Micael Padraig Og mac Grene" <caraun...@harbornet.com>
Subject Re: .gif images not displaying with JSPs
Date Wed, 28 Nov 2001 05:58:30 GMT
Just a suggestion, Mark: if you actually showed the directories rather than
saying things like "the root context" or "the same directory as the html and
JSP files" it would be easier, because the relative paths are not the only
issues.
-----Original Message-----
From: Mark <markd@bellsouth.net>
To: tomcat-user@jakarta.apache.org <tomcat-user@jakarta.apache.org>
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:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message