chart is empty

Help
p_sarada
2006-07-22
2013-01-13
  • p_sarada

    p_sarada - 2006-07-22

    Hi,
    I am using the cewolf charts first time. I tried as per the instructions given in the example.But It was not showing any chart.

    For producing data it is calling the class PageViewCountData.java, In this java I observed 3 jsp were used.but,I didn't see those jsps anywhere.cewolfset.jsp,tutorial.jsp and testpage.jsp.

    Can anybody through some lights on this.

     
    • Tharma

      Tharma - 2006-07-23

      Sarada and I tried together and we could not succeed. Let me add to what Sarada said above.

      PROBLEM:
      When we load the jsp in the browser, we see only the empty image box (a cross-mark at the left-top of the box)

      We use Tomcat5. The webapps dir contains the following sub-directories:
      1. app1
      2. WEB-INF

      'app1' contains a jsp file with a example.jsp. The contents of the file is as follows:

      <%@page contentType="text/html"%>
      <%@taglib uri='/WEB-INF/etc/cewolf.tld' prefix='cewolf' %>

      <HTML>
          <BODY>
          <H1>Page View Statistics</H1>
      <HR>

      <jsp:useBean id="pageViews" class="app1.PageViewCountData"/>

      <cewolf:chart
           id="line1"
           title="Page View Statistics"
           type="line"
           xaxislabel="Page"
           yaxislabel="Views">
          
           <cewolf:data>    
              <cewolf:producer id="pageViews"/>
          </cewolf:data>
         
      </cewolf:chart>
          <p>
              <cewolf:img chartid="line1" renderer="cewolf" width="400" height="300"/>
          <P>
      </BODY>
      </HTML>   
      =========================================================

      WEB-INF contains a 'lib' folder that has the following jar files:

      batik-awt-util-1.6.jar
      batik-dom-1.6.jar
      batik-svggen-1.6.jar
      batik-util-1.6.jar
      batik-xml-1.6.jar
      catalina-root.jar
      cewolf-1.0.jar
      commons-logging-1.0.4.jar
      crimson-1.1.3.jar
      gnujaxp-1.0.0.jar
      jcommon-1.0.0.jar
      jfreechart-1.0.0.jar
      junit-3.8.jar
      mysql-connector-java-5.0.0-beta-bin.jar
      overlib.js
      =========================================================

      WEB-INF also contains a 'web.xml' and it is updated with the following details:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <web-app>
      <servlet>   
          <servlet-name>CewolfServlet</servlet-name>   
          <servlet-class>de.laures.cewolf.CewolfRenderer</servlet-class>
      </servlet>
      <servlet-mapping>   
          <servlet-name>CewolfServlet</servlet-name> 
          <url-pattern>/cewolf/*</url-pattern>
      </servlet-mapping>
      <load-on-startup>2</load-on-startup>
      </web-app>
      =========================================================
      WEB-INF also contains a 'classes/app1' folder struture - the underneath of the above structure, the following .class files are placed (along with the .java file):
      1. PageViewCountData.class
      2. PageViewCountData$1.class

      With all these, we do not see the result.
      When I looked at the jsp logs, I do not see anything useful either!

      Could anybody throw some lights here...? It would be of great help to get our journey kick-started...

      Thanks, in advace!

      Regards,
      Tharma

      =========================================================

       
      • p_sarada

        p_sarada - 2006-07-24

        The problem got solved.The reason is I had put two different applications in the same directory. After changing cewolf example to different structure it worked fine.

        Thanks....

         
    • Texugo

      Texugo - 2006-08-09

      Hello

      I'm having the same problem.

      I've changed the class to a new directory but it still doesn't show the chart image.

      Have you created a new projecto the the tutorial?

      What have you done to get it working?

      Thanks
      Rui Felix

       

Log in to post a comment.