gpt4 book ai didi

eclipse - 由于错误,无法从 Web 服务生成 WSDL

转载 作者:行者123 更新时间:2023-12-04 05:10:12 25 4
gpt4 key购买 nike

我正在使用 Oracle Enterprise Pack for Eclipse。因此我尝试创建一个小的 Oracle Web 服务项目。在那里除了自动生成的方法 hello() 之外别无他物。但是,每次我尝试创建 WSDL 文件(右键单击等)时,都会收到此错误:

The WSDL cannot be generated from the web service due to error

错误日志:
java.lang.reflect.InvocationTargetException
at oracle.eclipse.tools.webservices.ant.WlsAntScript.execute(WlsAntScript.java:288)
at oracle.eclipse.tools.webservices.ui.actions.GenerateWsdlFromJwscAntAction$1.run(GenerateWsdlFromJwscAntAction.java:217)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: oracle.eclipse.tools.webservices.ant.GeneratedAntScriptFailedException: Generated ant script failed:
C:\Users\steinkar\eclipse\workspace\.metadata\.plugins\oracle.eclipse.tools.webservices\ant\build.xml
Log file:
C:\Users\steinkar\eclipse\workspace\.metadata\.plugins\oracle.eclipse.tools.webservices\ant\build_log.txt
Log contents:
Buildfile: C:\Users\steinkar\eclipse\workspace\.metadata\.plugins\oracle.eclipse.tools.webservices\ant\build.xml
Trying to override old definition of datatype wsgen

fork_build:

BUILD FAILED
java.io.IOException: Cannot run program "C:\Develop\Oracle\Middleware\jdk160_29\bin\java" (in directory "C:\Users\steinkar\eclipse\workspace\tc_togo"): CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
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:597)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:784)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:211)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
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:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:665)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
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:597)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
at oracle.eclipse.tools.webservices.ant.WlsAntScript.runAnt(WlsAntScript.java:128)
at oracle.eclipse.tools.webservices.ant.WlsAntScript.execute(WlsAntScript.java:283)
at oracle.eclipse.tools.webservices.ui.actions.GenerateWsdlFromJwscAntAction$1.run(GenerateWsdlFromJwscAntAction.java:217)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 37 more

Total time: 0 seconds


at oracle.eclipse.tools.webservices.ant.WlsAntScript.runAnt(WlsAntScript.java:130)
at oracle.eclipse.tools.webservices.ant.WlsAntScript.execute(WlsAntScript.java:283)
... 2 more
Caused by: org.eclipse.core.runtime.CoreException: C:\Users\steinkar\eclipse\workspace\.metadata\.plugins\oracle.eclipse.tools.webservices\ant\build.xml:10: java.io.IOException: Cannot run program "C:\Develop\Oracle\Middleware\jdk160_29\bin\java" (in directory "C:\Users\steinkar\eclipse\workspace\tc_togo"): CreateProcess error=87, The parameter is incorrect
at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:452)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:384)
at oracle.eclipse.tools.webservices.ant.WlsAntScript.runAnt(WlsAntScript.java:128)
... 3 more
Caused by: C:\Users\steinkar\eclipse\workspace\.metadata\.plugins\oracle.eclipse.tools.webservices\ant\build.xml:10: java.io.IOException: Cannot run program "C:\Develop\Oracle\Middleware\jdk160_29\bin\java" (in directory "C:\Users\steinkar\eclipse\workspace\tc_togo"): CreateProcess error=87, The parameter is incorrect
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:211)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
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:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:665)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
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:597)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Develop\Oracle\Middleware\jdk160_29\bin\java" (in directory "C:\Users\steinkar\eclipse\workspace\tc_togo"): CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
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:597)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:784)
... 28 more
Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 37 more

我已经尝试删除该项目,重新安装 Oracle 的东西,但它仍然无法正常工作,尽管 web 服务本身正在运行。希望你能帮助我。

最佳答案

有些事情你应该确保。
第一:不要将 Oracle 软件安装到默认位置以外的其他位置。由于某种原因,该软件无法正常工作。
第二:不要在很长的目录中创建你的工作区。

如果您修复了两者,它应该可以工作。

关于eclipse - 由于错误,无法从 Web 服务生成 WSDL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14982327/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com