问题描述
错误信息为:javax.servlet.ServletException:Servlet.init()forservletjspthrewexceptionorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)java.lang.Thread.run(UnknownSource)rootcausejava.lang.NoClassDefFoundError:Couldnotinitializeclassorg.apache.jasper.compiler.JspRuntimeContextorg.apache.jasper.servlet.JspServlet.init(JspServlet.java:101)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)java.lang.Thread.run(UnknownSource)noteThefullstacktraceoftherootcauseisavailableintheApacheTomcat/6.0.10logs.请教高手是什么原因
解决方案
解决方案二:
现在报的错是:org.apache.jasper.JasperException:javax.servlet.ServletException:java.lang.NoClassDefFoundError:javax/mail/Message$RecipientTypeorg.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:532)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rootcausejavax.servlet.ServletException:java.lang.NoClassDefFoundError:javax/mail/Message$RecipientTypeorg.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)org.apache.jsp.index_jsp._jspService(index_jsp.java:210)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rootcausejava.lang.NoClassDefFoundError:javax/mail/Message$RecipientTypeorg.jbpm.pvm.internal.email.impl.MailTemplate.setTo(MailTemplate.java:82)org.jbpm.pvm.internal.wire.binding.MailTemplateBinding.parseMailTemplate(MailTemplateBinding.java:81)org.jbpm.pvm.internal.wire.binding.MailTemplateBinding.parse(MailTemplateBinding.java:69)org.jbpm.pvm.internal.xml.Parser.parseElement(Parser.java:516)org.jbpm.pvm.internal.wire.xml.WireParser.parseElement(WireParser.java:231)org.jbpm.pvm.internal.wire.xml.WireParser.parseDocumentElement(WireParser.java:202)org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:101)org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:86)org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:86)org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)org.jbpm.api.Configuration.setResource(Configuration.java:79)org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)org.apache.jsp.index_jsp._jspService(index_jsp.java:84)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rootcausejava.lang.ClassNotFoundException:javax.mail.Message$RecipientTypejava.net.URLClassLoader$1.run(UnknownSource)java.security.AccessController.doPrivileged(NativeMethod)java.net.URLClassLoader.findClass(UnknownSource)java.lang.ClassLoader.loadClass(UnknownSource)java.lang.ClassLoader.loadClass(UnknownSource)java.lang.ClassLoader.loadClassInternal(UnknownSource)org.jbpm.pvm.internal.email.impl.MailTemplate.setTo(MailTemplate.java:82)org.jbpm.pvm.internal.wire.binding.MailTemplateBinding.parseMailTemplate(MailTemplateBinding.java:81)org.jbpm.pvm.internal.wire.binding.MailTemplateBinding.parse(MailTemplateBinding.java:69)org.jbpm.pvm.internal.xml.Parser.parseElement(Parser.java:516)org.jbpm.pvm.internal.wire.xml.WireParser.parseElement(WireParser.java:231)org.jbpm.pvm.internal.wire.xml.WireParser.parseDocumentElement(WireParser.java:202)org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:101)org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:86)org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:86)org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)org.jbpm.api.Configuration.setResource(Configuration.java:79)org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)org.apache.jsp.index_jsp._jspService(index_jsp.java:84)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
解决方案三:
应该是少包吧
解决方案四:
jasper.jar放进去看看,在tomcat底下有