On Wednesday 26 March 2008, harbhanu wrote:
> I am trying to build CXF [2.0.4] using maven, but getting the
> following error during build...

......

> D:\JWork\CXF\apache-cxf-2.0.4-incubator-src>javac -version
>
> javac 1.5.0_01
> javac: no source files
> Usage: javac <options> <source files>
>
> D:\JWork\CXF\apache-cxf-2.0.4-incubator-src>java -version
>
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
>
> D:\JWork\CXF\apache-cxf-2.0.4-incubator-src>mvn -version
> Maven version: 2.0.8
> Java version: 1.5.0_01
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Something very strange is going on.   From the command line, you are 
getting 1.6.0_03, but in maven, you are getting 1.5.0_01. 

That said, both will have issues with CXF 2.0.x.    The CXF 2.0.x builds 
are relatively untested with 1.6.x.   You can get the binary versions to 
work (possibly with endorsing some stuff) but we didn't work at all on 
getting the builds to work with 1.6.x.    CXF 2.1 will support 1.6.0_04 
for building. (but not _03 and earlier)

1.5.0_01 has some parser issues that cause namespaces prefix problems 
(which is what you are seeing above).  I'd recommand at least _06, but 
the latest is definitely preferred.  (_13)



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to