You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by "ReneR." <Re...@gmx.de> on 2009/10/25 18:14:15 UTC

Creating own events in ODE

Hello,

is it possible to create your own events in ODE?
We are currently working on a project with BPEL and ODE and we need to
create new activities.
To monitore these activities we would need some new events.

So if it is possible to create own events i would also like to know how this
can be done.

Greetings!
-- 
View this message in context: http://www.nabble.com/Creating-own-events-in-ODE-tp26049832p26049832.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: complex type

Posted by Rafal Rusin <ra...@gmail.com>.
FYI those were changes I made for DynamicService.java


2009/10/29 Pascal Aho <P....@gmx.net>:
> Hi Rafal,
>
> I now fix the bug in my version of ODE and can work without error with complex type.
>
> Thank you again for your help. It was important.
>
> Cheers,
>
> Pascal.
>
>
>
> -------- Original-Nachricht --------
>> Datum: Thu, 29 Oct 2009 15:19:32 +0100
>> Von: Rafal Rusin <ra...@gmail.com>
>> An: user@ode.apache.org
>> Betreff: Re: complex type
>
>> As I remember, there was a small bug in ODE, which caused that.
>> Instead of looking for
>> org.apache.ode.bpel.pmapi.PolicyDocument.Factory, it should look for
>> org.apache.ode.bpel.pmapi.PolicyDocument$Factory
>> I fixed it to get replayer working. So you can check out latest ODE
>> 1.X to have it working.
>> Additionally you can check out ReplayerJbiTest in jbi package to have
>> an example of complex type invocations via management api (replay
>> operation).
>>
>> 2009/10/29 Pascal Aho <P....@gmx.net>:
>> > Hello everybody,
>> >
>> > I create a complex Type and use it as type for an input of a web service
>> method.
>> >
>> > xmlBean creates automatically the corresponding classes.
>> >
>> > I can build the project without error.
>> > But when I try to call the method of the web service I get an error.
>> >
>> > The class created by xmlBean contains a subclass Factory, which reflect
>> class should be automatically created when the class corresponding to the
>> complex type is created. Following is the error I get
>> >
>> > <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>> >   <soapenv:Body>
>> >      <soapenv:Fault>
>> >         <faultcode>soapenv:Server</faultcode>
>> >         <faultstring>java.lang.RuntimeException: Couldn't find class
>> org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml
>> bean</faultstring>
>> >         <detail>
>> >            <axis2ns1:RuntimeException
>> xmlns:axis2ns1="http://www.apache.org/ode/pmapi">java.lang.RuntimeException: Couldn't find class
>> org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml bean
>> >        at
>> org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:137)
>> >        at
>> org.apache.ode.il.DynamicService.extractParams(DynamicService.java:98)
>> >        at
>> org.apache.ode.il.DynamicService.invoke(DynamicService.java:69)
>> >        at
>> org.apache.ode.axis2.service.SubscriptionService$SubscriptionMessageReceiver.invokeBusinessLogic(SubscriptionService.java:124)
>> >        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:637)
>> >        at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> >        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>> >        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >        at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> >        at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> >        at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> >        at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> >        at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> >        at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>> >        at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>> >        at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>> >        at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>> >        at java.lang.Thread.run(Thread.java:595)
>> > Caused by: java.lang.ClassNotFoundException:
>> org.apache.ode.bpel.pmapi.PolicyDocument.Factory
>> >        at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>> >        at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>> >        at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> >        at java.lang.Class.forName0(Native Method)
>> >        at java.lang.Class.forName(Class.java:164)
>> >        at
>> org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:133)
>> >        ... 21 more</axis2ns1:RuntimeException>
>> >         </detail>
>> >      </soapenv:Fault>
>> >   </soapenv:Body>
>> > </soapenv:Envelope>
>> >
>> >
>> > Thanks,
>> >
>> > Pascal.
>> > --
>> > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
>> 3.5 -
>> > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
>> >
>>
>>
>> Regards,
>> --
>> Rafał Rusin
>> http://www.touk.pl
>> http://top.touk.pl
>> http://people.apache.org/~rr/
>
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
>



-- 
Rafał Rusin
http://www.touk.pl
http://top.touk.pl
http://people.apache.org/~rr/

Re: complex type

Posted by Pascal Aho <P....@gmx.net>.
Hi Rafal,

I now fix the bug in my version of ODE and can work without error with complex type.

Thank you again for your help. It was important.

Cheers,

Pascal.



