November 3, 2010

ORABPEL-05250 deploying to Oracle SOA Suite 11g

Problem:

When deploying a composite directly from JDeveloper 11g, I received the following error:
[03:54:05 PM] Error deploying archive sca_HelloWorld_rev1.0.jar to partition "default" on server soa_server1 [oradev.ipnweb.inc:8001]
[03:54:05 PM] HTTP error code returned [500]
[03:54:05 PM] Error message from server:
Error during deployment: Error occurred during deployment of component: HelloWorld to service engine: implementation.bpel, for composite: HelloWorld: ORABPEL-05250
Error deploying BPEL suitcase.error while attempting to deploy the BPEL component file "/u01/app/oracle/middleware/user_projects/domains/soa_domain/deployed-composites/Helloworld_rev1.0/sca_HelloWorld_rev1.0/soa_e402b66f-a3f3-453d-b523-a9547206f05b"; the exception reported is: java.lang.NoClassDefFoundError: Could not initialize class com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver

This error contained an exception thrown by the underlying deployment module.
Verify the exception trace in the log (with logging level set to debug mode).
.
[03:54:05 PM] Check server log for more details.
[03:54:05 PM] Error deploying archive sca_HelloWorld_rev1.0.jar to partition "default" on server soa_server1 [oradev.ipnweb.inc:8001]
[03:54:05 PM] #### Deployment incomplete. ####
[03:54:05 PM] Error deploying archive file:/C:/HelloWorld/deploy/sca_HelloWorld_rev1.0.jar
(oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

Solution:

This was directly related to a recent configuration change we made to the following file:
$MW_HOME/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/classes/META-INF/ext-soa-xpath-functions-config.xml
We edited this file to add a new custom xpath function that we wrote.

Basically, we added the function name and parameters, but we forgot to add the namespace prefix to the first entry of the file (highlighted in bold below):
<?xml version="1.0" encoding="UTF-8"?>
<soa-xpath-functions xmlns="http://xmlns.oracle.com/soa/config/xpath"
                     xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
                     xmlns:utl="http://www.oracle.com/XSL/Transform/java/com.util.getAge">
Once we added this and bounced the server, our code deployments now worked.

Applicable Versions:

Oracle SOA Suite 11g (11.1.1.3)

8 comments:

  1. i don't have the path META-INF/ext-soa-xpath-functions-config.xml .. how i have to solve?

    ReplyDelete
  2. Hi Ahmed.. i need an urgent help.

    i have an esb..

    with one routing service and one soup service

    when i am migrating to 11g.. i am getting in service reference and one reference pointing to 10g wsdl..ok

    when i deployed the same code to 11g it got deployed successfully..

    now i want to point the both routing service and soap service to 11g port..

    i am able to get the routing service wsdl ,can you please let me know where can i find the soup service wsdl pointing to 11g port..

    ReplyDelete
  3. Thanks a lot for sharing a great blog I was browsing through the internet looking for Oracle SOA and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information blogs about Oracle SOA at Oracle SOA Blogs. Bookmarked this page, it helped me a lot and I have gained a lot of knowledge by reading your blog and Oracle soa course

    ReplyDelete
  4. Simply wish to say your article is as astonishing. The clarity in your post is simply great, and I could assume you are an expert on this subject. Same as your blog i found another one Oracle SOA .Actually I was looking for the same information on internet for Oracle SOA Suite and came across your blog. I am impressed by the information that you have on this blog. Thanks a million and please keep up the gratifying work.

    ReplyDelete
  5. I really want to thank the author for such a nice blog that helped me to understand why it is important. oracle fusion training in bangalore

    ReplyDelete
  6. visit homepage y8z96u3b57 luxury replica bags replica bags bangkok useful source j5v86j3j83 replica ysl handbags replica goyard bags replica bags cheap pop over to these guys y9c53p3c52 replica bags and watches

    ReplyDelete