It's hard to know for sure because I don't have a copy of Weblogic, but it
looks as if this is a bug in Weblogic's construction of the XML view.  The
SAXParseException is most likely coming from JSTL's TagLibraryValidator
class, which needs the XML view in order to validate the page.  If this
view is constructed poorly by the web server, then it won't parse as
well-formed XML.

BEA may have a patch that fixes the problem; otherwise, it's probably
useful to report the bug.  Hope that helps,

--
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com

On Wed, 4 Sep 2002, Donghyeok Kang wrote:

> Hi...
>
> I am trying JSTL in BEA Weblogic 7.0 server.
> Whenever I declared the tag library in a JSP page like
> "<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>",
> an exception occurred.
>
> The exception is
> java.io.IOException: javax.servlet.jsp.JspException: The taglib
> validator rejected the page: "org.xml.sax.SAXParseException: The value
> of attribute "import" must begin with either a single or double quote
> character., "
>  at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:124)
>  at
> weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
>  at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:348)
>  at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:206)
>  at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:160)
>  at
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
> a:447)
>  at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
> java:287)
>  at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
>  at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
> 27)
> ..
>
> In the case of Tomcat 4.0, JSTL works well.
>
> It was usless to change all the uri in JSP page, the tld file, and
> web.xml.
>
> What's the problem?
>
> Thanks...
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to