Didier Dubois wrote:
> hi all,
>
> We are using Cocoon with Jetspeed 1.2b with Apache/Jserve.
> Everything seems Ok since we installed the Last JDK 1.3 from sun.
> When I try to accessa a documment I got the following error on the logs:
>
> Exception: org.apache.cocoon.processor.ProcessorException: Could not
> associate stylesheet to document: error reading
> file://home/httpd/html/products/freyakademy/resources/fr/xsl/screens/loginscreen.xsl:
> java.net.UnknownHostException: home
> Stack Trace follows:
> org.apache.cocoon.processor.ProcessorException: Could not associate
> stylesheet to document: error reading
> file://home/httpd/html/products/freyakademy/resources/fr/xsl/screens/loginscreen.xsl:
> java.net.UnknownHostException: home
> at
> org.apache.cocoon.processor.xslt.XSLTProcessor.getStylesheet(XSLTProcessor.java:204)
> .....
>
> And this one on the browser:
>
> The reason for the error was:
> org.apache.cocoon.processor.ProcessorException: Could not associate
> stylesheet to document: error reading
> file://home/httpd/html/xsl/screens/loginscreen.xsl:
> java.net.UnknownHostException: home
>
> I tried to find a similar problem on the FAQs, and mailling archive but
> didn't find anything.
>
>
> The doccuement exists. But the froblem comes from the file:// url. This
> does not work. Only file:/// is valid.
>
> In http://java.sun.com/j2se/1.3/compatibility.html you will that the
> java.net.url has been modified. It seems the problem comes from this
> point.
> We fixed our Apache configuration appending a '/' in httpd.conf
>
> DocumentRoot "//home/httpd/html" # note the 2 '/'s
>
> This is just a hack.
>
> I would like to know if someone else has experienced the same problem.
> And what is the correct fix?
>
The problem is fixed in CVS. Originally, when we changed the behaviour to make it work
under jdk1.3, it broke other implementations, especially under NT.
Now the handling of cached files is done via character Readers, which is much more
portable, and solves other issues like character encoding (everything in the cache is
stored in utf-8 now, which solves problems with mixes of japanese, deustch, spanish,
chinese, french, ... channels in the same server).
Try cvs version with tag pre-proposal-0003-no-psml. It should build and solves this
problem.
(cvs update -r pre-proposal-0003-no-psml)
We should advance towards 1.2b2 very soon (before ApacheCon for sure).
>
> Didier.
>
> --
> mailto:[EMAIL PROTECTED] http://www.idbsoft.ch
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]