-------- Original-Nachricht --------
> Datum: Thu, 29 Oct 2009 15:19:32 +0100
> Von: Rafal Rusin <ra...@gmail.com>
> An: user@ode.apache.org
> Betreff: Re: complex type

> As I remember, there was a small bug in ODE, which caused that.
> Instead of looking for
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory, it should look for
> org.apache.ode.bpel.pmapi.PolicyDocument$Factory
> I fixed it to get replayer working. So you can check out latest ODE
> 1.X to have it working.
> Additionally you can check out ReplayerJbiTest in jbi package to have
> an example of complex type invocations via management api (replay
> operation).
> 
> 2009/10/29 Pascal Aho <P....@gmx.net>:
> > Hello everybody,
> >
> > I create a complex Type and use it as type for an input of a web service
> method.
> >
> > xmlBean creates automatically the corresponding classes.
> >
> > I can build the project without error.
> > But when I try to call the method of the web service I get an error.
> >
> > The class created by xmlBean contains a subclass Factory, which reflect
> class should be automatically created when the class corresponding to the
> complex type is created. Following is the error I get
> >
> > <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> >   <soapenv:Body>
> >      <soapenv:Fault>
> >         <faultcode>soapenv:Server</faultcode>
> >         <faultstring>java.lang.RuntimeException: Couldn't find class
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml
> bean</faultstring>
> >         <detail>
> >            <axis2ns1:RuntimeException
> xmlns:axis2ns1="http://www.apache.org/ode/pmapi">java.lang.RuntimeException: Couldn't find class
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml bean
> >        at
> org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:137)
> >        at
> org.apache.ode.il.DynamicService.extractParams(DynamicService.java:98)
> >        at
> org.apache.ode.il.DynamicService.invoke(DynamicService.java:69)
> >        at
> org.apache.ode.axis2.service.SubscriptionService$SubscriptionMessageReceiver.invokeBusinessLogic(SubscriptionService.java:124)
> >        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:637)
> >        at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> >        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
> >        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
> >        at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.ClassNotFoundException:
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory
> >        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> >        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
> >        at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:164)
> >        at
> org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:133)
> >        ... 21 more</axis2ns1:RuntimeException>
> >         </detail>
> >      </soapenv:Fault>
> >   </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> > Thanks,
> >
> > Pascal.
> > --
> > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
> 3.5 -
> > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
> >
> 
> 
> Regards,
> -- 
> Rafał Rusin
> http://www.touk.pl
> http://top.touk.pl
> http://people.apache.org/~rr/

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

Re: complex type

Posted by Pascal Aho <P....@gmx.net>.
Hi Rafal,

Thank for your fast Help. I use ODE 1.3.2 and I already integrate some futures and it will take a time to do the same with the version 1.3.3 and I have to finish the work soon. So I try to correct the bug my self by changing in DynamicService.java under convertFormOM this part

} else if (XmlObject.class.isAssignableFrom(clazz)) {
            try {
                Class beanFactory = Class.forName(clazz.getCanonicalName() + ".Factory");
                return beanFactory.getMethod("parse", XMLStreamReader.class)
                        .invoke(elmt.getXMLStreamReaderWithoutCaching());


into 


} else if (XmlObject.class.isAssignableFrom(clazz)) {
            try {
            	//Class tmp = Class.forName(clazz.getCanonicalName());
            	//return (Object)elmt;
                Class beanFactory = Class.forName(clazz.getCanonicalName() + "$Factory");
                return beanFactory.getMethod("parse", XMLStreamReader.class)
                        .invoke(elmt.getXMLStreamReaderWithoutCaching());


The only change is: I replace the "."  with $ before Factory.

I don't get the previous error any more, but another error.

I use ode.war and not jbi and I don't have no knowledge of jbi. Should I make further changes to fix the bug?

        <faultcode>soapenv:Server</faultcode>
         <faultstring>java.lang.IllegalArgumentException: wrong number of arguments</faultstring>
         <detail>
            <axis2ns3:IllegalArgumentException xmlns:axis2ns3="http://www.apache.org/ode/pmapi">java.lang.IllegalArgumentException: wrong number of arguments
	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:585)
	at org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:135)
	at org.apache.ode.il.DynamicService.extractParams(DynamicService.java:98)
	at org.apache.ode.il.DynamicService.invoke(DynamicService.java:69)
	at org.apache.ode.axis2.service.SubscriptionService$SubscriptionMessageReceiver.invokeBusinessLogic(SubscriptionService.java:124)
	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:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Thread.java:595)</axis2ns3:IllegalArgumentException>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Thanks in advance.

Pascal.


