You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonar, Nishant" <ni...@wachovia.com> on 2007/11/13 15:18:21 UTC

jaxws plugin doesnt works on linux

Hi 

 

I am running jaxws-plugin (wsimport) when I run it on windows maching it
works fine but the same pom when running on linux environment creates
problems , while generating wsimport artifacts. I am using following as
the jaxws-plugin in pom

 

 

<!--  generate ws client artifacts -->

<plugin>

      <groupId>org.codehaus.mojo</groupId>

      <artifactId>jaxws-maven-plugin</artifactId>

      <version>1.2</version>

      <configuration>

 

            <catalog>

 
${basedir}/src/main/resources/META-INF/jax-ws-catalog.xml

            </catalog>

            <verbose>true</verbose>

            <keep>true</keep>

            <wsdlUrls>

                  <wsdlUrl> http://com.XXX.lucenesearch/wsdl </wsdlUrl>

            </wsdlUrls>

 

            <packageName>

                  com.XXX.cib.readapi.wsclient

            </packageName>

            <bindingDirectory>

                  ${basedir}/src/main/resources/webservice

            </bindingDirectory>

      </configuration>

      <executions>

            <execution>

                  <goals>

                        <goal>wsimport</goal>

                  </goals>

                  <phase>generate-sources</phase>

 

            </execution>

      </executions>

 

My commands run as

 

Linux 

___

 

jaxws:wsimport args: [

-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, 

-d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog, /src/main/resources/META-INF/jax-ws-catalog.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, 

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

Windows 

__

 

jaxws:wsimport args: [

-s,
C:\workspace\lucene_search_framework\search-api-mock\target\jaxws\wsimpo
rt\java, 

-d, C:\workspace\lucene_search_framework\search-api-mock\target\classes,
-verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
META-INF\jax-ws-catalog.xml, 

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-client.xml,

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-schema.xml,

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

for windows it runs fine and I get the generated classes but for linux I
get the following error

 

[INFO] jaxws:wsimport args: [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

[ERROR] Failed to read the WSDL document:
http://com.XXX.lucenesearch/wsdl, because 1) could not find the
document; /2) the document could not be read; 3) the root element of the
document is not <wsdl:definitions>.

unknown location

 

Failed to parse the WSDL.

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Error executing: wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Error executing:
wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:564)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)

    

 

Need help ,

Nishant Sonar

 


Re: deploying without deploying - how do I turn off deployment of pom (or anyother default maven goal in a phase)?

Posted by Martin Hoeller <ma...@xss.co.at>.
On 03 Dec 2007, mrox@sdc.dk wrote:

> How can I stop maven from deploying the pom.  Can't I disable the goal 
> somehow? 

This should be possible (not tested): just configure the
maven-deploy-plugin [0] not to execute in the deploy lifecycle.

See the POM Reference [1] and the Introduction to the Build Lifecycle [2]
for details.

hth,
- martin

[0] http://maven.apache.org/plugins/maven-deploy-plugin/
[1] http://maven.apache.org/pom.html
[2] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
-- 
Martin Höller                   | martin.hoeller@xss.co.at
*x Software + Systeme           | http://www.xss.co.at/
Karmarschgasse 51/2/20          | Tel: +43-1-6060114-30
A-1100 Vienna, Austria          | Fax: +43-1-6060114-71

Re: deploying without deploying - how do I turn off deployment of pom (or anyother default maven goal in a phase)?

Posted by Markku Saarela <ma...@iki.fi>.
Use mvn site-deploy

for more details look at http://maven.apache.org/guides/mini/guide-site.html

- markku

mrox@sdc.dk wrote:
> Hi,
>
> We have some documentation which is sufficiently code-like (html built 
> with xslt), that it needs to be built and deployed to a web server via a 
> maven module.
>
> I have got it working via FTP using the antrun plugin.  No problems 
> there....
>
> The build of the documentation happens in the install phase (this is the 
> most logical, and most developers will type "mvn install" without even 
> using their brain).
>
> I have bound the deployment of the documentation to the deploy phase (and 
> used the pom packaging for my module).  This works, but it gives me a 
> problem.... 
> ... when I call deploy, it also deploys the pom to the remote repository - 
> which doesn't make any sense.  This is done by developers, and they 
> shouldn't in general touch the remote repository.  But this _is_ a 
> deployment, so I feel it is the correct phase to use.
>
> How can I stop maven from deploying the pom.  Can't I disable the goal 
> somehow?  Do I really need to create a custom lifecycle? (this seems like 
> too much of a hack)
>
> thanks in advance,
>
> Michael
>
> mrox@sdc.dk
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


