日期:2014-05-16  浏览次数:20532 次

DB2 JDBC 驱动在Tomcat7 下报错的问题

?

一个简单工程在tomcat6Jetty下运行都没有问题,但在Tomcat7下启动报错如下:

?

八月 06, 2012 4:54:24 下午 org.apache.catalina.core.ContainerBase addChildInternal

严重: ContainerBase.addChild: start:

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/qhbiurc]]

???????? at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

???????? at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:897)

???????? at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:873)

???????? at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)

???????? at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)

???????? at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)

???????? at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

???????? at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

???????? at java.util.concurrent.FutureTask.run(FutureTask.java:166)

???????? at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

???????? at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

???????? at java.lang.Thread.run(Thread.java:722)

Caused by: org.apache.tomcat.util.bcel.classfile.ClassFormatException: null is not a Java .class file

???????? at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:238)

???????? at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114)

???????? at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1972)

???????? at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1863)

???????? at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1831)

???????? at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1817)

???????? at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1218)

???????? at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:825)

???????? at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:300)

???????? at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

???????? at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

???????? at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)

???????? at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

<