You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by conficio <Ka...@Conficio.com> on 2009/04/24 01:02:09 UTC

SOAP in Ant Task - RuntimeModelerException: ... BARE but it has more than o

Hi,
I have CXF generated web Service client that works great when called in a
command line fashion. But when I wrap the same call into an ant task, then
it throws a RuntimeModelerException, complaining about the BARE vs. WRAPPED
parameters.

Any idea what goes wrong? Thread and or Class Loader issue?


---------------------------
Apache Ant version 1.7.0 compiled on December 13 2006
Setting ro project property: ant.file ->
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations Count/test.xml
Buildfile: /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations Count/test.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile /Volumes/Extra/Workspaces/TeamConcert/Protex Report
PendingId and Approval or Violations Count/test.xml with URI =
file:/Volumes/Extra/Workspaces/TeamConcert/Protex%20Report%20PendingId%20and%20Approval%20or%20Violations%20Count/test.xml
Setting ro project property: ant.project.name -> ProtexPendingActionsTask
Adding reference: ProtexPendingActionsTask
Setting ro project property: ant.file.ProtexPendingActionsTask ->
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations Count/test.xml
Project base dir set to: /Volumes/Extra/Workspaces/TeamConcert/Protex Report
PendingId and Approval or Violations Count
+Target:
+Target: clean
+Target: compile
+Target: jar
+Target: use.init
+Target: use
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: src.dir -> src
Setting project property: classes.dir -> bin
Adding reference: cp-protex-ant-tasks
Adding reference: eclipse.ant.targetVector
Build sequence for target(s) `use' is [compile, jar, use.init, use]
Complete build sequence is [compile, jar, use.init, use, clean, ]
compile:
[mkdir] Skipping /Volumes/Extra/Workspaces/TeamConcert/Protex Report
PendingId and Approval or Violations Count/bin because it already exists.
fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations Count/src with patternSet{
includes: [] excludes: [] }
[javac] com/blackducksoftware/integration/protex/ant/tasks/ListProjects.java
omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations
Count/bin/com/blackducksoftware/integration/protex/ant/tasks/ListProjects.class
is up to date.
[javac]
com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.java
omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations
Count/bin/com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.class
is up to date.
[javac]
com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActions.java
omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations
Count/bin/com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActions.class
is up to date.
[javac] com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.java
omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations
Count/bin/com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.class
is up to date.
[javac]
com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.java
omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations
Count/bin/com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.class
is up to date.
[javac] com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.java
omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations
Count/bin/com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
is up to date.
jar:
fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations Count/bin with patternSet{
includes: [] excludes: [] }
[jar] com omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report
PendingId and Approval or Violations Count/ProtexPendingActionsTask.jar:com/
is up to date.
[jar] com/blackducksoftware omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations Count/ProtexPendingActionsTask.jar:com/blackducksoftware/ is
up to date.
[jar] com/blackducksoftware/integration omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations
Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/ is up
to date.
[jar] com/blackducksoftware/integration/protex omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations
Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/protex/
is up to date.
[jar] com/blackducksoftware/integration/protex/ant omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations
Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/protex/ant/
is up to date.
[jar] com/blackducksoftware/integration/protex/ant/tasks omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations
Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/protex/ant/tasks/
is up to date.
[jar] com/blackducksoftware/proserv omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations
Count/ProtexPendingActionsTask.jar:com/blackducksoftware/proserv/ is up to
date.
[jar] com/blackducksoftware/sdk omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations Count/ProtexPendingActionsTask.jar:com/blackducksoftware/sdk/
is up to date.
[jar] com/blackducksoftware/sdk/protex omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations
Count/ProtexPendingActionsTask.jar:com/blackducksoftware/sdk/protex/ is up
to date.
[jar] com/blackducksoftware/sdk/protex/client omitted as
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations
Count/ProtexPendingActionsTask.jar:com/blackducksoftware/sdk/protex/client/
is up to date.
[jar] com/blackducksoftware/integration/protex/ant/tasks/ListProjects.class
added as
com/blackducksoftware/integration/protex/ant/tasks/ListProjects.class is
outdated.
[jar] com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.class
added as
com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.class is
outdated.
[jar]
com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActions.class
added as
com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActions.class
is outdated.
[jar] com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.class
added as com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.class
is outdated.
[jar]
com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.class
added as
com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.class is
outdated.
[jar] com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
added as com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
is outdated.
[jar] Building jar: /Volumes/Extra/Workspaces/TeamConcert/Protex Report
PendingId and Approval or Violations Count/ProtexPendingActionsTask.jar
[jar] adding directory META-INF/
[jar] adding entry META-INF/MANIFEST.MF
[jar] adding directory com/
[jar] adding directory com/blackducksoftware/
[jar] adding directory com/blackducksoftware/integration/
[jar] adding directory com/blackducksoftware/integration/protex/
[jar] adding directory com/blackducksoftware/integration/protex/ant/
[jar] adding directory com/blackducksoftware/integration/protex/ant/tasks/
[jar] adding directory com/blackducksoftware/proserv/
[jar] adding directory com/blackducksoftware/sdk/
[jar] adding directory com/blackducksoftware/sdk/protex/
[jar] adding directory com/blackducksoftware/sdk/protex/client/
[jar] adding entry
com/blackducksoftware/integration/protex/ant/tasks/ListProjects.class
[jar] adding entry
com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.class
[jar] adding entry
com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActions.class
[jar] adding entry
com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.class
[jar] adding entry
com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.class
[jar] adding entry
com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
use.init:
fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations Count/lib with patternSet{
includes: [**.jar] excludes: [] }
[echo] /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
Approval or Violations
Count/ProtexPendingActionsTask.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/XmlSchema-1.4.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/ant.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex Report
PendingId and Approval or Violations
Count/lib/cxf-2.0.9.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex Report
PendingId and Approval or Violations
Count/lib/opensaml-1.1.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/protex-sdk-client.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/saaj-api-1.3.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/saaj-impl-1.3.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/wsdl4j-1.6.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/wss4j-1.5.4.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations
Count/lib/xml-resolver-1.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations Count/lib/xmlsec-1.4.0.jar
fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
Report PendingId and Approval or Violations Count/lib with patternSet{
includes: [**.jar] excludes: [] }
Class com.blackducksoftware.integration.protex.ant.tasks.ListProjects loaded
from parent loader (parentFirst)
+Datatype protex-list-projects
com.blackducksoftware.integration.protex.ant.tasks.ListProjects
use:

BUILD FAILED
/Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
or Violations Count/test.xml:54:
com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler
error: SEI com.blackducksoftware.sdk.protex.project.ProjectApi has method
getStringSearchPatternByName annotated as BARE but it has more than one
parameter bound to body. This is invalid. Please annotate the method with
annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: com.sun.xml.internal.ws.model.RuntimeModelerException: runtime
modeler error: SEI com.blackducksoftware.sdk.protex.project.ProjectApi has
method getStringSearchPatternByName annotated as BARE but it has more than
one parameter bound to body. This is invalid. Please annotate the method
with annotation:
@SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
at
com.sun.xml.internal.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler.java:1147)
at
com.sun.xml.internal.ws.model.RuntimeModeler.processDocBareMethod(RuntimeModeler.java:1136)
at
com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:511)
at
com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:341)
at
com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:227)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:588)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:291)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267)
at javax.xml.ws.Service.getPort(Service.java:92)
at
com.blackducksoftware.sdk.protex.project.ProjectApiService.getProjectApiPort(Unknown
Source)
at
com.blackducksoftware.sdk.protex.client.ProtexSdkApiFactory.getProjectApi(ProtexSdkApiFactory.java:98)
at
com.blackducksoftware.integration.protex.ant.tasks.ListProjects.execute(ListProjects.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
... 10 more
--- Nested Exception ---
com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler
error: SEI com.blackducksoftware.sdk.protex.project.ProjectApi has method
getStringSearchPatternByName annotated as BARE but it has more than one
parameter bound to body. This is invalid. Please annotate the method with
annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
at
com.sun.xml.internal.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler.java:1147)
at
com.sun.xml.internal.ws.model.RuntimeModeler.processDocBareMethod(RuntimeModeler.java:1136)
at
com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:511)
at
com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:341)
at
com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:227)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:588)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:291)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267)
at javax.xml.ws.Service.getPort(Service.java:92)
at
com.blackducksoftware.sdk.protex.project.ProjectApiService.getProjectApiPort(Unknown
Source)
at
com.blackducksoftware.sdk.protex.client.ProtexSdkApiFactory.getProjectApi(ProtexSdkApiFactory.java:98)
at
com.blackducksoftware.integration.protex.ant.tasks.ListProjects.execute(ListProjects.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Total time: 725 milliseconds 
-- 
View this message in context: http://www.nabble.com/SOAP-in-Ant-Task---RuntimeModelerException%3A-...-BARE-but-it-has-more-than-o-tp23206964p23206964.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: SOAP in Ant Task - RuntimeModelerException: ... BARE but it has more than o

Posted by conficio <Ka...@Conficio.com>.
Thanks Glen, thanks Dan,
if I understand this right, CXF can't work with the reference
Implementation, it needs it's own implementation?

I use an ant task defined by taskdef (not a <java ... where I can set the
fork). So I need to solve the issue in a different way.

Ant describes its classloader mechanism in the FAQ under 

&lt;style&gt; or &lt;junit&gt; ignores my &lt;classpath&gt;  

I'm not quite sure how CXF decides which classes to load as impl for the 
jax-ws ri api

Here is my taskdef
	<path id="cp-ant-tasks">
		<pathelement location="${ant.project.name}.jar" />
		<fileset dir="lib">
			<include name="**.jar" />
		</fileset>
	</path>

	<target name="use.init" description="Taskdef the ListProjects Task"
depends="jar">
		<echo message="${toString:cp-ant-tasks}"/>
		<taskdef name="list-projects"
classname="com.example.integration.ant.tasks.ListProjects"
classpathref="cp-protex-ant-tasks" >
		</taskdef>
	</target>

And the echo of the classpath reads

     [echo]
/Volumes/Extra/MyTest/ProtexPendingActionsTask.jar:/Volumes/Extra/MyTest/lib/XmlSchema-1.4.2.jar:/Volumes/Extra/MyTest/lib/ant.jar:/Volumes/Extra/MyTest/lib/asm-2.2.3.jar:/Volumes/Extra/MyTest/lib/bcprov-jdk15-140.jar:/Volumes/Extra/MyTest/lib/commons-logging-1.1.1.jar:/Volumes/Extra/MyTest/lib/cxf-2.0.9.jar:/Volumes/Extra/MyTest/lib/jaxb-api-2.0.jar:/Volumes/Extra/MyTest/lib/jaxb-impl-2.0.5.jar:/Volumes/Extra/MyTest/lib/jaxws-api-2.0.jar:/Volumes/Extra/MyTest/lib/neethi-2.0.4.jar:/Volumes/Extra/MyTest/lib/protex-sdk-client.jar:/Volumes/Extra/MyTest/lib/saaj-api-1.3.jar:/Volumes/Extra/MyTest/lib/saaj-impl-1.3.2.jar:/Volumes/Extra/MyTest/lib/serializer-2.7.1.jar:/Volumes/Extra/MyTest/lib/stax-utils-20060502.jar:/Volumes/Extra/MyTest/lib/wss4j-1.5.4.jar:/Volumes/Extra/MyTest/lib/wstx-asl-3.2.4.jar:/Volumes/Extra/MyTest/lib/xalan-2.7.1.jar:/Volumes/Extra/MyTest/lib/xml-resolver-1.2.jar:/Volumes/Extra/MyTest/lib/xmlsec-1.4.0.jar

What am I missing?


dkulp wrote:
> 
> 
> As Glen stated, it's definitely picking up the RI built into the JDK and
> not 
> CXF.   Double check the jars being used for the classloader, check fork 
> settings, etc....
> 
> Dan
> 
> ...
> 

-- 
View this message in context: http://www.nabble.com/SOAP-in-Ant-Task---RuntimeModelerException%3A-...-BARE-but-it-has-more-than-o-tp23206964p23225667.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: SOAP in Ant Task - RuntimeModelerException: ... BARE but it has more than o

Posted by Daniel Kulp <dk...@apache.org>.
As Glen stated, it's definitely picking up the RI built into the JDK and not 
CXF.   Double check the jars being used for the classloader, check fork 
settings, etc....

Dan


On Thu April 23 2009 7:02:09 pm conficio wrote:
> Hi,
> I have CXF generated web Service client that works great when called in a
> command line fashion. But when I wrap the same call into an ant task, then
> it throws a RuntimeModelerException, complaining about the BARE vs. WRAPPED
> parameters.
>
> Any idea what goes wrong? Thread and or Class Loader issue?
>
>
> ---------------------------
> Apache Ant version 1.7.0 compiled on December 13 2006
> Setting ro project property: ant.file ->
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations Count/test.xml
> Buildfile: /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId
> and Approval or Violations Count/test.xml
> Adding reference: ant.projectHelper
> Adding reference: ant.parsing.context
> Adding reference: ant.targets
> parsing buildfile /Volumes/Extra/Workspaces/TeamConcert/Protex Report
> PendingId and Approval or Violations Count/test.xml with URI =
> file:/Volumes/Extra/Workspaces/TeamConcert/Protex%20Report%20PendingId%20an
>d%20Approval%20or%20Violations%20Count/test.xml Setting ro project property:
> ant.project.name -> ProtexPendingActionsTask Adding reference:
> ProtexPendingActionsTask
> Setting ro project property: ant.file.ProtexPendingActionsTask ->
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations Count/test.xml
> Project base dir set to: /Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations Count
> +Target:
> +Target: clean
> +Target: compile
> +Target: jar
> +Target: use.init
> +Target: use
> [antlib:org.apache.tools.ant] Could not load definitions from resource
> org/apache/tools/ant/antlib.xml. It could not be found.
> Setting project property: src.dir -> src
> Setting project property: classes.dir -> bin
> Adding reference: cp-protex-ant-tasks
> Adding reference: eclipse.ant.targetVector
> Build sequence for target(s) `use' is [compile, jar, use.init, use]
> Complete build sequence is [compile, jar, use.init, use, clean, ]
> compile:
> [mkdir] Skipping /Volumes/Extra/Workspaces/TeamConcert/Protex Report
> PendingId and Approval or Violations Count/bin because it already exists.
> fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations Count/src with patternSet{
> includes: [] excludes: [] }
> [javac]
> com/blackducksoftware/integration/protex/ant/tasks/ListProjects.java
> omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId
> and Approval or Violations
> Count/bin/com/blackducksoftware/integration/protex/ant/tasks/ListProjects.c
>lass is up to date.
> [javac]
> com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.java
> omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId
> and Approval or Violations
> Count/bin/com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.
>class is up to date.
> [javac]
> com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActi
>ons.java omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report
> PendingId and Approval or Violations
> Count/bin/com/blackducksoftware/integration/protex/ant/tasks/ReportProjectP
>endingActions.class is up to date.
> [javac] com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.java
> omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId
> and Approval or Violations
> Count/bin/com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.cla
>ss is up to date.
> [javac]
> com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.java
> omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId
> and Approval or Violations
> Count/bin/com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallbac
>k.class is up to date.
> [javac] com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.java
> omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId
> and Approval or Violations
> Count/bin/com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
> is up to date.
> jar:
> fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations Count/bin with patternSet{
> includes: [] excludes: [] }
> [jar] com omitted as /Volumes/Extra/Workspaces/TeamConcert/Protex Report
> PendingId and Approval or Violations
> Count/ProtexPendingActionsTask.jar:com/ is up to date.
> [jar] com/blackducksoftware omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations Count/ProtexPendingActionsTask.jar:com/blackducksoftware/ is
> up to date.
> [jar] com/blackducksoftware/integration omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations
> Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/ is up
> to date.
> [jar] com/blackducksoftware/integration/protex omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations
> Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/protex
>/ is up to date.
> [jar] com/blackducksoftware/integration/protex/ant omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations
> Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/protex
>/ant/ is up to date.
> [jar] com/blackducksoftware/integration/protex/ant/tasks omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations
> Count/ProtexPendingActionsTask.jar:com/blackducksoftware/integration/protex
>/ant/tasks/ is up to date.
> [jar] com/blackducksoftware/proserv omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations
> Count/ProtexPendingActionsTask.jar:com/blackducksoftware/proserv/ is up to
> date.
> [jar] com/blackducksoftware/sdk omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations Count/ProtexPendingActionsTask.jar:com/blackducksoftware/sdk/
> is up to date.
> [jar] com/blackducksoftware/sdk/protex omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations
> Count/ProtexPendingActionsTask.jar:com/blackducksoftware/sdk/protex/ is up
> to date.
> [jar] com/blackducksoftware/sdk/protex/client omitted as
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations
> Count/ProtexPendingActionsTask.jar:com/blackducksoftware/sdk/protex/client/
> is up to date.
> [jar] com/blackducksoftware/integration/protex/ant/tasks/ListProjects.class
> added as
> com/blackducksoftware/integration/protex/ant/tasks/ListProjects.class is
> outdated.
> [jar]
> com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.class
> added as
> com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.class is
> outdated.
> [jar]
> com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActi
>ons.class added as
> com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActi
>ons.class is outdated.
> [jar] com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.class
> added as
> com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.class is
> outdated.
> [jar]
> com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.class
> added as
> com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.class is
> outdated.
> [jar] com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
> added as com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
> is outdated.
> [jar] Building jar: /Volumes/Extra/Workspaces/TeamConcert/Protex Report
> PendingId and Approval or Violations Count/ProtexPendingActionsTask.jar
> [jar] adding directory META-INF/
> [jar] adding entry META-INF/MANIFEST.MF
> [jar] adding directory com/
> [jar] adding directory com/blackducksoftware/
> [jar] adding directory com/blackducksoftware/integration/
> [jar] adding directory com/blackducksoftware/integration/protex/
> [jar] adding directory com/blackducksoftware/integration/protex/ant/
> [jar] adding directory com/blackducksoftware/integration/protex/ant/tasks/
> [jar] adding directory com/blackducksoftware/proserv/
> [jar] adding directory com/blackducksoftware/sdk/
> [jar] adding directory com/blackducksoftware/sdk/protex/
> [jar] adding directory com/blackducksoftware/sdk/protex/client/
> [jar] adding entry
> com/blackducksoftware/integration/protex/ant/tasks/ListProjects.class
> [jar] adding entry
> com/blackducksoftware/integration/protex/ant/tasks/ProtexSdkTask.class
> [jar] adding entry
> com/blackducksoftware/integration/protex/ant/tasks/ReportProjectPendingActi
>ons.class [jar] adding entry
> com/blackducksoftware/proserv/PendingIdOrApprovalOrViolations.class
> [jar] adding entry
> com/blackducksoftware/sdk/protex/client/ProgrammedPasswordCallback.class
> [jar] adding entry
> com/blackducksoftware/sdk/protex/client/ProtexSdkApiFactory.class
> use.init:
> fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations Count/lib with patternSet{
> includes: [**.jar] excludes: [] }
> [echo] /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and
> Approval or Violations
> Count/ProtexPendingActionsTask.jar:/Volumes/Extra/Workspaces/TeamConcert/Pr
>otex Report PendingId and Approval or Violations
> Count/lib/XmlSchema-1.4.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations
> Count/lib/ant.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex Report
> PendingId and Approval or Violations
> Count/lib/cxf-2.0.9.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex Report
> PendingId and Approval or Violations
> Count/lib/opensaml-1.1.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations
> Count/lib/protex-sdk-client.jar:/Volumes/Extra/Workspaces/TeamConcert/Prote
>x Report PendingId and Approval or Violations
> Count/lib/saaj-api-1.3.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations
> Count/lib/saaj-impl-1.3.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations
> Count/lib/wsdl4j-1.6.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations
> Count/lib/wss4j-1.5.4.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations
> Count/lib/xml-resolver-1.2.jar:/Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations Count/lib/xmlsec-1.4.0.jar
> fileset: Setup scanner in dir /Volumes/Extra/Workspaces/TeamConcert/Protex
> Report PendingId and Approval or Violations Count/lib with patternSet{
> includes: [**.jar] excludes: [] }
> Class com.blackducksoftware.integration.protex.ant.tasks.ListProjects
> loaded from parent loader (parentFirst)
> +Datatype protex-list-projects
> com.blackducksoftware.integration.protex.ant.tasks.ListProjects
> use:
>
> BUILD FAILED
> /Volumes/Extra/Workspaces/TeamConcert/Protex Report PendingId and Approval
> or Violations Count/test.xml:54:
> com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler
> error: SEI com.blackducksoftware.sdk.protex.project.ProjectApi has method
> getStringSearchPatternByName annotated as BARE but it has more than one
> parameter bound to body. This is invalid. Please annotate the method with
> annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:357)
> at org.apache.tools.ant.Target.performTasks(Target.java:385)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.
>java:41) at
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTarget
>s(EclipseDefaultExecutor.java:32) at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRun
>ner.java:423) at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRu
>nner.java:137) Caused by:
> com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler
> error: SEI com.blackducksoftware.sdk.protex.project.ProjectApi has method
> getStringSearchPatternByName annotated as BARE but it has more than one
> parameter bound to body. This is invalid. Please annotate the method with
> annotation:
> @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
> at
> com.sun.xml.internal.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler
>.java:1147) at
> com.sun.xml.internal.ws.model.RuntimeModeler.processDocBareMethod(RuntimeMo
>deler.java:1136) at
> com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.j
>ava:511) at
> com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.ja
>va:341) at
> com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModel
>er.java:227) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.j
>ava:588) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.
>java:291) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.
>java:274) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.
>java:267) at javax.xml.ws.Service.getPort(Service.java:92)
> at
> com.blackducksoftware.sdk.protex.project.ProjectApiService.getProjectApiPor
>t(Unknown Source)
> at
> com.blackducksoftware.sdk.protex.client.ProtexSdkApiFactory.getProjectApi(P
>rotexSdkApiFactory.java:98) at
> com.blackducksoftware.integration.protex.ant.tasks.ListProjects.execute(Lis
>tProjects.java:68) at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> ... 10 more
> --- Nested Exception ---
> com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler
> error: SEI com.blackducksoftware.sdk.protex.project.ProjectApi has method
> getStringSearchPatternByName annotated as BARE but it has more than one
> parameter bound to body. This is invalid. Please annotate the method with
> annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
> at
> com.sun.xml.internal.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler
>.java:1147) at
> com.sun.xml.internal.ws.model.RuntimeModeler.processDocBareMethod(RuntimeMo
>deler.java:1136) at
> com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.j
>ava:511) at
> com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.ja
>va:341) at
> com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModel
>er.java:227) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.j
>ava:588) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.
>java:291) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.
>java:274) at
> com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.
>java:267) at javax.xml.ws.Service.getPort(Service.java:92)
> at
> com.blackducksoftware.sdk.protex.project.ProjectApiService.getProjectApiPor
>t(Unknown Source)
> at
> com.blackducksoftware.sdk.protex.client.ProtexSdkApiFactory.getProjectApi(P
>rotexSdkApiFactory.java:98) at
> com.blackducksoftware.integration.protex.ant.tasks.ListProjects.execute(Lis
>tProjects.java:68) at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:357)
> at org.apache.tools.ant.Target.performTasks(Target.java:385)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.
>java:41) at
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTarget
>s(EclipseDefaultExecutor.java:32) at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRun
>ner.java:423) at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRu
>nner.java:137)
>
> Total time: 725 milliseconds

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: SOAP in Ant Task - RuntimeModelerException: ... BARE but it has more than o

Posted by Glen Mazza <gl...@gmail.com>.
Just a guess--you're not using the fork=true option within Ant, so it's
running in the same JVM as the Ant task, which in turn results in JAX-WS RI
libraries (included in the J2SE 6 JRE by default) being called.  

See my run-client Ant target here (Step #4):
http://www.jroller.com/gmazza/entry/creating_a_soap_client_with

HTH,
Glen


conficio wrote:
> 
> Hi,
> I have CXF generated web Service client that works great when called in a
> command line fashion. But when I wrap the same call into an ant task, then
> it throws a RuntimeModelerException, complaining about the BARE vs.
> WRAPPED parameters.
> 
> Any idea what goes wrong? Thread and or Class Loader issue?
> 

-- 
View this message in context: http://www.nabble.com/SOAP-in-Ant-Task---RuntimeModelerException%3A-...-BARE-but-it-has-more-than-o-tp23206964p23207673.html
Sent from the cxf-user mailing list archive at Nabble.com.