On Monday 31 January 2011 6:32:57 am Pierre-Henry Perret wrote: > Hi Diptiv, > > Yes, I think its an IDE issue, more precisely, how the compiler uses > CLASSPATH and others to resolve its dependencies. > > I have a similar issue in Eclipse with javax annotations, I have this > message: > ___________________________ > Description Path Location Type Resource > Access restriction: The type WebServiceClient is not accessible due to > restriction on required library C:\Program > Files\Java\jdk1.6.0_20\jre\lib\rt.jar....[ > ____________________________________________
This bug in eclipse is USUALLY due to the JRE runtime level for the project set to "J2SE-1.5" instead of "JavaSE-1.6". If you check the "Build Path", "Libraries" and check the bottom, you can see what is being picked up. Dan > But with bndtools this access restriction leads a compilation ERROR... > > diptiv wrote: > > Update: It could be that the issue is with Intellij rather than CXF. > > Through command prompt, I can see the geronimo-jaxws_2.2_spec dependency > > is getting transitively pulled in from cxf-rt-frontend-jaxws 2.3, but in > > IntelliJ I do not see that dependency in the dependency graph for > > cxf-rt-frontend-jaxws. > > > > So I'm not sure now if the problem is in IntelliJ or CXF's dependency. > > > > The weird thing is if I use CXF-2.2.9, then the geronimo-jaxws_2.1_spec > > jar dependency is getting pulled in correctly in Idea - IntelliJ. > > > > Anyone run into similar issues? Or thoughts on this? > > ----- > -- > Pierre -- Daniel Kulp [email protected] http://dankulp.com/blog
