cancel
Showing results for 
Search instead for 
Did you mean: 

A required class was missing while executing com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema: javax/xml/soap/SOAPException

bfroemling
New Contributor II

Pulled a fresh copy from

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/

I then resolved the issue discussed in https://community.snaplogic.com/t/could-not-resolve-dependencies-for-project-com-snaplogicjar-failur...

Then ran

C:\workspace\snaplogic\DemoSnapPack>mvn clean install
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.snaplogic:demosnappack:jar:1-0001
[WARNING] ‘version’ contains an expression but should be a constant. @ com.snaplogic:demosnappack:1-${sl_build}, C:\workspace\snaplogic\DemoSnapPack\pom.xml, line 8, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---------------------< com.snaplogic:demosnappack >---------------------
[INFO] Building demosnappack 1-0001
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ demosnappack —
[INFO] Deleting C:\workspace\snaplogic\DemoSnapPack\target
[INFO]
[INFO] — properties-maven-plugin:1.0.0:read-project-properties (default) @ demosnappack —
[INFO]
[INFO] — maven-antrun-plugin:1.8:run (generate files) @ demosnappack —
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ demosnappack —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\workspace\snaplogic\DemoSnapPack\src\main\resources
[INFO]
[INFO] — maven-compiler-plugin:3.5.1:compile (default-compile) @ demosnappack —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to C:\workspace\snaplogic\DemoSnapPack\target\classes
[INFO] /C:/workspace/snaplogic/DemoSnapPack/src/main/java/com/snaplogic/snaps/TwoInputsTwoOutputs.java: Some input files use unchecked or unsafe operations.
[INFO] /C:/workspace/snaplogic/DemoSnapPack/src/main/java/com/snaplogic/snaps/TwoInputsTwoOutputs.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] — snappack-installer:4.9.0.M1:generate-schema (default) @ demosnappack —
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.800 s
[INFO] Finished at: 2018-11-29T10:31:47-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema (default) on project demosnappack: Execution default of goal com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema failed: A required class was missing while executing com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema: javax/xml/soap/SOAPException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.snaplogic.tools:snappack-installer:4.9.0.M1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/bfroemli/.m2/repository/com/snaplogic/tools/snappack-installer/4.9.0.M1/snappack-installer-4.9.0.M1.jar
[ERROR] urls[1] = file:/C:/Users/bfroemli/.m2/repository/org/easymock/easymock/3.4/easymock-3.4.jar
[ERROR] urls[2] = file:/C:/Users/bfroemli/.m2/repository/org/objenesis/objenesis/2.2/objenesis-2.2.jar
[ERROR] urls[3] = file:/C:/Users/bfroemli/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[4] = file:/C:/Users/bfroemli/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar
[ERROR] urls[5] = file:/C:/Users/bfroemli/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar
[ERROR] urls[6] = file:/C:/Users/bfroemli/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[7] = file:/C:/Users/bfroemli/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[8] = file:/C:/Users/bfroemli/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
[ERROR] urls[9] = file:/C:/Users/bfroemli/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[10] = file:/C:/Users/bfroemli/.m2/repository/com/snaplogic/jutils/4.0/jutils-4.0.jar
[ERROR] urls[11] = file:/C:/Users/bfroemli/.m2/repository/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar
[ERROR] urls[12] = file:/C:/Users/bfroemli/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar

[ERROR] urls[230] = file:/C:/Users/bfroemli/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.10/jaxb-impl-2.1.10.jar
[ERROR] urls[231] = file:/C:/Users/bfroemli/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
[ERROR] urls[232] = file:/C:/Users/bfroemli/.m2/repository/org/ow2/easywsdl/easywsdl-ext-wsdl4complexwsdl/2.3/easywsdl-ext-wsdl4complexwsdl-2.3.jar
[ERROR] urls[233] = file:/C:/Users/bfroemli/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
[ERROR] urls[234] = file:/C:/Users/bfroemli/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar
[ERROR] urls[235] = file:/C:/Users/bfroemli/.m2/repository/org/slf4j/slf4j-nop/1.7.5/slf4j-nop-1.7.5.jar
[ERROR] urls[236] = file:/C:/Users/bfroemli/.m2/repository/com/sun/xsom/xsom/20100725/xsom-20100725.jar
[ERROR] urls[237] = file:/C:/Users/bfroemli/.m2/repository/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar
[ERROR] urls[238] = file:/C:/Users/bfroemli/.m2/repository/com/sun/xml/relaxngDatatype/1.0/relaxngDatatype-1.0.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : javax.xml.soap.SOAPException
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] PluginContainerException - Apache Maven - Apache Software Foundation

Any help I can get to resolve this issue would be appreciated.

1 ACCEPTED SOLUTION

bfroemling
New Contributor II

Finally got it to build. I think my issue was due to cross-corruption between Java 8 and Java 10 in the .m2 directory. After wiping out the entire .m2 directory and reinstalling all dependencies, it is now building correctly.

View solution in original post

6 REPLIES 6

bfroemling
New Contributor II

Just tried it again. Still getting the same issues. Anybody have any idea what’s going on?

Hi @bfroemling, could you tell me what version of Java you are using with Maven please (the output of mvn -v will show it)? Currently, we only support Java 8 for developing custom Snaps.

bfroemling
New Contributor II
C:\workspace\snaplogic\DemoSnapPack>mvn -v
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T13:41:47-05:00)
Maven home: C:\Program Files\Maven\apache-maven-3.6.0\bin\..
Java version: 1.8.0_192, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_192\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

bfroemling
New Contributor II

Finally got it to build. I think my issue was due to cross-corruption between Java 8 and Java 10 in the .m2 directory. After wiping out the entire .m2 directory and reinstalling all dependencies, it is now building correctly.