Maven Petals Plugin

The packaging of JBI components is badly handled when there is a conflict between the resolution of dependencies

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.1.2
  • Fix Version/s: 2.1.4
  • Component/s: jbi-package
  • Security Level: Public
  • Description:
    Hide

    For example, if there is 2 EasyWSDL with different versions retrieved during the resolution of dependencies, the plugin does take nothing.

    petals@localhost:/> [Petals.JBI-Management.InstallationServiceImpl]-INFO 2010-09-23 14:35:36,685 Installer of the component 'petals-bc-http' loaded
    [Petals.AutoLoaderServiceImpl]SEVERE 2010-09-23 14:35:36,748 Error during the auto installation of a component
    javax.management.RuntimeErrorException: Error occurred in RequiredModelMBean while trying to invoke operation install
    at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1095)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:955)
    at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
    at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
    at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203)
    at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
    at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performInstallComponent(AutoLoaderServiceImpl.java:475)
    at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(AutoLoaderServiceImpl.java:153)
    at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:81)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
    Caused by: java.lang.NoClassDefFoundError: org/ow2/easywsdl/wsdl/api/WSDLException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at org.ow2.petals.container.lifecycle.Installer.loadComponent(Installer.java:908)
    at org.ow2.petals.container.lifecycle.Installer.createComponentLifeCycleMBean(Installer.java:718)
    at org.ow2.petals.container.lifecycle.Installer.install(Installer.java:395)
    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 sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)
    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 sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)
    at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1074)
    ... 13 more
    Caused by: java.lang.ClassNotFoundException: org.ow2.easywsdl.wsdl.api.WSDLException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.ow2.petals.system.classloader.ComponentClassLoader.loadClass(ComponentClassLoader.java:129)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 32 more

    Show
    For example, if there is 2 EasyWSDL with different versions retrieved during the resolution of dependencies, the plugin does take nothing. petals@localhost:/> [Petals.JBI-Management.InstallationServiceImpl]-INFO 2010-09-23 14:35:36,685 Installer of the component 'petals-bc-http' loaded [Petals.AutoLoaderServiceImpl]SEVERE 2010-09-23 14:35:36,748 Error during the auto installation of a component javax.management.RuntimeErrorException: Error occurred in RequiredModelMBean while trying to invoke operation install at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1095) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:955) at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203) at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043) at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performInstallComponent(AutoLoaderServiceImpl.java:475) at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(AutoLoaderServiceImpl.java:153) at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:81) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.NoClassDefFoundError: org/ow2/easywsdl/wsdl/api/WSDLException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.ow2.petals.container.lifecycle.Installer.loadComponent(Installer.java:908) at org.ow2.petals.container.lifecycle.Installer.createComponentLifeCycleMBean(Installer.java:718) at org.ow2.petals.container.lifecycle.Installer.install(Installer.java:395) 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 sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37) 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 sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1074) ... 13 more Caused by: java.lang.ClassNotFoundException: org.ow2.easywsdl.wsdl.api.WSDLException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.ow2.petals.system.classloader.ComponentClassLoader.loadClass(ComponentClassLoader.java:129) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 32 more
  • Environment:
    os:all

Issue Links

Activity

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
1h 10m
1
Roland Naudin
Thu, 23 Sep 2010 - 16:20:04 +0200
Open Open In Progress In Progress
348d 23h 37m
1
mjambert
Wed, 7 Sep 2011 - 15:57:37 +0200
In Progress In Progress Resolved Resolved
28m 16s
1
mjambert
Wed, 7 Sep 2011 - 16:25:53 +0200

People

  • Assignee:
    mjambert
    Reporter:
    noddoux
  • Watchers:
    0

Dates

  • Created:
    Thu, 23 Sep 2010 - 15:09:24 +0200
    Updated:
    Wed, 7 Sep 2011 - 16:25:53 +0200
    Resolved:
    Wed, 7 Sep 2011 - 16:25:53 +0200