ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <matth...@offthelip.org>
Subject Re: runtime error validating the bpel
Date Mon, 15 Oct 2007 14:41:10 GMT
Hi Claudio,

You 'll need ode-bpel-obj-x.x.jar, the internal ODE object model that we
compile to. By the way if you're just interested by validation you can use
setDryRun(true) on BpelC, this way ODE will run exactly the same compilation
steps but without generating any file.

Cheers,
Matthieu

On 10/15/07, claudio cacciari <c.cacciari@cineca.it> wrote:
>
> Hi,
>
> I'm trying to validate my bpel document, using the ODE 1.1 API related
> to the bpel compiler class.
> But, at runtime, I got this error:
>
> 1354 [main] DEBUG org.apache.ode.bpel.compiler.BpelC  - compile(URL)
> 1404 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://schemas.xmlsoap.org/ws/2003/03/business-process/ ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/bpel4ws_1_1-fivesight.xsd
> 1405 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://schemas.xmlsoap.org/ws/2004/03/business-process/ ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/wsbpel_main-draft-Apr-29-2006.xsd
> 1405 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://docs.oasis-open.org/wsbpel/2.0/process/abstract ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/ws-bpel_abstract_common_base.xsd
> 1405 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://docs.oasis-open.org/wsbpel/2.0/process/executable ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/ws-bpel_executable.xsd
> 1405 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://docs.oasis-open.org/wsbpel/2.0/plnktype ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/ws-bpel_plnktype.xsd
> 1405 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://docs.oasis-open.org/wsbpel/2.0/serviceref ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/ws-bpel_serviceref.xsd
> 1406 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://docs.oasis-open.org/wsbpel/2.0/varprop ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/ws-bpel_varprop.xsd
> 1406 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://www.w3.org/2001/xml.xsd ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/xml.xsd
> 1406 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://schemas.xmlsoap.org/wsdl/ ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/wsdl.xsd
> 1406 [main] DEBUG org.apache.ode.bpel.compiler.bom.LocalEntityResolver
> - mapping http://schemas.xmlsoap.org/ws/2004/03/partner-link/ ==>
>
> jar:file:/home/acu0/.m2/repository/org/apache/ode/ode-bpel-schemas/1.1/ode-
> bpel-schemas-1.1.jar!/wsbpel_plinkType-draft-Apr-29-2006.xsd
> 1450 [main] ERROR org.aware.modeler.bpel.ExecutableWorkflow  - Error on
> validation! The error is org/apache/ode/bpel/o/OActivity
> java.lang.NoClassDefFoundError: org/apache/ode/bpel/o/OActivity
>     at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:210)
>     at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
>     at org.aware.modeler.bpel.compiler.Validator.validate(Validator.java
> :54)
>     at
> org.aware.modeler.bpel.ExecutableWorkflow.validate(ExecutableWorkflow.java
> :80)
>     at org.aware.modeler.bpel.Modeler.main(Modeler.java:953)
>
> Where I can find the class org/apache/ode/bpel/o/OActivity ?
> In my classpath there are the following ode libs:
> ode-utils
> ode-bpel-compiler
> ode-tools
> ode-bpel-schemas
>
> This is my code snippet:
>
> public class Validator implements CompileListener {
>
>         [...]
>
>         BpelC bcc = BpelC.newBpelCompiler();
>
>         bcc.setCompileListener(this);
>
>
>
>         try {
>
>             bcc.compile(bpelFile);
>
>         } catch (IOException ioe) {
>
>             error += abort + ioe.getMessage() + "\n";
>
>             return false;
>
>         } catch (CompilationException e) {
>
>             error += abort + e.getMessage() + "\n";
>
>             error += "cause: " + e.getCause() + "\n";
>
>             return false;
>
>         }
>
>
>         [...]
>
> }
>
>
> Thanks and Regards,
> Claudio Cacciari
>
> --
> ----------------------------------------
> Claudio Cacciari - c.cacciari@cineca.it
> System and Technology Department
> CINECA - http://www.cineca.it
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message