<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 84, comments - 54, trackbacks - 0, articles - 0
       :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

    在JSP中有這樣一行代碼:

    <td class="FormContents">
    <fmt:formatDate value="${usr.userCreDate}" pattern="dd-MMM-yyyy" />
    </td>

    在WebSphere Portal6中運(yùn)行時(shí)報(bào)錯(cuò):
    Nested Exception is com.ibm.ws.jsp.JspCoreException: Unable to convert string '${usr.userCreDate}' to class java.util.Date for attribute value: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
             at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:
    930)
             at com.ibm._jsp._userEnquiry._jspx_meth_fmt_formatDate_0(_userEnquiry.java:
    1624)
             at com.ibm._jsp._userEnquiry._jspService(_userEnquiry.java:
    643)
             at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:
    91)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:
    856)

     

    而該JSP在Portal 5中確定是沒問題的。利用Google找到一個(gè)類似的問題,有人做了如下 的解答:

    1) Declare web.xml as Servlet 2.5.
    2) Remove all loose JSTL tld files from your classpath. Those are already included in the JSTL JAR file.
    3) Remove the TLD declarations from your web.xml. Those are already declared in the JSTL JAR's web.xml.
    4) I recommend to remove the JSTL and Standard JAR's and use JSTL 1.2 instead: jstl-1.2.jar. Just place it in the classpath (YourWebApp/WEB-INF/lib or Tomcat/lib) and declare the @taglib in your JSP to use it. Nothing more, nothing less. Do not extract the JAR and duplicate the stuff everywhere.

    再三檢查后,以上4點(diǎn)在移植過程中都已經(jīng)注意了,除了Servlet是2.4以外,但是應(yīng)該和這個(gè)沒關(guān)系。

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4"
        xmlns
    ="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi
    ="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation
    ="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    </web-app>

     

    既然原因不在這里,就只有另外想辦法,根據(jù)錯(cuò)誤信息,忽然想到盡管WEB-INF/lib中的jstl.jar沒問題,但是是否加載到了這個(gè)jar呢。打開EAR項(xiàng)目下的application.xml,轉(zhuǎn)到Deployment,將Classloader Mode設(shè)置為PARENT_LAST。重啟發(fā)布項(xiàng)目后,問題解決。
    該設(shè)置的物理位置在{EAR}\META-INF\ibmconfig\cells\defaultCell\applications\defaultApp\deployments\defaultApp\deployment.xml中

    <?xml version="1.0" encoding="UTF-8"?>
    <appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi" xmi:id="Deployment_1236654129452">
      
    <deployedObject xmi:type="appdeployment:ApplicationDeployment" xmi:id="ApplicationDeployment_1236654129452" startingWeight="10">
        
    <modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_1236654129452" startingWeight="10000" uri="MyPortal_Web.war"/>
        
    <classloader xmi:id="Classloader_1236654129452" mode="PARENT_LAST"/>
      
    </deployedObject>
    </appdeployment:Deployment>

    評(píng)論

    # re: 從Websphere Portal5移植Web應(yīng)用到Websphere Portal6時(shí)fmt:formatDate報(bào)錯(cuò)的解決  回復(fù)  更多評(píng)論   

    2009-03-16 14:05 by Amber
    謝謝啦 我正好遇到這個(gè)問題 都暈了
    主站蜘蛛池模板: 午夜宅男在线永久免费观看网| 永久免费不卡在线观看黄网站| 国产精品成人免费视频网站京东| 97久久精品亚洲中文字幕无码| 日韩精品内射视频免费观看| 亚洲av日韩综合一区在线观看| 男女午夜24式免费视频| 亚洲成av人在线视| 免费人成毛片动漫在线播放| 亚洲av无码一区二区三区网站| a视频免费在线观看| 亚洲精品天天影视综合网| 亚洲成人免费网址| 国产亚洲精品影视在线| 免费观看国产精品| 全黄大全大色全免费大片| 精品亚洲aⅴ在线观看| 免费无码黄十八禁网站在线观看| 亚洲国产午夜精品理论片在线播放 | 国产免费av一区二区三区| 免费精品视频在线| 亚洲乱码国产一区三区| 免费A级毛片在线播放| 亚洲人成77777在线观看网| 日韩在线免费看网站| 九九热久久免费视频| 亚洲视频一区调教| 色婷婷7777免费视频在线观看| 亚洲a无码综合a国产av中文| 国产精品亚洲片在线| 亚欧免费视频一区二区三区| 国产精品亚洲精品日韩电影| 亚洲AV无码一区东京热久久| 中国在线观看免费高清完整版| 人人爽人人爽人人片av免费| 337p日本欧洲亚洲大胆色噜噜| 好吊妞视频免费视频| 全免费a级毛片免费看| 亚洲精品av无码喷奶水糖心| 亚洲人成色77777| 在线看片免费不卡人成视频 |