weblogic10.3版本标签问题
最近真是比较忙。服务器又使用的是weblogic10.3,平时调试开发使用的是tomcat6.0.18。程序发布上去老是有这有那得问题。
今天上午就在解决一个标签问题。
启动报错如下:
VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'description@http://java.sun.com/xml/ns/javaee display-name@http://java.sun.com/xml/ns/javaee icon@http://java.sun.com/xml/ns/javaee distributable@http://java.sun.com/xml/ns/javaee context-param@http://java.sun.com/xml/ns/javaee filter@http://java.sun.com/xml/ns/javaee filter-mapping@http://java.sun.com/xml/ns/javaee listener@http://java.sun.com/xml/ns/javaee servlet@http://java.sun.com/xml/ns/javaee servlet-mapping@http://java.sun.com/xml/ns/javaee session-config@http://java.sun.com/xml/ns/javaee mime-mapping@http://java.sun.com/xml/ns/javaee welcome-file-list@http://java.sun.com/xml/ns/javaee problem-page@http://java.sun.com/xml/ns/javaee jsp-config@http://java.sun.com/xml/ns/javaee security-constraint@http://java.sun.com/xml/ns/javaee login-config@http://java.sun.com/xml/ns/javaee security-role@http://java.sun.com/xml/ns/javaee env-entry@http://java.sun.com/xml/ns/javaee ejb-ref@http://java.sun.com/xml/ns/javaee ejb-local-ref@http://java.sun.com/xml/ns/javaee service-ref@http://java.sun.com/xml/ns/javaee resource-ref@http://java.sun.com/xml/ns/javaee resource-env-ref@http://java.sun.com/xml/ns/javaee message-destination-ref@http://java.sun.com/xml/ns/javaee persistence-context-ref@http://java.sun.com/xml/ns/javaee persistence-unit-ref@http://java.sun.com/xml/ns/javaee post-construct@http://java.sun.com/xml/ns/javaee pre-destroy@http://java.sun.com/xml/ns/javaee message-destination@http://java.sun.com/xml/ns/javaee locale-encoding-mapping-list@http://java.sun.com/xml/ns/javaee' instead of 'taglib@http://java.sun.com/xml/ns/javaee' here in element web-app@http://java.sun.com/xml/ns/javaee:<null>
初步估计就是问题出在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>
问题解决。。。
1 楼
zht110227
2010-08-25
Compilation of JSP File '/index.jsp' failed:
--------------------------------------------
index.jsp:5:2: Type mismatch: cannot convert from Tag to JspTag
String path = request.getContextPath();
^-------------------------------------^
index.jsp:12:9: Type mismatch: cannot convert from TextTag to JspTag
<title><ww:text name="title"/></title>
^-----^
index.jsp:12:31: The method _releaseTags(PageContext, JspTag) in the type __index is not applicable for the arguments (PageContext, TextTag)
<title><ww:text name="title"/></title>
^
index.jsp:12:31: Type mismatch: cannot convert from Tag to JspTag
<title><ww:text name="title"/></title>
见过这样的问题吗?
--------------------------------------------
index.jsp:5:2: Type mismatch: cannot convert from Tag to JspTag
String path = request.getContextPath();
^-------------------------------------^
index.jsp:12:9: Type mismatch: cannot convert from TextTag to JspTag
<title><ww:text name="title"/></title>
^-----^
index.jsp:12:31: The method _releaseTags(PageContext, JspTag) in the type __index is not applicable for the arguments (PageContext, TextTag)
<title><ww:text name="title"/></title>
^
index.jsp:12:31: Type mismatch: cannot convert from Tag to JspTag
<title><ww:text name="title"/></title>
见过这样的问题吗?
2 楼
zht110227
2010-08-25
代码在tomcat跑的好好的,在weblogic10.3下面就是报了这个问题。无语了。网上没有说法,痛苦。web.xml换成2.4版本的也不行,还是报这个错。