-------- Original-Nachricht --------
> Datum: Thu, 29 Oct 2009 15:19:32 +0100
> Von: Rafal Rusin <ra...@gmail.com>
> An: user@ode.apache.org
> Betreff: Re: complex type

> As I remember, there was a small bug in ODE, which caused that.
> Instead of looking for
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory, it should look for
> org.apache.ode.bpel.pmapi.PolicyDocument$Factory
> I fixed it to get replayer working. So you can check out latest ODE
> 1.X to have it working.
> Additionally you can check out ReplayerJbiTest in jbi package to have
> an example of complex type invocations via management api (replay
> operation).
> 
> 2009/10/29 Pascal Aho <P....@gmx.net>:
> > Hello everybody,
> >
> > I create a complex Type and use it as type for an input of a web service
> method.
> >
> > xmlBean creates automatically the corresponding classes.
> >
> > I can build the project without error.
> > But when I try to call the method of the web service I get an error.
> >
> > The class created by xmlBean contains a subclass Factory, which reflect
> class should be automatically created when the class corresponding to the
> complex type is created. Following is the error I get
> >
> > <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> >   <soapenv:Body>
> >      <soapenv:Fault>
> >         <faultcode>soapenv:Server</faultcode>
> >         <faultstring>java.lang.RuntimeException: Couldn't find class
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml
> bean</faultstring>
> >         <detail>
> >            <axis2ns1:RuntimeException
> xmlns:axis2ns1="http://www.apache.org/ode/pmapi">java.lang.RuntimeException: Couldn't find class
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml bean
> >        at
> org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:137)
> >        at
> org.apache.ode.il.DynamicService.extractParams(DynamicService.java:98)
> >        at
> org.apache.ode.il.DynamicService.invoke(DynamicService.java:69)
> >        at
> org.apache.ode.axis2.service.SubscriptionService$SubscriptionMessageReceiver.invokeBusinessLogic(SubscriptionService.java:124)
> >        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:637)
> >        at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> >        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
> >        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
> >        at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.ClassNotFoundException:
> org.apache.ode.bpel.pmapi.PolicyDocument.Factory
> >        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
> >        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
> >        at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:164)
> >        at
> org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:133)
> >        ... 21 more</axis2ns1:RuntimeException>
> >         </detail>
> >      </soapenv:Fault>
> >   </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> > Thanks,
> >
> > Pascal.
> > --
> > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
> 3.5 -
> > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
> >
> 
> 
> Regards,
> -- 
> Rafał Rusin
> http://www.touk.pl
> http://top.touk.pl
> http://people.apache.org/~rr/

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

Re: complex type

Posted by Rafal Rusin <ra...@gmail.com>.
As I remember, there was a small bug in ODE, which caused that.
Instead of looking for
org.apache.ode.bpel.pmapi.PolicyDocument.Factory, it should look for
org.apache.ode.bpel.pmapi.PolicyDocument$Factory
I fixed it to get replayer working. So you can check out latest ODE
1.X to have it working.
Additionally you can check out ReplayerJbiTest in jbi package to have
an example of complex type invocations via management api (replay
operation).

2009/10/29 Pascal Aho <P....@gmx.net>:
> Hello everybody,
>
> I create a complex Type and use it as type for an input of a web service method.
>
> xmlBean creates automatically the corresponding classes.
>
> I can build the project without error.
> But when I try to call the method of the web service I get an error.
>
> The class created by xmlBean contains a subclass Factory, which reflect class should be automatically created when the class corresponding to the complex type is created. Following is the error I get
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Body>
>      <soapenv:Fault>
>         <faultcode>soapenv:Server</faultcode>
>         <faultstring>java.lang.RuntimeException: Couldn't find class org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml bean</faultstring>
>         <detail>
>            <axis2ns1:RuntimeException xmlns:axis2ns1="http://www.apache.org/ode/pmapi">java.lang.RuntimeException: Couldn't find class org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml bean
>        at org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:137)
>        at org.apache.ode.il.DynamicService.extractParams(DynamicService.java:98)
>        at org.apache.ode.il.DynamicService.invoke(DynamicService.java:69)
>        at org.apache.ode.axis2.service.SubscriptionService$SubscriptionMessageReceiver.invokeBusinessLogic(SubscriptionService.java:124)
>        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:637)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.ClassNotFoundException: org.apache.ode.bpel.pmapi.PolicyDocument.Factory
>        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:164)
>        at org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:133)
>        ... 21 more</axis2ns1:RuntimeException>
>         </detail>
>      </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>
>
>
> Thanks,
>
> Pascal.
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
>


