主题: jsp版图片上传报错
作者: knife_km, 发布日期: 2010-07-05 22:56:21, 浏览数: 7170

 

直接以压缩包中demo.jsp测试,显示“服务器发生故障”。

看了image.html发现指向的是 php,即指向../../php/upload_json.php,改为指向对应的../../jsp/upload_json.jsp,还是同样的报错信息

作者: Roddy, 发布日期: 2010-07-06 00:03:36
在demo.jsp里上传路径已经配置好了,可能没有重启tomcat,或者缺jar包。
回复
作者: knife_km, 发布日期: 2010-07-07 21:15:34

所用的服务器是resin,已重启,本地上传图片仍然是报同样的错误信息“服务器发生故障”。

并且原来在该服务器上用的是“eWebEditor在线文本编辑器飞鱼修改版”一直都正常。只是想测试一下kindEditor是否好用和速度。

请问报“服务器发生故障”这种错现象是缺少什么jar包呢?

回复
作者: Roddy, 发布日期: 2010-07-07 23:25:49
服务器发生故障原因很多,通过Firebug可以查看具体错误信息。
http://www.kindsoft.net/doc.php?cmd=qna#007
回复
作者: knife_km, 发布日期: 2010-07-11 22:18:03

从以下firebug的报错提示看是不是说明kindeditor的jsp版只支持apache服务器

 

<html>
<head><title>500 Servlet Exception</title></head>
<body>
<h1>500 Servlet Exception</h1>
<code><pre>
\WEB-INF\work\_jsp\_kindeditor\_jsp\_upload_0json__jsp.java:13:
o? org.apache.commons.fileupload.disk
X(
import org.apache.commons.fileupload.disk.*;
^
d:\WWW\Root\WEB-INF\work\_jsp\_kindeditor\_jsp\_upload_0json__jsp.java:14:
o? org.apache.commons.fileupload.servlet
X(
import org.apache.commons.fileupload.servlet.*;
^
d:\WWW\Root\WEB-INF\work\_jsp\_kindeditor\_jsp\_upload_0json__jsp.java:15:
o? org.json.simple
X(
import org.json.simple.*;
^
/kindeditor/jsp/upload_json.jsp:87: ~
0&amp;?
&amp;? { JSONObject
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
   JSONObject obj = new JSONObject();
   ^
/kindeditor/jsp/upload_json.jsp:87: ~
0&amp;?
&amp;? { JSONObject
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
   JSONObject obj = new JSONObject();
                        ^
/kindeditor/jsp/upload_json.jsp:36: ~
0&amp;?
&amp;? 叵 ServletFileUpload
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
if(!ServletFileUpload.isMultipartContent(request)){
    ^
/kindeditor/jsp/upload_json.jsp:52: ~
0&amp;?
&amp;? { DiskFileItemFactory
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
FileItemFactory factory = new DiskFileItemFactory();
                              ^
/kindeditor/jsp/upload_json.jsp:53: ~
0&amp;?
&amp;? { ServletFileUpload
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
ServletFileUpload upload = new ServletFileUpload(factory);
^
/kindeditor/jsp/upload_json.jsp:53: ~
0&amp;?
&amp;? { ServletFileUpload
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
ServletFileUpload upload = new ServletFileUpload(factory);
                               ^
/kindeditor/jsp/upload_json.jsp:82: ~
0&amp;?
&amp;? { JSONObject
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
  JSONObject obj = new JSONObject();
  ^
/kindeditor/jsp/upload_json.jsp:82: ~
0&amp;?
&amp;? { JSONObject
Mn { _jsp._kindeditor._jsp._upload_0json__jsp
  JSONObject obj = new JSONObject();
                       ^
11 ?
</pre></code>
</body></html>

 

回复
发表新帖 发表回复