I have JServ on Apache as a java server.
But, I cant run the servlet.
Please help me for installation it.
thanks.
Regards
Servlet don't work
Re: Servlet don't work
Hi
I got it to work on Tomcat and the principle should be the same on other servers i think. In tomcat I did the following:
Tomcat 3.2.1 & 4
ROOT\servlet-demo.html
ROOT\WEB-INF\web.xml
ROOT\WEB-INF\classes\com\jrefinery\chart\demo\"all class files"
ROOT\WEB-INF\lib\jcommon-0.6.1.jar
ROOT\WEB-INF\lib\jfreechart-0.8.1.jar
And change the line in servlet-demo.html from
action="http://nomad:8080/jfreechart/servlet/JF ... ervletDemo" to action="../servlet/com.jrefinery.chart.demo.JFreeChartServletDemo".
Then point your browser to the servlet-demo.html page and then submit the form bringing up your graph. I hope this helps (If you can run a servlet then this is the same)
Regards
A.M
I got it to work on Tomcat and the principle should be the same on other servers i think. In tomcat I did the following:
Tomcat 3.2.1 & 4
ROOT\servlet-demo.html
ROOT\WEB-INF\web.xml
ROOT\WEB-INF\classes\com\jrefinery\chart\demo\"all class files"
ROOT\WEB-INF\lib\jcommon-0.6.1.jar
ROOT\WEB-INF\lib\jfreechart-0.8.1.jar
And change the line in servlet-demo.html from
action="http://nomad:8080/jfreechart/servlet/JF ... ervletDemo" to action="../servlet/com.jrefinery.chart.demo.JFreeChartServletDemo".
Then point your browser to the servlet-demo.html page and then submit the form bringing up your graph. I hope this helps (If you can run a servlet then this is the same)
Regards
A.M
Re: Servlet don't work
I am trying to get the sample Servlet to work on a WebLogic 6.1 server. I followed the steps outlined in the post above (made a few WebLogic-specific changes;the action statement to be specific) and I get the following error:
How do I correct this? I put the 2 jar files in my classpath so there is no reason for it not to find standard JFreeChart classes.....
<Jun 3, 2002 2:26:59 PM EDT> <Error> <HTTP> <[WebAppServletContext(401607,DefaultWebApp,/DefaultWebApp)] Servlet failed with Exception
java.lang.NoClassDefFoundError
at com.jrefinery.chart.HorizontalCategoryAxis.<init>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createVerticalBarChart(Unknown Source)
at com.jrefinery.chart.demo.JFreeChartServletDemo.createChart(Unknown Source)
at com.jrefinery.chart.demo.JFreeChartServletDemo.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
How do I correct this? I put the 2 jar files in my classpath so there is no reason for it not to find standard JFreeChart classes.....
<Jun 3, 2002 2:26:59 PM EDT> <Error> <HTTP> <[WebAppServletContext(401607,DefaultWebApp,/DefaultWebApp)] Servlet failed with Exception
java.lang.NoClassDefFoundError
at com.jrefinery.chart.HorizontalCategoryAxis.<init>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createVerticalBarChart(Unknown Source)
at com.jrefinery.chart.demo.JFreeChartServletDemo.createChart(Unknown Source)
at com.jrefinery.chart.demo.JFreeChartServletDemo.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
Re: Servlet don't work
OK, so I did some more searching and came across PJA. I downloaded it and unzipped it, put the jars in my classpath but now what? I am not sure what (if anything) I need to change in the JFreeChart source to make it go.