Solved

The taglib validator rejected the page

Posted on 2004-04-26
2
1,718 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 0 total points
ID: 10917530
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 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