Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1728
  • Last Modified:

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.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
girionis
Asked:
girionis
1 Solution
 
girionisAuthor Commented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now