苏莫离
2016-06-06 11:50
只看到将大图报错的代码,没有看到生成缩略图的代码。现在文件只能生成大图,却没有生成缩略图,请问是哪里的问题呢
在控制器里面有变量设置,指定缩略图生成保存文件夹。
需要在web目录中创建对应的目录。
2017-3-30 11:47:28 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\Administrator\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Program Files\Java\apache-tomcat-6.0.33\bin
2017-3-30 11:47:29 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2017-3-30 11:47:29 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 442 ms
2017-3-30 11:47:29 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2017-3-30 11:47:29 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.33
2017-3-30 11:47:29 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2017-3-30 11:47:29 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2017-3-30 11:47:29 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory 03-waike
2017-3-30 11:47:29 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2017-3-30 11:47:29 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2017-3-30 11:47:30 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2017-3-30 11:47:30 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory thumbnail
2017-3-30 11:47:30 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory thumbnail.myeclipse.bak
2017-3-30 11:47:31 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2017-3-30 11:47:31 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2017-3-30 11:47:31 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/25 config=null
2017-3-30 11:47:31 org.apache.catalina.startup.Catalina start
信息: Server startup in 2847 ms
2017-3-30 11:47:51 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /index.jsp(1,2) Page directive has invalid attribute: contextType
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
at org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:311)
at org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:105)
at org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:608)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Validator.validateDirectives(Validator.java:1723)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:182)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
这样的错误该怎么办?
Java实现图片等比例缩略图
25334 学习 · 16 问题
相似问题