cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <yu...@mobicomk.donpac.ru>
Subject error-mapping in cocoon2.0.4
Date Wed, 15 Jan 2003 11:31:30 GMT
Hi all!

Today I upgrade my cocoon from 2.0.2 to 2.0.4 version. 
In cocoon2.0.2 I have the following error mapping:
 in web.xml:
 <error-page>
   <error-code>404</error-code>
   <location>error404.xml</location>   
  </error-page>

in sitemap.xmap:
  <map:pipeline>

   <map:match pattern="*.css">
    <map:read src="resources/styles/{1}.css" mime-type="text/css"/>
   </map:match>

   <map:match pattern="*.gif">
    <map:read src="resources/inages/{1}.gif" mime-type="image/gif"/>
   </map:match>

    <map:match pattern="error404.xml">
     <map:generate src="error404.xml"/>
     <map:transform src="context://stylesheets/system/error404code2html.xsl"/>
     <map:serialize/>
    </map:match>
  </map:pipeline>

and it properly works to this day.

Now (in cocoon2.0.4) this error mapping dont works :((

If I tset the following error-handling in sitemap:
   <map:handle-errors>
    <map:transform src="context://stylesheets/system/error500code2html.xsl"/>
    <map:serialize status-code="404"/>
   </map:handle-errors>

I get the following error:

Cocoon 2 - Internal server error

type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 4509, column 26: Duplicate method declaration: boolean
error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector, org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.Exception, boolean) Line 0, column 0: 1 error

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 4509, column 26:  Duplicate method declaration: boolean error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment, java.util.Map, java.lang.Exception, boolean)
Line 0, column 0: 
1 error

	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:360)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
	at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap:
Line 4509, column 26:  Duplicate method declaration: boolean error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment, java.util.Map, java.lang.Exception, boolean)
Line 0, column 0: 
1 error

	at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243)
	at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:417)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
	at java.lang.Thread.run(Thread.java:484)

Why? What I did wrong?
How I can pretty handle the 404 error in cocoon 2.0.4 ?

Thanx for advise.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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