标题:
jor整合遇到问题~
[打印本页]
作者:
9255897
时间:
2011-1-5 16:00
标题:
jor整合遇到问题~
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /tools/reportviewer.jsp at line 7
4: <% request.setCharacterEncoding("UTF-8");
5: String viewer = request.getParameter("viewer");
6: String forward = "defaultviewer.jsp";
7: request.getRequestDispatcher("tools/"+forward).forward(request, response);
8: %>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
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)
root cause
org.apache.jasper.JasperException: An exception occurred processing JSP page /tools/toolsbar.jsp at line 135
132:
133:
134:
135: <% _container.writeOut(); %>
136:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
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)
org.apache.jsp.tools.reportviewer_jsp._jspService(reportviewer_jsp.java:63)
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:393)
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)
root cause
javax.servlet.ServletException: java.lang.NoSuchMethodError: bsh.Interpreter.setXPathProcessor(Lbsh/XPathProcessor;)V
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.tools.defaultviewer_jsp._jspService(defaultviewer_jsp.java:296)
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:393)
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)
org.apache.jsp.tools.reportviewer_jsp._jspService(reportviewer_jsp.java:63)
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:393)
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)
root cause
java.lang.NoSuchMethodError: bsh.Interpreter.setXPathProcessor(Lbsh/XPathProcessor;)V
jatools.ReportDocument.<clinit>(ReportDocument.java:46)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
jatools.xml.XmlReader.load(XmlReader.java:66)
jatools.xml.XmlReader.read(XmlReader.java:49)
jatools.engine.ReportJob.<init>(ReportJob.java:86)
jatools.tags.ReportTag.writeOut(ReportTag.java:110)
jatools.tags.ContainerTag.writeOut(ContainerTag.java:78)
org.apache.jsp.tools.defaultviewer_jsp._jspService(defaultviewer_jsp.java:268)
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:393)
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)
org.apache.jsp.tools.reportviewer_jsp._jspService(reportviewer_jsp.java:63)
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:393)
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)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
jar包和页面都是copy tomcat例子里的.网上说的在jsp头部引入 <%@ taglib uri="/WEB-INF/tlds/jatools.tld" prefix="jatools" %> 和去掉去掉servlet-api.jar jsp-api.jar 也都弄了.
在线求助~~~~~~~~~~~~
作者:
linkx
时间:
2011-1-5 16:16
标题:
看日志是说找不到对应方法?看看是不是少了哪个jar文件
看日志是说找不到对应方法?看看是不是少了哪个jar文件
作者:
9255897
时间:
2011-1-5 16:40
jor是今天刚从官网下载的
.tomcat例子中lib的jar 我都copy过去了就删除servlet-api.jar jsp-api.jar这2个jar.
作者:
9255897
时间:
2011-1-5 17:19
java.lang.NoSuchMethodError: bsh.Interpreter.setXPathProcessor(Lbsh/XPathProcessor;)V
后台就是报这个错~,
作者:
admin
时间:
2011-1-5 17:44
bsh2.0.jar包不存在,或是这个包冲突,
所以,首先确保bsh2.0.jar包是最新的,再次,检查一下你系统中,服务器的库路径中,有没有类似 bsh*.jar一样的包,如果有,砍掉,用简表中的 bsh2.0.jar替换就可以了
注,jboss系统中,默认存在 bsh包。
作者:
9255897
时间:
2011-1-5 19:47
bsh2.0.jar是最新的,有其他jar冲突的情况吗?
bin整个包都是今天刚下的, jboss没用过 用的tomcat 看了也没bsh2.0的jar包..
今天搞一天了 连个web demo例子都没跑起来.谁有例子 打包发我份.邮箱:9255897@qq.com 要有jar包能运行的
作者:
9255897
时间:
2011-1-5 20:10
org.apache.jasper.JasperException: An exception occurred processing JSP page /tools/reportviewer.jsp at line 7
4: <% request.setCharacterEncoding("UTF-8");
5: String viewer = request.getParameter("viewer");
6: String forward = "defaultviewer.jsp";
7: request.getRequestDispatcher("tools/"+forward).forward(request, response);
8: %>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
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)
root cause
org.apache.jasper.JasperException: An exception occurred processing JSP page /tools/toolsbar.jsp at line 134
131:
132:
133:
134: <% _container.writeOut(); %>
135:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:423)
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)
org.apache.jsp.tools.reportviewer_jsp._jspService(reportviewer_jsp.java:63)
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:393)
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)
root cause
java.io.IOException: 打不开指定模板:
jatools.tags.ReportTag.writeOut(ReportTag.java:166)
jatools.tags.ContainerTag.writeOut(ContainerTag.java:78)
org.apache.jsp.tools.defaultviewer_jsp._jspService(defaultviewer_jsp.java:267)
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:393)
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)
org.apache.jsp.tools.reportviewer_jsp._jspService(reportviewer_jsp.java:63)
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:393)
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)
这种错又是什么错?
作者:
admin
时间:
2011-1-6 09:32
检查一下,可能是在指定的模板路径(file参数)里,使用了中文。按英文命名即可。
简表的web示例里,是按中文命名的,这是为了便于按功能查找报表模板。为使tomcat找到这些中文命名的文件,我们经过了一些配置。因此,强烈建议大家在做自己的报表模板时,用英文命名模板文件,并放在英文命名的目录里,可以避免这种无谓的配置。
欢迎光临 杰表技术论坛 (http://bbs.jatools.com/)
Powered by Discuz! 6.1.0