首页 > 就是找不到 WEB-INF的classes_jsp_大佬帮忙指点迷津吧

就是找不到 WEB-INF的classes_jsp_大佬帮忙指点迷津吧

代码如下,就是找不到,,咋回事呢?实在找不到,跟没有思路该怎么修改了

<%@page contentType="text/html;charset=gb2312"%>
<%@page language="java" import="java.util.*,org.jdom.*,org.jdom.input.*,org.jdom.output.*,java.io.*,com.ruixin.be.manager.impl.*,org.xml.sax.InputSource"%>
<%@ include file="../ddd/abc.jsp" %>

文件结构如下图

是代码有问题吗?报错如下

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: Unable to compile class for JSP: 

An error occurred at line: 139 in the jsp file: /ddd/abc.jsp
NCManager cannot be resolved
136:            String recAccNo = String.valueOf(xiangqingxx.get("yinhangkh"));//鎻愮幇璐﹀彿
137:            String recAccNameCN = String.valueOf(xiangqingxx.get("tixianyh"));//璐︽埛鍚�
138:            String recBankName = String.valueOf(xiangqingxx.get("fangshi"));//浜ゆ槗瀵规柟閾惰鍚嶇О
139:            String result=NCManager.doPayment(packageID,totalAmt,"2","",recAccNo,recAccNameCN,"1","1","鐑熷彴","",recBankName,"001").replaceAll("\n","");  
140:            //sjk.charugxjl("update "+ biaoming+" set beizhu='"+result+"' where biaohao  ='"+bmbh[i]+"'");
141:            //鍒涘缓涓�涓柊鐨勫瓧绗︿覆
142:            StringReader read = new StringReader(result);


An error occurred at line: 146 in the jsp file: /ddd/abc.jsp
SAXBuilder cannot be resolved to a type
143:            //鍒涘缓鏂扮殑杈撳叆婧怱AX 瑙f瀽鍣ㄥ皢浣跨敤 InputSource 瀵硅薄鏉ョ‘瀹氬浣曡鍙� XML 杈撳叆
144:            InputSource source = new InputSource(read);
145:            //鍒涘缓涓�涓柊鐨凷AXBuilder
146:            SAXBuilder sb = new SAXBuilder();
147:            
148:            try {
149:            


An error occurred at line: 146 in the jsp file: /ddd/abc.jsp
SAXBuilder cannot be resolved to a type
143:            //鍒涘缓鏂扮殑杈撳叆婧怱AX 瑙f瀽鍣ㄥ皢浣跨敤 InputSource 瀵硅薄鏉ョ‘瀹氬浣曡鍙� XML 杈撳叆
144:            InputSource source = new InputSource(read);
145:            //鍒涘缓涓�涓柊鐨凷AXBuilder
146:            SAXBuilder sb = new SAXBuilder();
147:            
148:            try {
149:            


An error occurred at line: 151 in the jsp file: /ddd/abc.jsp
Document cannot be resolved to a type
148:            try {
149:            
150:                //閫氳繃杈撳叆婧愭瀯閫犱竴涓狣ocument
151:                Document doc = sb.build(source);
152:                //鍙栫殑鏍瑰厓绱�
153:                Element root = doc.getRootElement();
154:               // out.println(root.getName()+"<br/>");//杈撳嚭鏍瑰厓绱犵殑鍚嶇О锛堟祴璇曪級


An error occurred at line: 153 in the jsp file: /ddd/abc.jsp
Element cannot be resolved to a type
150:                //閫氳繃杈撳叆婧愭瀯閫犱竴涓狣ocument
151:                Document doc = sb.build(source);
152:                //鍙栫殑鏍瑰厓绱�
153:                Element root = doc.getRootElement();
154:               // out.println(root.getName()+"<br/>");//杈撳嚭鏍瑰厓绱犵殑鍚嶇О锛堟祴璇曪級
155:                //寰楀埌鏍瑰厓绱犳墍鏈夊瓙鍏冪礌鐨勯泦鍚�
156:                Element ebem=(Element)root.getChildren().get(0);


An error occurred at line: 156 in the jsp file: /ddd/abc.jsp
Element cannot be resolved to a type
153:                Element root = doc.getRootElement();
154:               // out.println(root.getName()+"<br/>");//杈撳嚭鏍瑰厓绱犵殑鍚嶇О锛堟祴璇曪級
155:                //寰楀埌鏍瑰厓绱犳墍鏈夊瓙鍏冪礌鐨勯泦鍚�
156:                Element ebem=(Element)root.getChildren().get(0);
157:                //out.println(ebem.getName()+"MMM<br/>");
158:                if(ebem.getChildren("pub").size()>0)
159:                {


An error occurred at line: 156 in the jsp file: /ddd/abc.jsp
Element cannot be resolved to a type
153:                Element root = doc.getRootElement();
154:               // out.println(root.getName()+"<br/>");//杈撳嚭鏍瑰厓绱犵殑鍚嶇О锛堟祴璇曪級
155:                //寰楀埌鏍瑰厓绱犳墍鏈夊瓙鍏冪礌鐨勯泦鍚�
156:                Element ebem=(Element)root.getChildren().get(0);
157:                //out.println(ebem.getName()+"MMM<br/>");
158:                if(ebem.getChildren("pub").size()>0)
159:                {


An error occurred at line: 160 in the jsp file: /ddd/abc.jsp
Element cannot be resolved to a type
157:                //out.println(ebem.getName()+"MMM<br/>");
158:                if(ebem.getChildren("pub").size()>0)
159:                {
160:                    Element pubem = (Element)ebem.getChildren("pub").get(0);
161:                    String retCode=pubem.getChildText("RetCode"); 
162:                    String retMsg=pubem.getChildText("RetMsg");
163:                    if(retCode.equals("0"))//閾惰杩斿洖鎻愮幇鎴愬姛


An error occurred at line: 160 in the jsp file: /ddd/abc.jsp
Element cannot be resolved to a type
157:                //out.println(ebem.getName()+"MMM<br/>");
158:                if(ebem.getChildren("pub").size()>0)
159:                {
160:                    Element pubem = (Element)ebem.getChildren("pub").get(0);
161:                    String retCode=pubem.getChildText("RetCode"); 
162:                    String retMsg=pubem.getChildText("RetMsg");
163:                    if(retCode.equals("0"))//閾惰杩斿洖鎻愮幇鎴愬姛


An error occurred at line: 195 in the jsp file: /ddd/abc.jsp
JDOMException cannot be resolved to a type
192:                    }
193:                    //out.print( rst+"<br/>");
194:                }               
195:            }catch (JDOMException e) {
196:                // TODO 鑷姩鐢熸垚 catch 鍧�
197:                e.printStackTrace();
198:            }                                         


Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

Apache Tomcat/6.0.18

寰楀埌鏍瑰厓绱犳墍鏈夊瓙鍏冪礌鐨勯泦鍚�
156: Element ebem=(Element)root.getChildren().get(0);


除了程序也有可能是环境配置问题;不好分割,不过我建议你换换思路
判断你用的这个jsp貌似有问题,可以尝试不通过次jsp进行重写
有的时候重新更换思路,重新写,也许豁然开朗


NCManager cannot be resolved
..........cannot be resolved
...这么多不可识别的类,你首先检查下在你的jsp文件里是否import了这些类?
如果已经import了,那么看这些类是否在你的类路径里?

【热门文章】
【热门文章】