You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Yves Vindevogel <yv...@implements.be> on 2003/11/12 16:43:16 UTC

Error compiling the sitemap

I get a very strange error, and I don't see the problem:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 0, column 0: could not parse error message: Note:
sun.tools.javac.Main has been deprecated.
/var/tomcat/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/
www/floris/sitemap_xmap.java:73: ';' expected. private Object
matcher_""_N40000C_expr; ^ Line 224, column 8: Invalid expression statement.
Line 224, column 17: ';' expected. Line 329, column 12: ')' expected. Line
367, column 17: Identifier expected. Line 0, column 0: 5 errors, 1 warning


This is the sitemap in question, very simple one.

<?xml version="1.0"?>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

 <map:pipelines>

  <map:pipeline>
   <map:match pattern="*.html">
   	<map:read src="content/{1}.html"/>
   </map:match>
  </map:pipeline>

 </map:pipelines>

</map:sitemap>

<!-- end of file -->

This is the main sitemap ... well, part for the mount of the submap
Rest is plain, original sitemap


<map:pipelines>


 	<map:pipeline>
   		<map:match pattern="floris">
     			<map:redirect-to uri="floris/index.html"/>
   		</map:match>

   		<map:match pattern="floris/**">
     			<map:mount uri-prefix="floris" src="floris/sitemap.xmap"
check-reload="yes"/>
   		</map:match>
	</map:pipeline>




We are running Cocoon 2.0  On Tomcat  4.1  with java 1.4.1_05 from Sun  on
Slackware 9.0



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


Re: Error compiling the sitemap

Posted by Joerg Heinicke <jh...@virbus.de>.
On 12.11.2003 16:43, Yves Vindevogel wrote:
> I get a very strange error, and I don't see the problem:
> 
> org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> sitemap_xmap: Line 0, column 0: could not parse error message: Note:
> sun.tools.javac.Main has been deprecated.
> /var/tomcat/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/
> www/floris/sitemap_xmap.java:73: ';' expected. private Object
> matcher_""_N40000C_expr; ^ Line 224, column 8: Invalid expression statement.
> Line 224, column 17: ';' expected. Line 329, column 12: ')' expected. Line
> 367, column 17: Identifier expected. Line 0, column 0: 5 errors, 1 warning

Hello Yves,

it's not a problem with your sitemap, but with the classpath: the 
compiler javac is missing. It's in the tools.jar of your JDK IIRC. The 
default cocoon start files include that jar on the classpath.

Joerg


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