I am a student of Faculty of Informatics and Information Technologies
on Slovak University of Technology in Bratislava and I am currently
working on the school project concerning the usage of Aspect-Oriented
Approach in SOA. I focus the work on language AO4BPEL and I would like
to make the working example of integrating few aspects into process
workflow and I would like to use your AO4BPEL engine which I
downloaded from https://github.com/alook/ao4bpel2
I managed to build the engine and deploy it to my local Tomcat.
I tried to run processes which I found in the examples directory of
the built project and they worked. First I tied to deploy these
processes trough ode’s GUI but it didn’t work for me. Maybe I did
something wrong. But then I copied them to ode\WEB-INF\processes
directory. After that processes appeared in ode’s GUI Deployment tab
and everything works fine. These were regular BPEL processes.
I found also the examples using aspects
(https://github.com/alook/ao4bpel2-examples) and I would like to make
them work as well but until now I wasn’t successful. I deployed the
HelloWorld process (by copying it to ode\WEB-INF\processes directory)
and web services and they work fine. Now I would like to deploy the
aspect CountingAspect but I am not sure how to make it work. First I
tried to deploy the aspect using ode’s GUI (Aspect Deployment tab) but
I have the same problem as I mentioned before by processes deployment.
In more detail when I try to upload the CountingAspect.zip file (which
contains CounterService.wsdl, deploy.xml, IncreaseCounter.aspect and
IncreaseCounter.wsdl) I get the message “Transport error: 404 Error:
Not Found”. So I tried to deploy the directory with these files
manually by coping it to the same folder as processes
(ode\WEB-INF\processes) but it doesn’t work. I cannot see the
deployed aspect in ode’s GUI and when I invoke the HelloWorld process
which should be affected by this aspect it runs and ends as regular
without changes which IncreaseCounter.aspect should have done.
If you could advice me how to deploy the aspect correctly to make it
work it would be very helpful for me.
Thank you very much in advance.
Matus Novotny
the BPEL engine needs to be deployed at http://localhost:8080/ao4ode
(not http://localhost:8080/ode). Please just rename ode.war to
ao4ode.war and deploy it again. Aspects need to be deployed using the
web interface (or the deployment web service). They are stored at
$TOMCAT_HOME/webapps/ao4ode/WEB-INF/aspects.
I updated the Rakefile so that the buildr package task will name the
resulting war file correctly.
Thanks for you feedback!
Kind regards,
Alexander
On 22.11.2011 03:25, Mat� Novotn� wrote:
> Hello,
>
> I am a student of Faculty of Informatics and Information Technologies
> on Slovak University of Technology in Bratislava and I am currently
> working on the school project concerning the usage of Aspect-Oriented
> Approach in SOA. I focus the work on language AO4BPEL and I would like
> to make the working example of integrating few aspects into process
> workflow and I would like to use your AO4BPEL engine which I
> downloaded from https://github.com/alook/ao4bpel2
> I managed to build the engine and deploy it to my local Tomcat.
>
> I tried to run processes which I found in the examples directory of
> the built project and they worked. First I tied to deploy these
> processes trough ode�s GUI but it didn�t work for me. Maybe I did
> something wrong. But then I copied them to ode\WEB-INF\processes
> directory. After that processes appeared in ode�s GUI Deployment tab
> and everything works fine. These were regular BPEL processes.
>
> I found also the examples using aspects
> (https://github.com/alook/ao4bpel2-examples) and I would like to make
> them work as well but until now I wasn�t successful. I deployed the
> HelloWorld process (by copying it to ode\WEB-INF\processes directory)
> and web services and they work fine. Now I would like to deploy the
> aspect CountingAspect but I am not sure how to make it work. First I
> tried to deploy the aspect using ode�s GUI (Aspect Deployment tab) but
> I have the same problem as I mentioned before by processes deployment.
> In more detail when I try to upload the CountingAspect.zip file (which
> contains CounterService.wsdl, deploy.xml, IncreaseCounter.aspect and
> IncreaseCounter.wsdl) I get the message �Transport error: 404 Error:
> Not Found�. So I tried to deploy the directory with these files
> manually by coping it to the same folder as processes
> (ode\WEB-INF\processes) but it doesn�t work. I cannot see the
> deployed aspect in ode�s GUI and when I invoke the HelloWorld process
> which should be affected by this aspect it runs and ends as regular
> without changes which IncreaseCounter.aspect should have done.
>
> If you could advice me how to deploy the aspect correctly to make it
> work it would be very helpful for me.
>
> Thank you very much in advance.
>
> Matus Novotny
>
--
Alexander Look
Alexanderstr. 29, 64283 Darmstadt
Tel.: +49 6151 5209774 | Mail: ma...@alook.org
On 22. Nov, 06:02 h., Alexander Look <m...@alook.org> wrote:
> Hello Matus,
>
> the BPEL engine needs to be deployed athttp://localhost:8080/ao4ode
> (nothttp://localhost:8080/ode). Please just rename ode.war to
> ao4ode.war and deploy it again. Aspects need to be deployed using the
> web interface (or the deployment web service). They are stored at
> $TOMCAT_HOME/webapps/ao4ode/WEB-INF/aspects.
>
> I updated the Rakefile so that the buildr package task will name the
> resulting war file correctly.
>
> Thanks for you feedback!
>
> Kind regards,
> Alexander
>
> On 22.11.2011 03:25, Mat Novotn wrote:
>
>
>
>
>
>
>
>
>
> > Hello,
>
> > I am a student of Faculty of Informatics and Information Technologies
> > on Slovak University of Technology in Bratislava and I am currently
> > working on the school project concerning the usage of Aspect-Oriented
> > Approach in SOA. I focus the work on language AO4BPEL and I would like
> > to make the working example of integrating few aspects into process
> > workflow and I would like to use your AO4BPEL engine which I
> > downloaded fromhttps://github.com/alook/ao4bpel2
> > I managed to build the engine and deploy it to my local Tomcat.
>
> > I tried to run processes which I found in the examples directory of
> > the built project and they worked. First I tied to deploy these
> > processes trough ode s GUI but it didn t work for me. Maybe I did
> > something wrong. But then I copied them to ode\WEB-INF\processes
> > directory. After that processes appeared in ode s GUI Deployment tab
> > and everything works fine. These were regular BPEL processes.
>
> > I found also the examples using aspects
> > (https://github.com/alook/ao4bpel2-examples) and I would like to make
> > them work as well but until now I wasn t successful. I deployed the
> > HelloWorld process (by copying it to ode\WEB-INF\processes directory)
> > and web services and they work fine. Now I would like to deploy the
> > aspect CountingAspect but I am not sure how to make it work. First I
> > tried to deploy the aspect using ode s GUI (Aspect Deployment tab) but
> > I have the same problem as I mentioned before by processes deployment.
> > In more detail when I try to upload the CountingAspect.zip file (which
> > contains CounterService.wsdl, deploy.xml, IncreaseCounter.aspect and
> > IncreaseCounter.wsdl) I get the message Transport error: 404 Error:
> > Not Found . So I tried to deploy the directory with these files
> > manually by coping it to the same folder as processes
> > (ode\WEB-INF\processes) but it doesn t work. I cannot see the
> > deployed aspect in ode s GUI and when I invoke the HelloWorld process
> > which should be affected by this aspect it runs and ends as regular
> > without changes which IncreaseCounter.aspect should have done.
>
> > If you could advice me how to deploy the aspect correctly to make it
> > work it would be very helpful for me.
>
> > Thank you very much in advance.
>
> > Matus Novotny
>
> --
> Alexander Look
> Alexanderstr. 29, 64283 Darmstadt
> Tel.: +49 6151 5209774 | Mail: m...@alook.org
Good to hear!
Let us know, if you need further help at any time.
Tom
> -----Ursprüngliche Nachricht-----
> Von: ao4...@googlegroups.com [mailto:ao4...@googlegroups.com] Im
> Auftrag von Matus
> Gesendet: Donnerstag, 24. November 2011 10:44
> An: AO4BPEL
> Betreff: Re: Fwd: AO4BPEL - Apache ODE - aspec deployment
Matus Novotny
The scope of an aspect in AO4BPEL 2.0 can be defined using a Prolog
query that is based on the facts (events) collected during process
execution. If you don't specify a scope, it will default to "true." and
thus not reduce the join points that are "visible" to your aspect.
Please send me your processes, services and aspects for testing.
Kind regards,
Alexander
On 22.12.2011 20:26, Mat� Novotn� wrote:
> Hello,
> I am working with your engine and I have one more question. I managed
> to create and deploy two bpel processes and also deploy one aspect.
> This aspect should affect both of my processes. The aspect works fine
> when only one of these processes is deployed. When I deploy both of
> them the aspect affects only one of them and second one runs without
> any change that aspect should do. I think that the problem is that I
> didn�t specify the scope of aspect during deployment (I left this