Archive

Archive for June, 2009

June 9, 2009 2 comments

If you are one among fedup guy during weblogic webservice development.

1. Navigate to your home directory. Create a directory named “.metro” (using dos)

2. create file auth under the “.metro”

3. Add just one line “http://weblogic:weblogic@127.0.0.1:17001/HelloWorldImpl/HelloWorldService?WSDL” – your wsdl url

In windows – “C:\Documents and Settings\mohan\” was my home directory.

Say “Thanks” if it is useful.

[clientgen] [ERROR] Server returned HTTP response code: 401 for URL: http://127.0.0.1:17001/HelloWorldImpl/HelloWorldService?WSDL, http://127.0.0.1:
17001/HelloWorldImpl/HelloWorldService?WSDL” needs authorization, please provide authorization file with read access at C:\Documents and Settings\mnar
aya2\.metro\auth or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://use
r:password@host:port//<url-path>

BUILD FAILED
C:\myProjects\eclipse_workspace\SamplWebService\build.xml:45: weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen: null
at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenTask.java:374)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen: null
at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(ClientGenFacadeTask.java:235)
at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenTask.java:358)
… 12 more
Caused by: weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen: null
at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:144)
at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(ClientGenFacadeTask.java:231)
… 13 more
Caused by: Error starting wsimport:
at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:742)
at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:138)
… 14 more
Caused by: com.sun.tools.ws.wscompile.AbortException
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:229)
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:147)
at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:102)
at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:141)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:723)
… 15 more
— Nested Exception —
weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen: null
at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(ClientGenFacadeTask.java:235)
at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenTask.java:358)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen: null
at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:144)
at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(ClientGenFacadeTask.java:231)
… 13 more
Caused by: Error starting wsimport:
at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:742)
at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:138)
… 14 more
Caused by: com.sun.tools.ws.wscompile.AbortException
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:229)
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:147)
at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:102)
at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:141)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:723)
… 15 more
— Nested Exception —
weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen: null
at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:144)
at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(ClientGenFacadeTask.java:231)
at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenTask.java:358)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: Error starting wsimport:
at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:742)
at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:138)
… 14 more
Caused by: com.sun.tools.ws.wscompile.AbortException
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:229)
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:147)
at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:102)
at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:141)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:723)
… 15 more

Total time: 1 second

Advertisements
Categories: Uncategorized