Unico Hommes wrote:
After a little more research it looks like it also has to do with a classloader problem because it only occurs when I run Cocoon inside of Eclipse.
The exception I am seeing is java.lang.NoClassDefFoundError: org/apache/cocoon/components/repository (wrong name: org/apache/cocoon/components/Repository)
This wrong name message had me thinking it had something to do with the Rhino interpreting the repository string. Why does it capitalize the first r in repository for instance?
Also, this particular flow script imports other packages from different blocks without this error occurring. It only occurs when using the repository package.
Unico
-----Original Message-----
From: Christopher Oliver [mailto:[EMAIL PROTECTED] Sent: woensdag 25 februari 2004 16:47
To: [EMAIL PROTECTED]
Subject: Re: cvs commit: cocoon-2.1/src/blocks/slide/samples flow.js
What error did you get with "repository"? It is not a JS keyword.
Chris
[EMAIL PROTECTED] wrote:
unico 2004/02/25 01:48:35importPackage(Packages.org.apache.cocoon.components.source.helpers);
Modified: src/blocks/slide/samples flow.js Log: rhino seems to barf on 'repository' keyword
Revision Changes Path 1.12 +1 -2 cocoon-2.1/src/blocks/slide/samples/flow.js
Index: flow.js
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/slide/samples/flow.js,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- flow.js 17 Feb 2004 00:02:43 -0000 1.11
+++ flow.js 25 Feb 2004 09:48:35 -0000 1.12
@@ -4,9 +4,8 @@
importPackage(Packages.org.apache.cocoon.samples.slide);cocoon.getComponent('org.apache.cocoon.components.repository.S
importPackage(Packages.org.apache.excalibur.source);
-importPackage(Packages.org.apache.cocoon.components.repository);
-var repository = cocoon.getComponent(SourceRepository.ROLE);
+var repository =
ourceRepository');
var resolver = cocoon.getComponent(SourceResolver.ROLE);"Selector").select("global");
var global = cocoon.getComponent(InputModule.ROLE +
var namespace = global.getAttribute("namespace",null,null);
