Weblogic8.1 + JSTL: taglib validator rejected the page - Weblogic

This is a discussion on Weblogic8.1 + JSTL: taglib validator rejected the page - Weblogic ; Hallo, I have a problem deploying a webapp (war-file) on Weblogic8.1. The webapp includes JSTL (standard.jar, jstl.jar 1.0). During hotdeployment the war-file Weblogic throws an exception (see attachment). I read this entry from 2002: http://newsgroups.bea.com/cgi-bin/dn...em=10118&utag= Removing the validator-tags from all ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: Weblogic8.1 + JSTL: taglib validator rejected the page

  1. Weblogic8.1 + JSTL: taglib validator rejected the page


    Hallo,
    I have a problem deploying a webapp (war-file) on Weblogic8.1. The webapp includes
    JSTL (standard.jar, jstl.jar 1.0). During hotdeployment the war-file Weblogic
    throws an exception (see attachment).

    I read this entry from 2002:
    http://newsgroups.bea.com/cgi-bin/dn...em=10118&utag=
    Removing the validator-tags from all tld-files which come with JSTL helps in my
    case too.

    I guess this problem is weblogic-related, because the webapp works with Tomcat.
    I am surprised that there seems to be no other fix for Weblogic. Is that right?

    Thanks for your replies.
    Peter
    -------------------------------------------------------------------------------------------------------------------------
    java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected
    the page: "org.xml.sax.SAXParseException: Premature end of file., "
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:125)
    at weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:258)
    at weblogic.servlet.jsp.Precompiler.compileOne(Precom piler.java:188)
    at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:71)
    at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:82)
    at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4869)
    at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4847)
    at weblogic.servlet.internal.WebAppServletContext.pre pareFromDescriptors(WebAppServletContext.java:2287 )
    at weblogic.servlet.internal.WebAppServletContext.ini t(WebAppServletContext.java:579)
    at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:507)
    at weblogic.servlet.internal.HttpServer.loadWebApp(Ht tpServer.java:513)
    at weblogic.servlet.internal.WebAppModule.prepare(Web AppModule.java:610)
    at weblogic.j2ee.J2EEApplicationContainer.prepareWebM odule(J2EEApplicationContainer.java:2891)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModu les(J2EEApplicationContainer.java:1527)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1183)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1026)
    at weblogic.management.deploy.slave.SlaveDeployer$Com ponentActivateTask.prepareContainer(SlaveDeployer. java:2568)
    at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.createContainer(SlaveDeployer.java:2520)
    at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare(SlaveDeployer.java:2450)
    at weblogic.management.deploy.slave.SlaveDeployer.pro cessPrepareTask(SlaveDeployer.java:829)
    at weblogic.management.deploy.slave.SlaveDeployer.pre pareDelta(SlaveDeployer.java:538)
    at weblogic.management.deploy.slave.SlaveDeployer.pre pareUpdate(SlaveDeployer.java:496)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execu te(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)


  2. Re: Weblogic8.1 + JSTL: taglib validator rejected the page


    It might help for us to see your JSP page. There might be a clue there.

    "Peter Ei" wrote:
    >
    >Hallo,
    >I have a problem deploying a webapp (war-file) on Weblogic8.1. The webapp
    >includes
    >JSTL (standard.jar, jstl.jar 1.0). During hotdeployment the war-file
    >Weblogic
    >throws an exception (see attachment).
    >
    >I read this entry from 2002:
    >http://newsgroups.bea.com/cgi-bin/dn...em=10118&utag=
    >Removing the validator-tags from all tld-files which come with JSTL helps
    >in my
    >case too.
    >
    >I guess this problem is weblogic-related, because the webapp works with
    >Tomcat.
    >I am surprised that there seems to be no other fix for Weblogic. Is that
    >right?
    >
    >Thanks for your replies.
    >Peter
    >-------------------------------------------------------------------------------------------------------------------------
    >java.io.IOException: javax.servlet.jsp.JspException: The taglib validator
    >rejected
    >the page: "org.xml.sax.SAXParseException: Premature end of file., "
    > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:125)
    > at weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:258)
    > at weblogic.servlet.jsp.Precompiler.compileOne(Precom piler.java:188)
    > at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:71)
    > at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:82)
    > at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4869)
    > at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4847)
    > at weblogic.servlet.internal.WebAppServletContext.pre pareFromDescriptors(WebAppServletContext.java:2287 )
    > at weblogic.servlet.internal.WebAppServletContext.ini t(WebAppServletContext.java:579)
    > at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:507)
    > at weblogic.servlet.internal.HttpServer.loadWebApp(Ht tpServer.java:513)
    > at weblogic.servlet.internal.WebAppModule.prepare(Web AppModule.java:610)
    > at weblogic.j2ee.J2EEApplicationContainer.prepareWebM odule(J2EEApplicationContainer.java:2891)
    > at weblogic.j2ee.J2EEApplicationContainer.prepareModu les(J2EEApplicationContainer.java:1527)
    > at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1183)
    > at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1026)
    > at weblogic.management.deploy.slave.SlaveDeployer$Com ponentActivateTask.prepareContainer(SlaveDeployer. java:2568)
    > at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.createContainer(SlaveDeployer.java:2520)
    > at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare(SlaveDeployer.java:2450)
    > at weblogic.management.deploy.slave.SlaveDeployer.pro cessPrepareTask(SlaveDeployer.java:829)
    > at weblogic.management.deploy.slave.SlaveDeployer.pre pareDelta(SlaveDeployer.java:538)
    > at weblogic.management.deploy.slave.SlaveDeployer.pre pareUpdate(SlaveDeployer.java:496)
    > at weblogic.drs.internal.SlaveCallbackHandler$1.execu te(SlaveCallbackHandler.java:25)
    > at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    > at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >



  3. Re: Weblogic8.1 + JSTL: taglib validator rejected the page


    Hi David,
    here is the summarized JSP which Weblogic canīt parse during Hotdeployment (precompile=true).
    Without Hotdeployment (no precompile) Weblogic compiles the JSP - no exception
    is thrown.
    Thanks.

    -------------------------------------------------------------------------------------------------------------------------
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

    ....
    " method="post">
    ....



    "David Karr" wrote:
    >
    >It might help for us to see your JSP page. There might be a clue there.
    >
    >"Peter Ei" wrote:
    >>
    >>Hallo,
    >>I have a problem deploying a webapp (war-file) on Weblogic8.1. The webapp
    >>includes
    >>JSTL (standard.jar, jstl.jar 1.0). During hotdeployment the war-file
    >>Weblogic
    >>throws an exception (see attachment).
    >>
    >>I read this entry from 2002:
    >>http://newsgroups.bea.com/cgi-bin/dn...em=10118&utag=
    >>Removing the validator-tags from all tld-files which come with JSTL

    >helps
    >>in my
    >>case too.
    >>
    >>I guess this problem is weblogic-related, because the webapp works with
    >>Tomcat.
    >>I am surprised that there seems to be no other fix for Weblogic. Is

    >that
    >>right?
    >>
    >>Thanks for your replies.
    >>Peter
    >>-------------------------------------------------------------------------------------------------------------------------
    >>java.io.IOException: javax.servlet.jsp.JspException: The taglib validator
    >>rejected
    >>the page: "org.xml.sax.SAXParseException: Premature end of file., "
    >> at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:125)
    >> at weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:258)
    >> at weblogic.servlet.jsp.Precompiler.compileOne(Precom piler.java:188)
    >> at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:71)
    >> at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:82)
    >> at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4869)
    >> at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4847)
    >> at weblogic.servlet.internal.WebAppServletContext.pre pareFromDescriptors(WebAppServletContext.java:2287 )
    >> at weblogic.servlet.internal.WebAppServletContext.ini t(WebAppServletContext.java:579)
    >> at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:507)
    >> at weblogic.servlet.internal.HttpServer.loadWebApp(Ht tpServer.java:513)
    >> at weblogic.servlet.internal.WebAppModule.prepare(Web AppModule.java:610)
    >> at weblogic.j2ee.J2EEApplicationContainer.prepareWebM odule(J2EEApplicationContainer.java:2891)
    >> at weblogic.j2ee.J2EEApplicationContainer.prepareModu les(J2EEApplicationContainer.java:1527)
    >> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1183)
    >> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1026)
    >> at weblogic.management.deploy.slave.SlaveDeployer$Com ponentActivateTask.prepareContainer(SlaveDeployer. java:2568)
    >> at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.createContainer(SlaveDeployer.java:2520)
    >> at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare(SlaveDeployer.java:2450)
    >> at weblogic.management.deploy.slave.SlaveDeployer.pro cessPrepareTask(SlaveDeployer.java:829)
    >> at weblogic.management.deploy.slave.SlaveDeployer.pre pareDelta(SlaveDeployer.java:538)
    >> at weblogic.management.deploy.slave.SlaveDeployer.pre pareUpdate(SlaveDeployer.java:496)
    >> at weblogic.drs.internal.SlaveCallbackHandler$1.execu te(SlaveCallbackHandler.java:25)
    >> at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >>

    >



  4. Re: Weblogic8.1 + JSTL: taglib validator rejected the page


    Peter -
    I was getting precisely the same error as you and finally tracked it down to something
    completely unrelated to the JSTL tags! WebLogic was actually having problems
    with special characters contained elsewhere in the JSP page, but didn't start
    complaining about them until I tried to use the JSTL core library tags. You might
    try reviewing your JSP for anything else that might set off the validator. Once
    I removed the special characters, I had no further problems. Very obnoxious error
    reporting though...

    "Peter Ei" wrote:
    >
    >Hi David,
    >here is the summarized JSP which Weblogic canīt parse during Hotdeployment
    >(precompile=true).
    >Without Hotdeployment (no precompile) Weblogic compiles the JSP - no
    >exception
    >is thrown.
    >Thanks.
    >
    >-------------------------------------------------------------------------------------------------------------------------
    ><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    ><%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    >
    >...
    >" method="post">
    >...
    >
    >

    >
    >"David Karr" wrote:
    >>
    >>It might help for us to see your JSP page. There might be a clue there.
    >>
    >>"Peter Ei" wrote:
    >>>
    >>>Hallo,
    >>>I have a problem deploying a webapp (war-file) on Weblogic8.1. The

    >webapp
    >>>includes
    >>>JSTL (standard.jar, jstl.jar 1.0). During hotdeployment the war-file
    >>>Weblogic
    >>>throws an exception (see attachment).
    >>>
    >>>I read this entry from 2002:
    >>>http://newsgroups.bea.com/cgi-bin/dn...em=10118&utag=
    >>>Removing the validator-tags from all tld-files which come with JSTL

    >>helps
    >>>in my
    >>>case too.
    >>>
    >>>I guess this problem is weblogic-related, because the webapp works

    >with
    >>>Tomcat.
    >>>I am surprised that there seems to be no other fix for Weblogic. Is

    >>that
    >>>right?
    >>>
    >>>Thanks for your replies.
    >>>Peter
    >>>-------------------------------------------------------------------------------------------------------------------------
    >>>java.io.IOException: javax.servlet.jsp.JspException: The taglib validator
    >>>rejected
    >>>the page: "org.xml.sax.SAXParseException: Premature end of file., "
    >>> at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:125)
    >>> at weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:258)
    >>> at weblogic.servlet.jsp.Precompiler.compileOne(Precom piler.java:188)
    >>> at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:71)
    >>> at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:82)
    >>> at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4869)
    >>> at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4847)
    >>> at weblogic.servlet.internal.WebAppServletContext.pre pareFromDescriptors(WebAppServletContext.java:2287 )
    >>> at weblogic.servlet.internal.WebAppServletContext.ini t(WebAppServletContext.java:579)
    >>> at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:507)
    >>> at weblogic.servlet.internal.HttpServer.loadWebApp(Ht tpServer.java:513)
    >>> at weblogic.servlet.internal.WebAppModule.prepare(Web AppModule.java:610)
    >>> at weblogic.j2ee.J2EEApplicationContainer.prepareWebM odule(J2EEApplicationContainer.java:2891)
    >>> at weblogic.j2ee.J2EEApplicationContainer.prepareModu les(J2EEApplicationContainer.java:1527)
    >>> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1183)
    >>> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1026)
    >>> at weblogic.management.deploy.slave.SlaveDeployer$Com ponentActivateTask.prepareContainer(SlaveDeployer. java:2568)
    >>> at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.createContainer(SlaveDeployer.java:2520)
    >>> at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare(SlaveDeployer.java:2450)
    >>> at weblogic.management.deploy.slave.SlaveDeployer.pro cessPrepareTask(SlaveDeployer.java:829)
    >>> at weblogic.management.deploy.slave.SlaveDeployer.pre pareDelta(SlaveDeployer.java:538)
    >>> at weblogic.management.deploy.slave.SlaveDeployer.pre pareUpdate(SlaveDeployer.java:496)
    >>> at weblogic.drs.internal.SlaveCallbackHandler$1.execu te(SlaveCallbackHandler.java:25)
    >>> at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    >>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >>>

    >>

    >



  5. Re: Weblogic8.1 + JSTL: taglib validator rejected the page


    Thanks Zipporah for the tip, I removed already german 'Umlauts' but the exception
    is still thrown. Can you tell me which special characters where troubling in your
    case?

    "zipporah" wrote:
    >
    >Peter -
    >I was getting precisely the same error as you and finally tracked it
    >down to something
    >completely unrelated to the JSTL tags! WebLogic was actually having
    >problems
    >with special characters contained elsewhere in the JSP page, but didn't
    >start
    >complaining about them until I tried to use the JSTL core library tags.
    > You might
    >try reviewing your JSP for anything else that might set off the validator.
    > Once
    >I removed the special characters, I had no further problems. Very obnoxious
    >error
    >reporting though...
    >
    >"Peter Ei" wrote:
    >>
    >>Hi David,
    >>here is the summarized JSP which Weblogic canīt parse during Hotdeployment
    >>(precompile=true).
    >>Without Hotdeployment (no precompile) Weblogic compiles the JSP - no
    >>exception
    >>is thrown.
    >>Thanks.
    >>
    >>-------------------------------------------------------------------------------------------------------------------------
    >><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    >><%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    >>
    >>...
    >>" method="post">
    >>...
    >>
    >>

    >>
    >>"David Karr" wrote:
    >>>
    >>>It might help for us to see your JSP page. There might be a clue there.
    >>>
    >>>"Peter Ei" wrote:
    >>>>
    >>>>Hallo,
    >>>>I have a problem deploying a webapp (war-file) on Weblogic8.1. The

    >>webapp
    >>>>includes
    >>>>JSTL (standard.jar, jstl.jar 1.0). During hotdeployment the war-file
    >>>>Weblogic
    >>>>throws an exception (see attachment).
    >>>>
    >>>>I read this entry from 2002:
    >>>>http://newsgroups.bea.com/cgi-bin/dn...em=10118&utag=
    >>>>Removing the validator-tags from all tld-files which come with JSTL
    >>>helps
    >>>>in my
    >>>>case too.
    >>>>
    >>>>I guess this problem is weblogic-related, because the webapp works

    >>with
    >>>>Tomcat.
    >>>>I am surprised that there seems to be no other fix for Weblogic. Is
    >>>that
    >>>>right?
    >>>>
    >>>>Thanks for your replies.
    >>>>Peter
    >>>>-------------------------------------------------------------------------------------------------------------------------
    >>>>java.io.IOException: javax.servlet.jsp.JspException: The taglib validator
    >>>>rejected
    >>>>the page: "org.xml.sax.SAXParseException: Premature end of file.,

    >"
    >>>> at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:125)
    >>>> at weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:258)
    >>>> at weblogic.servlet.jsp.Precompiler.compileOne(Precom piler.java:188)
    >>>> at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:71)
    >>>> at weblogic.servlet.jsp.Precompiler.compile(Precompil er.java:82)
    >>>> at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4869)
    >>>> at weblogic.servlet.internal.WebAppServletContext.pre compileJSPs(WebAppServletContext.java:4847)
    >>>> at weblogic.servlet.internal.WebAppServletContext.pre pareFromDescriptors(WebAppServletContext.java:2287 )
    >>>> at weblogic.servlet.internal.WebAppServletContext.ini t(WebAppServletContext.java:579)
    >>>> at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:507)
    >>>> at weblogic.servlet.internal.HttpServer.loadWebApp(Ht tpServer.java:513)
    >>>> at weblogic.servlet.internal.WebAppModule.prepare(Web AppModule.java:610)
    >>>> at weblogic.j2ee.J2EEApplicationContainer.prepareWebM odule(J2EEApplicationContainer.java:2891)
    >>>> at weblogic.j2ee.J2EEApplicationContainer.prepareModu les(J2EEApplicationContainer.java:1527)
    >>>> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1183)
    >>>> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2E EApplicationContainer.java:1026)
    >>>> at weblogic.management.deploy.slave.SlaveDeployer$Com ponentActivateTask.prepareContainer(SlaveDeployer. java:2568)
    >>>> at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.createContainer(SlaveDeployer.java:2520)
    >>>> at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare(SlaveDeployer.java:2450)
    >>>> at weblogic.management.deploy.slave.SlaveDeployer.pro cessPrepareTask(SlaveDeployer.java:829)
    >>>> at weblogic.management.deploy.slave.SlaveDeployer.pre pareDelta(SlaveDeployer.java:538)
    >>>> at weblogic.management.deploy.slave.SlaveDeployer.pre pareUpdate(SlaveDeployer.java:496)
    >>>> at weblogic.drs.internal.SlaveCallbackHandler$1.execu te(SlaveCallbackHandler.java:25)
    >>>> at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:178)
    >>>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:151)
    >>>>
    >>>

    >>

    >



  6. Re: Weblogic8.1 + JSTL: taglib validator rejected the page

    Peter,

    Were you able to fix this problem? I have the same problem and I am not using any special characters. Also, I am able to use the same tag library(standard.jar) in the same application in another jsp without problems.

    Thanks in advance for any clues that you can offer.

    Milap

  7. Re: Weblogic8.1 + JSTL: taglib validator rejected the page

    I have the same exact same problem when I have to display Big5 chinese characters from my jsp page is there any work around to it?
    what is the consequence of remove the
    org.apache.taglibs.standard.tlv.JstlCoreTLV
    in the tld?
    will the JSTL tag library still work properly?

+ Reply to Thread