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.