Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
1、错误描述
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-10 23:23:53 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8. 2014-7-10 23:23:53 org.apache.catalina.core.AprLifecycleListener init 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 2014-7-10 23:23:53 org.apache.catalina.core.AprLifecycleListener initializeSSL 信息: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013) 2014-7-10 23:23:54 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-apr-8686"] 2014-7-10 23:23:54 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-apr-8009"] 2014-7-10 23:23:54 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 1293 ms 2014-7-10 23:23:54 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 2014-7-10 23:23:54 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.53 2014-7-10 23:23:55 org.apache.tomcat.websocket.server.WsSci onStartup 信息: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 2014-7-10 23:23:56 org.apache.catalina.startup.HostConfig deployWAR 信息: Deploying web application archive D:\MyEclipse\apache-tomcat-7.0.53\webapps\blazeds.war 2014-7-10 23:23:57 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\docs 2014-7-10 23:23:57 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\examples 2014-7-10 23:23:58 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 2014-7-10 23:23:58 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 2014-7-10 23:23:58 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@177060f') 2014-7-10 23:23:58 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\FirstSSH 2014-7-10 23:24:00 com.sun.faces.config.ConfigureListener contextInitialized 信息: 初始化上下文 '/FirstSSH' 的 Mojarra 2.0.3 (FCS b03) 2014-7-10 23:24:00 com.sun.faces.spi.InjectionProviderFactory createInstance 信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。 2014-7-10 23:24:01 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Parsing configuration file [struts-default.xml] 2014-7-10 23:24:01 com.opensymphony.xwork2.util.logging.jdk.JdkLogger error 严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/D:/MyEclipse/apache-tomcat-7.0.53/webapps/FirstSSH/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:64:179 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/MyEclipse/apache-tomcat-7.0.53/webapps/FirstSSH/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:64:179 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ... 21 more Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getDeclaredConstructors(Class.java:1836) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235) ... 24 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 28 more 2014-7-10 23:24:01 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/D:/MyEclipse/apache-tomcat-7.0.53/webapps/FirstSSH/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:64:179 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: Unable to load configuration. - bean - jar:file:/D:/MyEclipse/apache-tomcat-7.0.53/webapps/FirstSSH/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:64:179 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489) ... 19 more Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/MyEclipse/apache-tomcat-7.0.53/webapps/FirstSSH/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:64:179 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ... 21 more Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getDeclaredConstructors(Class.java:1836) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235) ... 24 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 28 more 2014-7-10 23:24:01 org.apache.catalina.core.StandardContext startInternal 严重: Error filterStart 2014-7-10 23:24:01 org.apache.catalina.core.StandardContext startInternal 严重: Context [/FirstSSH] startup failed due to previous errors 2014-7-10 23:24:01 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks 严重: The web application [/FirstSSH] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@baf4ae]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 2014-7-10 23:24:01 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\host-manager 2014-7-10 23:24:01 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\manager 2014-7-10 23:24:01 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\ROOT 2014-7-10 23:24:01 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.53\webapps\StudentSystem 2014-7-10 23:24:03 com.sun.faces.config.ConfigureListener contextInitialized 信息: 初始化上下文 '/StudentSystem' 的 Mojarra 2.0.3 (FCS b03) 2014-7-10 23:24:04 com.sun.faces.spi.InjectionProviderFactory createInstance 信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。 2014-7-10 23:24:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Parsing configuration file [struts-default.xml] 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Unable to locate configuration files of the name struts-plugin.xml, skipping 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Parsing configuration file [struts-plugin.xml] 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Unable to locate configuration files of the name struts.xml, skipping 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Parsing configuration file [struts.xml] 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper) 2014-7-10 23:24:05 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info 信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser) 2014-7-10 23:24:05 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-apr-8686"] 2014-7-10 23:24:05 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-apr-8009"] 2014-7-10 23:24:05 org.apache.catalina.startup.Catalina start 信息: Server startup in 11171 ms
2、错误原因
这个错误是常见的,通过这句可以判断,“Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext”,这是缺少commons-fileupload-1.3.1.jar包
3、解决办法
将“commons-fileupload-1.3.1.jar”包复制粘贴到lib目录下,然后重启服务
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext的更多相关文章
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils
1.错误叙述性说明 警告: Could not create JarEntryRevision for [jar:file:/D:/MyEclipse/apache-tomcat-7.0.53/web ...
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
1.错误叙述性说明 2014-7-10 23:12:23 org.apache.catalina.core.StandardContext filterStart 严重: Exception star ...
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
1.错误叙述性说明 2014-7-12 0:38:57 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplica ...
- 【java web】Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
javaweb报错如下:22:49:22.155 [http-nio-8081-exec-9] ERROR org.apache.struts2.dispatcher.DefaultDispatche ...
- 上传文件代码报错,java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory
2018-09-11 11:11:08.235 ERROR 14352 --- [nio-8080-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : ...
- java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory
运行servler报错 java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory 或 java.lan ...
- java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory报错springmvc
转自:https://blog.csdn.net/qq_41879385/article/details/82892555 下面是错误信息:java.lang.ClassNotFoundExcepti ...
- CloudSim4.0报错NoClassDefFoundError,Caused by: java.lang.ClassNotFoundException: org.apache.commons.math3.distribution.UniformRealDistribution
今天下载了CloudSim 4.0的代码,运行其中自带的示例程序,结果有一部分运行错误: 原因是找不到org.apache.commons.math3.distribution.UniformReal ...
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool
原因:缺少commons-pool-X.jar包,到http://commons.apache.org/proper/commons-pool/download_pool.cgi下载后引入即可(地址可 ...
随机推荐
- Java中的递归调用
Java中不合理的使用递归调用,可能会导致栈内存溢出,这点是需要注意的. java将为每个线程维护一个栈,栈里将为每个方法保存一个栈帧,栈帧代表了一个方法的运行状态. 也就是我们常说的方法栈.最后一个 ...
- Vigenère 密码
略简单的字符串+模拟. 原题链接:https://www.luogu.org/problem/show?pid=1079#sub 如果你对那个图感到懵逼,那属于正常,但没关系,这个图其实作用不大,我们 ...
- CodeChef Sereja and Game [DP 概率 博弈论]
https://www.codechef.com/problems/SEAGM 题意: n个数(可能存在相同的数),双方轮流取数.如果在一方选取之后,所有已选取数字的GCD变为1,则此方输.问:1 若 ...
- BZOJ 2419: 电阻 [高斯消元 物理]
http://www.lydsy.com/JudgeOnline/problem.php?id=2419 题意: n个点m个电阻构成一张图,求1到n的等效电阻 第一节课看一道题弃疗,于是来做这道物理题 ...
- 二维码开源库ZBar-MDK STM32F429移植
前两篇文章已经实现ZBar在Windows平台下的编译和使用,本文将介绍如何把ZBar移植到STM32F429,IDE使用MDK. 1. MDK工程设置 (1)不勾选Use MicroLIB ,使用I ...
- 处理springMvc中responsebody返回中文乱码
法一: @RequestMapping(value="/getUsersByPage",produces = public String getUsers 法二:在sprin ...
- ThinkPHP的使用
在public目录下使用命令行执行:php -S localhost:8888 route.php 无需使用服务器就可启动
- SDP(7):Cassandra- Cassandra-Engine:Streaming
akka在alpakka工具包里提供了对cassandra数据库的streaming功能.简单来讲就是用一个CQL-statement读取cassandra数据并产生akka-stream的Sourc ...
- 【Unity3D技术文档翻译】第1.4篇 AssetBundle 依赖关系
上一章:[Unity3D技术文档翻译]第1.3篇 创建 AssetBundles 本章原文所在章节:[Unity Manual]→[Working in Unity]→[Advanced Develo ...
- 一个简单的定时表达式(HH:mm:ss)解析
前言 为客户开发了一个日志监控程序,监听各频道是否正常工作.其中有一个功能是这样的,当所有频道正常运行一段时间后,语音提示值班人员系统运行正常.一开始,想法比较简单,设置了一个变量,在线程不断轮询的过 ...