程序在tomcat上跑是正常的,但是布在WebSphere6.1以后连接数据库报错
R Exception in thread "Timer-7" java.lang.VerifyError: class loading constraint violated (class: com/ibm/db2/jcc/b/p method: a(Lcom/ibm/db2/jcc/b/pc;Lcom/ibm/db2/jcc/b/lg;)V) at pc: 0
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.lang.J9VMInternals.verifyImpl(Native Method)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.lang.J9VMInternals.verify(J9VMInternals.java:57)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:165)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.sql.DriverManager.getConnection(DriverManager.java:562)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.sql.DriverManager.getConnection(DriverManager.java:186)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at com.icss.ctobacco.share.util.DBUtil.getConnByurl(DBUtil.java:106)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at com.icss.ctobacco.share.util.AutoFun.getData(AutoFun.java:53)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at com.icss.ctobacco.share.util.AutoFun.run(AutoFun.java:38)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.util.TimerThread.mainLoop(Timer.java:527)
[09-11-26 14:42:59:790 CST] 00000190 SystemErr R at java.util.TimerThread.run(Timer.java:477)
应该是驱动的问题 我的数据库版本是db2 8.1 哪位大侠遇到这样的问题怎么解决的 麻烦告知
------解决方案--------------------------------------------------------
was的jdk是1.4的 1.5的帮不起来 要不然升级jdk配环境变量或升级was到版本7
------解决方案--------------------------------------------------------
应该是jdk版本的问题;
websphere6.0支持jdk1.4,
6.1支持jdk1.5,
7.0支持1.6
------解决方案--------------------------------------------------------
你用jdk1.5编译出来的class文件,怎么能到jdk1.4上执行呢。修过环境变量,把path中的jdk.15对应的路径放在最前面。
------解决方案--------------------------------------------------------
这样的问题通常能在 ibm.com 上找到:
Google 关键字:at java.lang.J9VMInternals.verifyImpl site:ibm.com
参考这个文章
http://publib.boulder.ibm.com/infocenter/tivihelp/v3r1/index.jsp?topic=/com.ibm.tivoli.itws.doc_8.5.1/tdwcdbconnerr.htm