'using EnterpriceConnection.query returns in a "NoSuchClassException"

I'm trying to retrieve some info from Salesforce in my app. After I log in I've got a

EnterpriseConnection connection

Object. When I call

connection.describeSObject("Project__c")

then I got the result. The problem is when I try to do

connection.query("Select id from Project__C")

then I got

 java.lang.ClassNotFoundException: com.sforce.soap.enterprise.sobject.Project__c

What am I missing?

In my pom.xml I've added

 <artifactId>cxf-common-utilities</artifactId>
            <version>2.5.11</version>
<artifactId>cxf-tools-common</artifactId>
            <version>3.5.0</version>
<artifactId>cxf-rt-frontend-simple</artifactId>
            <version>3.5.0</version>
<artifactId>cxf-rt-transports-http</artifactId>
            <version>3.5.0</version>
 <artifactId>cxf-rt-frontend-jaxws</artifactId>
            <version>3.5.0</version>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source