这篇文章主要围绕Struts2错误-com.opensymphony.xwork2.util.logging.commons.CommonsLogger错误和struts2couldnotfindac
这篇文章主要围绕Struts 2错误-com.opensymphony.xwork2.util.logging.commons.CommonsLogger错误和struts2 could not find action or result展开,旨在为您提供一份详细的参考资料。我们将全面介绍Struts 2错误-com.opensymphony.xwork2.util.logging.commons.CommonsLogger错误的优缺点,解答struts2 could not find action or result的相关问题,同时也会为您带来apache.commons.logging.Log、com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithBadConstructor的实例源码、com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithManyConstructors的实例源码、com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithWrongTypesConstructor的实例源码的实用方法。
本文目录一览:- Struts 2错误-com.opensymphony.xwork2.util.logging.commons.CommonsLogger错误(struts2 could not find action or result)
- apache.commons.logging.Log
- com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithBadConstructor的实例源码
- com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithManyConstructors的实例源码
- com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithWrongTypesConstructor的实例源码
Struts 2错误-com.opensymphony.xwork2.util.logging.commons.CommonsLogger错误(struts2 could not find action or result)
我试图运行Struts2的样品application.While开始我得到低于使用错误和恶意代码的服务器在这里。我在这里实现了相同的代码相同的罐子。
struts2-convention-plugin-2.3.1.2.jar,asm.jar,
antlr-2.7.6.jar,commons-fileupload-1.2.2.jar,
commons-io-2.0.1.jar,commons-lang-2.5。 jar,
commons-logging-1.1.1.jar,commons-logging-api-1.1.jar,
freemarker-2.3.18.jar javassist-3.11.0.GA.jar,ognl-3.0.4.jar,struts2-core
-2.3.1.2.jar,xwork-core.2.3.1.2.jar
Jun 29, 2013 6:58:18 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger errorSEVERE: Unable to read class [com.tutorialspoint.struts2.Employee]java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:780) at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:165) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:376) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:334) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:195) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:424) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.commons.EmptyVisitor at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ... 36 moreJun 29, 2013 6:58:18 PM org.apache.coyote.http11.Http11Protocol startINFO: Starting Coyote HTTP/1.1 on http-8080Jun 29, 2013 6:58:18 PM org.apache.jk.common.ChannelSocket init
答案1
小编典典添加/替换以下jar文件
asm-3.3.jarasm-commons-3.3.jarasm-tree-3.3.jar
apache.commons.logging.Log
package com.cnse.log.apacheLog;
import com.sun.org.apache.commons.logging.Log;
import com.sun.org.apache.commons.logging.LogFactory;
public class ApacheLog {
Log log = LogFactory.getLog(ApacheLog.class);
public void apacheLog() {
log.info("这是apche common logging 日志记录工具");
}
}
com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithBadConstructor的实例源码
public void testGetCheckedUntimed_badExceptionConstructor_failsEvenForSuccessfulinput() throws Exception { try { getChecked(immediateFuture("x"),ExceptionWithBadConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithBadConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedTimed_badExceptionConstructor_failsEvenForSuccessfulinput() throws Exception { try { getChecked(immediateFuture("x"),ExceptionWithBadConstructor.class,1,TimeUnit.SECONDS); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedTimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception { try { getChecked( Failed_FUTURE_CHECKED_EXCEPTION,TimeUnit.SECONDS); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedUntimed_badExceptionConstructor_failsEvenForSuccessfulinput() throws Exception { try { getChecked(immediateFuture("x"),ExceptionWithBadConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithBadConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedTimed_badExceptionConstructor_failsEvenForSuccessfulinput() throws Exception { try { getChecked(immediateFuture("x"),TimeUnit.SECONDS); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedTimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception { try { getChecked( Failed_FUTURE_CHECKED_EXCEPTION,TimeUnit.SECONDS); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedUntimed_badExceptionConstructor_failsEvenForSuccessfulinput() throws Exception { try { getChecked(immediateFuture("x"),ExceptionWithBadConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithBadConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedTimed_badExceptionConstructor_failsEvenForSuccessfulinput() throws Exception { try { getChecked(immediateFuture("x"),TimeUnit.SECONDS); fail(); } catch (IllegalArgumentException expected) { } }
public void testGetCheckedTimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception { try { getChecked( Failed_FUTURE_CHECKED_EXCEPTION,TimeUnit.SECONDS); fail(); } catch (IllegalArgumentException expected) { } }
com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithManyConstructors的实例源码
public void testGetCheckedUntimed_exceptionClassprefeRSStringConstructor() { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithManyConstructors.class); fail(); } catch (ExceptionWithManyConstructors expected) { assertTrue(expected.usedExpectedConstructor); } }
public void testGetCheckedUntimed_exceptionClassprefeRSStringConstructor() { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithManyConstructors.class); fail(); } catch (ExceptionWithManyConstructors expected) { assertTrue(expected.usedExpectedConstructor); } }
public void testGetCheckedUntimed_exceptionClassprefeRSStringConstructor() { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithManyConstructors.class); fail(); } catch (ExceptionWithManyConstructors expected) { assertTrue(expected.usedExpectedConstructor); } }
com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithWrongTypesConstructor的实例源码
@SuppressWarnings("FuturesGetCheckedIllegalExceptionType") public void testGetCheckedUntimed_exceptionClasspublicConstructorWrongType() throws ExceptionWithWrongTypesConstructor { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithWrongTypesConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
@SuppressWarnings("FuturesGetCheckedIllegalExceptionType") public void testGetCheckedUntimed_exceptionClasspublicConstructorWrongType() throws ExceptionWithWrongTypesConstructor { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithWrongTypesConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
@SuppressWarnings("FuturesGetCheckedIllegalExceptionType") public void testGetCheckedUntimed_exceptionClasspublicConstructorWrongType() throws ExceptionWithWrongTypesConstructor { try { getChecked(Failed_FUTURE_CHECKED_EXCEPTION,ExceptionWithWrongTypesConstructor.class); fail(); } catch (IllegalArgumentException expected) { } }
关于Struts 2错误-com.opensymphony.xwork2.util.logging.commons.CommonsLogger错误和struts2 could not find action or result的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于apache.commons.logging.Log、com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithBadConstructor的实例源码、com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithManyConstructors的实例源码、com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithWrongTypesConstructor的实例源码等相关内容,可以在本站寻找。
本文标签: