cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido Schreuder <g.schreu...@xs4all.nl>
Subject Re: JDK 1.3 build fails
Date Tue, 09 Nov 2004 20:05:21 GMT
Ralph Goers wrote:

>Thanks. I made the change and checked it in.  I did not patch trunk (2.2)
>as JDK 1.3 is not supported there.
>  
>
I remember ( 
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109993495324685&w=2 )
Carsten saying Cocoon 2.1.x should build with 1.3

http://cocoon.apache.org/community/contrib.html
If this is still the offical policy, this patch should probably be applied.
But there is more, see below.

>Now the compiles work but my build died creating the Javadoc with an out
>of memory error.
>  
>
LOL. You could just disable javadoc building to at least build the thing.

Less funny however is that although i've gotten it build, Cocoon will 
not startup properly.
icu4j-3.0.jar seems to be build with J2SDK 1.4.2_04-b05 and this gives me a
  Exception in thread "main" 
java.lang.reflect.InvocationTargetException: 
java.lang.UnsupportedClassVersionError: com/ibm/icu/text/Normalizer 
(Unsupported major.minor version 48.0)
from Loader.main. Replacing it with icu4j_2_8.jar (created with 1.3.1) 
works, and gets Cocoon in the air.

Even then i still get an exception while starting.
- Scheduler Cocoon_$_Tue_Nov_09_20:51:09_CET_2004 started.
java.lang.NoSuchMethodError
        at 
org.apache.cocoon.components.thread.DefaultRunnableManager$ExecutionInfo.execute(DefaultRunnableManager.java:822)
        at 
org.apache.cocoon.components.thread.DefaultRunnableManager.run(DefaultRunnableManager.java:485)
        at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:479)

Maybe this is related to 
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109990566300277&w=2

Guido

>Ralph
>
>
>Guido Schreuder said:
>  
>
>>Ralph,
>>You're not alone. I get exactly the same error on both 1.3.1_07-b02 and
>>1.3.1_13-b03
>>This seems to be a bug in the 1.3.x compiler series.
>>Here somebody presumably ran into the same error compiling JOnAS:
>>http://mapage.noos.fr/vixxes/jonas/ant/
>>
>>Fully naming the Queue-interface resolves the problem at my end. See
>>attached patch file.
>>
>>Guido
>>
>>BTW is there a bug report already where i can add this patch to? Or can
>>somebody commit it from here?
>>
>>
>>Index:
>>src/java/org/apache/cocoon/components/thread/SynchronousChannel.java
>>===================================================================
>>---
>>src/java/org/apache/cocoon/components/thread/SynchronousChannel.java
>>(revision 57063)
>>+++
>>src/java/org/apache/cocoon/components/thread/SynchronousChannel.java
>>(working copy)
>>@@ -45,7 +45,7 @@
>>  */
>> public class SynchronousChannel
>>     extends EDU.oswego.cs.dl.util.concurrent.SynchronousChannel
>>-    implements Queue
>>+    implements org.apache.cocoon.components.thread.Queue
>> {
>>     //~ Methods
>>----------------------------------------------------------------
>>
>>
>>
>>
>>
>>Ralph Goers wrote:
>>
>>    
>>
>>>Am I the only one seeing this?  I tried to build on my computer at work
>>>and I get the same error (see below) there as on my home computer.
>>>
>>>For the life of me, I can't quite figure out why it thinks Queue is not
>>>an
>>>interface.
>>>
>>>
>>>Ralph Goers said:
>>>
>>>
>>>      
>>>
>>>>Carsten Ziegeler said:
>>>>
>>>>
>>>>        
>>>>
>>>>>Ok, I changed this - does it now compile for you?
>>>>>
>>>>>Carsten
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>Unfortunately, no.  But I'm not getting to the changes you made.
>>>>
>>>>compile-core:
>>>>Compiling 539 source files to
>>>>/home/rago2483/cocoon/head/BRANCH_2_1_X/build/cocoon-2.1.6-dev/classes
>>>>/home/rago2483/cocoon/head/BRANCH_2_1_X/src/java/org/apache/cocoon/components/thread/SynchronousChannel.java:48:
>>>>interface expected here
>>>>   implements Queue
>>>>              ^
>>>>/home/rago2483/cocoon/head/BRANCH_2_1_X/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java:322:
>>>>incompatible types
>>>>found   : org.apache.cocoon.components.thread.SynchronousChannel
>>>>required: org.apache.cocoon.components.thread.Queue
>>>>           m_queue = new SynchronousChannel(  );
>>>>                     ^
>>>>2 errors
>>>>
>>>>BUILD FAILED
>>>>/home/rago2483/cocoon/head/BRANCH_2_1_X/tools/targets/compile-build.xml:62:
>>>>Compile failed; see the compiler error output for details.
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>
>>>
>>>
>>>      
>>>
>>    
>>
>
>
>
>  
>


Mime
View raw message