tomcat start

时间:2017-12-10 14:08:26

标签: java tomcat jersey

我的项目(在jdk1.8.0_152和apache-tomcat-8.5.24上运行)使用的是asm3.1 jar。我把它改成了asm6.0。现在在tomcat开始我正在

  

java.lang.IllegalArgumentException异常

我该如何解决这个问题?

  

java.lang.IllegalArgumentException at   jersey.repackaged.org.objectweb.asm.ClassReader。(ClassReader.java:170)     在   jersey.repackaged.org.objectweb.asm.ClassReader。(ClassReader.java:153)     在   jersey.repackaged.org.objectweb.asm.ClassReader。(ClassReader.java:424)     在   com.sun.jersey.spi.scanning.AnnotationScannerListener.onProcess(AnnotationScannerListener.java:138)     在   com.sun.jersey.core.spi.scanning.JarFileScanner.scan(JarFileScanner.java:97)     在   com.sun.jersey.spi.scanning.servlet.WebAppResourcesScanner $ 1.F(WebAppResourcesScanner.java:94)     在com.sun.jersey.core.util.Closing.f(Closing.java:71)

Classpath

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="modules/app"/>
    <classpathentry kind="src" path="modules/domain"/>
    <classpathentry kind="src" path="temp/web/WEB-INF/lib"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="lib" path="modules/lib/servlet-api.jar"/>
    <classpathentry kind="lib" path="modules/lib/httpclient-4.5.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/httpcore-4.4.6.jar"/>
    <classpathentry kind="lib" path="modules/lib/mysql-connector-java-5.1.37-bin.jar"/>
    <classpathentry kind="lib" path="modules/lib/aws-java-sdk-1.11.138.jar"/>
    <classpathentry kind="lib" path="modules/lib/mongo-2.10.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/json_simple-1.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/commons-beanutils-1.8.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/guava-14.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/jedis-2.8.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/commons-pool2-2.4.2.jar"/>
    <classpathentry kind="lib" path="buildconfig/gen/out"/>
    <classpathentry kind="lib" path="modules/lib/cglib-nodep-2.2.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/geocode.jar"/>
    <classpathentry kind="lib" path="modules/lib/json-org.jar" sourcepath="modules/lib/json-org.jar"/>
    <classpathentry kind="lib" path="modules/lib/eclipselink.jar"/>
    <classpathentry kind="lib" path="modules/lib/poi-ooxml-schemas-3.7.jar"/>
    <classpathentry kind="lib" path="modules/lib/jaxb-api.jar"/>
    <classpathentry kind="lib" path="modules/lib/jaxb-core.jar"/>
    <classpathentry kind="lib" path="modules/lib/jaxb-impl.jar"/>
    <classpathentry kind="lib" path="modules/lib/jaxb-jxc.jar"/>
    <classpathentry kind="lib" path="modules/lib/jaxb-xjc.jar"/>
    <classpathentry kind="lib" path="modules/lib/gson-2.2.4.jar"/>
    <classpathentry kind="lib" path="modules/lib/velocity-1.7.jar"/>
    <classpathentry kind="lib" path="modules/lib/commons-lang-2.4.jar"/>
    <classpathentry kind="lib" path="modules/lib/poi-3.10-beta2.jar"/>
    <classpathentry kind="lib" path="modules/lib/mpxj.jar"/>
    <classpathentry kind="lib" path="modules/lib/shiro-core-1.2.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/slf4j-api-1.7.6.jar"/>
    <classpathentry kind="lib" path="config/email/templates"/>
    <classpathentry kind="lib" path="modules/lib/shiro-ehcache-1.2.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/ehcache-2.8.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/quartz-2.2.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/jackson-annotations-2.8.8.jar"/>
    <classpathentry kind="lib" path="modules/lib/jackson-databind-2.8.8.jar"/>
    <classpathentry kind="lib" path="modules/lib/jackson-core-2.8.8.jar"/>
    <classpathentry kind="lib" path="modules/lib/Rhino_1_7R4.jar"/>
    <classpathentry kind="lib" path="modules/lib/poi-ooxml-3.9.jar"/>
    <classpathentry kind="lib" path="modules/lib/xmlbeans-2.3.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/opencsv-2.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/BASE64Decoder.jar"/>
    <classpathentry kind="lib" path="modules/lib/commons-net-3.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/mybatis-3.2.8.jar"/>
    <classpathentry kind="lib" path="modules/lib/commons-math3-3.5.jar"/>
    <classpathentry kind="lib" path="modules/lib/itextpdf-5.5.6.jar"/>
    <classpathentry kind="lib" path="modules/lib/joda-time-2.8.jar"/>
    <classpathentry kind="lib" path="modules/lib/jcommon-1.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/jfreechart-1.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/jsoup-1.8.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/diffutils-1.3.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/grammatica-1.5.jar"/>
    <classpathentry kind="lib" path="modules/lib/mibble-mibs-2.9.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/mibble-parser-2.9.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/snmp6_0.jar"/>
    <classpathentry kind="lib" path="modules/lib/concurrent-trees-2.4.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/thumbnailator-0.4.8.jar"/>
    <classpathentry kind="lib" path="modules/lib/batik-all-1.7.jar"/>
    <classpathentry kind="lib" path="modules/lib/xml-apis-ext-1.3.04.jar"/>
    <classpathentry kind="lib" path="modules/lib/evo-inflector-1.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/xmlsec-1.3.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/sqlite-jdbc-3.7.2.jar"/>
    <classpathentry kind="lib" path="modules/lib/jxl-2.6.12.jar"/>
    <classpathentry kind="lib" path="modules/lib/sonar-ant-task-1.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/zip4j_1.3.2.jar"/>
    <classpathentry kind="lib" path="modules/lib/commons-httpclient-3.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-api-client-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-api-client-servlet-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-api-services-drive-v2-rev268-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-http-client-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-http-client-jackson-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-oauth-client-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-oauth-client-java6-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-oauth-client-jetty-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-http-client-jackson2-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/cdi-api.jar"/>
    <classpathentry kind="lib" path="modules/lib/javax.inject-1.jar"/>
    <classpathentry kind="lib" path="modules/lib/javax.websocket-api-1.0-rc4.jar"/>
    <classpathentry kind="lib" path="modules/lib/dropbox-core-sdk-3.0.3.jar"/>
    <classpathentry kind="lib" path="modules/lib/google-api-services-drive-v3-rev71-1.22.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/org.mortbay.jetty.server_6.1.22.jar"/>
    <classpathentry kind="lib" path="modules/lib/org.mortbay.jetty.util_6.1.22.jar"/>
    <classpathentry kind="lib" path="modules/lib/elasticsearch-6.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/hppc-0.7.2.jar"/>
    <classpathentry kind="lib" path="modules/lib/lang-mustache-client-6.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/log4j-api-2.9.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/log4j-core-2.9.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/lucene-core-7.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/lucene-highlighter-7.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/lucene-join-7.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/lucene-queries-7.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/lucene-queryparser-7.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/lucene-sandbox-7.0.1.jar"/>
    <classpathentry kind="lib" path="modules/lib/netty-all-4.1.18.Final.jar"/>
    <classpathentry kind="lib" path="modules/lib/parent-join-client-6.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/percolator-client-6.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/reindex-client-6.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/t-digest-3.2.jar"/>
    <classpathentry kind="lib" path="modules/lib/transport-6.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/transport-netty4-client-6.0.0.jar"/>
    <classpathentry kind="lib" path="modules/lib/custombuild.jar"/>
    <classpathentry kind="lib" path="modules/lib/hibernate-c3p0-5.2.12.Final.jar"/>
    <classpathentry kind="lib" path="modules/lib/custombase.jar"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