Regards,
-- 
Rafał Rusin
http://www.touk.pl
http://top.touk.pl
http://people.apache.org/~rr/

complex type

Posted by Pascal Aho <P....@gmx.net>.
Hello everybody,

I create a complex Type and use it as type for an input of a web service method.

xmlBean creates automatically the corresponding classes.

I can build the project without error.
But when I try to call the method of the web service I get an error.

The class created by xmlBean contains a subclass Factory, which reflect class should be automatically created when the class corresponding to the complex type is created. Following is the error I get

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>java.lang.RuntimeException: Couldn't find class org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml bean</faultstring>
         <detail>
            <axis2ns1:RuntimeException xmlns:axis2ns1="http://www.apache.org/ode/pmapi">java.lang.RuntimeException: Couldn't find class org.apache.ode.bpel.pmapi.PolicyDocument.Factory to instantiate xml bean
	at org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:137)
	at org.apache.ode.il.DynamicService.extractParams(DynamicService.java:98)
	at org.apache.ode.il.DynamicService.invoke(DynamicService.java:69)
	at org.apache.ode.axis2.service.SubscriptionService$SubscriptionMessageReceiver.invokeBusinessLogic(SubscriptionService.java:124)
	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:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: org.apache.ode.bpel.pmapi.PolicyDocument.Factory
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:164)
	at org.apache.ode.il.DynamicService.convertFromOM(DynamicService.java:133)
	... 21 more</axis2ns1:RuntimeException>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Thanks,

Pascal.
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

Re: Creating own events in ODE

Posted by "ReneR." <Re...@gmx.de>.
Ok thx, your post was a really BIG help for me, now i am starting to get it
:)

But what i thought about was creating new Event TYPES. In our case it would
be ConnectionEvents and DataManagementEvents. Is this possible? 

My thoughts about that would be to create a new class, that extends the
BpelEvent class, put the basic behavior for all ConnectionEvents in this
class and then create the specific events like ConnectionTimeOut Events that
extend this class.

The main problem could be to add these to the event hierarchie. Is this done
in the same way as with the other events? So if I extend the new Event TYPES
from BPEL Event and add the TYPES to the enum list i am good to go, or would
this be more difficult?

Greetings René

-- 
View this message in context: http://old.nabble.com/Creating-own-events-in-ODE-tp26049832p26164477.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: Creating own events in ODE

Posted by Daniel Schleicher <sc...@googlemail.com>.
Hi Rene,

most of the times the new event classes you are adding automatically have
the right TYPE value (declared in the class BpelEvent) because you place
them in the class hierarchy. For example when your class extends the class
ActivityEvent the TYPE of the new event class is automatically
activityLifecxycle. This is the case because the method getType in
ActivityEvent is implemented to return this TYPE.

The classes with names in capitals like ACTIVITY are implementing the
behavior of the different BPEL constructs.  So, if you want to throw a new
event it must happen in such a class. The class you place your new event in
must also extend the class ACTIVITY because the method sendEvent is
implemented there.
In order to place your event in the right class, just debug through the
classes and find a suitable position for it. For example I inserted a
LinkSetTrue event in the run method of the class TCONDINTERCEPT because
there was code that evaluated link conditions:

boolean val = evaluateTransitionCondition(olink.transitionCondition);

                                linfo.pub.linkStatus(val);

                                //Check if linkstatus was set to true or
false

                                if (val) {

                                    //Before a link is set to true we have
to throw an event.

                                    LinkSetTrueEvent linkSetTrueEvent
= newLinkSetTrueEvent();

                                    sendEvent(linkSetTrueEvent);

                                } else {

                                    //Throw an event when a link is set to
false

                                    LinkSetFalseEvent linkSetFalseEvent =
new LinkSetFalseEvent();

                                    sendEvent(linkSetFalseEvent);

                                }


Hope that helps


Daniel

On Thu, Oct 29, 2009 at 2:03 PM, ReneR. <Re...@gmx.de> wrote:

