Rich : Updating ROVCTD Plots using JFreeChart and Tomcat This page last changed on Dec 30, 2010 by rich. 29-Dec-2010, Want to revisit rovctd plots and tomcat servlet container to prepare to bring them up-to-date, they havent been touched for years.... eg. tomcat on anvil is 5.5 and current rev is 7.0, java was 1.4 Im setting it up on macbook in my windows 7 VM #### Install java sdk First I installed java6 jre but that was a mistake... I will need the java sdk to get tools.jar etc. that ANT requires. (jre might be ok though for deployment to anvil or typhoon?) So get java sdk from oracle... not my vm is 32-bit cpu. so get the right one., download w/firefox and click the resulting exewhich was jdk-6u23-windows-i586.exe Set environment variables: JAVA_HOME C:\Program Files\Java\jdk1.6.0_23 JRE_HOME C:\Program Files\Java\jdk1.6.0_23 (for tomcat) Add to PATH: ;%JAVA_HOME%\bin ## #### Install ant Install ant 1.8.2, firefox download and unzip to c:\ant <<< my choice.... Set environment variables: ANT_HOME C:\Program Files\Ant\apache-ant-1.8.2 Add to PATH: ;%ANT_HOME%\bin #### Install Tomcat #### #### download only the 32-bit/64-bit Windows Service Installer (it gets the Tomcat binarys) Actually the link downloads: apache-tomcat-7.0.5.exe5) cd to it in a cmd window and execute it, or just click it in the firefox downloads-manage use defaults, or pick a different port # and be sure to pick an admin acct and password to be able to manage it remotely. NOTE Anvil gets port 8085 because there is an apache with 8080... test: http://localhost:8080 see:http://tomcat.apache.org/download-70.cgi see also:http://www.mulesoft.com/tomcat-windows\\ #### Clean up java path problems I had a lot of issues with no class def found when trying to run java to test installation. Turned out something, either tomcat or javasdk put a copy of java.exe in Windows\system32. I deleted those 3 exe's all installed with same timestamp. Also had to go to tomcat7\bin and run the tomcat7w.exe and check the java tab to get it to point away from the jre6 jvm.dll installed earlier and point to the sdk version down in C:\Program Files\Java\jdk1.6.0_23\jre\bin\client\jvm.dll #### Get a bunch of Jar files.... jTDS (1.2 upgraded to 1.2.5) commons.pool (1.3 > 1.5.5) commons.dbcp (1.2.1 > 1.4) commons.logging (1.1.1) commons-collections (3.2 > 3.2.1) All of the above, basically download the binary distributions, unzip somewhere, then drag the .jar file to c:/Program Files/Apache Software Foundation/Tomcat 7.0/lib #### Get jFreeChart download distribution of jFreeChart (1.0.2 > 1.0.13) get the jfreechart-1.0.13.jar and jcommon-1.0.16.jar that is with it and drag to c:/Program Files/Apache Software Foundation/Tomcat 7.0/lib #### Get the old rovctd webapps folder from anvils tomcat 5.5 and drop it into my tomcat 7.0 webapps dir #### Checkout RovctdPlots from cvs to C:\Projects edit all applications.java to point to localhost 8080 or....anvil or typhoon edit build.xml configure server.xml etc according to database inst. here and elsewhere... need the jtds add, also note that is where the connection is set to either solstice or other... Restart tomcat.... I often had to start twice after stoppin, it throws error when stopping, then have to start twice, once with error. Fist time after startup, takes a long time to runt the app. Able to do ant clean prepare compile deploy.libs deploy.datagenerators deploy.plots run.1 thru 5 Stopped for today... doesnt run over browser. I get errors http://134.89.11.41:8080/rovctd/pages/stackedtimeseries.jsp?platform=vnta&dive=3596&domain=epochsecs&noHTMLHeader=0&r1=p&r2=t&r3=s&r4=light&r5=o2\\ org.apache.jasper.JasperException: /pages/stackedtimeseries.jsp(24,49) Attribute value request.getParameter("platform") is quoted with " which must be escaped when used within the value org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:280)

Document generated by Confluence on Feb 04, 2026 08:50