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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]