You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by partha_ctc <pa...@rediffmail.com> on 2008/11/27 06:09:50 UTC
maven2 : getting error in executing weblogic clientgen , pls help
Hi,
My task is to execute clientgen in weblogic.
1) Following is my pom.xml.
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.prof.managedirectdebit</groupId>
<artifactId>eim-manage-direct-debit</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>eIM Transport - webservice</name>
<url>http://172.21.176.158:7009/</url>
<dependencies>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/wsdl</directory>
<includes>
<include>*.wsdl</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<!-- <inputWSDL>src/main/wsdl/*.wsdl</inputWSDL> -->
<outputDir>${project.build.directory}/generated-sources</outputDir>
<packageName>com.prof.managedirectdebit</packageName>
<serviceName>TestWS_service</serviceName>
</configuration>
<goals>
<goal>clientgen</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>auto-clean</id>
<phase>validate</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
2) please find my wsdl file attached here.
http://www.nabble.com/file/p20713598/TestWs.wsdl TestWs.wsdl
3) while executing mvn compile
, i am getting following error.
[INFO] [weblogic:clientgen {execution: default}]
[INFO] Weblogic client gen beginning
<Nov 27, 2008 10:31:29 AM GMT+05:30> <Info> <WebService> <BEA-220094> <An
IOExce
ption was thrown trying to access the WSDL at the given URL.>
<Nov 27, 2008 10:31:29 AM GMT+05:30> <Info> <WebService> <BEA-220034>
(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:788)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:729)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:654)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:977)
at
weblogic.webservice.wsdl.DefinitionFactory.createDefinition(Definitio
nFactory.java:120)
at
weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFro
mWsdl(ClientGenImpl.java:397)
at
weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenI
mpl.java:341)
at
weblogic.webservice.tools.clientgen.ClientGen.generateClientJar(Clien
tGen.java:309)
at
org.codehaus.mojo.weblogic.ClientGenMojo.execute(ClientGenMojo.java:1
32)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
>
[ERROR] Exception encountered during client gen
weblogic.webservice.tools.clientgen.ClientGenException:
weblogic.webservice.tool
s.build.WSBuildException: weblogic.webservice.wsdl.WSDLParseException:
Failed to
retrieve WSDL from http://localhost:7001. Please check the URL and make
sure th
at it is a valid XML file [java.net.ConnectException: Connection refused:
connec
t]
at
weblogic.webservice.tools.clientgen.ClientGen.generateClientJar(Clien
tGen.java:311)
at
org.codehaus.mojo.weblogic.ClientGenMojo.execute(ClientGenMojo.java:1
32)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: weblogic.webservice.tools.build.WSBuildException:
weblogic.webservice
.wsdl.WSDLParseException: Failed to retrieve WSDL from
http://localhost:7001. Pl
ease check the URL and make sure that it is a valid XML file
[java.net.ConnectEx
ception: Connection refused: connect]
at
weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenI
mpl.java:351)
at
weblogic.webservice.tools.clientgen.ClientGen.generateClientJar(Clien
tGen.java:309)
... 19 more
Caused by: weblogic.webservice.wsdl.WSDLParseException: Failed to retrieve
WSDL
from http://localhost:7001. Please check the URL and make sure that it is a
vali
d XML file [java.net.ConnectException: Connection refused: connect]
at
weblogic.webservice.wsdl.DefinitionFactory.createDefinition(Definitio
nFactory.java:160)
at
weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFro
mWsdl(ClientGenImpl.java:397)
at
weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenI
mpl.java:341)
... 20 more
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Exception encountered during listapps
Embedded error: weblogic.webservice.tools.build.WSBuildException:
weblogic.webse
rvice.wsdl.WSDLParseException: Failed to retrieve WSDL from
http://localhost:700
1. Please check the URL and make sure that it is a valid XML file
[java.net.Conn
ectException: Connection refused: connect]
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Thu Nov 27 10:31:29 GMT+05:30 2008
[INFO] Final Memory: 6M/10M.
==========
from error it seeems that my wsdl file is wrong ,but while i am executing in
axis2 , it is giving proper output.
, similarly i have tested with another wsdl file, it is also executing
properly in axis2 (wsdl2java),
but while executing in above pom , it also gives same error.
please suggest what to do next ?
--
View this message in context: http://www.nabble.com/maven2-%3A-getting-error-in-executing-weblogic-clientgen-%2C-pls-help-tp20713598p20713598.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org