Hi, I don't know the way, but to solve the problem of derby.jar missing you 
need to build web service as web applications and not as java application. In 
this way no error come.

Anyway thanks for all your support Simon.

Best Reguards

Marco Piccinni





> Hi Simon,
>
> Yes you're right, I'm Using a mysql db byt when I compile the client it 
> returned me the same error, that is to say derby.jar missing. that was the 
> reason I tried to inert it into my project.
>
> Marco Piccinni
>
>
>
> > On Wed, Nov 26, 2008 at 5:31 PM, Marco Piccinni <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Simon
> > >
> > > I did exactly what you said. I put derby.jar in the classpath of the web
> > > service component. Then I compiled it with "run as Tuscany". it generate
> > > wsdl file. The stack error comes when I launch the client which should
> > > consume the web service.
> > >
> > > I don't know what to do.
> > >
> > > Marco Piccinni
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > > On Wed, Nov 26, 2008 at 4:54 PM, Marco Piccinni <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > > Thank's again Simon
> > > > >
> > > > > you were correct about the conflict between sqlException and jaxb. I
> > > > > changed SqlException with Exception and it works! I can know compile 
> > > > > my
> > > > > composite file with "run as tuscany".
> > > > >
> > > > > Now I had another problem related to the client which consume this web
> > > > > service. If I run it the console read as follow:
> > > > >
> > > > > GRAVE: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > > org.osoa.sca.ServiceRuntimeException: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:119)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:85)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:79)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java:138)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:695)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:68)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
> > > > >        at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > > > >        at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> > > > >        at org.mortbay.jetty.Server.handle(Server.java:324)
> > > > >        at
> > > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
> > > > >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> > > > >        at
> > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > > > >        at
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > > > >        at
> > > > >
> > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> > > > >        at
> > > > > org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:63)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:221)
> > > > >        at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> > > > > Source)
> > > > >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> > > > > Source)
> > > > >        at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown
> > > Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at model.interrogazione.connetti(interrogazione.java:29)
> > > > >        at model.interrogazione.database(interrogazione.java:42)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
> > > > >        at $Proxy21.database(Unknown Source)
> > > > >        at model.servizioImpl.tassa(servizioImpl.java:50)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:110)
> > > > >        ... 29 more
> > > > > 26-nov-2008 17.24.33
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver
> > > > > invokeBusinessLogic
> > > > > GRAVE: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > > org.osoa.sca.ServiceRuntimeException: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:119)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:85)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:79)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java:138)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:695)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:68)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
> > > > >        at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > > > >        at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> > > > >        at org.mortbay.jetty.Server.handle(Server.java:324)
> > > > >        at
> > > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
> > > > >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> > > > >        at
> > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > > > >        at
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > > > >        at
> > > > >
> > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> > > > >        at
> > > > > org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:63)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:221)
> > > > >        at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> > > > > Source)
> > > > >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> > > > > Source)
> > > > >        at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown
> > > Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at model.interrogazione.connetti(interrogazione.java:29)
> > > > >        at model.interrogazione.database(interrogazione.java:42)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
> > > > >        at $Proxy21.database(Unknown Source)
> > > > >        at model.servizioImpl.tassa(servizioImpl.java:50)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:110)
> > > > >        ... 29 more
> > > > > 26-nov-2008 17.32.40
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver
> > > > > invokeBusinessLogic
> > > > > GRAVE: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > > org.osoa.sca.ServiceRuntimeException: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:119)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:85)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:79)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java:138)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:695)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:68)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
> > > > >        at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > > > >        at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> > > > >        at org.mortbay.jetty.Server.handle(Server.java:324)
> > > > >        at
> > > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
> > > > >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> > > > >        at
> > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > > > >        at
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > > > >        at
> > > > >
> > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> > > > >        at
> > > > > org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:63)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:221)
> > > > >        at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> > > > > Source)
> > > > >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> > > > > Source)
> > > > >        at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown
> > > Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at model.interrogazione.connetti(interrogazione.java:29)
> > > > >        at model.interrogazione.database(interrogazione.java:42)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
> > > > >        at $Proxy21.database(Unknown Source)
> > > > >        at model.servizioImpl.tassa(servizioImpl.java:50)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:110)
> > > > >        ... 29 more
> > > > > 26-nov-2008 17.37.45
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver
> > > > > invokeBusinessLogic
> > > > > GRAVE: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > > org.osoa.sca.ServiceRuntimeException: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:119)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:85)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:79)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java:138)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:695)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:68)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
> > > > >        at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > > > >        at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> > > > >        at org.mortbay.jetty.Server.handle(Server.java:324)
> > > > >        at
> > > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
> > > > >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> > > > >        at
> > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > > > >        at
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > > > >        at
> > > > >
> > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> > > > >        at
> > > > > org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:63)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:221)
> > > > >        at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> > > > > Source)
> > > > >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> > > > > Source)
> > > > >        at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown
> > > Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at model.interrogazione.connetti(interrogazione.java:29)
> > > > >        at model.interrogazione.database(interrogazione.java:42)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
> > > > >        at $Proxy21.database(Unknown Source)
> > > > >        at model.servizioImpl.tassa(servizioImpl.java:50)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:110)
> > > > >        ... 29 more
> > > > > 26-nov-2008 17.38.18
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver
> > > > > invokeBusinessLogic
> > > > > GRAVE: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > > org.osoa.sca.ServiceRuntimeException: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:119)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:85)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:79)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java:138)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:695)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:68)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
> > > > >        at
> > > > >
> > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
> > > > >        at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> > > > >        at
> > > > >
> > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > > > >        at
> > > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> > > > >        at org.mortbay.jetty.Server.handle(Server.java:324)
> > > > >        at
> > > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> > > > >        at
> > > > >
> > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
> > > > >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> > > > >        at
> > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > > > >        at
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > > > >        at
> > > > >
> > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> > > > >        at
> > > > > org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:63)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:221)
> > > > >        at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> > > > > Source)
> > > > >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> > > > > Source)
> > > > >        at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.lang.NoSuchMethodError:
> > > > >
> > > org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
> > > > >        at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown
> > > Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at java.sql.DriverManager.getConnection(Unknown Source)
> > > > >        at model.interrogazione.connetti(interrogazione.java:29)
> > > > >        at model.interrogazione.database(interrogazione.java:42)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
> > > > >        at $Proxy21.database(Unknown Source)
> > > > >        at model.servizioImpl.tassa(servizioImpl.java:50)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > > > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > > > >         at
> > > > >
> > > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
> > > > >        at
> > > > >
> > > org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:110)
> > > > >        ... 29 more
> > > > >
> > > > >
> > > > >
> > > > > it seems like Derby.jar is missing. So I downloaded it and I put it in
> > > my
> > > > > classpath but the error is still the same.
> > > > > I attache you the class I use to interface my client with werbservice.
> > > > >
> > > > > Thanks for all
> > > > >
> > > > > Marco Piccinni
> > > > >
> > > > >
> > > > >
> > > > > > On Wed, Nov 26, 2008 at 2:41 PM, Marco Piccinni <[EMAIL PROTECTED]
> > > >
> > > > > wrote:
> > > > > >
> > > > > > > I'll try to analyze the code with other kind of exception but
> > > Eclipse
> > > > > force
> > > > > > > me to use that one. Anyway the code I sent you is the standard way
> > > to
> > > > > > > proceed?
> > > > > > > Do you know if there are some example of web services which
> > > interact
> > > > > with
> > > > > > > datasbase?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > > On Wed, Nov 26, 2008 at 1:51 PM, Marco Piccinni <
> > > [EMAIL PROTECTED]
> > > > > >
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi Simon,
> > > > > > > > >
> > > > > > > > > I attache you the file in zip format. thanks for interest!
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Wed, Nov 26, 2008 at 1:09 PM, Marco Piccinni <
> > > > > [EMAIL PROTECTED]>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > >    Thanks Simon,
> > > > > > > > >
> > > > > > > > >    I attache you the full project. it's composed by a series 
> > > > > > > > > of
> > > > > > > indipendent
> > > > > > > > > interface, thery are just a series a little examples. the
> > > interface
> > > > > for
> > > > > > > > > database connection is connessione.java, in model package. the
> > > > > class
> > > > > > > that
> > > > > > > > > implements this interface is interrogazione.java
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >    On Wed, Nov 26, 2008 at 12:36 PM, Marco Piccinni <
> > > > > > > [EMAIL PROTECTED]>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > >       Hi all,
> > > > > > > > >
> > > > > > > > >       I asked in a preceding mail if someone never used
> > > Hibernate
> > > > > in a
> > > > > > > > > tuscany web services. I discovered that because of licence
> > > problem
> > > > > it's
> > > > > > > not
> > > > > > > > > possible to integrate both of them. So I'm trying to
> > > enstablished a
> > > > > > > jdbc
> > > > > > > > > connection through a mysql database.
> > > > > > > > >
> > > > > > > > >       I have tried with working code (if put it into a web or 
> > > > > > > > > a
> > > > > java
> > > > > > > > > application) but nothing appear, I just receive a lot of 
> > > > > > > > > errors
> > > > > like
> > > > > > > this:
> > > > > > > > >
> > > > > > > > >       GRAVE: Exception thrown was:
> > > > > > > org.osoa.sca.ServiceRuntimeException:
> > > > > > > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> > > counts
> > > > > of
> > > > > > > > > IllegalAnnotationExceptions
> > > > > > > > >       java.lang.StackTraceElement does not have a no-arg
> > > default
> > > > > > > > > constructor.
> > > > > > > > >              this problem is related to the following 
> > > > > > > > > location:
> > > > > > > > >                      at java.lang.StackTraceElement
> > > > > > > > >                      at public java.lang.StackTraceElement[]
> > > > > > > > > java.lang.Throwable.getStackTrace()
> > > > > > > > >                      at java.lang.Throwable
> > > > > > > > >                      at java.lang.Exception
> > > > > > > > >                      at java.sql.SQLException
> > > > > > > > >                      at protected java.sql.SQLException
> > > > > > > > > tuscany.jaxws.SQLExceptionBean.nextException
> > > > > > > > >                      at tuscany.jaxws.SQLExceptionBean
> > > > > > > > >
> > > > > > > > >       26-nov-2008 11.39.41
> > > > > > > > > org.apache.tuscany.sca.node.launcher.NodeLauncherUtil node
> > > > > > > > >       GRAVE: SCA Node could not be created
> > > > > > > > >       java.lang.reflect.InvocationTargetException
> > > > > > > > >              at
> > > > > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > > Method)
> > > > > > > > >              at
> > > > > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > > > > Source)
> > > > > > > > >              at
> > > > > > > > >
> > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> > > > > > > Source)
> > > > > > > > >              at
> > > java.lang.reflect.Constructor.newInstance(Unknown
> > > > > > > Source)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:340)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
> > > > > > > > >       Caused by: org.osoa.sca.ServiceRuntimeException:
> > > > > > > > > org.osoa.sca.ServiceRuntimeException:
> > > > > > > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> > > counts
> > > > > of
> > > > > > > > > IllegalAnnotationExceptions
> > > > > > > > >       java.lang.StackTraceElement does not have a no-arg
> > > default
> > > > > > > > > constructor.
> > > > > > > > >              this problem is related to the following 
> > > > > > > > > location:
> > > > > > > > >                      at java.lang.StackTraceElement
> > > > > > > > >                      at public java.lang.StackTraceElement[]
> > > > > > > > > java.lang.Throwable.getStackTrace()
> > > > > > > > >                      at java.lang.Throwable
> > > > > > > > >                      at java.lang.Exception
> > > > > > > > >                      at java.sql.SQLException
> > > > > > > > >                      at protected java.sql.SQLException
> > > > > > > > > tuscany.jaxws.SQLExceptionBean.nextException
> > > > > > > > >                      at tuscany.jaxws.SQLExceptionBean
> > > > > > > > >
> > > > > > > > >              at
> > > > > > > > >
> > > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:174)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromURL(NodeFactoryImpl.java:42)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementationLauncherBootstrap.java:94)
> > > > > > > > >              ... 7 more
> > > > > > > > >       Caused by: org.osoa.sca.ServiceRuntimeException:
> > > > > > > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> > > counts
> > > > > of
> > > > > > > > > IllegalAnnotationExceptions
> > > > > > > > >       java.lang.StackTraceElement does not have a no-arg
> > > default
> > > > > > > > > constructor.
> > > > > > > > >              this problem is related to the following 
> > > > > > > > > location:
> > > > > > > > >                      at java.lang.StackTraceElement
> > > > > > > > >                      at public java.lang.StackTraceElement[]
> > > > > > > > > java.lang.Throwable.getStackTrace()
> > > > > > > > >                      at java.lang.Throwable
> > > > > > > > >                      at java.lang.Exception
> > > > > > > > >                      at java.sql.SQLException
> > > > > > > > >                      at protected java.sql.SQLException
> > > > > > > > > tuscany.jaxws.SQLExceptionBean.nextException
> > > > > > > > >                      at tuscany.jaxws.SQLExceptionBean
> > > > > > > > >
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBTypeHelper.getSchemaDefinitions(JAXBTypeHelper.java:241)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:260)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:307)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:205)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:163)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.buildServiceBindings(ComponentServiceBindingBuilderImpl.java:66)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.build(ComponentServiceBindingBuilderImpl.java:48)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:150)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:564)
> > > > > > > > >              at
> > > > > > > > >
> > > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:171)
> > > > > > > > >              ... 9 more
> > > > > > > > >       Caused by:
> > > > > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> > > > > > > > > counts of IllegalAnnotationExceptions
> > > > > > > > >       java.lang.StackTraceElement does not have a no-arg
> > > default
> > > > > > > > > constructor.
> > > > > > > > >              this problem is related to the following 
> > > > > > > > > location:
> > > > > > > > >                      at java.lang.StackTraceElement
> > > > > > > > >                      at public java.lang.StackTraceElement[]
> > > > > > > > > java.lang.Throwable.getStackTrace()
> > > > > > > > >                      at java.lang.Throwable
> > > > > > > > >                      at java.lang.Exception
> > > > > > > > >                      at java.sql.SQLException
> > > > > > > > >                      at protected java.sql.SQLException
> > > > > > > > > tuscany.jaxws.SQLExceptionBean.nextException
> > > > > > > > >                      at tuscany.jaxws.SQLExceptionBean
> > > > > > > > >
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
> > > > > > > > >              at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > > Method)
> > > > > > > > >              at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > > > > Source)
> > > > > > > > >              at
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > > > > > > Source)
> > > > > > > > >              at java.lang.reflect.Method.invoke(Unknown 
> > > > > > > > > Source)
> > > > > > > > >              at
> > > javax.xml.bind.ContextFinder.newInstance(Unknown
> > > > > > > Source)
> > > > > > > > >              at javax.xml.bind.ContextFinder.find(Unknown
> > > Source)
> > > > > > > > >              at javax.xml.bind.JAXBContext.newInstance(Unknown
> > > > > Source)
> > > > > > > > >              at javax.xml.bind.JAXBContext.newInstance(Unknown
> > > > > Source)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.getJAXBContext(JAXBContextCache.java:245)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.getJAXBContext(JAXBContextCache.java:284)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBContext(JAXBContextHelper.java:186)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBContext(JAXBContextHelper.java:218)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBTypeHelper.getSchemaDefinitions(JAXBTypeHelper.java:236)
> > > > > > > > >              ... 20 more
> > > > > > > > >       Exception in thread "main"
> > > > > > > > > org.apache.tuscany.sca.node.launcher.LauncherException:
> > > > > > > > > java.lang.reflect.InvocationTargetException
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:373)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
> > > > > > > > >       Caused by: java.lang.reflect.InvocationTargetException
> > > > > > > > >              at
> > > > > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > > Method)
> > > > > > > > >              at
> > > > > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > > > > Source)
> > > > > > > > >              at
> > > > > > > > >
> > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> > > > > > > Source)
> > > > > > > > >              at
> > > java.lang.reflect.Constructor.newInstance(Unknown
> > > > > > > Source)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:340)
> > > > > > > > >              ... 2 more
> > > > > > > > >       Caused by: org.osoa.sca.ServiceRuntimeException:
> > > > > > > > > org.osoa.sca.ServiceRuntimeException:
> > > > > > > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> > > counts
> > > > > of
> > > > > > > > > IllegalAnnotationExceptions
> > > > > > > > >       java.lang.StackTraceElement does not have a no-arg
> > > default
> > > > > > > > > constructor.
> > > > > > > > >              this problem is related to the following 
> > > > > > > > > location:
> > > > > > > > >                      at java.lang.StackTraceElement
> > > > > > > > >                      at public java.lang.StackTraceElement[]
> > > > > > > > > java.lang.Throwable.getStackTrace()
> > > > > > > > >                      at java.lang.Throwable
> > > > > > > > >                      at java.lang.Exception
> > > > > > > > >                      at java.sql.SQLException
> > > > > > > > >                      at protected java.sql.SQLException
> > > > > > > > > tuscany.jaxws.SQLExceptionBean.nextException
> > > > > > > > >                      at tuscany.jaxws.SQLExceptionBean
> > > > > > > > >
> > > > > > > > >              at
> > > > > > > > >
> > > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:174)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromURL(NodeFactoryImpl.java:42)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementationLauncherBootstrap.java:94)
> > > > > > > > >              ... 7 more
> > > > > > > > >       Caused by: org.osoa.sca.ServiceRuntimeException:
> > > > > > > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> > > counts
> > > > > of
> > > > > > > > > IllegalAnnotationExceptions
> > > > > > > > >       java.lang.StackTraceElement does not have a no-arg
> > > default
> > > > > > > > > constructor.
> > > > > > > > >              this problem is related to the following 
> > > > > > > > > location:
> > > > > > > > >                      at java.lang.StackTraceElement
> > > > > > > > >                      at public java.lang.StackTraceElement[]
> > > > > > > > > java.lang.Throwable.getStackTrace()
> > > > > > > > >                      at java.lang.Throwable
> > > > > > > > >                      at java.lang.Exception
> > > > > > > > >                      at java.sql.SQLException
> > > > > > > > >                      at protected java.sql.SQLException
> > > > > > > > > tuscany.jaxws.SQLExceptionBean.nextException
> > > > > > > > >                      at tuscany.jaxws.SQLExceptionBean
> > > > > > > > >
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBTypeHelper.getSchemaDefinitions(JAXBTypeHelper.java:241)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:260)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:307)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:205)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:163)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.buildServiceBindings(ComponentServiceBindingBuilderImpl.java:66)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.build(ComponentServiceBindingBuilderImpl.java:48)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:150)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:564)
> > > > > > > > >              at
> > > > > > > > >
> > > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:171)
> > > > > > > > >              ... 9 more
> > > > > > > > >       Caused by:
> > > > > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> > > > > > > > > counts of IllegalAnnotationExceptions
> > > > > > > > >       java.lang.StackTraceElement does not have a no-arg
> > > default
> > > > > > > > > constructor.
> > > > > > > > >              this problem is related to the following 
> > > > > > > > > location:
> > > > > > > > >                      at java.lang.StackTraceElement
> > > > > > > > >                      at public java.lang.StackTraceElement[]
> > > > > > > > > java.lang.Throwable.getStackTrace()
> > > > > > > > >                      at java.lang.Throwable
> > > > > > > > >                      at java.lang.Exception
> > > > > > > > >                      at java.sql.SQLException
> > > > > > > > >                      at protected java.sql.SQLException
> > > > > > > > > tuscany.jaxws.SQLExceptionBean.nextException
> > > > > > > > >                      at tuscany.jaxws.SQLExceptionBean
> > > > > > > > >
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
> > > > > > > > >              at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > > Method)
> > > > > > > > >              at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > > > > Source)
> > > > > > > > >              at
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > > > > > > Source)
> > > > > > > > >              at java.lang.reflect.Method.invoke(Unknown 
> > > > > > > > > Source)
> > > > > > > > >              at
> > > javax.xml.bind.ContextFinder.newInstance(Unknown
> > > > > > > Source)
> > > > > > > > >              at javax.xml.bind.ContextFinder.find(Unknown
> > > Source)
> > > > > > > > >              at javax.xml.bind.JAXBContext.newInstance(Unknown
> > > > > Source)
> > > > > > > > >              at javax.xml.bind.JAXBContext.newInstance(Unknown
> > > > > Source)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.getJAXBContext(JAXBContextCache.java:245)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.getJAXBContext(JAXBContextCache.java:284)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBContext(JAXBContextHelper.java:186)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBContext(JAXBContextHelper.java:218)
> > > > > > > > >              at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.tuscany.sca.databinding.jaxb.JAXBTypeHelper.getSchemaDefinitions(JAXBTypeHelper.java:236)
> > > > > > > > >              ... 20 more
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >       Some of you knows the why? there is something else to 
> > > > > > > > > add
> > > to
> > > > > > > > > interface a database with a tuscany web service or not?
> > > > > > > > >       I read something  about DAS but I didn't understand the
> > > > > utility.
> > > > > > > > >
> > > > > > > > >       Thank for all
> > > > > > > > >
> > > > > > > > >       Best reguards
> > > > > > > > >
> > > > > > > > >       Marco Piccinni
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >    Hi Marco
> > > > > > > > >
> > > > > > > > >    It looks like it's struggling with parsing your service
> > > > > interface.
> > > > > > > It
> > > > > > > > > looks like it's found a complex type that is incompatible with
> > > > > JAXB.
> > > > > > > Not
> > > > > > > > > sure if the "does not have a no-arg default constructor"
> > > exception
> > > > > is
> > > > > > > > > accurate but take a look at the types in your interface and 
> > > > > > > > > see
> > > > > what is
> > > > > > > > > there. Are you able to post your service interface?
> > > > > > > > >
> > > > > > > > >    Simon
> > > > > > > > >
> > > > > > > > >    Simon
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Hi Marco, can you send the same files in zip or tar format?
> > > > > > > > >
> > > > > > > > > Simon
> > > > > > > > >
> > > > > > > >
> > > > > > > > Hi Marco
> > > > > > > >
> > > > > > > > So the answer is that JAXB doesn't like SQLException. Not sure
> > > why
> > > > > yet
> > > > > > > but
> > > > > > > > can you raise a JIRA so we have a record of the problem in case
> > > > > enyone
> > > > > > > lese
> > > > > > > > gose looking for it. For now are you able to replace 
> > > > > > > > SQLException
> > > > > with
> > > > > > > some
> > > > > > > > other type of exception?
> > > > > > > >
> > > > > > > > Simon
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > Hi Marco
> > > > > >
> > > > > > One of the configurations of the Store tutorial has the shopping 
> > > > > > cart
> > > > > backed
> > > > > > by a database. See [1]
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Simon
> > > > > >
> > > > > > [1]
> > > > > >
> > > > >
> > > http://svn.apache.org/repos/asf/tuscany/java/sca/tutorials/store/assets/services/db/ShoppingCartTableImpl.java
> > > > > >
> > > > >
> > > >
> > > > Strange that that didn't work. The derby jar needs to be accessible to
> > > the
> > > > contribution that holds you component implementation classes. I think
> > > this
> > > > should work by putting it on the classpath I believe. But it needs to be
> > > on
> > > > the classpath of the node running the composite. How are you starting
> > > > Tuscany in this case?
> > > >
> > > > Simon
> > > >
> > >
> > >
> > Hmm tricky. I think this may be because deby is there rather than because
> > deby is missing. Were you expecting to be using deby? I though from the
> > original code you posted you were using mysql?
> >
> > Simon
> >
>
>

Reply via email to