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:
    -

Activity

Christophe DENEUX made changes - Wed, 30 Apr 2014 - 12:15:36 +0200
Field Original Value New Value
Fix Version/s 2.4.0 [ 10382 ]
Priority Major [ 3 ]
Hide
Christophe DENEUX added a comment - Wed, 30 Apr 2014 - 12:18:46 +0200 - edited

The tag <description> is required in the JBI descriptor of a SA. If this JBI descriptor is updated during the packaging (updateJBIXml is ON), the description of SA JBI descriptor is extracted from the description set in the POM file of associated SU. So, if this description does not exist in the POM file, it should be set to "" in the SA JBI descriptor.

Show
Christophe DENEUX added a comment - Wed, 30 Apr 2014 - 12:18:46 +0200 - edited The tag <description> is required in the JBI descriptor of a SA. If this JBI descriptor is updated during the packaging (updateJBIXml is ON), the description of SA JBI descriptor is extracted from the description set in the POM file of associated SU. So, if this description does not exist in the POM file, it should be set to "" in the SA JBI descriptor.
Christophe DENEUX made changes - Wed, 30 Apr 2014 - 12:18:46 +0200
Status New [ 10000 ] Open [ 10002 ]
Christophe DENEUX made changes - Wed, 30 Apr 2014 - 12:19:52 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Wed, 30 Apr 2014 - 15:22:39 +0200

Fixed in trunk

Show
Christophe DENEUX added a comment - Wed, 30 Apr 2014 - 15:22:39 +0200 Fixed in trunk
Christophe DENEUX made changes - Wed, 30 Apr 2014 - 15:22:39 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
3m 43s
1
Christophe DENEUX
Wed, 30 Apr 2014 - 12:18:46 +0200
Open Open In Progress In Progress
1m 6s
1
Christophe DENEUX
Wed, 30 Apr 2014 - 12:19:52 +0200
In Progress In Progress Resolved Resolved
3h 2m
1
Christophe DENEUX
Wed, 30 Apr 2014 - 15:22:39 +0200

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