kindeditor4.1上传本地图片时,tomcat部署时没错,但是WebSphere时报错

幻影Z 发布于 2012/05/30 13:54
阅读 1K+
收藏 0

NGINX Sprint China 2022--NGINX年度旗舰盛会,已开启免费预约!>>>

JSP 处理错误
HTTP 错误代码:   500

 
错误消息: 
JSPG0049E: /kindeditor/jsp/upload_json.jsp 无法编译:JSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 88 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 46 : JSONObject cannot be resolved to a typeJSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 88 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 46 : JSONObject cannot be resolved to a typeJSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 82 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 172 : JSONObject cannot be resolved to a typeJSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 82 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 172 : JSONObject cannot be resolved to a type 
根本原因: 
com.ibm.ws.jsp.JspCoreException: JSPG0049E: /kindeditor/jsp/upload_json.jsp 无法编译:JSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 88 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 46 : JSONObject cannot be resolved to a typeJSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 88 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 46 : JSONObject cannot be resolved to a typeJSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 82 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 172 : JSONObject cannot be resolved to a typeJSPG0091E: 文件 /kindeditor/jsp/upload_json.jsp 中的第 82 行发生错误JSPG0093E: 文件 /kindeditor/jsp/upload_json.jsp 生成 servlet 错误C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\temp\justNode01\server1\sti_war\sti.war\kindeditor\jsp\_upload_5F_json.java : 172 : JSONObject cannot be resolved to a type	at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:468)	at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:433)	at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:292)	at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:142)	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527) 

加载中
1
雨魄
请问这个问题你解决了吗,我也遇到同样的问题现在
1
雨魄

问题解决了

在WAS6.1(7.0同理)版本中使用JDK5.0,但是如果在JSP中嵌入的代码包含JDK5.0的新特性,编译的时候会出错。所以应用程序部署Was完成之后需要设置相应的JSP引擎配置参数,具体如下:

“jdkSourceLevel” 是在 WasV6.1 中引入的支持 JDK 5 新特性的 JSP 引擎参数。此参数的缺省值为 13。以下是 “jdkSourceLevel”的可选 参数值:
       13(缺省值) - 此值将禁用 JDK 1.4 和 JDK 5.0 的所有新的语言功能部件。
       14 - 此值将启用断言工具并将禁用 JDK 5.0 的所有新的语言功能部件。
       15 - 此值将启用断言工具和 JDK 5.0 的所有新的语言功能部件。

修改方法:

找到下面的两个文件:
<WAS-HOME>/profiles/AppSrv01/config/cells/<cellname>/applications/<appname>/deployments/<appname.war>/WEB-INF/ibm-web-ext.xmi
<WAS-HOME>/profiles/AppSrv01/installedApps/<nodename>/<appname>/<appname.war>/WEB-INF/ibm-web-ext.xmi
将<jsp-attribute name="jdkSourceLevel" value="13"/>

改为<jsp-attribute name="jdkSourceLevel" value="15"/>

OSCHINA
登录后可查看更多优质内容
返回顶部
顶部