Petals Ant Tasks

Add support of Maven URL

Details

  • Description:

    Add support of Maven URL to install/uninstall or deploy/undeploy artifacts (components, SLs and SAs as something like mvn:org.ow2.petals/petals-bc-soap/4.4.2)

  • Environment:
    -

Issue Links

Activity

Hide
Christophe DENEUX added a comment - Thu, 29 Sep 2016 - 15:11:05 +0200

Support added in trunk

Show
Christophe DENEUX added a comment - Thu, 29 Sep 2016 - 15:11:05 +0200 Support added in trunk
Hide
Christophe DENEUX added a comment - Tue, 3 Jan 2017 - 11:55:13 +0100

Reopened because the following error occurs sometimes:

java.lang.Error: factory already defined
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:313)
	... 32 more
Caused by: java.lang.Error: factory already defined
	at java.net.URL.setURLStreamHandlerFactory(URL.java:1108)
	at org.ow2.petals.ant.AbstractJBIAntTask.<clinit>(AbstractJBIAntTask.java:89)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:278)
	at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:579)
	at org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:408)
	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:264)
	at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:180)
	at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:428)
	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:277)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 38 more
Show
Christophe DENEUX added a comment - Tue, 3 Jan 2017 - 11:55:13 +0100 Reopened because the following error occurs sometimes:
java.lang.Error: factory already defined
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:313)
	... 32 more
Caused by: java.lang.Error: factory already defined
	at java.net.URL.setURLStreamHandlerFactory(URL.java:1108)
	at org.ow2.petals.ant.AbstractJBIAntTask.<clinit>(AbstractJBIAntTask.java:89)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:278)
	at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:579)
	at org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:408)
	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:264)
	at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:180)
	at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:428)
	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:277)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 38 more
Hide
Christophe DENEUX added a comment - Tue, 3 Jan 2017 - 11:56:57 +0100

This error occurs when running several Petals integration test inside the same Maven command: Petals Ant tasks are loaded by each integration test but the URL stream factory can be installed only once in the JVM started by Maven.

Show
Christophe DENEUX added a comment - Tue, 3 Jan 2017 - 11:56:57 +0100 This error occurs when running several Petals integration test inside the same Maven command: Petals Ant tasks are loaded by each integration test but the URL stream factory can be installed only once in the JVM started by Maven.
Hide
Christophe DENEUX added a comment - Tue, 3 Jan 2017 - 15:32:19 +0100

Fixed in trunk

Show
Christophe DENEUX added a comment - Tue, 3 Jan 2017 - 15:32:19 +0100 Fixed in trunk

People

Dates

  • Created:
    Thu, 29 Sep 2016 - 12:35:35 +0200
    Updated:
    Tue, 3 Jan 2017 - 15:32:19 +0100
    Resolved:
    Tue, 3 Jan 2017 - 15:32:19 +0100