cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel, Alfred" <Alfred.Nathan...@six-group.com>
Subject RE: Adding my Java code to flowscript
Date Thu, 29 Sep 2011 11:41:08 GMT
Hi Des,

Thanks for sharing this information.
Would you mind entering it into http://issues.apache.org/jira/browse/COCOON to keep track
of it?

Cheers, Alfred.

-----Original Message-----
From: Des Magner [mailto:des@icandriveatractor.com] 
Sent: Sonntag, 11. September 2011 13:16
To: users@cocoon.apache.org
Subject: Re: Adding my Java code to flowscript

Hi

For those of you in need of an answer, I recently revisited this problem and
found out what the issue was. I debugged the CompilingClassLoader class
behaviour and eventually found that it was not working due to a conflict in the
libraries shipped with cocoon (version 2.1.11, the stable release). The problem
occurs when it tries to compile your java code using an instance of the eclipse
JavaCompilerImpl. There was an exception being thrown from within the call to
compile but this exception is never displayed in the logging nor on the console.
The eclipse JavaCompilerImpl instantiates a NamedEnvironmentAnswer object from
the jdt. However, it is expecting only one parameter in the constructor,
IBinaryType. But the constructor defined in the jdt jar that was shipped
contains an extra parameter of type AccessRestriction. Because of this there was
a NoSuchMethodException thrown. So I downloaded an older version of the jdt jar,
replaced it and the exception went away. So in summary you need to replace the
jdtcore-3.1.0.jar with jdt-3.0.2 jar in the cocoon installation.

Regards
Des

The content of this e-mail is intended only for the confidential use of the person addressed.

If you are not the intended recipient, please notify the sender and delete this e-mail immediately.
Thank you.

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


Mime
View raw message