>
> Thanks for your help!
>
> But i still got some more questions. I found the event classes and I think
> its also clear to me how to add them. I just need to add my new
> event-classes to the enum TYPEs, right?
> The biggest problem I have right now is that I dont understand where I need
> to say WHEN the events are sent. I looked up the ACTIVITY class, but i
> didnt
> find anything helpfull there.
>
> We want to create some new activities that use BPEL to connect to a
> datasource.
> Because of that we first need to create these activities and also the
> events
> for that, for example "Connection_TimeOut" or something like that. So right
> now I want to know, if i created that event, where do I say that the event
> should be thrown?
>
> It would be helpfull, if someone could give me a small example, like an new
> hello world event and how to integrate it in ODE.
>
>
>
> Daniel Schleicher wrote:
> >
> > Hi Rene,
> >
> > all ODE-Events are located in the package "org.apache.ode.bpel.evt". Here
> > you can add your new event-classes. An event can only be thrown if you
> > integrate the new event class in the event hierarchy. The root class of
> > this
> > hierarchy is "org.apache.ode.bpel.evt.BpelEvent".
> >
> > To throw an event the method "sendEvent" of the class
> > "org.apache.ode.bpel.runtime.ACTIVITY" musst be invoked. You can check if
> > the new event was thrown correctly if you register an event listener and
> > look for that event.
> >
> > Best regards,
> >
> > Daniel
> >
> > On Sun, Oct 25, 2009 at 6:14 PM, ReneR. <Re...@gmx.de> wrote:
> >
> >>
> >> Hello,
> >>
> >> is it possible to create your own events in ODE?
> >> We are currently working on a project with BPEL and ODE and we need to
> >> create new activities.
> >> To monitore these activities we would need some new events.
> >>
> >> So if it is possible to create own events i would also like to know how
> >> this
> >> can be done.
> >>
> >> Greetings!
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Creating-own-events-in-ODE-tp26049832p26049832.html
> >> Sent from the Apache Ode User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Creating-own-events-in-ODE-tp26049832p26112660.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>

Re: Creating own events in ODE

Posted by "ReneR." <Re...@gmx.de>.
Thanks for your help!

But i still got some more questions. I found the event classes and I think
its also clear to me how to add them. I just need to add my new
event-classes to the enum TYPEs, right?
The biggest problem I have right now is that I dont understand where I need
to say WHEN the events are sent. I looked up the ACTIVITY class, but i didnt
find anything helpfull there.

We want to create some new activities that use BPEL to connect to a
datasource.
Because of that we first need to create these activities and also the events
for that, for example "Connection_TimeOut" or something like that. So right
now I want to know, if i created that event, where do I say that the event
should be thrown?

It would be helpfull, if someone could give me a small example, like an new
hello world event and how to integrate it in ODE.



Daniel Schleicher wrote:
> 
> Hi Rene,
> 
> all ODE-Events are located in the package "org.apache.ode.bpel.evt". Here
> you can add your new event-classes. An event can only be thrown if you
> integrate the new event class in the event hierarchy. The root class of
> this
> hierarchy is "org.apache.ode.bpel.evt.BpelEvent".
> 
> To throw an event the method "sendEvent" of the class
> "org.apache.ode.bpel.runtime.ACTIVITY" musst be invoked. You can check if
> the new event was thrown correctly if you register an event listener and
> look for that event.
> 
> Best regards,
> 
> Daniel
> 
> On Sun, Oct 25, 2009 at 6:14 PM, ReneR. <Re...@gmx.de> wrote:
> 
>>
>> Hello,
>>
>> is it possible to create your own events in ODE?
>> We are currently working on a project with BPEL and ODE and we need to
>> create new activities.
>> To monitore these activities we would need some new events.
>>
>> So if it is possible to create own events i would also like to know how
>> this
>> can be done.
>>
>> Greetings!
>> --
>> View this message in context:
>> http://www.nabble.com/Creating-own-events-in-ODE-tp26049832p26049832.html
>> Sent from the Apache Ode User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Creating-own-events-in-ODE-tp26049832p26112660.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: Creating own events in ODE

Posted by Daniel Schleicher <sc...@googlemail.com>.
Hi Rene,

all ODE-Events are located in the package "org.apache.ode.bpel.evt". Here
you can add your new event-classes. An event can only be thrown if you
integrate the new event class in the event hierarchy. The root class of this
hierarchy is "org.apache.ode.bpel.evt.BpelEvent".

To throw an event the method "sendEvent" of the class
"org.apache.ode.bpel.runtime.ACTIVITY" musst be invoked. You can check if
the new event was thrown correctly if you register an event listener and
look for that event.

Best regards,

Daniel

On Sun, Oct 25, 2009 at 6:14 PM, ReneR. <Re...@gmx.de> wrote:

>
> Hello,
>
> is it possible to create your own events in ODE?
> We are currently working on a project with BPEL and ODE and we need to
> create new activities.
> To monitore these activities we would need some new events.
>
> So if it is possible to create own events i would also like to know how
> this
> can be done.
>
> Greetings!
> --
> View this message in context:
> http://www.nabble.com/Creating-own-events-in-ODE-tp26049832p26049832.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>