博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JXL组件生成报表报错(一)
阅读量:6068 次
发布时间:2019-06-20

本文共 6848 字,大约阅读时间需要 22 分钟。

JXL组件生成报表

1、详细报错例如以下

usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ]  { -help | start | stop }2014-5-3 17:14:13 org.apache.catalina.core.AprLifecycleListener init信息: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.2014-5-3 17:14:14 org.apache.catalina.core.AprLifecycleListener init信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].2014-5-3 17:14:15 org.apache.catalina.core.AprLifecycleListener initializeSSL信息: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)2014-5-3 17:14:16 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["http-apr-8686"]2014-5-3 17:14:16 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["ajp-apr-8009"]2014-5-3 17:14:16 org.apache.catalina.startup.Catalina load信息: Initialization processed in 3536 ms2014-5-3 17:14:16 org.apache.catalina.core.StandardService startInternal信息: Starting service Catalina2014-5-3 17:14:16 org.apache.catalina.core.StandardEngine startInternal信息: Starting Servlet Engine: Apache Tomcat/7.0.412014-5-3 17:14:29 org.apache.catalina.util.SessionIdGenerator createSecureRandom信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [1,449] milliseconds.log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.2014-5-3 17:14:33 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter struts2Unable to load configuration. - bean - jar:file:/D:/MyEclipse/workspace/JXL/WebRoot/WEB-INF/lib/struts2-core-2.3.16.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:281)	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)	at org.apache.catalina.core.ApplicationFilterConfig.
(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) 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/workspace/JXL/WebRoot/WEB-INF/lib/struts2-core-2.3.16.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) ... 15 moreCaused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/MyEclipse/workspace/JXL/WebRoot/WEB-INF/lib/struts2-core-2.3.16.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) ... 17 moreCaused 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) ... 20 moreCaused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 24 more2014-5-3 17:14:33 org.apache.catalina.core.StandardContext startInternal严重: Error filterStart2014-5-3 17:14:33 org.apache.catalina.core.StandardContext startInternal严重: Context [/JXL] startup failed due to previous errors2014-5-3 17:14:35 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\docs2014-5-3 17:14:36 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\examples2014-5-3 17:14:39 org.apache.catalina.core.ApplicationContext log信息: ContextListener: contextInitialized()2014-5-3 17:14:39 org.apache.catalina.core.ApplicationContext log信息: SessionListener: contextInitialized()2014-5-3 17:14:40 org.apache.catalina.core.ApplicationContext log信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1b493c6')2014-5-3 17:14:40 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\host-manager2014-5-3 17:14:40 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\manager2014-5-3 17:14:41 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\ROOT2014-5-3 17:14:41 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["http-apr-8686"]2014-5-3 17:14:41 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["ajp-apr-8009"]2014-5-3 17:14:41 org.apache.catalina.startup.Catalina start信息: Server startup in 24742 ms
2、错误原因

     未导入commons-fileupload-1.3.jar

3、解决的方法

     向WEB-INF文件夹下的lib文件夹下导入commons-fileupload-1.3.jar

转载地址:http://lufgx.baihongyu.com/

你可能感兴趣的文章
c++解释--百度百科
查看>>
Servlet请求参数编码处理(POST & GET)
查看>>
.NET Core RC2发布在即,我们试着用记事本编写一个ASP.NET Core RC2 MVC程序
查看>>
Ubuntu系统启用Apache Mod_rewrite模块
查看>>
再论堆栈 4 -——编程的物质基础!【转】【译】
查看>>
在MVC控制器里面使用dynamic和ExpandoObject,实现数据转义的输出
查看>>
hadoop怎么读?怎么发音
查看>>
LaTeX排版工具使用
查看>>
JS 一个修改ul的小示例
查看>>
python 递归
查看>>
原型链-面向面试
查看>>
shr 右移测试
查看>>
文件夹中的文件以目录的形式呈现
查看>>
java操作数据库出错
查看>>
linux基础-第十四单元 Linux网络原理及基础设置
查看>>
浅谈一下Windows下的用户权限
查看>>
什么是linux的ftp
查看>>
Python命令行解析argparse常用语法使用简介
查看>>
Spring 4 官方文档学习(十二)View技术
查看>>
jsp页面验证码(完整实例)
查看>>