deploying without deploying - how do I turn off deployment of pom (or anyother default maven goal in a phase)?

Posted by mr...@sdc.dk.
Hi,

We have some documentation which is sufficiently code-like (html built 
with xslt), that it needs to be built and deployed to a web server via a 
maven module.

I have got it working via FTP using the antrun plugin.  No problems 
there....

The build of the documentation happens in the install phase (this is the 
most logical, and most developers will type "mvn install" without even 
using their brain).

I have bound the deployment of the documentation to the deploy phase (and 
used the pom packaging for my module).  This works, but it gives me a 
problem.... 
... when I call deploy, it also deploys the pom to the remote repository - 
which doesn't make any sense.  This is done by developers, and they 
shouldn't in general touch the remote repository.  But this _is_ a 
deployment, so I feel it is the correct phase to use.

How can I stop maven from deploying the pom.  Can't I disable the goal 
somehow?  Do I really need to create a custom lifecycle? (this seems like 
too much of a hack)

thanks in advance,

Michael

mrox@sdc.dk

RE: jaxws plugin doesnt works on linux

Posted by "Sonar, Nishant" <ni...@wachovia.com>.
I've found the solution now, it was issue with absolute path for linux
environment for everything binding files, wsdl location etc

Nishant

-----Original Message-----
From: Sonar, Nishant 
Sent: Tuesday, November 13, 2007 7:48 PM
To: Maven Users List
Subject: jaxws plugin doesnt works on linux 

Hi 

 

I am running jaxws-plugin (wsimport) when I run it on windows maching it
works fine but the same pom when running on linux environment creates
problems , while generating wsimport artifacts. I am using following as
the jaxws-plugin in pom

 

 

<!--  generate ws client artifacts -->

<plugin>

      <groupId>org.codehaus.mojo</groupId>

      <artifactId>jaxws-maven-plugin</artifactId>

      <version>1.2</version>

      <configuration>

 

            <catalog>

 
${basedir}/src/main/resources/META-INF/jax-ws-catalog.xml

            </catalog>

            <verbose>true</verbose>

            <keep>true</keep>

            <wsdlUrls>

                  <wsdlUrl> http://com.XXX.lucenesearch/wsdl </wsdlUrl>

            </wsdlUrls>

 

            <packageName>

                  com.XXX.cib.readapi.wsclient

            </packageName>

            <bindingDirectory>

                  ${basedir}/src/main/resources/webservice

            </bindingDirectory>

      </configuration>

      <executions>

            <execution>

                  <goals>

                        <goal>wsimport</goal>

                  </goals>

                  <phase>generate-sources</phase>

 

            </execution>

      </executions>

 

My commands run as

 

Linux 

___

 

jaxws:wsimport args: [

-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, 

-d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog, /src/main/resources/META-INF/jax-ws-catalog.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, 

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

Windows 

__

 

jaxws:wsimport args: [

-s,
C:\workspace\lucene_search_framework\search-api-mock\target\jaxws\wsimpo
rt\java, 

-d, C:\workspace\lucene_search_framework\search-api-mock\target\classes,
-verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
META-INF\jax-ws-catalog.xml, 

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-client.xml,

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-schema.xml,

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

for windows it runs fine and I get the generated classes but for linux I
get the following error

 

[INFO] jaxws:wsimport args: [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

[ERROR] Failed to read the WSDL document:
http://com.XXX.lucenesearch/wsdl, because 1) could not find the
document; /2) the document could not be read; 3) the root element of the
document is not <wsdl:definitions>.

unknown location

 

Failed to parse the WSDL.

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Error executing: wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Error executing:
wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:564)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)

    

 

Need help ,

Nishant Sonar

 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org