Yep.  There are still a bunch of build related issues with the IBM JDK.  The 
last couple weeks, I managed to get all the UNIT TESTS passing on the IBM JDK 
which was important to validate that Camel works with the IBM JDK, but there 
are still a bunch of build related issues.    The way camel uses antrun to run 
the jxc stuff also doesn't work on the IBM JDK.   I didn't get a chance to 
look at that yet.   

For now, I've had to use the Sun JDK to build, and then use the IBM JDK to run 
the tests and such.    

Patches are welcome to fix issues.  :-)

Dan

On Wednesday, June 29, 2011 7:05:57 AM bvahdat wrote:
> Hi Claus,
> 
> I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue, @xiangqiuzhao
> is this really the case?
> I used to experience exactly the same problem while using IBM-JDK, however
> since moving to SUN-JDK the problem is resolved for me.
> 
> On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile' on
> 'camel-core' comes up with (same as for xiangqiuzhao):
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
> compile) on project camel-core: Compilation failure
> [ERROR]
> \Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\came
> l\model\LoadBalanceDefinition.java:[134,16] inconvertible types
> [ERROR] found   : org.apache.camel.model.ProcessorDefinition<capture#945
> of ?>
> [ERROR] required: org.apache.camel.model.LoadBalanceDefinition
> 
> Where 'mvn -version' says:
> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
> Java version: 1.6.0, vendor: IBM Corporation
> Java home: C:\Program Files\IBM\SDP75\jdk\jre
> Default locale: de_CH, platform encoding: Cp1252
> OS name: "windows xp", version: "5.1 build 2600 service pack 3", arch:
> "x86", family: "windows"
> 
> If one would change the line 134 on LoadBalanceDefinition from:
>  if (processorType instanceof LoadBalanceDefinition) {
> 
> To:
>  if (LoadBalanceDefinition.class.isInstance(processorType)) {
> 
> Then the compilation would pass on this class. I didn't find anything about
> this issue on http://camel.apache.org/does-camel-work-on-ibms-jdk.html
> 
> Regards, Babak
> PS: actually there're more compilation issues while using IBM-JDK
> 
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-insta
> ll-error-tp4532013p4535242.html Sent from the Camel - Users mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to