2 Replies Latest reply on Apr 23, 2019 1:29 AM by nimeshjain

    Archetype model driven is failing with the following error: A required class was missing while executing com.vmware.o11n:o11n-modeldriven-mojo:7.5.0:generate: javax/xml/bind/JAXBElement

    nimeshjain Lurker

      I am trying to compile a skeleton code generated from the maven archetype model driven without making any changes and it is failing on just build. Here is what i have done. Appreciate your help. 

      1. mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=https://vra75.icds.online/vco-repo/archetype-catalog.xml -DrepoUrl=https://vra75.icds.online/vco-repo -Dmaven.repo.remote=https://vra75.icds.online/vco-repo -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

      2. Entered the values for groupId, artifactId, PAckage etc. 

      3. mvn clean install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

      4. Results with the following error: 

      [INFO] ------------------------------------------------------------------------
      [INFO] Building o11nplugin-redis1-gen 1.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ o11nplugin-redis1-gen ---
      [INFO]
      [INFO] --- o11n-modeldriven-mojo:7.5.0:generate (default) @ o11nplugin-redis1-gen ---
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/C:/Users/NimeshJain/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
      WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] redis1 ............................................ SUCCESS [1.100s]
      [INFO] o11nplugin-redis1-core ............................ SUCCESS [10.922s]
      [INFO] o11nplugin-redis1-custom .......................... SUCCESS [5.484s]
      [INFO] o11nplugin-redis1-gen ............................. FAILURE [1.006s]
      [INFO] o11nplugin-redis1-package ......................... SKIPPED
      [INFO] o11nplugin-redis1 ................................. SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 28.626s
      [INFO] Finished at: Tue Apr 23 11:27:44 IST 2019
      [INFO] Final Memory: 26M/94M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.vmware.o11n:o11n-modeldriven-mojo:7.5.0:generate (default) on project o11nplugin-redis1-gen: Execution default of goal com.vmware.o11n:o11n-modeldriven-mojo:7.5.0:generate failed: A required class was missing while executing com.vmware.o11n:o11n-modeldriven-mojo:7.5.0:generate: javax/xml/bind/JAXBElement
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>com.vmware.o11n:o11n-modeldriven-mojo:7.5.0
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-modeldriven-mojo/7.5.0/o11n-modeldriven-mojo-7.5.0.jar
      [ERROR] urls[1] = file:/C:/Users/NimeshJain/redis1/o11nplugin-redis1-custom/target/o11nplugin-redis1-custom-1.0.0-SNAPSHOT.jar
      [ERROR] urls[2] = file:/C:/Users/NimeshJain/redis1/o11nplugin-redis1-core/target/o11nplugin-redis1-core-1.0.0-SNAPSHOT.jar
      [ERROR] urls[3] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-plugin-modeldriven-generator/7.5.0/o11n-plugin-modeldriven-generator-7.5.0.jar
      [ERROR] urls[4] = file:/C:/Users/NimeshJain/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
      [ERROR] urls[5] = file:/C:/Users/NimeshJain/.m2/repository/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar
      [ERROR] urls[6] = file:/C:/Users/NimeshJain/.m2/repository/com/thoughtworks/paranamer/paranamer/2.8/paranamer-2.8.jar
      [ERROR] urls[7] = file:/C:/Users/NimeshJain/.m2/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar
      [ERROR] urls[8] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-model/7.5.0/o11n-model-7.5.0.jar
      [ERROR] urls[9] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-sdkapi-vmware/7.5.0/o11n-sdkapi-vmware-7.5.0.jar
      [ERROR] urls[10] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-settings/7.5.0/o11n-settings-7.5.0.jar
      [ERROR] urls[11] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/spring-beans/4.3.18.RELEASE/spring-beans-4.3.18.RELEASE.jar
      [ERROR] urls[12] = file:/C:/Users/NimeshJain/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar
      [ERROR] urls[13] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-util/7.5.0/o11n-util-7.5.0.jar
      [ERROR] urls[14] = file:/C:/Users/NimeshJain/.m2/repository/com/rubiconproject/oss/jchronic/0.2.6/jchronic-0.2.6.jar
      [ERROR] urls[15] = file:/C:/Users/NimeshJain/.m2/repository/net/sf/ehcache/ehcache-core/2.6.2/ehcache-core-2.6.2.jar
      [ERROR] urls[16] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/lucene/lucene-core/6.5.0/lucene-core-6.5.0.jar
      [ERROR] urls[17] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/lucene/lucene-analyzers-common/6.5.0/lucene-analyzers-common-6.5.0.jar
      [ERROR] urls[18] = file:/C:/Users/NimeshJain/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.8.11/jackson-module-jaxb-annotations-2.8.11.jar
      [ERROR] urls[19] = file:/C:/Users/NimeshJain/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar
      [ERROR] urls[20] = file:/C:/Users/NimeshJain/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar
      [ERROR] urls[21] = file:/C:/Users/NimeshJain/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar
      [ERROR] urls[22] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.jar
      [ERROR] urls[23] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/httpcomponents/httpcore/4.4.10/httpcore-4.4.10.jar
      [ERROR] urls[24] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-dbinstaller/7.5.0/o11n-dbinstaller-7.5.0.jar
      [ERROR] urls[25] = file:/C:/Users/NimeshJain/.m2/repository/org/hibernate/hibernate-core/5.2.10.Final/hibernate-core-5.2.10.Final.jar
      [ERROR] urls[26] = file:/C:/Users/NimeshJain/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar
      [ERROR] urls[27] = file:/C:/Users/NimeshJain/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final.jar
      [ERROR] urls[28] = file:/C:/Users/NimeshJain/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar
      [ERROR] urls[29] = file:/C:/Users/NimeshJain/.m2/repository/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.1.Final/jboss-transaction-api_1.2_spec-1.0.1.Final.jar
      [ERROR] urls[30] = file:/C:/Users/NimeshJain/.m2/repository/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.jar
      [ERROR] urls[31] = file:/C:/Users/NimeshJain/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar
      [ERROR] urls[32] = file:/C:/Users/NimeshJain/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
      [ERROR] urls[33] = file:/C:/Users/NimeshJain/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.jar
      [ERROR] urls[34] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-app-settings/7.5.0/o11n-app-settings-7.5.0.jar
      [ERROR] urls[35] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-security/7.5.0/o11n-security-7.5.0.jar
      [ERROR] urls[36] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/security/spring-security-core/4.2.7.RELEASE/spring-security-core-4.2.7.RELEASE.jar
      [ERROR] urls[37] = file:/C:/Users/NimeshJain/.m2/repository/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar
      [ERROR] urls[38] = file:/C:/Users/NimeshJain/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
      [ERROR] urls[39] = file:/C:/Users/NimeshJain/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.59/bcprov-jdk15on-1.59.jar
      [ERROR] urls[40] = file:/C:/Users/NimeshJain/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.59/bcpkix-jdk15on-1.59.jar
      [ERROR] urls[41] = file:/C:/Users/NimeshJain/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar
      [ERROR] urls[42] = file:/C:/Users/NimeshJain/.m2/repository/ognl/ognl/2.6.9/ognl-2.6.9.jar
      [ERROR] urls[43] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/spring-web/4.3.18.RELEASE/spring-web-4.3.18.RELEASE.jar
      [ERROR] urls[44] = file:/C:/Users/NimeshJain/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
      [ERROR] urls[45] = file:/C:/Users/NimeshJain/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
      [ERROR] urls[46] = file:/C:/Users/NimeshJain/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
      [ERROR] urls[47] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-spring-tools/7.5.0/o11n-spring-tools-7.5.0.jar
      [ERROR] urls[48] = file:/C:/Users/NimeshJain/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
      [ERROR] urls[49] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/spring-core/4.3.18.RELEASE/spring-core-4.3.18.RELEASE.jar
      [ERROR] urls[50] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/spring-context/4.3.18.RELEASE/spring-context-4.3.18.RELEASE.jar
      [ERROR] urls[51] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/spring-aop/4.3.18.RELEASE/spring-aop-4.3.18.RELEASE.jar
      [ERROR] urls[52] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/spring-expression/4.3.18.RELEASE/spring-expression-4.3.18.RELEASE.jar
      [ERROR] urls[53] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-plugin-tools/7.5.0/o11n-plugin-tools-7.5.0.jar
      [ERROR] urls[54] = file:/C:/Users/NimeshJain/.m2/repository/org/springframework/spring-oxm/4.3.18.RELEASE/spring-oxm-4.3.18.RELEASE.jar
      [ERROR] urls[55] = file:/C:/Users/NimeshJain/.m2/repository/com/github/jknack/semver.java/0.1.0/semver.java-0.1.0.jar
      [ERROR] urls[56] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar
      [ERROR] urls[57] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-plugin-modeldriven-runtime/7.5.0/o11n-plugin-modeldriven-runtime-7.5.0.jar
      [ERROR] urls[58] = file:/C:/Users/NimeshJain/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar
      [ERROR] urls[59] = file:/C:/Users/NimeshJain/.m2/repository/com/thoughtworks/qdox/qdox/2.0-M3/qdox-2.0-M3.jar
      [ERROR] urls[60] = file:/C:/Users/NimeshJain/.m2/repository/org/reflections/reflections/0.9.9/reflections-0.9.9.jar
      [ERROR] urls[61] = file:/C:/Users/NimeshJain/.m2/repository/org/javassist/javassist/3.18.2-GA/javassist-3.18.2-GA.jar
      [ERROR] urls[62] = file:/C:/Users/NimeshJain/.m2/repository/com/google/code/findbugs/annotations/2.0.1/annotations-2.0.1.jar
      [ERROR] urls[63] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/commons/commons-vfs2/2.0/commons-vfs2-2.0.jar
      [ERROR] urls[64] = file:/C:/Users/NimeshJain/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
      [ERROR] urls[65] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/maven/scm/maven-scm-api/1.4/maven-scm-api-1.4.jar
      [ERROR] urls[66] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/maven/scm/maven-scm-provider-svnexe/1.4/maven-scm-provider-svnexe-1.4.jar
      [ERROR] urls[67] = file:/C:/Users/NimeshJain/.m2/repository/org/apache/maven/scm/maven-scm-provider-svn-commons/1.4/maven-scm-provider-svn-commons-1.4.jar
      [ERROR] urls[68] = file:/C:/Users/NimeshJain/.m2/repository/regexp/regexp/1.3/regexp-1.3.jar
      [ERROR] urls[69] = file:/C:/Users/NimeshJain/.m2/repository/org/freemarker/freemarker/2.3.21/freemarker-2.3.21.jar
      [ERROR] urls[70] = file:/C:/Users/NimeshJain/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar
      [ERROR] urls[71] = file:/C:/Users/NimeshJain/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar
      [ERROR] urls[72] = file:/C:/Users/NimeshJain/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      [ERROR] urls[73] = file:/C:/Users/NimeshJain/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.8.11/jackson-databind-2.8.11.jar
      [ERROR] urls[74] = file:/C:/Users/NimeshJain/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.jar
      [ERROR] urls[75] = file:/C:/Users/NimeshJain/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.8.11/jackson-core-2.8.11.jar
      [ERROR] urls[76] = file:/C:/Users/NimeshJain/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
      [ERROR] urls[77] = file:/C:/Users/NimeshJain/.m2/repository/com/vmware/o11n/o11n-sdkapi/7.5.0/o11n-sdkapi-7.5.0.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR]
      [ERROR] -----------------------------------------------------: javax.xml.bind.JAXBElement
      [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] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :o11nplugin-redis1-gen