Learthgz
Learthgz

Reputation: 133

JPA and classpath

I am working on a JPA project and I am calling an external webservice

If I have this in my classpath

<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/EclipseLink 2.5.2">
    <attributes>
        <attribute name="owner.project.facets" value="jpt.jpa"/>
    </attributes>
</classpathentry>

I have errors in my method

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.rmi.RemoteException: &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;

If I remove this from my classpath, everything is working without any problem (but I guess no more JPA ?) Could you help me fix this and understanding this ?

Thank you very much

Upvotes: 0

Views: 349

Answers (2)

Learthgz
Learthgz

Reputation: 133

I fix it, the solution is to move

<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/EclipseLink 2.5.2">
<attributes>
    <attribute name="owner.project.facets" value="jpt.jpa"/>
</attributes>

at the end of the file .classpath (certainly as Robert said, both EclipseLink and Axis rely on a certain library)

Thank you very much

Upvotes: 0

Robert Durgin
Robert Durgin

Reputation: 1840

You may have a dependency conflict in your project. It's possible that both EclipseLink and Axis rely on a certain library, but each depend on different, incompatible versions.

Upvotes: 1

Related Questions