cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Mieth <simon.mi...@t-online.de>
Subject Re: offline generation - NullPointerException in release()
Date Thu, 05 Feb 2004 13:56:01 GMT
Hi Kaj,

> Hi Simon,
> I use stock 2.1.3 and my site runs fine in Jetty.

This is a stable build and should work.


> I use the *.xconf (see below). My site is in webapp/NewConficio and I
> want it to be generated, so I can put it into root of the apache
> webserver.
> I also get some other weird errors in the logs, which I do not get with
> the online version (see below again).

>    <uri type="append" 
>         src-prefix="NewConficio/" 
>         src="index.html"
>         dest="build/NewConficio/dest/"/>
>         

>    <uris name="site" follow-links="true"
>          confirm-extensions="true"
>          src-prefix="NewConficio/"
>          dest="build/NewConficio/dest/"
>          type="append"
>          >
>       <uri src=""/>
>       <uri src="index.html"/>
>       <uri src="about/"/>
>       <uri src="service/"/>
>       <uri src="product/"/>
>       <uri src="example/"/>
>    </uris>
> 

I dont use the cli.xconf so i cannot help you here.

But you can try:
/cocoon.sh cli -d build/mysite -c build/webapp NewConficio/index.html 

if NewConficio/index.html is your start-page. The CLI normally crawls through
the site and find all links and process this too (folloLinks is "true" by default).


 


> FATAL_E (2004-02-04) 19:12.29:605   [core.xslt-processor] (Unknown-URI)
> Unknown-thread/TraxErrorHandler: Error in TraxTransformer:
> file:/C:/cocoon-2.1.3/build/webapp/NewConficio/site2xhtml.xsl; Line 55;
> Column 28; 
> ; SystemID:
> file:/C:/cocoon-2.1.3/build/webapp/NewConficio/site2xhtml.xsl; Line#:
> 55; Column#: 28
> javax.xml.transform.TransformerException:
> java.lang.NullPointerException

> -------- site2xhtml.xsl --- line 50 and following ----------
> 	 <meta name="author" content="Kaj Kandler"/>
> 	 <meta name="publisher" content="Conficio"/>
> 	 <meta name="copyright" content="Copyrigvorherht 2003, 2004 Conficio - All
> rights reserved"/> <!--&copy;-->
> 
>      <title><xsl:value-of select="page-title"/></title>
> 	 <xsl:element name="link">
> 	 	<xsl:attribute name="rel">stylesheet</xsl:attribute>
> 	 	<xsl:attribute name="type">text/css</xsl:attribute>
> 	 	<xsl:attribute name="href">theme/Master.css</xsl:attribute>
> 	 </xsl:element>
> 	
> 	</head>
> ---------------------------------------
> For the complaint about the site2xhtml.xsl file, the line seems to be
> arbitrary. If I comment the offending statement out, the error moves
> 5-6 lines down in the file. As mentioned, neither of this happens in
> live Jetty serving.
> 
> Thanks for having a look at my issues.
> 
> Kaj

Maybe the problems starts before this point. Use you some "http://localhost"-urls to 
get pics or other stuff, this dont work in offline-mode.
You can try to serialize your content as xml (from jetty, or CLI comment out the xslt-transformer
and serialize type="xml" ) and try a xslt-transformation by hand, there you can see if its
work offline or
you can see better pointing error-message. I often use xsltproc under linux, it is fast and
has a "-debug"
switch.

Best Regards,
Simon



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


Mime
View raw message