Maven Petals Plugin

A MarshalException occurs when packaging a SA if no description set in the POM file of a SU

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.3.0
  • Fix Version/s: 2.4.0
  • Component/s: jbi-package
  • Security Level: Public
  • Description:
    Hide

    If the tag <description> is missing in the POM file of SU, the following error occurs when packaging a SA embedding this SU:

    [ERROR] Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-package (default-jbi-package) on project cbr-sa: Failed to build XML binding from JBI descriptor Java classes: MarshalException: cvc-complex-type.2.4.b: The content of element 'identification' is not complete. One of '{"http://java.sun.com/xml/ns/jbi":description}' is expected. -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-package (default-jbi-package) on project cbr-sa: Failed to build XML binding from JBI descriptor Java classes
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to build XML binding from JBI descriptor Java classes
    	at org.ow2.petals.plugin.jbiplugin.JBIPackageMojo.packageServiceAssembly(JBIPackageMojo.java:633)
    	at org.ow2.petals.plugin.jbiplugin.JBIPackageMojo.executeMojo(JBIPackageMojo.java:343)
    	at org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo.execute(JBIAbstractMojo.java:267)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    	... 19 more
    Caused by: org.ow2.petals.jbi.descriptor.JBIDescriptorException: Failed to build XML binding from JBI descriptor Java classes
    	at org.ow2.petals.jbi.descriptor.original.JBIDescriptorBuilder.writeJBIdescriptor(JBIDescriptorBuilder.java:267)
    	at org.ow2.petals.plugin.jbiplugin.JBIPackageMojo.packageServiceAssembly(JBIPackageMojo.java:617)
    	... 23 more
    Caused by: javax.xml.bind.MarshalException
     - with linked exception:
    [org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'identification' is not complete. One of '{"http://java.sun.com/xml/ns/jbi":description}' is expected.]
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:249)
    	at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:75)
    	at org.ow2.petals.jbi.descriptor.original.JBIDescriptorBuilder.writeJBIdescriptor(JBIDescriptorBuilder.java:264)
    	... 24 more
    Show
    If the tag <description> is missing in the POM file of SU, the following error occurs when packaging a SA embedding this SU:
    [ERROR] Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-package (default-jbi-package) on project cbr-sa: Failed to build XML binding from JBI descriptor Java classes: MarshalException: cvc-complex-type.2.4.b: The content of element 'identification' is not complete. One of '{"http://java.sun.com/xml/ns/jbi":description}' is expected. -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-package (default-jbi-package) on project cbr-sa: Failed to build XML binding from JBI descriptor Java classes
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to build XML binding from JBI descriptor Java classes
    	at org.ow2.petals.plugin.jbiplugin.JBIPackageMojo.packageServiceAssembly(JBIPackageMojo.java:633)
    	at org.ow2.petals.plugin.jbiplugin.JBIPackageMojo.executeMojo(JBIPackageMojo.java:343)
    	at org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo.execute(JBIAbstractMojo.java:267)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    	... 19 more
    Caused by: org.ow2.petals.jbi.descriptor.JBIDescriptorException: Failed to build XML binding from JBI descriptor Java classes
    	at org.ow2.petals.jbi.descriptor.original.JBIDescriptorBuilder.writeJBIdescriptor(JBIDescriptorBuilder.java:267)
    	at org.ow2.petals.plugin.jbiplugin.JBIPackageMojo.packageServiceAssembly(JBIPackageMojo.java:617)
    	... 23 more
    Caused by: javax.xml.bind.MarshalException
     - with linked exception:
    [org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'identification' is not complete. One of '{"http://java.sun.com/xml/ns/jbi":description}' is expected.]
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)
    	at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:249)
    	at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:75)
    	at org.ow2.petals.jbi.descriptor.original.JBIDescriptorBuilder.writeJBIdescriptor(JBIDescriptorBuilder.java:264)
    	... 24 more
  • Environment:
    -

People

Dates

  • Created:
    Wed, 30 Apr 2014 - 12:15:03 +0200
    Updated:
    Wed, 30 Apr 2014 - 15:22:39 +0200
    Resolved:
    Wed, 30 Apr 2014 - 15:22:38 +0200