I suggested a fix when I filed the JIRA, to move CXF's JAXB plugins to the com.sun.tools.xjc.addon. This involves a minor patch to a couple of java files and an update to a META-INF file

gunzip -c apache-cxf-2.1.4.tar.gz | tar xf -
cd apache-cxf-2.1.4/lib
mkdir x
cd x
gunzip -c ../../apache-cxf-2.1.4-src.tar.gz | tar xf - apache-cxf-2.1.4-src/common/xjc/ts/src/main/java/org/apache/cxf/xjc/ts/ToStringPlugin.java apache-cxf-2.1.4-src/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java mv apache-cxf-2.1.4-src/common/xjc/ts/src/main/java/org/apache/cxf/xjc/ts/ToStringPlugin.java . mv apache-cxf-2.1.4-src/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java .
rm -rf apache-cxf-2.1.4-src
sed -i 's/package /package com.sun.tools.xjc.addon./' *.java
jar xf ../cxf-2.1.4.jar
cd META-INF/services/
mv com.sun.tools.xjc.Plugin x
cat x | perl -ane 'print "com.sun.tools.xjc.addon.$_";' > com.sun.tools.xjc.Plugin
rm x
cd ../..
/ms/dist/msjava/PROJ/sunjdk/1.5.0_15/bin/javac -d . -classpath ../cxf-manifest.jar ToStringPlugin.java DefaultValuePlugin.java
rm ToStringPlugin.java DefaultValuePlugin.java ../cxf-2.1.4.jar
jar cf ../cxf-2.1.4.jar *
cd ..
rm -rf x

Dan & co, is this fix acceptable? I'm quite happy to carry on patching my local install of CXF but the fix above seems pretty innocuous.

- Chris



Tom wrote:
https://issues.apache.org/jira/browse/CXF-1880

I'm running into this bug after upgrading to Java 1.6. This naturally is quite annoying and I see the issue dates from oct 20 2008. Is there any workaround?

Tom


Reply via email to