我在Ubuntu 12.04 64位上运行tomcat7。使用jdb附加到tomcat,这是我的类路径:
> classpath
base directory: /var/lib/tomcat7
classpath: [/usr/share/tomcat7/bin/bootstrap.jar, /usr/share/tomcat7/bin/tomcat-juli.jar]
bootclasspath: [/usr/lib/jvm/java-6-openjdk-i386/jre/lib/resources.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/rt.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/sunrsasign.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/jsse.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/jce.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/charsets.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/jfr.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/netx.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/plugin.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/lib/rhino.jar, /usr/lib/jvm/java-6-openjdk-i386/jre/classes
我的问题恰恰是这样:JDBC Cannot load Factory Class for Data Source tomcat-jdbc.jar
似乎不在我的类路径中。但是:
me @ mymachine / var / lib / tomcat7☭ls server / classes | grep tomcat-jdbc 9:00:12 -rw-r - r-- 1 root root 124k Jun 12 16:39 tomcat-jdbc.jar
就在那里。
为什么不在我的课程路径上,更重要的是我如何在那里获得它?
答案 0 :(得分:0)
我在/var/lib/tomcat7/server/classes/*.jar
找到的common.loader
中向catalina.properties
添加了/var/lib/tomcat7/conf/catalina.properties
。
这修复了(可能还有其他一些看不见的)错误