Powered By Blogger

Thursday, May 17, 2012

ORABPEL-01005 Failed to compile bpel generated classes.The class path setting is incorrect.

This thread  discuss about one issue we got when we deploy SOA 11g BPEL composite from Jdev11g.
build in Jdev  succeeds but deployment on to server is filing.That means Jdev can compile the generated Java classes but server couldn't compile same classes.

When  I mention Java classes that doesn't mean my SOA composite has some dependency on Java classes or BPEL is carrying Jar files in its Libraray and classpath.It means Java classes generated by engine which are representation of our composite and its components.XML representation is converted back to Java and executed on server during run time.

Error in Jdev when we deploy


---->response code=500, error:There was an error deploying the composite on AdminServer: Error occurred during deployoment of component: OrderImport to service engine: implementation.bpel, for composite: OrderProcess: ORABPEL-01005

[deployComposite]

[deployComposite] Failed to compile bpel generated classes.

[deployComposite] failure to compile the generated BPEL classes for BPEL process "OrderproProcess" of composite "default/OrderproProcess!1.0*soa_4556-23d3-4bd3561-97e7a1b14e52"

[deployComposite] The class path setting is incorrect.

[deployComposite] Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.

[deployComposite] .

for example I can see error in Adminserver.out  log file
/oracle/domains/soa_domain/servers/AdminServer/dc/soa_968d12a9-7b6d-4ccb-84fa-97d870246c8e/SCA-INF/bpel/OrderProcess/src/orabpel/OrderproProcess/BPEL_BIN.java:253: illegal escape character
When I open above mentioned java file on server at specified location, I can see

__pa.setNSPrefix("tns", "http:\/\/xmlns.oracle.com\/bpel\/workflow\/taskService");


Solution

The reason for above error is, we have added certain third-party jars to server PRE-CLASS PATH in SetSOADomain.sh file, especially we have added them in first line of CLASS-PATH.
The jar file has incompatibe classes for commons-lang which is causing this issue.

Now we have added them at the last place in class path and that resolved this issue.

1 comment:

  1. We don't see PRE-CLASS PATH in SetSOADomain.sh file.We are on SOA Suite 11.1.1.6 Please suggest.

    ReplyDelete