I have uncommented the jaxws-maven-plugin in
sca\modules\interface-java-jaxws\pom.xml.  The following is the xml
fragment:
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <version>1.9</version>
                <configuration>

<sei>org.apache.tuscany.sca.interfacedef.java.jaxws.MyServiceImpl</sei>
                    <genWsdl>true</genWsdl>
                </configuration>
                <executions>
                    <execution>
                        <phase>process-test-classes</phase>
                        <goals>
                            <goal>wsgen-test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Upon building the project, I am hitting a build error.  The following is the
output in command window when the build is run with stacktraces on:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Apache Tuscany Java Interface for JAXWS
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory D:\T\java\sca\modules\interface-java-jaxws\target
[INFO] [dependency:copy {execution: copy}]
[INFO] Configured Artifact: javax.xml.ws:jaxws-api:2.1:jar
[INFO] Configured Artifact: javax.xml.bind:jaxb-api:2.1:jar
[INFO] Copying jaxws-api-2.1.jar to
D:\T\java\sca\modules\interface-java-jaxws\target\endorsed\jaxws-api-2.1.jar
[INFO] Copying jaxb-api-2.1.jar to
D:\T\java\sca\modules\interface-java-jaxws\target\endorsed\jaxb-api-2.1.jar
[INFO] [build-helper:add-test-source {execution: add-test-source}]
[INFO] Test Source directory:
D:\T\java\sca\modules\interface-java-jaxws\target\jaxws-source added.
[INFO] [jaxws:wsimport {execution: default}]
[INFO] Processing:
D:\T\java\sca\modules\interface-java-jaxws\src\test\resources\wsdl\StockExceptionTest.wsdl
[INFO] jaxws:wsimport args: [-s,
D:\T\java\sca\modules\interface-java-jaxws\target\jaxws-source, -d,
D:\T\java\sca\modules\interface-java-jaxws\target\classes, -p,
com.example.stock, -Xnocompile,
D:\T\java\sca\modules\interface-java-jaxws\src\test\resources\wsdl\StockExceptionTest.wsdl]
parsing WSDL...


generating code...

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 13 source files to
D:\T\java\sca\modules\interface-java-jaxws\target\classes
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 17 source files to
D:\T\java\sca\modules\interface-java-jaxws\target\test-classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for
'jaxws:wsgen-test'

[0] inside the definition for plugin: 'jaxws-maven-plugin'specify the
following:

<configuration>
  ...
  <sei>VALUE</sei>
</configuration>.

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring:
org.codehaus.mojo:jaxws-maven-plugin. Reason: Invalid or missing parameters:
[Mojo parameter [name: 'sei'; alias: 'null']] for mojo:
org.codehaus.mojo:jaxws-maven-plugin:1.9:wsgen-test
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:568)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
    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:585)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginParameterException: Error
configuring: org.codehaus.mojo:jaxws-maven-plugin. Reason: Invalid or
missing parameters: [Mojo parameter [name: 'sei'; alias: 'null']] for mojo:
org.codehaus.mojo:jaxws-maven-plugin:1.9:wsgen-test
    at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(DefaultPluginManager.java:907)
    at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:612)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
    ... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 32 seconds
[INFO] Finished at: Sat May 24 22:44:07 IST 2008
[INFO] Final Memory: 20M/39M
[INFO]
------------------------------------------------------------------------

Can someone help me with this error?

Thanks,
Vamsi

Reply via email to