cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: changed behaviour with source resolving
Date Thu, 02 May 2002 06:45:21 GMT
Argh, thanks David - I found the bug in the excalibur code... :(

Instead of getting the protocol from the base URI (= file: ) it
got the rest of the base URI and concatenated this with the URI to resolve.
Damn substring mistake...

Ok, I will fix this asap.

Thanks,
Carsten

> -----Original Message-----
> From: David Crossley [mailto:crossley@indexgeo.com.au]
> Sent: Thursday, May 02, 2002 8:35 AM
> To: cocoon-dev@xml.apache.org
> Subject: Re: changed behaviour with source resolving
>
>
> Carsten Ziegeler wrote:
> > David Crossley wrote:
> > >
> > > This sitemap snippet was working until very recently ...
> > > <map:match pattern="zal/summary.html">
> > >  <map:generate src="/var/www/html/zal/summary/summary-current.xml"/>
> > >  <map:transform src="/var/www/html/zal/summary-html.xsl"/>
> > >  <map:serialize type="html"/>
> > > </map:match>
> > >
> > > However with the current CVS HEAD it now fails,
> > > because it now tries to find the documents below
> > > the webapps/cocoon/ ...
> > > ------
> > > Original exception : java.io.FileNotFoundException:
> > > /usr/local/jakarta/jakarta-tomcat-4.0.1/webapps/cocoon/var/www/htm
> > > l/zal/summary-html.xsl (No such file or directory)
> > > at java.io.FileInputStream.open(Native Method)
> > > at java.io.FileInputStream.<init>(FileInputStream.java:70)
> > > at
> > > org.apache.excalibur.source.impl.URLSource.getInputStream(URLSourc
> > > e.java:196)
> > > ------
> > >
> >
> > Hmm, strange.
> > I just compared the new source resolving code with the old one,
> > and it looks like it's the same. Could you please look into the core.log
> > what it says. ....
>
> Here you are ...
> -----
> DEBUG   (2002-05-02) 16:30.51:117
> [core.manager](/cocoon/zalarm/summary.html)
> HttpProcessor[8080][3]/LogKitLogger: Resolving
> '/var/www/html/zalarm/summary/summary-current.xml' with base
'file:/usr/local/jakarta/jakarta-tomcat-4.0.1/webapps/cocoon/' in context
'file:/usr/local/jakarta/jakarta-tomcat-4.0.1/webapps/'
DEBUG   (2002-05-02) 16:30.51:117
[core.manager](/cocoon/zalarm/summary.html)
HttpProcessor[8080][3]/LogKitLogger: Resolved to systemID
'/usr/local/jakarta/jakarta-tomcat-4.0.1/webapps/cocoon//var/www/html/zalarm
/summary/summary-current.xml'
DEBUG   (2002-05-02) 16:30.51:117
[core.manager](/cocoon/zalarm/summary.html)
HttpProcessor[8080][3]/LogKitLogger: Making URL from
/usr/local/jakarta/jakarta-tomcat-4.0.1/webapps/cocoon//var/www/html/zalarm/
summary/summary-current.xml
DEBUG   (2002-05-02) 16:30.51:117
[core.manager](/cocoon/zalarm/summary.html)
HttpProcessor[8080][3]/LogKitLogger: Making URL - MalformedURLException in
getURL:
java.net.MalformedURLException: no protocol:
/usr/local/jakarta/jakarta-tomcat-4.0.1/webapps/cocoon//var/www/html/zalarm/
summary/summary-current.xml
        at java.net.URL.<init>(URL.java(Compiled Code))
-----

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message