cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Rossel <olivier.ros...@anyware-tech.com>
Subject Re: Yet another newbie boring question, sorry... (mounting -> compila tion error)
Date Fri, 08 Mar 2002 14:33:37 GMT
TREGAN Fabien wrote:

>I'm trying to mount my subsitemap in C2 :
>
>-Cocoon example are running well.
>
>-in cocoon/sitemap.xmap i haded :
>  	<map:match pattern="caw/*">
>		<map:mount uri-prefix="caw" check-reload="yes"
>src="caw/sitemap.xmap"/>
>  	</map:match>
>
>-in cocoon/caw/sitemap.xmap I have :
>
><?xml version="1.0"?>
><map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
>  
>	<map:pipelines>
>		<map:pipeline>
>			<map:match pattern="*.xml">
>				<map:generate src="{1}.xml"/>
>				<map:transform src="simple.xsl"/>
>				<map:serialize/>
>			</map:match>
>		</map:pipeline>
>	</map:pipelines>
>
></map:sitemap>
>
>-Result :
>Generated .java file is uncomplete :
>
>It ends with :
>      /** Prepare patterns of PreparableMatchers. */
>      public void prepareMatchers() throws Exception {
>
>Wich give an exception...
>
>Any idea ?
>
>fabien.
>
>org.apache.cocoon.ProcessingException: Language Exception:
>org.apache.cocoon.components.language.LanguageException: Error compiling
>sitemap_xmap:
>Line 213, column 54:  '}' expected.
>Line 0, column 0: 
>1 error
>
>	at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
>esource(ProgramGeneratorImpl.java:338)
>	at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
>ogramGeneratorImpl.java:294)
>	at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
>	at java.lang.Thread.run(Thread.java:484)
>org.apache.cocoon.components.language.LanguageException: Error compiling
>sitemap_xmap:
>Line 213, column 54:  '}' expected.
>Line 0, column 0: 
>1 error
>
>	at
>org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
>JavaLanguage.java:244)
>	at
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
>e.load(CompiledProgrammingLanguage.java:197)
>	at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
>eResource(ProgramGeneratorImpl.java:386)
>	at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
>esource(ProgramGeneratorImpl.java:331)
>	at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
>ogramGeneratorImpl.java:294)
>	at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
>	at java.lang.Thread.run(Thread.java:484)
>
>---------------------------------------------------------------------
>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: <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
We have has the same kind of problem.
We had to declarate a valid generator, a valid transfromer and a valid 
serializer at the beginning of the sitemap.
Then it went ok.



---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message