You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jason Nah <ja...@oopl.com.au> on 2003/06/10 02:04:44 UTC

Installing Cocoon on Solaris Sun One Application Server 7

Howdy All,

In relation to a previous post... "Sitemap parsing error?"... I'm posting
about the installation and running of Cocoon 2.04 on a Solaris machine
running SunONE application server 7.

I have managed to install the application WAR file successfully. It appears
as a separate web application.

However... I am unable to invoke the servlet context /cocoon successfully.
Here are the problems that I'm noticing and some approaches that I've taken
(with limited effect).
1. On initial install, the cocoon servlet reports:
	description org.xml.sax.SAXParseException: Illegal character at end
of document, u.

2. This turns out to be a character encoding problem. I've noticed that the
default container-encoding was ISO-8859-1. Hence to fix this, I've included
the following in the web.xml file:
   <init-param>
      <param-name>container-encoding</param-name>
      <param-value>utf-8</param-value>
   </init-param>
   <init-param>
      <param-name>form-encoding</param-name>
      <param-value>utf-8</param-value>
   </init-param>
This has removed that exception but I now get the following error:
message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 6271, column 12: '}' expected Line 5221, column 4: 'try'
without 'catch' or 'finally' Line 3168, column 25: method
error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment, java.util.Map,
java.lang.Exception, boolean) not found in class
org.apache.cocoon.www.sitemap_xmap Line 3339, column 8: method
matchN4005A9(org.apache.cocoon.sitemap.SitemapRedirector, org.... <enormous
stack dump>

It would seem that there is still some problems with the sitemap.xmap file.
I've noticed when I've vi the file, it reports that the file is incomplete.

Is there something i've missed? Perhaps the wrong distro of cocoon? Perhaps
the sitemap.xmap file is encoded improperly for nix systems?

Any suggestions welcomed....

Cheers,
Jason