You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Skip Carter <sk...@taygeta.com> on 2006/01/20 19:07:15 UTC
Cocoon 2.1.8 and JSP troubles
Hello,
I am having problems JSP running with Cocoon 2.1.8, tomcat 5.5.13 and j2sdk 1.4.2
Attempting to run any JSP generates the error message:
org.xml.sax.SAXParseException: Premature end of file.
SAXException while parsing JSPEngine output
context://Ajax/sitemap.xmap - 74:35 <map:serialize type="xml">
context://Ajax/sitemap.xmap - 73:54 <map:generate type="jsp">
The Cocoon stack trace references lines in the sitemap which at this
point I have reduced to be trivial.
<map:match pattern="**.jsp">
<map:generate src="pages/{1}.jsp" type="jsp"/>
<map:serialize type="xml"/>
</map:match>
Running the same JSP directly from Tomcat works just fine.
Also running with Cocoon 2.1.6, tomcat 5.0.27 and j2sdk 1.4.1
(which I what I am trying to upgrade from) works too.
Some google searching revealed the following bug,
http://issues.apache.org/bugzilla/show_bug.cgi?id=33762
which seems to be the same issue. But I was not able to find any
resolution or workarounds.
Any suggestions ?
Here is a simple example of what fails:
<%@ page language="java" session="false" contentType="text/xml" %>
<html>
<body>
<%
String addr = request.getRemoteAddr();
String rhost = request.getRemoteHost();
String user = request.getRemoteUser();
if ( rhost == null || rhost.length() < 1 ) rhost = addr;
out.println(" <rhost>" + rhost + "</rhost>");
out.println(" <ipaddr>" + addr + "</ipaddr>");
out.println(" <user>" + user + "</user>");
%>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org