天天看點

目測websphere6.1不支援dbcp1.4以及1.4以上版本

如果報錯Error 500: LinkageError while defining class: org.apache.commons.dbcp.***

請更換commons.dbcp至commons-dbcp-1.3.jar即可...so easy啊!!今天惡心壞了,websphere果然是個大奇葩,大奇葩!!

報錯日志:

 Error 500: LinkageError while defining class: org.apache.commons.dbcp.ConnectionFactory Could not be defined due to: (org/apache/commons/dbcp/ConnectionFactory) bad major version at offset=6 This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining