You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Glen Mazza <gl...@gmail.com> on 2010/06/19 16:31:19 UTC

Re: NPE setting up CXF code in Eclipse

Problem fixed.  I upgraded to Maven 2.2.1 and also nuked my local Maven
repository in case a file used in the build process was corrupted.   But the
NPE while building CXF-API still occurred (I'm not sure why I said "mvn
-Pfastinstall" worked below--I noticed today I was getting the NPE just
running that as well.) 

But the real problem seemed to be that I had the JAXB 2.2 and JAX-WS RI
2.2-api.jar's in my JDK's endorsed directory--removing them from the
endorsed folder fixed the issue.

Thanks,
Glen


dkulp wrote:
> 
>> (I'm using Maven 2.2.0 and JDK 1.6.0_18.)  Anyone else getting this error
>> or know its solution?
> 
> Definitely don't use Maven 2.2.0.   Bunch of bugs in there.  Use 2.2.1. 
> That 
> said, it shouldn't affect this.
> 
> Not sure what would cause this error.   Haven't seen it before.  If you
> run 
> mvn -Psetup.eclipse a couple times, does it resolve itself?
> 
> Dan
> 

-- 
View this message in context: http://old.nabble.com/NPE-setting-up-CXF-code-in-Eclipse-tp28617106p28934164.html
Sent from the cxf-dev mailing list archive at Nabble.com.


Re: NPE setting up CXF code in Eclipse

Posted by Daniel Kulp <dk...@apache.org>.
On Saturday 19 June 2010 10:31:19 am Glen Mazza wrote:
> Problem fixed.  I upgraded to Maven 2.2.1 and also nuked my local Maven
> repository in case a file used in the build process was corrupted.   But
> the NPE while building CXF-API still occurred (I'm not sure why I said
> "mvn -Pfastinstall" worked below--I noticed today I was getting the NPE
> just running that as well.)
> 
> But the real problem seemed to be that I had the JAXB 2.2 and JAX-WS RI
> 2.2-api.jar's in my JDK's endorsed directory--removing them from the
> endorsed folder fixed the issue.

I really hate the entire Java endorsed thing.   Why Sun had to throw the 
kitchen sink into the JDK is beyond me.  :-(

Dan



> 
> Thanks,
> Glen
> 
> dkulp wrote:
> >> (I'm using Maven 2.2.0 and JDK 1.6.0_18.)  Anyone else getting this
> >> error or know its solution?
> > 
> > Definitely don't use Maven 2.2.0.   Bunch of bugs in there.  Use 2.2.1.
> > That
> > said, it shouldn't affect this.
> > 
> > Not sure what would cause this error.   Haven't seen it before.  If you
> > run
> > mvn -Psetup.eclipse a couple times, does it resolve itself?
> > 
> > Dan

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog