BPEL process calling other BPELS in external project

3 messages Options
Embed this post
Permalink
sendel

BPEL process calling other BPELS in external project

Reply Threaded More More options
Print post
Permalink
Hi.

I have a problem with this structure:
CASA PROBLEM WITH EXTERNAL BPELS
CASAProblem.bmp
I explan it:
- I have two BPEL projects, when each project calls many sub-bpels (subproccess). This last step runs correctly.

-One of the subprocess bpel  calls a bpel process BUT it is in other project.


How can I do it??
It my alternative correctly?
Do I need to add a external module in CASA? How I do it?




MySolution

I try this:
 · Drag and drop the invocation WSDL (SOAP) of the called BPEL.
 · This creates a wsdl wrapper and add a Refrence Resource.

Then:
  · The BPEL`s projects compile correctly.
  · The CASA's projects compile correctly.
  · When try to deploy the main CASA project (invoker) it fails and tell me:


ERROR: Successful execution of Deploy: D:\Proyectos\NetBeansProjects\CAIN_Bla_Project1_CASA/dist/CAIN_Bla_Project1_CASA.zip
WARNING: (JBIMA0404) La implementación del conjunto de servicios CAIN_Bla_Project1_CASA se ha realizado parcialmente; no se han podido implementar algunas unidades de servicio.
    * Component: sun-database-binding
      ERROR: (JDBCBC_DEPLOY_1) Failed to initialize service unit due to: WSDLException (at /definitions/import): faultCode=OTHER_ERROR: Unable to resolve imported document at ''../../CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl'', relative to ''file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-database-binding/sun-database-binding/CAIN_Bla_Project1_BPEL/CAIN_Project2Bla_TriggerWrapper.wsdl'': java.io.FileNotFoundException: This file was not found: file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-database-binding/CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl
    * Component: sun-http-binding
      ERROR: (SOAPBC_DEPLOY_2) HTTPBC-E00201: Error en la implementación. javax.wsdl.WSDLException: WSDLException (at /definitions/import): faultCode=OTHER_ERROR: Unable to resolve imported document at ''../../CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl'', relative to ''file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-http-binding/sun-http-binding/CAIN_Bla_Project1_BPEL/CAIN_Project2Bla_TriggerWrapper.wsdl'': java.io.FileNotFoundException: This file was not found: file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-http-binding/CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl
D:\Proyectos\NetBeansProjects\CAIN_Bla_Project1_CASA\nbproject\build-impl.xml:201: Deployment failure.
BUILD FAILED (total time: 3 seconds)



I find the cause but not the solution. I only view this:
  · The failed imported document it is defined in the wrapper for the BPEL invoked.
  · This file appears as a Reference Resource of the invoker bpel  project.
  · If I define this reference to the real wsdl source it compile but when I try to deploy it dont find the file because it works with relative paths and in the deployed directory really don`t exists.
  · I try to use absolute paths but it no runs


Bye.
jbaragry

Re: BPEL process calling other BPELS in external project

Reply Threaded More More options
Print post
Permalink
http://blogs.sun.com/jason/entry/packaging_and_deploying_reusable_services

rgds
Jason

On Wed, Oct 28, 2009 at 1:57 PM, sendel <[hidden email]> wrote:

>
> Hi.
>
> I have a problem with this structure:
> http://n2.nabble.com/file/n3905296/CASAProblem.bmp
> http://n2.nabble.com/file/n3905296/CASAProblem.bmp CASAProblem.bmp
> I explan it:
> - I have two BPEL projects, when each project calls many sub-bpels
> (subproccess). This last step runs correctly.
>
> -One of the subprocess bpel  calls a bpel process BUT it is in other
> project.
>
>
> How can I do it??
> It my alternative correctly?
> Do I need to add a external module in CASA? How I do it?
>
>
>
>
> MySolution
>
> I try this:
>  · Drag and drop the invocation WSDL (SOAP) of the called BPEL.
>  · This creates a wsdl wrapper and add a Refrence Resource.
>
> Then:
>  · The BPEL`s projects compile correctly.
>  · The CASA's projects compile correctly.
>  · When try to deploy the main CASA project (invoker) it fails and tell me:
>
>
> ERROR: Successful execution of Deploy:
> D:\Proyectos\NetBeansProjects\CAIN_Bla_Project1_CASA/dist/CAIN_Bla_Project1_CASA.zip
> WARNING: (JBIMA0404) La implementación del conjunto de servicios
> CAIN_Bla_Project1_CASA se ha realizado parcialmente; no se han podido
> implementar algunas unidades de servicio.
>    * Component: sun-database-binding
>      ERROR: (JDBCBC_DEPLOY_1) Failed to initialize service unit due to:
> WSDLException (at /definitions/import): faultCode=OTHER_ERROR: Unable to
> resolve imported document at
> ''../../CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl'', relative
> to
> ''file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-database-binding/sun-database-binding/CAIN_Bla_Project1_BPEL/CAIN_Project2Bla_TriggerWrapper.wsdl'':
> java.io.FileNotFoundException: This file was not found:
> file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-database-binding/CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl
>    * Component: sun-http-binding
>      ERROR: (SOAPBC_DEPLOY_2) HTTPBC-E00201: Error en la implementación.
> javax.wsdl.WSDLException: WSDLException (at /definitions/import):
> faultCode=OTHER_ERROR: Unable to resolve imported document at
> ''../../CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl'', relative
> to
> ''file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-http-binding/sun-http-binding/CAIN_Bla_Project1_BPEL/CAIN_Project2Bla_TriggerWrapper.wsdl'':
> java.io.FileNotFoundException: This file was not found:
> file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/CAIN_Bla_Project1_CASA.1/CAIN_Bla_Project1_CASA-sun-http-binding/CAIN_Bla_Vehiculo_BPEL/src/CAIN_Project2Bla_Trigger.wsdl
> D:\Proyectos\NetBeansProjects\CAIN_Bla_Project1_CASA\nbproject\build-impl.xml:201:
> Deployment failure.
> BUILD FAILED (total time: 3 seconds)
>
>
> I find the cause but not the solution. I only view this:
>  · The failed imported document it is defined in the wrapper for the BPEL
> invoked.
>  · This file appears as a Reference Resource of the invoker bpel  project.
>  · If I define this reference to the real wsdl source it compile but when I
> try to deploy it dont find the file because it works with relative paths and
> in the deployed directory really don`t exists.
>  · I try to use absolute paths but it no runs
>
>
> Bye.
> --
> View this message in context: http://n2.nabble.com/BPEL-process-calling-other-BPELS-in-external-project-tp3905296p3905296.html
> Sent from the OpenESB Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

sendel

Re: BPEL process calling other BPELS in external project

Reply Threaded More More options
Print post
Permalink
Thanks Jason Baragry

Your answer it is very usefull. I finally could understand some important terms as "Service Unit".
The solution was very easy.

Regards. Bye.