cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Finn <yarnfish2...@yahoo.com>
Subject Possible issue in sitemap generation [C2B2]
Date Mon, 10 Sep 2001 23:10:34 GMT
First, hi and thanks to everyone for all the work in
putting together such a great framework with C2.

I've run across one minor issue with sitemap
generation that I haven't seen a report on.

C2.0 b2 on W2K SP6 with Sun JDK 1.3.1, Tomcat 3.2.1

Steps to reproduce:
1) Add the sendmail action to the <map:actions>
section of the sitemap.  E.g.,

<map:action name="sendmail"
src="org.apache.cocoon.acting.SendmailAction"/>

2) Save the sitemap, and restart Cocoon2.

3) Request the Cocoon home page.  An internal server
error occurs (see below for stacktrace).

4) Take the new action out of the sitemap, save the
sitemap file and restart Cocoon2.  (Note: this should
return the system to the state it was in before you
made the change.)

5) Request the Cocoon home page again.  The same error
occurs.

Workaround: go into the work directory where the
sitemap class file is stored and delete the
sitemap*.class files.  The next time you restart, the
system will work.  For some reason, it appears that
even though the new Java file for the sitemap is being
generated correctly, it isn't being compiled when you
revert (the class file dates are older than the Java
file dates).

Maybe this is some Avalon-related issue or setting I
missed, but it is confusing.  Is there a "staleness"
timer that I'm hitting?  If so, anyone who makes quick
turnaround additions to the sitemap that fail will run
into it and get confused.

I'm also not sure why the Sendmail Action causes the
error in the first place, but the lack of compilation
seemed to be a more general issue.

Here's the stack trace:
org.apache.avalon.framework.component.ComponentException:
Could not set up Component for hint:
org\apache\cocoon\www\sitemap_xmap
	at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:127)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:292)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:273)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:233)
	at
org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
	at java.lang.Thread.run(Thread.java:484)





__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

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


Mime
View raw message