Exception in AppMerge flows' progression – JAVA編程語言程序開發技術文章

2012-06-08 10:22
Exception in AppMerge flows' progression

Exception in AppMerge flows' progression
Exception in AppMerge flows' progression
VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements instead of here in element > problem: cvc-complex-type.2.4a: Expected elements instead of here in element > problem: cvc-complex-type.2.4a: Expected elements instead of here in element > problem: cvc-complex-type.2.4a: Expected elements instead of here in element > problem: cvc-complex-type.2.4a: Expected elements instead of here in element > problem: cvc-complex-type.2.4a: Expected elements instead of here in element > problem: cvc-complex-type.2.4a: Expected elements instead of here in element >

原因:經過分析是web.xml配置的問題,有些servlet上面配置瞭'display-name',這個weblogic是不支持的。
解決:在web.xml中把'display-name'刪除掉,工程就可以在weblogic下成功發佈。

初步估計就是問題出在web.xml裡面,而且就是taglib的書寫上。我的web.xml出問題的部分書寫如下:
<taglib>
<taglib-uri>/WEB-INF/runqianReport4.tld</taglib-uri>
<taglib-location>/WEB-INF/runqianReport4.tld</taglib-location>
</taglib>
在TOMCAT上跑得那個之歡暢啊。
後來進過查找taglib的有關在web.xml的書寫和要求,發現應該這麼書寫:
<jsp-config>
<taglib>
   <taglib-uri>/WEB-INF/runqianReport4.tld</taglib-uri>
   <taglib-location>/WEB-INF/runqianReport4.tld</taglib-location>
</taglib>
</jsp-config>

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *