Hello
Please I would like to run samples with the following pom.xml content:
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1.2.22</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-impl</artifactId>
<version>1.2.22</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-dom</artifactId>
<version>1.2.22</version>
<scope>runtime</scope>
</dependency>
I'm facing this issue when running my project:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axiom/soap/impl/dom/SOAPFaultNodeImpl
...
Caused by: java.lang.ClassNotFoundException:
org.apache.axiom.soap.impl.dom.SOAPFaultNodeImpl
I've tested my maven project code in IntelliJ and VS Code and got the error
in both.
I've also added the jars manually in IntelliJ creating a library (named
lib-axiom) through File->Project Structure->Libraries. And adding the new
library to the project module.
In this case from above, for a simple java project it works, but in a Maven
one it doesn't.
My IntelliJ maven project has a .classpath file. Would the lack of record
in it regarding the libs the issue ?
Also, in IntelliJ my iml file (from maven project) has the following
content:
<orderEntry type="library" scope="RUNTIME" name="Maven:
org.apache.ws.commons.axiom:axiom-impl:1.2.22" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven:
org.apache.ws.commons.axiom:axiom-dom:1.2.22" level="project" />
and:
<orderEntry type="library" name="lib-axiom" level="project" />
Would there be a way to set the libs in classpath through pom.xml ?
I'm sorry for the beginner question but I would really like to learn axiom
framework.
Thks in Advance