birt 错误归纳

eclipse 中发布birt的web项目到tomcat 中
报错1:
The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:C:\Program Files\Java\jre1.6.0_03\bin;C:\eclipse\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_6.0.1.zmye...........................等

解决:
1.eclipse中jdk的版本和本机环境变量中配置的jdk不相否
你的类编译的环境和执行的环境不是同一个JDK版本。

2.
下载   http://tomcat.heanet.ie/native/1.1.2/binaries/win32/tcnative-1.dll
放在tomcat\bin里  和C:\windows\system32下面

重启tomat eclipse



报错2:
org.apache.catalina.loader.WebappClassLoader validateJarFile:
 (F:\Book\birt\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\besttonebirt\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 
 
 
 报错3:
 "javax.naming.NameNotFoundException: Name jdbc is not bound in this Context"
 解决: 参照http://blog.sina.com.cn/s/blog_598764b10100a9e2.html
 
 
 报错4:
 严重: Servlet.service() for servlet jsp threw exception
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
解决:http://www.360doc.com/content/10/0928/00/11586_56930991.shtml
采用在项目中部署jndi的方式



报错5:
严重:
 Cannot open connection.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: There is an error in get connection, The url cannot be null.


错误6
访问报表 java.lang.OutOfMemoryError: Java heap space
解决办法:
tomcat_home/bin下catalina.bat(win)或catalina.sh(linux)执行代码前加上:
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
http://vencent888.iteye.com/blog/572202

猜你喜欢

转载自smallnopoint.iteye.com/blog/1546759