首页 > jsp查找不到 服务器500报错,有劳高手帮忙分析

jsp查找不到 服务器500报错,有劳高手帮忙分析

代码报错

描述:本地没问题,放到服务器上就有问题了

代码实现

<%@ page import="com.ruixin.be.manager.impl.NCManager,org.jdom.*,org.jdom.input.*,org.xml.sax.InputSource" %>


现在报这个错

NCManager cannot be resolved to a type
SAXBuilder cannot be resolved to a type
An error occurred at line: 152 in the jsp file: /文件夹/文件.jsp
Document cannot be resolved to a type
An error occurred at line: 146 in the jsp file: /文件夹/文件.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: /文件夹/文件.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:

最后是重新写了一个新的jsp,不再原来的这个jsp里面进行调试了,结果好用了,这个是否也提醒我们不要怕麻烦,重新来过可能比在当前找错更豁然开朗


。。。。。为啥又开了个问题?

你先看看这个吧Eclipse “cannot be resolved to a type” error,里面说的几个问题先看看和自己有没有关系,我倾向你现在应该还是有重复的jar加载。

code中的报错可以先不考虑,那些不都是用了加载报错的class才报错的吗。

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