#72 no images displayed, just broken link

closed
nobody
None
5
2005-02-23
2004-01-28
Barry Ries
No

my tomcat 5 directory layout is as follows:

/usr/java/jakarta-tomcat-5/webapps/cewolf/WEB-INF

web.xml

cewolf.tld
.......................................................................................classes
.......................................................................................
/de/laures/cewolf/examples/PageViewCoutData.class
.......................................................................................lib
batik-awt-util.jar
batik-dom.jar
batik-svggen.jar
batik-util.jar
batik-xml.jar
cewolf.jar
commons-logging.jar
crimson.jar
jaxp.jar
jcommon-0.8.0.jar
jdbc2_0-stdext.jar
jfreechart-0.9.8-demo.jar
jfreechart-0.9.8.jar
servlet.jar
jcommon license.txt
jfreechart license.txt

and of course my index.jsp is in the
/usr/java/jakarta-tomcat-5/webapps/cewolf/index.jsp

here is my index.jsp file listing:

<%@page contentType="text/html"%>
<%@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf' %>
<HTML>
<BODY>
<H1>Page View Statistics</H1>
<HR>
<jsp:useBean id="pageViews"
class="de.laures.cewolf.example.PageViewCountData"/>
<cewolf:chart
id="line"
title="Page View Statistics"
type="line"
xaxislabel="Page"
yaxislabel="Views">
<cewolf:data>
<cewolf:producer id="pageViews"/>
</cewolf:data>
</cewolf:chart>
<p>
<cewolf:img chartid="line" renderer="cewolf"
width="400" height="300"/>
<P>
</BODY>
</HTML>

and my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
<servlet>
<servlet-name>CewolfServlet</servlet-name>

<servlet-class>de.laures.cewolf.CewolfRenderer</servlet-class>
<!-- sets storage implementation -->
<init-param>
<param-name>storage</param-name>

<param-value>de.laures.cewolf.storage.TransientSessionStorage</param-value>
</init-param>
<!-- sets overlib.js location relative to webapp -->
<init-param>
<param-name>overliburl</param-name>
<param-value>etc/overlib.js</param-value>
</init-param>
<!-- turn on or off debugging logging -->
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>CewolfServlet</servlet-name>
<url-pattern>/cewolf/*</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>1</session-timeout>
</session-config>

<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>

<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
</welcome-file-list>

&lt;\!-- resource-ref&gt;
  &lt;description&gt;
    Resource reference to a factory for

java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
</description>
<resource-ref-name>
jdbc/testdb
</resource-ref-name>
<res-type>
javax.sql.DataSource
</res-type>
<res-auth>
Container
</res-auth>
</resource-ref -->

</web-app>

Yet whenI load up the index.jsp file on my browser
(with xhost + enabled to allow access to my X11
terminal) I get no images only te following link to the
empty image:

http://localhost/cewolf/cewolf;jsessionid=6F0744B3A92F4F29F9832D77CF6A9A91?img=383763051&width=400&height=300&iehack=.png

(my tomcat server runs off of port 80 so I do not need
to resolve it to 8080)

any help would be appreciated

Barry Ries
cnik@theCnik.com

Discussion

  • Terje Bakken

    Terje Bakken - 2004-09-10

    Logged In: YES
    user_id=899333

    try setting debug=false and see if anything changes, there is
    a problem with Connection: close and debug=true which
    would result in the servlet waiting for more data then the
    browser submits, I've submitted a patch for this, but I don't
    know if this is your problem.

     
  • Brian Fox

    Brian Fox - 2005-02-23
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks