Error running JFreeServletDemo

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Thomas

Error running JFreeServletDemo

Post by Thomas » Fri Nov 01, 2002 5:44 pm

When i running JFressServletDemo in my servlet server (jsdk2.1)
it appear this error

(I use this link to call the Servlet program
http://localhost:8080/servlet/com.jrefi ... lot=Submit)

Error: 500
Internal Servlet Error:

java.lang.NoClassDefFoundError: org/apache/batik/svggen/SVGGraphics2D
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
at java.lang.Class.getConstructor0(Class.java:1762)
at java.lang.Class.newInstance0(Class.java:276)
at java.lang.Class.newInstance(Class.java:259)
at com.sun.web.core.ServletWrapper.loadServlet(ServletWrapper.java:90)
at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:109)
at com.sun.web.core.InvokerServlet.service(InvokerServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
at com.sun.web.core.Context.handleRequest(Context.java:375)
at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:135)

Is it Jfreechart servlet only run on Apache + tomcat?
Thx
Thomas

Bryan

Re: Error running JFreeServletDemo

Post by Bryan » Sun Nov 03, 2002 7:44 am

Thomas

Batik to used to generate SVG output with the parameter imagetype. By default this is JPEG. Unless you required specified svg output then you should not need. But i am not quite following your stack trace. Perhaps jsdk2.1 requires all classes to be available?

A simple fix is to add the apache batik to your classpath.

Nb. width is spelt wrong in your url.


Bryan

Locked