0

雄猫 6.0.36

启动我的 tomcat 时出现 java.lang.NoSuchMethodError。

我的 server.xml 中有这个:

<Host name="dev.spirit.comp.net" appBase="spirit"
                unpackWARs="true" autoDeploy="true" xmlValidation="false"
                xmlNamespaceAware="false">
                <Alias>dev.spirit.comp.com</Alias>  
                <Valve className="org.apache.catalina.valves.ImprovedAccessLogValve"
                directory="logs/spirit" prefix="${hostname}-${port}.access_log."
                suffix=".txt"
                pattern="%h %v %u %t '%r' %s %b '%{Referer}i' '%{User-Agent}i' '%{Cookie}i'"
                resolveHosts="false" fileDateFormat="yyyy-MM-dd.HH" />

我收到此错误:

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NoSuchMethodError: org.apache.catalina.valves.AccessLogValve$LocalAddrElement.<init>(Lorg/apache/catalina/valves/AccessLogValve;)V
    at org.apache.catalina.valves.ImprovedAccessLogValve.initElements(ImprovedAccessLogValve.java:136)
    at org.apache.catalina.valves.ImprovedAccessLogValve.<init>(ImprovedAccessLogValve.java:29)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
4

1 回答 1

0

发现问题,由于某种原因,tomcat服务器中有一些jar文件来自另一个版本

于 2014-04-16T01:51:23.547 回答