12 Replies Latest reply on Sep 25, 2007 9:02 AM by Kevin McCollough

    JSF Chart Creator in Seam

    Vincent Bosc Newbie

      Hello,

      First post here and thanks first for your work on seam. I like!

      My problem :
      I try and use Chart Creator (JSF Components for charts based on JFreeChart) and it doesn't render images. I read in a post (back in sept 06) from a guy complaining about this.
      Do you have any news on this, is there a known problem (before I spent hours trying to resolve this) or is there a special trick to make it work.

      If you know a good alternative for charts which works handily in seam, I'm ready to listen.

        • 2. Re: JSF Chart Creator in Seam
          Vincent Bosc Newbie

          Actually, this entry talks about charts in Pdf, but what about Charts in html?

          • 3. Re: JSF Chart Creator in Seam
            Pete Muir Master

            So I think Norman was going to support charts in html as well. Anyway, add a comment saying you want it in html and vote for it.

            • 4. Re: JSF Chart Creator in Seam
              Norman Richards Master

              The original goal is was simply to include charting in PDF, but it's very clear that we need to support them in any context - linked from an HTML page, in an email, etc...

              • 5. Re: JSF Chart Creator in Seam
                Juraj Holtak Newbie

                This dosn`t *look* (haven`t tried anything) bad at all.

                Maybe it just works out of the box with seam...

                http://www.jroller.com/page/cagataycivici?entry=jsf_chart_creator

                • 6. Re: JSF Chart Creator in Seam
                  Vincent Bosc Newbie

                   

                  "holtak" wrote:
                  This dosn`t *look* (haven`t tried anything) bad at all.

                  Maybe it just works out of the box with seam...

                  http://www.jroller.com/page/cagataycivici?entry=jsf_chart_creator


                  This is actually the thing I'm trying to use without success from the start. But thanks anyway.

                  • 7. Re: JSF Chart Creator in Seam
                    Kevin McCollough Newbie

                    Has anyone been successful using JFreeChart via ChartCreator in a SEAM application?

                    • 8. Re: JSF Chart Creator in Seam
                      Adrian Mitev Master

                      have you tried?

                      • 9. Re: JSF Chart Creator in Seam
                        Polly McEldowney Newbie

                        yeah, we've got it working, using jfreechart-1.0.6, chartcreator-1.2.0, seam 2.0.0 beta 1

                        have you followed these instructions?
                        http://jsf-comp.sourceforge.net/components/chartcreator/index.html

                        • 10. Re: JSF Chart Creator in Seam
                          Kevin McCollough Newbie

                          Yes I have tried, but I think my limited SEAM experience is the problem. I have followed the instructions on the ChartCreator website and added code to web.xml as well as the JAR files to the project. However, I do not think I have the backing bean defined correctly where the dataset for the graph is generated.

                          • 11. Re: JSF Chart Creator in Seam
                            Stuart Douglas Master

                            I have it working. My settings are as follows:

                            web.xml:

                             <context-param>
                             <param-name>facelets.LIBRARIES</param-name>
                             <param-value>/WEB-INF/chartcreator.taglib.xml</param-value>
                             </context-param>
                            
                            <context-param>
                             <param-name>net.sf.jsfcomp.chartcreator.USE_CHARTLET</param-name>
                             <param-value>false</param-value>
                             </context-param>
                            


                            faces-config.xml

                            <component>
                            <component-type>net.sf.jsfcomp.chartcreator.component.UIChart</component-type>
                            <component-class>net.sf.jsfcomp.chartcreator.component.UIChart</component-class>
                            </component>
                            
                             <lifecycle>
                            <phase-listener>net.sf.jsfcomp.chartcreator.ChartListener</phase-listener>
                             </lifecycle>
                            
                            


                            the backing bean for a line chart (in a seam component called priceHome):

                            public TimeSeriesCollection getPriceDataSet() {
                             TimeSeries series = new TimeSeries("Price", Day.class);
                            
                             List<Data> price = entityManager
                             .createQuery(
                             "from Data").getResultList();
                             for Data i : price) {
                             series.addOrUpdate(new Day(i.getDate()), i.getPrice());
                             }
                            
                             // Add the series to your data set
                             TimeSeriesCollection dataset = new TimeSeriesCollection();
                             dataset.addSeries(series);
                             return dataset;
                             }
                            


                            and in the Facelets page:

                            <c:chart id="price_chart" datasource="#{priceHome.priceDataSet}" type="timeseries" is3d="true" antialias="true" title="Pricing" xlabel="Date" ylabel="Price" height="350" width="500"></c:chart>
                            



                            • 12. Re: JSF Chart Creator in Seam
                              Kevin McCollough Newbie

                              SWD thanks for posting your settings, I had a problem with my web.xml

                              However, I still cannot get a graph to work. I have tried using Seam versions 1.2.1 and 2.0.0 an seem to be getting the same error. My current configurations is JBoss 4.0.5.GA, SEAM 1.2.1, JFreeChart 1.0.5, JCommon 1.0.9, and ChartCreator 1.2.0-M2

                              Here are my settings and code

                              web.xml

                              <?xml version="1.0" ?>
                              <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
                               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
                               version="2.4">
                              
                               <!-- Ajax4jsf (must come first!) -->
                              
                               <filter>
                               <display-name>Ajax4jsf Filter</display-name>
                               <filter-name>ajax4jsf</filter-name>
                               <filter-class>org.ajax4jsf.Filter</filter-class>
                               </filter>
                              
                               <filter-mapping>
                               <filter-name>ajax4jsf</filter-name>
                               <url-pattern>*.seam</url-pattern>
                               </filter-mapping>
                              
                               <context-param>
                               <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                               <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
                               </context-param>
                              
                               <context-param>
                               <param-name>org.ajax4jsf.SKIN</param-name>
                               <param-value>blueSky</param-value>
                               </context-param>
                              
                               <!-- Seam -->
                              
                               <listener>
                               <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                               </listener>
                              
                               <filter>
                               <filter-name>Seam Filter</filter-name>
                               <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
                               </filter>
                              
                               <filter-mapping>
                               <filter-name>Seam Filter</filter-name>
                               <url-pattern>/*</url-pattern>
                               </filter-mapping>
                              
                               <servlet>
                               <servlet-name>Seam Resource Servlet</servlet-name>
                               <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
                               </servlet>
                              
                               <servlet-mapping>
                               <servlet-name>Seam Resource Servlet</servlet-name>
                               <url-pattern>/seam/resource/*</url-pattern>
                               </servlet-mapping>
                              
                               <!-- MyFaces -->
                              
                               <listener>
                               <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
                               </listener>
                              
                               <!-- Facelets development mode (disable in production) -->
                              
                               <context-param>
                               <param-name>facelets.DEVELOPMENT</param-name>
                               <param-value>true</param-value>
                               </context-param>
                              
                               <!-- JSF -->
                              
                               <context-param>
                               <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                               <param-value>client</param-value>
                               </context-param>
                              
                               <context-param>
                               <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                               <param-value>.xhtml</param-value>
                               </context-param>
                              
                               <servlet>
                               <servlet-name>Faces Servlet</servlet-name>
                               <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                               <load-on-startup>1</load-on-startup>
                               </servlet>
                              
                               <servlet-mapping>
                               <servlet-name>Faces Servlet</servlet-name>
                               <url-pattern>*.seam</url-pattern>
                               </servlet-mapping>
                              
                               <security-constraint>
                               <display-name>Restrict raw XHTML Documents</display-name>
                               <web-resource-collection>
                               <web-resource-name>XHTML</web-resource-name>
                               <url-pattern>*.xhtml</url-pattern>
                               </web-resource-collection>
                               <auth-constraint>
                               <role-name>NONE</role-name>
                               </auth-constraint>
                               </security-constraint>
                              
                               <!-- ChartCreator Stuff -->
                              
                               <context-param>
                               <param-name>net.sf.jsfcomp.chartcreator.USE_CHARTLET</param-name>
                               <param-value>false</param-value>
                               </context-param>
                              
                               <context-param>
                               <param-name>facelets.LIBRARIES</param-name>
                               <param-value>/WEB-INF/chartcreator.taglib.xml</param-value>
                               </context-param>
                              
                              </web-app>
                              


                              faces-config.xml
                              <?xml version='1.0' encoding='UTF-8'?>
                              <!DOCTYPE faces-config PUBLIC
                               "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                               "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
                              
                              <faces-config>
                              
                               <application>
                               <message-bundle>messages</message-bundle>
                               <!-- Disabled when using Ajax4JSF -->
                               <!--
                               <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
                               -->
                               </application>
                              
                               <!-- Seam transaction management -->
                               <lifecycle>
                               <phase-listener>org.jboss.seam.jsf.TransactionalSeamPhaseListener</phase-listener>
                               </lifecycle>
                              
                               <!-- No Seam transaction management -->
                               <!--
                               <lifecycle>
                               <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
                               </lifecycle>
                               -->
                              
                               <!-- ChartCreator -->
                               <component>
                               <component-type>net.sf.jsfcomp.chartcreator.component.UIChart</component-type>
                               <component-class>net.sf.jsfcomp.chartcreator.component.UIChart</component-class>
                               </component>
                              
                               <lifecycle>
                               <phase-listener>net.sf.jsfcomp.chartcreator.ChartListener</phase-listener>
                               </lifecycle>
                              
                              </faces-config>
                              


                              The backing bean PriceHome.java
                              package net.mydomain.myproject;
                              
                              import org.jboss.seam.annotations.Name;
                              import org.jfree.data.time.TimeSeries;
                              import org.jfree.data.time.TimeSeriesCollection;
                              import org.jfree.data.time.Day;
                              
                              @Name("priceHome")
                              public class PriceHome {
                              
                               public TimeSeriesCollection getPriceDataSet() {
                               TimeSeries series = new TimeSeries("Price", Day.class);
                              
                               series.addOrUpdate(new Day(1,1,2007), 22.25);
                               series.addOrUpdate(new Day(1,2,2007), 22.50);
                               series.addOrUpdate(new Day(1,3,2007), 22.65);
                               series.addOrUpdate(new Day(1,4,2007), 22.75);
                               series.addOrUpdate(new Day(1,5,2007), 23.05);
                               series.addOrUpdate(new Day(1,6,2007), 23.50);
                               series.addOrUpdate(new Day(1,7,2007), 23.65);
                               series.addOrUpdate(new Day(1,8,2007), 23.70);
                               series.addOrUpdate(new Day(1,9,2007), 23.95);
                               series.addOrUpdate(new Day(1,10,2007), 24.10);
                               series.addOrUpdate(new Day(1,11,2007), 24.35);
                               series.addOrUpdate(new Day(1,12,2007), 24.50);
                              
                               // Add the series to your data set
                               TimeSeriesCollection dataset = new TimeSeriesCollection();
                               dataset.addSeries(series);
                               return dataset;
                               }
                              }
                              


                              home.xhtml
                              <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                              <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                               xmlns:s="http://jboss.com/products/seam/taglib"
                               xmlns:ui="http://java.sun.com/jsf/facelets"
                               xmlns:f="http://java.sun.com/jsf/core"
                               xmlns:h="http://java.sun.com/jsf/html"
                               xmlns:c="http://sourceforge.net/projects/jsf-comp"
                               xmlns:rich="http://richfaces.ajax4jsf.org/rich"
                               template="layout/template.xhtml">
                              
                              <ui:define name="body">
                              
                               <h:messages globalOnly="true" styleClass="message"/>
                              
                               <rich:panel>
                               <f:facet name="header">Welcome!</f:facet>
                               <p>This empty shell application includes:</p>
                               <ul>
                               <li>Ant build script</li>
                               <li>Deployment to JBoss AS</li>
                               <li>Integration testing using TestNG and JBoss Embeddable EJB3</li>
                               <li>EJB 3.0 Seam components</li>
                               <li>Templated Facelets views</li>
                               <li>HSQL (or MySQL) Datasource</li>
                               <li>Default CSS stylesheet</li>
                               <li>Internationalization support</li>
                               </ul>
                               </rich:panel>
                              
                               <c:chart id="price_chart" datasource="#{priceHome.priceDataSet}" type="timeseries" is3d="true" antialias="true" title="Pricing" xlabel="Date" ylabel="Price" height="350" width="500"></c:chart>
                              
                              </ui:define>
                              </ui:composition>
                              


                              The Exception I am getting
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-f
                              n.taglib.xml
                              08:54:19,171 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui
                              .taglib.xml
                              08:54:19,187 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam
                              -pdf.taglib.xml
                              08:54:19,203 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/ajax4jsf-1.1.1-SNAPSHOT.jar!/META
                              -INF/a4j.taglib.xml
                              08:54:19,234 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/richfaces-3.0.1-SNAPSHOT.jar!/MET
                              A-INF/rich.taglib.xml
                              08:54:19,250 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-co
                              re.taglib.xml
                              08:54:19,250 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/sea
                              m-mail.taglib.xml
                              08:54:19,265 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ht
                              ml.taglib.xml
                              08:54:19,265 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/chartcreator-1.2.0-M2.jar!/META-I
                              NF/chartcreator.taglib.xml
                              08:54:19,281 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/./depl
                              oy/soccerStats.ear/soccerStats.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-c
                              ore.taglib.xml
                              08:54:19,296 ERROR [STDERR] Sep 25, 2007 8:54:19 AM com.sun.facelets.compiler.Ta
                              gLibraryConfig loadImplicit
                              INFO: Added Library from: jar:file:/C:/java/jboss-4.0.5.GA/server/default/lib/ch
                              artcreator-1.2.0-M2.jar!/META-INF/chartcreator.taglib.xml
                              08:54:20,078 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIE
                              W(1) afterPhase
                              java.lang.RuntimeException: Unsupported chart type
                               at net.sf.jsfcomp.chartcreator.utils.ChartUtils.createChartWithType(Unkn
                              own Source)
                               at net.sf.jsfcomp.chartcreator.ChartListener.handleChartRequest(Unknown
                              Source)
                               at net.sf.jsfcomp.chartcreator.ChartListener.afterPhase(Unknown Source)
                               at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListener
                              sAfter(PhaseListenerManager.java:89)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
                              java:181)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
                              :66)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:63)
                               at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
                              a:60)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
                              MLFilter.java:96)
                               at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
                              java:220)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
                              lter.java:96)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
                              alve.java:213)
                               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
                              alve.java:178)
                               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
                              yAssociationValve.java:175)
                               at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
                              torBase.java:432)
                               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
                              e.java:74)
                               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
                              ava:126)
                               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
                              ava:105)
                               at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
                              ctionValve.java:156)
                               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
                              ve.java:107)
                               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
                              a:148)
                               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
                              :869)
                               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
                              rocessConnection(Http11BaseProtocol.java:664)
                               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
                              int.java:527)
                               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
                              kerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              08:54:20,171 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIE
                              W(1) afterPhase
                              java.lang.RuntimeException: Unsupported chart type
                               at net.sf.jsfcomp.chartcreator.utils.ChartUtils.createChartWithType(Unkn
                              own Source)
                               at net.sf.jsfcomp.chartcreator.ChartListener.handleChartRequest(Unknown
                              Source)
                               at net.sf.jsfcomp.chartcreator.ChartListener.afterPhase(Unknown Source)
                               at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListener
                              sAfter(PhaseListenerManager.java:89)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
                              java:181)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
                              :66)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:63)
                               at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
                              a:60)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
                              MLFilter.java:96)
                               at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
                              java:220)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
                              lter.java:96)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
                              alve.java:213)
                               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
                              alve.java:178)
                               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
                              yAssociationValve.java:175)
                               at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
                              torBase.java:432)
                               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
                              e.java:74)
                               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
                              ava:126)
                               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
                              ava:105)
                               at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
                              ctionValve.java:156)
                               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
                              ve.java:107)
                               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
                              a:148)
                               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
                              :869)
                               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
                              rocessConnection(Http11BaseProtocol.java:664)
                               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
                              int.java:527)
                               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
                              kerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              08:54:20,296 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIE
                              W(1) afterPhase
                              java.lang.RuntimeException: Unsupported chart type
                               at net.sf.jsfcomp.chartcreator.utils.ChartUtils.createChartWithType(Unkn
                              own Source)
                               at net.sf.jsfcomp.chartcreator.ChartListener.handleChartRequest(Unknown
                              Source)
                               at net.sf.jsfcomp.chartcreator.ChartListener.afterPhase(Unknown Source)
                               at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListener
                              sAfter(PhaseListenerManager.java:89)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
                              java:181)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
                              :66)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:63)
                               at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
                              a:60)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
                               at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
                              a:49)
                               at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
                              MLFilter.java:96)
                               at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
                              java:220)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
                              lter.java:96)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
                              icationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
                              ilterChain.java:173)
                               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
                              alve.java:213)
                               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
                              alve.java:178)
                               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
                              yAssociationValve.java:175)
                               at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
                              torBase.java:432)
                               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
                              e.java:74)
                               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
                              ava:126)
                               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
                              ava:105)
                               at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
                              ctionValve.java:156)
                               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
                              ve.java:107)
                               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
                              a:148)
                               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
                              :869)
                               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
                              rocessConnection(Http11BaseProtocol.java:664)
                               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
                              int.java:527)
                               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
                              kerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              


                              Sorry for the long post, any help would be greatly appreciated.