java - Configuring build path works, but adding same dependency in pom does not -


so i'm attempting use org.apache.cxf.binding.soap.interceptor.soapheaderinterceptor in 1 of modules of project in eclipse.

since new jar adding, downloaded myself , added referenced library under project. good. had class extend soapheaderinterceptor, , hunky dory.

so once done coding everything, removed jar referenced libraries , instead added module's pom so:

<dependency>     <groupid>org.apache.cxf</groupid>     <artifactid>cxf-rt-bindings-soap</artifactid>     <version>2.5.2</version> </dependency> 

i did maven update on project, , subsequently saw jar added under maven dependencies. opened local m2 repository , it's there well.

but getting errors on class (shown below)

public class authenticationinterceptor extends soapheaderinterceptor 

as follows:

the project not built since build path incomplete. cannot find class file org.apache.cxf.interceptor.abstractindatabindinginterceptor. fix build path try building project

the type org.apache.cxf.interceptor.abstractindatabindinginterceptor cannot resolved. indirectly referenced required .class files authenticationinterceptor.java

the hierarchy of type authenticationinterceptor inconsistent

note: soapheaderinterceptor extends abstractindatabindinginterceptor.

i've spent hours trying figure out , absolutely stumped. have cleaned/built workspace multiple times. module added dependency has several more dependencies before, it's not though it's not configured maven. see no error on line imports package, finding jar somewhere (the build path or m2 repo). i'm using version 2.5.2 of jar, , know has used jar exact same purpose in exact same way, successfully.

the thing can think of issue (could confirm?) local m2 repo has multiple versions of jar, 1 older , 2 newer. causing sort of conflict?

edit: on further inspection see org.apache.cxf.interceptor.abstractindatabindinginterceptor isn't there anywhere in repo. have cxf.interceptor package in cxf-api-2.5.2.jar doesn't have class. solutions? have use different version of jar?

if open pom in eclipse , select "dependency hierarchy" should able see if (direct) dependency interfering or omitting jar-files need.

i tried retrace steps pom:

<project xmlns="http://maven.apache.org/pom/4.0.0"    xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://maven.apache.org/pom/4.0.0   http://maven.apache.org/xsd/maven-4.0.0.xsd">   <modelversion>4.0.0</modelversion>   <groupid>org.example</groupid>   <artifactid>art1</artifactid>   <version>0.0.1-snapshot</version>   <dependencies>     <dependency>         <groupid>org.apache.cxf</groupid>         <artifactid>cxf-rt-bindings-soap</artifactid>         <version>2.5.2</version>     </dependency>   </dependencies> </project> 

and created class:

package art1;  import org.apache.cxf.binding.soap.interceptor.soapheaderinterceptor;  public class myclass extends soapheaderinterceptor {  } 

and compiles fine. moreover, class org.apache.cxf.binding.soap.interceptor.abstractindatabindinginterceptor present in same jar , package soapheaderinterceptor, there seems else going on in environment.

my dependency hierarchy looks this:

dependency hierarchy

starting same dependency, yours same?


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -