Solved

The taglib validator rejected the page

Posted on 2004-04-26
2
1,712 Views
Last Modified: 2013-12-10
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.JspException: The taglib validator rejected the page: "java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8 sequence., "
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:130)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:367)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:223)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:301)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:87)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:219)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:528)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:426)
at org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:339)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:315)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.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;charset=iso-8859-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

0
Comment
Question by:girionis
2 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 0 total points
Comment Utility
I found a workaround, I just added the pageEncoding="ISO-8859-7" in the first statement so it now is:

<%@ page contentType="text/html;charset=iso-8859-7" pageEncoding="ISO-8859-7" session="false"%>

I have also sent an e-mail to bea support and wait for their answer. I will post here as soon as they get in touch with me.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
New Website 15 26
How following rewrite rule works in Apache? 7 117
Shorten long url?  Apache2 and Tomcat. 7 199
RSA 8.5 web application 7 144
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now