girionis
asked on
The taglib validator rejected the page
Hello, we are running WebLogic Server 8.1 under Windows 2000 Server. In our web applicaiton we are using jstl but when we try to include the jstl libary in our jsp pages using
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
the page fails with the following error message:
java.io.IOException: javax.servlet.jsp.JspExcep tion: The taglib validator rejected the page: "java.io.UTFDataFormatExce ption: Invalid byte 2 of 2-byte UTF-8 sequence., "
at weblogic.servlet.jsp.Jsp2J ava.output s(Jsp2Java .java:130)
at weblogic.utils.compiler.Co deGenerato r.generate (CodeGener ator.java: 258)
at weblogic.servlet.jsp.JspSt ub.compile Page(JspSt ub.java:36 7)
at weblogic.servlet.jsp.JspSt ub.prepare Servlet(Js pStub.java :223)
at weblogic.servlet.jsp.JspSt ub.prepare Servlet(Js pStub.java :172)
at weblogic.servlet.internal. ServletStu bImpl.getS ervlet(Ser vletStubIm pl.java:51 8)
at weblogic.servlet.internal. ServletStu bImpl.invo keServlet( ServletStu bImpl.java :362)
at weblogic.servlet.internal. ServletStu bImpl.invo keServlet( ServletStu bImpl.java :305)
at weblogic.servlet.internal. RequestDis patcherImp l.forward( RequestDis patcherImp l.java:301 )
at org.springframework.web.se rvlet.view .InternalR esourceVie w.renderMe rgedOutput Model(Inte rnalResour ceView.jav a:87)
at org.springframework.web.se rvlet.view .AbstractV iew.render (AbstractV iew.java:2 19)
at org.springframework.web.se rvlet.Disp atcherServ let.render (Dispatche rServlet.j ava:528)
at org.springframework.web.se rvlet.Disp atcherServ let.doServ ice(Dispat cherServle t.java:426 )
at org.springframework.web.se rvlet.Fram eworkServl et.service Wrapper(Fr ameworkSer vlet.java: 339)
at org.springframework.web.se rvlet.Fram eworkServl et.doGet(F rameworkSe rvlet.java :315)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 740)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 853)
at weblogic.servlet.internal. ServletStu bImpl$Serv letInvocat ionAction. run(Servle tStubImpl. java:971)
at weblogic.servlet.internal. ServletStu bImpl.invo keServlet( ServletStu bImpl.java :402)
at weblogic.servlet.internal. ServletStu bImpl.invo keServlet( ServletStu bImpl.java :305)
at weblogic.servlet.internal. WebAppServ letContext $ServletIn vocationAc tion.run(W ebAppServl etContext. java:6350)
at weblogic.security.acl.inte rnal.Authe nticatedSu bject.doAs (Authentic atedSubjec t.java:317 )
at weblogic.security.service. SecurityMa nager.runA s(Security Manager.ja va:118)
at weblogic.servlet.internal. WebAppServ letContext .invokeSer vlet(WebAp pServletCo ntext.java :3635)
at weblogic.servlet.internal. ServletReq uestImpl.e xecute(Ser vletReques tImpl.java :2585)
at weblogic.kernel.ExecuteThr ead.execut e(ExecuteT hread.java :197)
at weblogic.kernel.ExecuteThr ead.run(Ex ecuteThrea d.java:170 )
If we do not put that line in then everything works fine but we cannot use the jstl library.
The encoding of the page is defined as ISO-8859-7
<%@ page contentType="text/html;cha rset=iso-8 859-7" session="false"%>
I am not sure what's going on here, probably a problem with the encoding of the page (we save it in a iso-8859-7 encoding -greek- since we need to have some greek letters there) and the encoding of the jstl libary. At a guess I'd say that the encoding associated with the stream of data from the jsp is different than the platform's encoding.
I have looked at the bea support but to no avail. Any help is appreciated.
Regards
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
the page fails with the following error message:
java.io.IOException: javax.servlet.jsp.JspExcep
at weblogic.servlet.jsp.Jsp2J
at weblogic.utils.compiler.Co
at weblogic.servlet.jsp.JspSt
at weblogic.servlet.jsp.JspSt
at weblogic.servlet.jsp.JspSt
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.security.acl.inte
at weblogic.security.service.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.kernel.ExecuteThr
at weblogic.kernel.ExecuteThr
If we do not put that line in then everything works fine but we cannot use the jstl library.
The encoding of the page is defined as ISO-8859-7
<%@ page contentType="text/html;cha
I am not sure what's going on here, probably a problem with the encoding of the page (we save it in a iso-8859-7 encoding -greek- since we need to have some greek letters there) and the encoding of the jstl libary. At a guess I'd say that the encoding associated with the stream of data from the jsp is different than the platform's encoding.
I have looked at the bea support but to no avail. Any help is appreciated.
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.