prowide / prowide-iso20022

Comprehensive business model and parser for all ISO 20022 messages
https://www.prowidesoftware.com
Apache License 2.0
147 stars 68 forks source link

Error: java.lang.ClassNotFoundException #52

Closed anderson-indiano closed 2 years ago

anderson-indiano commented 2 years ago

Hello,

I'm having problems running an application in an approval environment, I'm using a pw-swift-core/SRU2021-9.2.13 library,

Dependencies installed in pom.xml

<dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.12.0</version>
    </dependency>
 <dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.8.9</version>
</dependency>
<dependency>
        <groupId>com.prowidesoftware</groupId>
         <artifactId>pw-swift-core</artifactId>
         <version>SRU2021-9.2.13</version>
</dependency>

the error below is occurring please help.

Caused by: java.lang.NoClassDefFoundError: com.prowidesoftware.swift.model.field.Field at java.lang.J9VMInternals.prepareClassImpl(Native Method) at java.lang.J9VMInternals.prepare(J9VMInternals.java:302) at java.lang.Class.getDeclaredMethods(Class.java:975) at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:613) at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:524) at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnot ationBeanPostProcessor.java:247) ... 12 more Caused by: java.lang.ClassNotFoundException: com.prowidesoftware.swift.model.field.Field at java.net.URLClassLoader.findClass(URLClassLoader.java:610) at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:925) at java.lang.ClassLoader.loadClass(ClassLoader.java:870) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:343) at java.lang.ClassLoader.loadClass(ClassLoader.java:853) ... 19 more

exit 1

ptorres-prowide commented 2 years ago

Please refer to this issue: https://github.com/prowide/prowide-iso20022/issues/54 Thanks Regards Pablo