Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » Invoking Java from Moscript problems ...
Invoking Java from Moscript problems ... [message #375657] Thu, 09 November 2006 13:49 Go to next message
Eclipse UserFriend
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 #375660 is a reply to message #375657] Tue, 28 November 2006 09:12 Go to previous messageGo to next message
Jon Oldevik is currently offline Jon OldevikFriend
Messages: 17
Registered: July 2009
Junior Member
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 ?
>
>
>
Re: Invoking Java from Moscript problems ... [message #375663 is a reply to message #375660] Wed, 29 November 2006 06:01 Go to previous message
Eclipse UserFriend
Originally posted by: iscrquinter.gmail.com

Thanks for your advice John ...I will try a non-command line API of Axis

Ricardo

"Jon Oldevik" <jon.oldevik@sintef.no> escribi
Re: Invoking Java from Moscript problems ... [message #560522 is a reply to message #375657] Tue, 28 November 2006 09:12 Go to previous message
Jon Oldevik is currently offline Jon OldevikFriend
Messages: 17
Registered: July 2009
Junior Member
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 ?
>
>
>
Re: Invoking Java from Moscript problems ... [message #560530 is a reply to message #375660] Wed, 29 November 2006 06:01 Go to previous message
Eclipse UserFriend
Originally posted by: iscrquinter.gmail.com

Thanks for your advice John ...I will try a non-command line API of Axis

Ricardo

"Jon Oldevik" <jon.oldevik@sintef.no> escribi
Previous Topic:Invoking Java from Moscript problems ...
Next Topic:Using user specified MetaModels
Goto Forum:
  


Current Time: Sat Dec 20 07:32:08 GMT 2014

Powered by FUDForum. Page generated in 0.03611 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software