`

SOAPUI 无法启动,Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitiali

阅读更多

SOAPUI之前是可以用的,一段时间不用后,突然用不了了,启动的时候报了如下的错:

Configuring log4j from [F:\tools\SOAPUI\SoapUI-5.0.0\bin\soapui-log4j.xml]
22:07:54,618 INFO  [DefaultSoapUICore] initialized soapui-settings from [C:\Users\Administrator\soapui-settings.xml]
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:396)
        at com.eviware.soapui.SwingSoapUICore.initSettings(SwingSoapUICore.java:122)
        at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:148)
        at com.eviware.soapui.StandaloneSoapUICore.<init>(StandaloneSoapUICore.java:40)
        at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:697)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: N
o suitable Log constructor [Ljava.lang.Class;@4331d29e for org.apache.commons.logging.impl.Log4JLogger (Caused by java.l
ang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No
 suitable Log constructor [Ljava.lang.Class;@4331d29e for org.apache.commons.logging.impl.Log4JLogger (Caused by java.la
ng.NoClassDefFoundError: org/apache/log4j/Category))
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
        at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.<init>(ThreadSafeClientConnManager.java:116)
        at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.<init>(ThreadSafeClientConnManager.java:91)
        at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager.<init>(SoapUIMultiThreaded
HttpConnectionManager.java:74)
        at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.<init>(HttpClientSupport.java:216)
        at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.<clinit>(HttpClientSupport.java:61)
        ... 19 more
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@4331d29e
 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
        ... 27 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
        at java.lang.Class.getConstructor0(Class.java:2842)
        at java.lang.Class.getConstructor(Class.java:1718)
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
        ... 28 more
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 33 more

 

看错误信息,是无法加载到类java.lang.ClassNotFoundException: org.apache.log4j.Category
,查了一下soapui下的lib文件夹,common-logging这个jar包是存在的,后面也不知道什么原因,

上网查了一下,有说到是jar包冲突,就到jdk(我的jdk是jdk1.7.0_60)下查看,

在目录C:\Program Files\Java\jdk1.7.0_60\jre\lib\ext下发现了common-logging这个jar包,将其删除后,

重新启动SOAPUI,成功。。。

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics