Re: Trying to package a standalone application.

2007-03-05 Thread Dan Murphy
Hi, Static types need to be registered, and the factory does this registration for you & will (AFAIK) always generate one for you from an XSD source. You can also use the factory for creating new instances of your SDOs. The current implementation doesn't define types if you simply "new" them, var

Re: Trying to package a standalone application.

2007-03-05 Thread Guillaume Dufrêne
Hi, I have an "import.sdo location" into my client SCDL. It looks like this : xmlns:dbsdo="http://incubator.apache.org/tuscany/xmlns/databinding/sdo/1.0-incubator-M2"; location="bank/common/AccountService.wsdl"/> With this import I have a class cast exception. (see previous message) When I

Re: Trying to package a standalone application.

2007-03-02 Thread Guillaume Dufrêne
Hum, nice, Thanks for that trick. I'll try this solution too. -- Guillaume. When I had this problem, it was indeed because the static types were not being registerred properly. I was able to bypass the problem by using the factory attribute instead of the location attribute and pointed it di

Re: Trying to package a standalone application.

2007-03-02 Thread Lee Surprenant
When I had this problem, it was indeed because the static types were not being registerred properly. I was able to bypass the problem by using the factory attribute instead of the location attribute and pointed it directly to the static factory I had generated. That is, instead of This is con

Re: Trying to package a standalone application.

2007-03-02 Thread Guillaume Dufrêne
Hum, I have a doubt now ... I'm sure I have this into my scdl on the server side but I don't remenber if I have this import into the client scdl. I'm at home now but be sure I will look this monday morning (GMT+1). So, I'll send something soon ;-) Have a nice week-end, Thanks for your help. --

Re: Trying to package a standalone application.

2007-03-02 Thread ant elder
Do you have an in you scdl which i think is required to use static SDOs? See the bigbank sample for an example: https://svn.apache.org/repos/asf/incubator/tuscany/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl ...ant On 3/2/07, Guillaume Dufrê

Re: Trying to package a standalone application.

2007-03-02 Thread Guillaume Dufrêne
On the server side this is a SCA component deployed on tomcat. It exposes a service as a web service. The client side (on which I have this exception) is a standalone program. (like helloworldclientws sample) I run it with the launcher provided with tuscany-sca-java binaries. There's nothing more

Re: Trying to package a standalone application.

2007-03-02 Thread Dan Murphy
It may be that the types need to be be registered (although I would be supprised), is there anything more in the stack trace ? Are you running this in a complex server container (as opposed to tomcat) in which case there may be some classpath issues (depends on which server, eg WAS V 6 etc you may

Re: Trying to package a standalone application.

2007-03-02 Thread Jeremy Boynes
On Mar 2, 2007, at 9:05 AM, Guillaume Dufrêne wrote: I do not try the 1st cause the 2nd seems smarter. It seems easier to do with an ant script :-) So, the 2nd solution works fine. Thanks !! Phew :-) I have added "-Doffline=true" to bypass maven update check. Ok, now I have a classCastExce

Re: Trying to package a standalone application.

2007-03-02 Thread Guillaume Dufrêne
I do not try the 1st cause the 2nd seems smarter. It seems easier to do with an ant script :-) So, the 2nd solution works fine. Thanks !! I have added "-Doffline=true" to bypass maven update check. Ok, now I have a classCastException because the return object of the proxy is a DynamicDataObject

Re: Trying to package a standalone application.

2007-03-02 Thread Jeremy Boynes
On Mar 2, 2007, at 5:02 AM, Guillaume Dufrêne wrote: Hi Jeremy, I'm using the launcher for running my sample. So, my command looks like : "java -jar (sca-home)/bin/launcher.jar my_application.jar" In my case sca-home is located at "C:\workspace\fcSOAP\tuscany-1.0- incubator-M2" but anyway ...

Re: Trying to package a standalone application.

2007-03-02 Thread Guillaume Dufrêne
Hi Jeremy, I'm using the launcher for running my sample. So, my command looks like : "java -jar (sca-home)/bin/launcher.jar my_application.jar" In my case sca-home is located at "C:\workspace\fcSOAP\tuscany-1.0-incubator-M2" but anyway ... Where does the launcher intend to find the sdo-impl ja

Re: Trying to package a standalone application.

2007-03-01 Thread Jeremy Boynes
You will need to have the StAX API and an implementation visible in the same classloader as used for SDO. If you have the SDO impl jars in WEB-INF/lib you should make sure: * stax-api-1.0.1.jar * wstx-asl-3.2.0.jar are in the same place (using the StAX impl from http:// woodstox.codehaus.org).

Trying to package a standalone application.

2007-03-01 Thread Guillaume Dufrêne
Hi, I try to package a standalone SCA ws-client. I follow the instructions on http://incubator.apache.org/tuscany/java_sca_overview.html But when I launcher the application an exception occured : Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException