This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL xml tag throwing error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL xml tag throwing error" Watch "JSTL xml tag throwing error" New topic

JSTL xml tag throwing error

Seema Hanji
Ranch Hand

Joined: Jan 29, 2001
Posts: 37
My web application has a jsp which uses JSTL xml tag to read data from xml and display them. I am using apache web server and WebLogic app server.

When I try to access this jsp, I keep getting following exception. And when I refresh the page, error goes away and page is displayed fine and again if I refresh the page, I get the error again.

javax.servlet.ServletException: White spaces are required between publicId and systemId.
at weblogic.servlet.jsp.PageContextImpl.handlePageException(
at jsp_servlet._2_46_5.__homepage_45_4._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.ServletStubImpl$
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.RequestDispatcherImpl.include(
at weblogic.servlet.internal.RequestDispatcherImpl.include(
at weblogic.servlet.jsp.PageContextImpl.include(
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

Is your XML well-formed? Does it have the proper <?xml?> declaration is the very first character? Is the DOCTYPE declaration well formed and correct?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Seema Hanji
Ranch Hand

Joined: Jan 29, 2001
Posts: 37
Yes, XML is well formed. First line lookes like this

<?xml version="1.0" encoding="UTF-8"?>
Seema Hanji
Ranch Hand

Joined: Jan 29, 2001
Posts: 37
Please somebody help me in this
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

Why do you think the XML tag is the problem? You didn't post the entire stack trace but the part you did post mentions methods with names like "include". So perhaps you have a JSP include which points to something which is malformed?
It is sorta covered in the JavaRanch Style Guide.
subject: JSTL xml tag throwing error
Similar Threads
Error 500--Internal Server Error- Web Logicserver
IndexOutOfBoundsException at javax.faces.component.UICompo
NoSuchObjectException: Bean has been deleted Broken pipe
ServletException with Jakarta Request Taglib and WebLogic 7.0 server.