custombase.jar,custombuild.jar这两个是一组其他的jar。 custombase.jar里面有所有这些jar

            <zipfileset src="lib/dom4j-1.6.1.jar"/>
            <zipfileset src="lib/commons/commons-codec-1.10.jar"/>
            <zipfileset src="lib/commons/commons-collections-3.1.jar"/>
            <zipfileset src="lib/commons/commons-fileupload-1.2.2.jar"/>
            <zipfileset src="lib/commons/commons-io-2.4.jar"/>
            <zipfileset src="lib/commons/commons-lang3-3.1.jar"/>
            <zipfileset src="lib/commons/js.jar"/>
            <zipfileset src="lib/commons/gson-2.2.2.jar"/>
            <zipfileset src="lib/hibernate/antlr-2.7.7.jar"/>
            <zipfileset src="lib/hibernate/hibernate-commons-annotations-4.0.1.Final.jar"/>
            <zipfileset src="lib/hibernate/hibernate-core-4.1.9.Final.jar"/>
            <zipfileset src="lib/hibernate/hibernate-jpa-2.0-api-1.0.1.Final.jar"/>
            <zipfileset src="lib/hibernate/javassist-3.17.1-GA.jar"/>
            <zipfileset src="lib/hibernate/jboss-logging-3.1.0.GA.jar"/>
            <zipfileset src="lib/hibernate/jboss-transaction-api_1.1_spec-1.0.0.Final.jar"/>
            <zipfileset src="lib/hibernate/c3p0-0.9.2-pre5.jar"/>
            <zipfileset src="lib/hibernate/hibernate-c3p0-4.1.9.Final.jar"/>
            <zipfileset src="lib/hibernate/mysql-connector-java-5.1.13-bin.jar"/>
            <zipfileset src="lib/hibernate/mchange-commons-java-0.2.3.jar"/>

            <zipfileset src="lib/jersey/jersey-bundle-1.19.4.jar"/>
            <zipfileset src="lib/jersey/asm-6.0.jar"/>
            <zipfileset src="lib/jersey/jackson-mini-1.9.9.jar"/>

            <zipfileset src="lib/javamail/mail.jar"/>
            <zipfileset src="lib/javamail/mailapi.jar"/>
            <zipfileset src="lib/javamail/imap.jar"/>
            <zipfileset src="lib/javamail/smtp.jar"/>
            <zipfileset src="lib/javamail/pop3.jar"/>
            <zipfileset src="lib/javamail/dsn.jar"/>

            <zipfileset src="lib/logback/logback-access-1.0.9.jar"/>
            <zipfileset src="lib/logback/logback-classic-1.0.9.jar"/>
            <zipfileset src="lib/logback/logback-core-1.0.9.jar"/>
            <zipfileset src="lib/logback/slf4j-api-1.7.2.jar"/>

            <zipfileset src="lib/logging/commons-logging-1.1.1.jar"/>
            <zipfileset src="lib/logging/commons-logging-adapters-1.1.1.jar"/>
            <zipfileset src="lib/logging/commons-logging-api-1.1.1.jar"/>

            <zipfileset src="lib/http/fluent-hc-4.2.2.jar"/>
            <zipfileset src="lib/http/httpclient-4.2.2.jar"/>
            <zipfileset src="lib/http/httpclient-cache-4.2.2.jar"/>
            <zipfileset src="lib/http/httpcore-4.2.2.jar"/>
            <zipfileset src="lib/http/httpmime-4.2.2.jar"/>

0 个答案:

没有答案