cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: svn commit: rev 56438 - cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript
Date Tue, 02 Nov 2004 23:24:53 GMT
Reinhard Poetz wrote:
> reinhard@apache.org wrote:
> 
>> Author: reinhard
>> Date: Tue Nov  2 15:20:30 2004
>> New Revision: 56438
>>
>> Modified:
>>    
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java

>>
>> Log:
>> Because of switching to rhino-1.6 it doesn't compile any more - had to 
>> comment out two lines to make code compile again. Due to Torsten the 
>> compiling classloader doesn't work anyway
>>
>> Modified: 
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java

>>
>> ============================================================================== 
>>
>> --- 
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
   
>> (original)
>> +++ 
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
   
>> Tue Nov  2 15:20:30 2004
>> @@ -104,7 +104,8 @@
>>          cx.setErrorReporter(reporter);
>>                   cx.setGeneratingSource(true);
>> -        cx.setTargetPackage("");
>> +        // doesn't compile with Rhino 1.6 +        // 
>> cx.setTargetPackage("");
>>  
>>          //ClassNameHelper nameHelper = ClassNameHelper.get(cx);
>>          String filename = ((String) sources.get(classname))+".js";
>> @@ -124,7 +125,9 @@
>>          //String out = f.getParent() == null ? className : 
>> f.getParent() + File.separator + className;
>>          String out = System.getProperty("java.io.tmpdir") + 
>> File.separator + className;
>>          //nameHelper.setTargetClassFileName(out);*/
>> -        cx.setTargetClassFileName(out);
>> +        +        // doesn't compile with Rhino 1.6 +        // 
>> cx.setTargetClassFileName(out);
>>  
>>          System.out.println("out=" + out);
>>  
>>
> 
> Torsten,
> 
> hope my comment is correct ...
> 

forgot to mention that Javaflow doesn't work for me at the moment but I can't 
imagine that this is due to my change:

FlowNode: Couldn't obtain a flow interpreter for 'java' at 
file:/F:/os/cocoon/trunk/build/webapp/samples/blocks/javaflow/sitemap.xmap:33:28 
(Key='java')

org.apache.avalon.framework.service.ServiceException: FlowNode: Couldn't obtain 
a flow interpreter for 'java' at 
file:/F:/os/cocoon/trunk/build/webapp/samples/blocks/javaflow/sitemap.xmap:33:28 
(Key='java')
	at 
org.apache.cocoon.components.treeprocessor.sitemap.FlowNode.service(FlowNode.java:68)
	at 
org.apache.cocoon.components.LifecycleHelper.setupComponent(LifecycleHelper.java:152)
	at 
org.apache.cocoon.components.LifecycleHelper.setupComponent(LifecycleHelper.java:106)
	at 
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.setupNode(DefaultTreeBuilder.java:369)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.FlowNodeBuilder.buildNode(FlowNodeBuilder.java:38)
...

-- 
Reinhard

Mime
View raw message