Hi,
I'm a FusionCharts newbie.
I'm trying to replicated the J2EE example "Plotting from a Database"
I'm using a Oracle 10G express and Tomcat.
I've created Factory_Master and Factory_Output tables in my hr database.
when trying to run the /DBExample/BasicDBExample.jsp I get this error:
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-00911: invalid character
)"
I've followed the steps in the example and modified by contect.xml to this:
<Context path="/FusionCharts_J2EE" docBase="FusionCharts_J2EE"
debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
<Resource name="jdbc/myoracle"
type="javax.sql.DataSource"
auth="Container"
url="jdbc:oracle:thin:@localhost:1521:xe"
username="hr"
password="hr"
driverClassName="oracle.jdbc.OracleDriver"
maxWait="1"
maxActive="20"
maxIdle="10"
/>
</Context>
And modified the BasicDBExample_SD.jsp to reference the datasource <sql:setDataSource dataSource="jdbc/myoracle" />.
Any help will be appreciated. Thanks