Invoking Java from Moscript problems ... [message #375657] |
Thu, 09 November 2006 08:49  |
Eclipse User |
|
|
|
Originally posted by: iscrquinter.gmail.com
I am trying to invoke a Java class method using the the following code:
psmSM.ESStubGenerator::generateAxisStub(){
var wsdlAddress : String = self.wsdlAddress;
var cp : String = "c:/Documents and Settings/Ricardo Quintero/Mis
documentos/Doctorado/Tesis/New
Tesis/Tesis/wsEclipseTest/JavaAdapters2AXIS/bin;" +
"c:/axis/lib/activation.jar;" +
"c:/axis/lib/axis.jar;" +
"c:/axis/lib/axis-ant.jar;" +
"c:/axis/lib/commons-discovery-0.2.jar;" +
"c:/axis/lib/commons-logging-1.0.4.jar;" +
"c:/axis/lib/jaxrpc.jar;" +
"c:/axis/lib/log4j-1.2.8.jar;" +
"c:/axis/lib/saaj.jar;" +
"c:/axis/lib/wsdl4j-1.5.1.jar;" +
"c:/axis/lib/xercesImpl.jar;" +
"c:/axis/lib/xml-apis.jar";
java("adapters.wsdl2java.WSDL2JavaAdapter","generateStubfrom ",wsdlAddress,cp)
}
}
The method adapters.wsdl2Java.WSDLJavaAdapter (that is defined in anotoher
project in the same workspace) calls the org.apache.wsdl.WSDLJava.main
method (of the AXIS framework), but Eclipse stops running and crash-down
....(boom !!!)
I tested on Eclipse 3.1 and 3.2 ...and with Mofscript 1.1.11 ... and the
results are the same ...
What can I do ? What am I doing wrong ? Some suggestion ?
|
|
|
|
|
Re: Invoking Java from Moscript problems ... [message #560522 is a reply to message #375657] |
Tue, 28 November 2006 04:12  |
Eclipse User |
|
|
|
Hi Ricardo,
It is not obvious why this Java call dumps the entire Eclipse environment,
but it probably related to the process(es) spawned by the Axis Java2WSDL
main execution. I tried to execute the same process and it fails in the same
way, also when running in debug mode - I am not able to catch any exceptions
from this invocation. Perhaps it would be better to use a non-command line
API of the Axis framework when executing from another Java process?
/ Jon Oldevik
"Ricardo Quintero" <iscrquinter@gmail.com> wrote in message
news:eivbl3$gs4$1@utils.eclipse.org...
>I am trying to invoke a Java class method using the the following code:
> psmSM.ESStubGenerator::generateAxisStub(){
>
> var wsdlAddress : String = self.wsdlAddress;
>
> var cp : String = "c:/Documents and Settings/Ricardo Quintero/Mis
> documentos/Doctorado/Tesis/New
> Tesis/Tesis/wsEclipseTest/JavaAdapters2AXIS/bin;" +
>
> "c:/axis/lib/activation.jar;" +
>
> "c:/axis/lib/axis.jar;" +
>
> "c:/axis/lib/axis-ant.jar;" +
>
> "c:/axis/lib/commons-discovery-0.2.jar;" +
>
> "c:/axis/lib/commons-logging-1.0.4.jar;" +
>
> "c:/axis/lib/jaxrpc.jar;" +
>
> "c:/axis/lib/log4j-1.2.8.jar;" +
>
> "c:/axis/lib/saaj.jar;" +
>
> "c:/axis/lib/wsdl4j-1.5.1.jar;" +
>
> "c:/axis/lib/xercesImpl.jar;" +
>
> "c:/axis/lib/xml-apis.jar";
>
>
>
> java("adapters.wsdl2java.WSDL2JavaAdapter","generateStubfrom ",wsdlAddress,cp)
>
> }
>
>
> }
>
> The method adapters.wsdl2Java.WSDLJavaAdapter (that is defined in
> anotoher project in the same workspace) calls the
> org.apache.wsdl.WSDLJava.main method (of the AXIS framework), but Eclipse
> stops running and crash-down ...(boom !!!)
>
> I tested on Eclipse 3.1 and 3.2 ...and with Mofscript 1.1.11 ... and the
> results are the same ...
>
> What can I do ? What am I doing wrong ? Some suggestion ?
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03426 seconds