润乾报表使用mysql连接的困惑

润乾报表的Example中,server.xml是这样设计的

代码
  1. <Context path="/report" docBase="report" debug="0" privileged="true">   
  2.                     <Resource name="hsql" auth="Container" type="javax.sql.DataSource" />   
  3.                     <ResourceParams name="hsql">   
  4.                         <parameter>   
  5.                             <name>username</name>   
  6.                             <value>root</value>   
  7.                         </parameter>   
  8.                         <parameter>   
  9.                             <name>password</name>   
  10.                             <value>root</value>   
  11.                         </parameter>   
  12. <parameter>   
  13.                             <name>driverClassName</name>   
  14.                             <value>org.hsqldb.jdbcDriver</value>   
  15.                         </parameter>   
  16.                            
  17.                         <parameter>   
  18.                             <name>url</name>   
  19.                             <value>jdbc:hsqldb:hsql://localhost/</value>   
  20.                         </parameter>   
  21. </context>  
这样是可以成功连接数据库的,然而我把它改成使用MYSQL,就一直不成功
代码
  1. <Context path="/report" docBase="report" debug="0" privileged="true">   
  2.                     <Resource name="hsql" auth="Container" type="javax.sql.DataSource" />   
  3.                     <ResourceParams name="hsql">   
  4.                         <parameter>   
  5.                             <name>username</name>   
  6.                             <value>root</value>   
  7.                         </parameter>   
  8.                         <parameter>   
  9.                             <name>password</name>   
  10.                             <value>root</value>   
  11.                         </parameter>   
  12.                        
  13.                         <parameter>   
  14.                             <name>driverClassName</name>   
  15.                             <value>org.gjt.mm.mysql.Driver</value>   
  16.                         </parameter>   
  17.                         <parameter>   
  18.                             <name>url</name>   
  19.                             <value>jdbc:mysql://localhost:3306/stsystem</value>   
  20.                         </parameter>   
  21. </context>  

web.xml我也改了

 代码

  1. <init-param>   
  2.             <param-name>dataSource</param-name>   
  3.             <param-value>hsql,MYSQL,GBK,0</param-value>   
  4.         </init-param>  

 

一直报这个错误

java.io.IOException:Unexpected end of input stream

应用缺省数据源错误

是不是润乾对mysql有什么特别要设置的地方?还是不支持mysql?

我的开发环境是jdk1.5 tomcat5.5 myeclipse5.5

你可能感兴趣的:(sql,mysql,SQL Server,jdbc,HSQLDB)