Hi Grzegorz,
thanks for your reply!
Grzegorz Kossakowski schrieb:
Andreas Hartmann pisze:
apparently I broke something in my application. Unfortunately I can't
recall what I changed that could have caused this issue. It looks like
Rhino is not on the classpath. Maybe some classloader problem? All I can
tell is that the sitemap + flowscript already worked.
I remember adding the Spring configurator namespace to some bean
declaration files to enable placeholder processing, but I can't imagine
that there is a relation …
java.lang.NoClassDefFoundError:
org/mozilla/javascript/continuations/Continuation
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
This looks like a classpath issue but quite strange one.
How do you start your Cocoon application? With mvn jetty:run?
Yes, I'm using jetty:run. But I have now found the source of the
problem: The offending change was enabling a block in my application
that had a dependency to cocoon-batik-impl. This module uses Rhino
1.5R4.1, but the flowscript module needs 1.6R7. I guess the Continuation
class didn't exist in 1.5R4.1 yet.
Anyway, after adding the exclusion declaration to the cocoon-batik-impl
POM to avoid the transitive dependency, it works again:
<dependency>
<groupId>batik</groupId>
<artifactId>batik-script</artifactId>
<exclusions>
<exclusion>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
</exclusion>
</exclusions>
</dependency>
Shall I commit this change?
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org