You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2002/02/18 08:15:29 UTC

DocBook stylesheets not processed by Cocoon?

I am struggling with a problem getting a Cocoon file to work - 
its fine on the test machine but fails on the live machine.

Test: Windows2000 / Pentium III / 128Mb 
Live: Solaris 8? / Sun Sparc / 64MB

Both are runing Cocoon2 and are as far as possible, I think, configured
the same way.

The file in question needs to be processed by the DocBook stylesheets.

This file:
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC 
  "-//OASIS//DTD DocBook XML V4.1.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
<chapter id="project">
<title>Project</title>
</chapter>

when processed by this pipeline:
    <map:match pattern="*.xml">
      <map:generate  type="file" src="{1}.xml" />
      <map:serialize />
    </map:match>
    
generates this error (included in the page source) on the live
machine:

<html><head><title>Internal server error</title>
<STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-color : #0086b2;} 
BODY{font-family : sans-serif,Arial,Tahoma;color :
black;background-color : white;} 
B{color : white;background-color : #0086b2;} HR{color : #0086b2;}
--></STYLE> </head><body><h1>
Cocoon 2 - Internal server error
</h1><HR size="1" noshade><p><b>type</b> 
internal-server-error</p><p><b>message</b> <u>
Exception during processing of
file:/usr/local/tomcat/webapps/cocoon/lead/docs/project/index.xml
</u></p><p><b>description</b> <u>
org.apache.cocoon.ProcessingException: 
Exception during processing of
file:/usr/local/tomcat/webapps/cocoon/lead/docs/project/index.xml: 
java.net.ConnectException: Connection refused</u></p>
<p><b>sender</b>
org.apache.cocoon.servlet.CocoonServlet</p><p><b>source</b> 
Cocoon
servlet</p><p><b>request-uri</b><pre>/cocoon/lead/docs/project/index.xml</pre></p>
<p><b>exception </b><pre>org.apache.cocoon.ProcessingException: 
Exception during processing of
file:/usr/local/tomcat/webapps/cocoon/lead/docs/project/index.xml: 
java.net.ConnectException: Connection refused</pre></p>
<p><b>path-info</b><pre>lead/docs/project/index.xml</pre></p>
<p><b>stacktrace</b><pre>org.apache.cocoon.ProcessingException: 
Exception during processing of
file:/usr/local/tomcat/webapps/cocoon/lead/docs/project/index.xml: 
java.net.ConnectException: Connection refused

When I comment out the <!DOCTYPE> then it works fine...

Any suggestions?

Thanks
Derek

PS the  path to Docbook is set in the CatalogManager.properties file
to:
catalogs=/usr/local/tomcat/webapps/cocoon/stylesheets/docbook/docbook.cat

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: DocBook stylesheets not processed by Cocoon?

Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
On Monday 18 February 2002 08:15, Derek Hohls wrote:
> I am struggling with a problem getting a Cocoon file to work -
> its fine on the test machine but fails on the live machine.

>. . .
> <!DOCTYPE book PUBLIC
>   "-//OASIS//DTD DocBook XML V4.1.2//EN"
>   "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
>. . .

>. . .
> Exception during processing of
> file:/usr/local/tomcat/webapps/cocoon/lead/docs/project/index.xml:
> java.net.ConnectException: Connection refused
>. . .
> When I comment out the <!DOCTYPE> then it works fine...
>. . .
> PS the  path to Docbook is set in the CatalogManager.properties file
>. . .

I'd suspect the parser trying to retrieve 
http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd (or whatever is 
defined in the CatalogManager) and failing. Maybe a firewall is 
blocking access from the Cocoon process to www.oasis-open.org?

Maybe setting DEBUG log level and searching for "oasis" or "docbook" in 
the cocoon logs would help?

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>