XPath function failed in XSLT (OSB 10.3.1)

Platform : OSB 10.3.1 in Windows XP
Error : Test following XSLT scripts in OSB Console by getting error
Error executing the XSLT transformation: java.lang.NoSuchMethodException: For extension function, could not find method weblogic.apache.xpath.axes.WalkingIteratorSorted.upper-case([ExpressionContext,] ).
XSLT :
<xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2004/07/xpath-functions"
     xmlns:imp1="http://www.example.org/FaultMessage">
<xsl:template match="/">
          <imp1:FaultMessage>
               <imp1:code>
                    <xsl:text disable-output-escaping="no">Hard-Coding-Error-Code</xsl:text>
               </imp1:code>
               <imp1:summary>
                    <xsl:value-of select="/imp1:FaultMessage/imp1:summary" />
               </imp1:summary>
               <imp1:detail>
               <xsl:value-of select="fn:upper-case(/imp1:FaultMessage/imp1:detail)" />
</imp1:detail>
     </imp1:FaultMessage>
</xsl:template>
</xsl:stylesheet>
Any ideas?
Thank you
-Simon
Edited by: user10981433 on Jun 11, 2009 9:05 PM

exporting and importing your osb projects to the new environment won't migrate the webservice you were calling from within the Oracle Service Bus.
if these were created in Eclipse too you can just regenerate an ear-file from them or use the build-scripts to deploy them to you new Weblogic Server.
don't mix up 2 things
the osb is only intermediar in here, so you can export/impot the resources from your osb workspace for these.
but if your process call any external webservice, the webservice itself will also need to get redeployed to the new enviroment, and this is something which has nothing to do with your osb projects.
it could be these webservice are also build in Eclipse, but they won't be part of the export/import of OSB.
so check if you have some build.xml script in these webservice projects so you can regenerate the ear archive, or try importing the project in your workspace (if not already done) and rightmouseclick on it > export > ear file
and use this ear file to deploy the webservice again in the Weblogic Console ( see : http://docs.oracle.com/cd/E13218_01/wlp/docs81/prodOps/deployment.html )

Similar Messages

  • Why don't standard XPath functions work in XSLT?

    I'm having a lot of trouble trying to do some simple string processing in XSLT. What I would like to do is make selection using the standard xpath functions defined by the w3c. I'm using this as my cheat sheet:
    http://w3schools.com/xpath/xpath_functions.asp
    I've tried the default XSLT parser that comes with Java, the latest distro of Xalan and the latest distro of Saxon. Nothing seems to recognize the fn namespace:
    xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
    In particular, I'm trying to use the tokenize(string, regex) function. Only Xalan seems to support this at all, only recognizes {http://xml.apache.org/xalan}tokenize, and it is treating the regex as a literal.
    This is very frustrating. Is it possible to get the standard Xpath functions to work for XSLT?

    How did you get it to work with Saxon? I have saxon9he.jar on my classpath. When I try to transform this:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:src="http://xml.kitfox.com/schema/game/tileWorld/textTable"
        xmlns:xalan="http://xml.apache.org/xalan"
        xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
        version="1.0">
        <xsl:output method="text"/>
    <xsl:template match="/">
        <xsl:for-each select="fn:tokenize('a b c', '\s+')">
            "<xsl:value-of select="."/>"
        </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>I get the error
    Error on line 100
      Cannot find a matching 2-argument function named
      {http://www.w3.org/2005/02/xpath-functions}tokenize()Is there some other jar you need to include to get http://www.w3.org/2005/02/xpath-functions to resolve?

  • OSB: class not found in custom xpath function

    Hi,
    This week I was struggling with custom xpath functions in OSB. First I created a jar file that contained the class and the complete functionality including logging. It contains a class that does a DVM Lookup from the database. As a standalone function, called from JUnit test cases it functions perfectly. I use Apache commons logging with the libraries from the Weblogic installation.
    But when I put this OSB Util Services jar in the osb-home/config/xpath-function, it turns out that somehow the Weblogic Console gets a conflict with the commons-logging libraries. So I deployed it just as an application library in weblogic console, to solve this breakage.
    Then I created a simple separate class that only calls the method in the deployed library. I packaged that as a custom-osb-functions.jar for the osb-home/config/xpath-function. I managed to get if visible in OEPE. But when I test the xquery transformation resource on the server, I get:
    Error executing the XQuery transformation: {http://www.bea.com/wli/common/xquery}XQueryException: Error invoking custom xquery java function: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.wli.sb.stages.functions.XQueryExternalFunction.execute(XQueryExternalFunction.java:111)
    at com.bea.wli.sb.stages.functions.XQueryExternalFunction.init(XQueryExternalFunction.java:61)
    at weblogic.xml.query.iterators.FirstOrderIterator.open(FirstOrderIterator.java:169)
    at weblogic.xml.query.runtime.typing.SeqTypeMatching.open(SeqTypeMatching.java:129)
    at weblogic.xml.query.iterators.FirstOrderIterator.open(FirstOrderIterator.java:167)
    at weblogic.xml.query.runtime.core.ExecutionWrapper.open(ExecutionWrapper.java:58)
    at com.bea.wli.common.xquery.iterators.XQueryVariableMapper.getObjects(XQueryVariableMapper.java:459)
    at com.bea.wli.common.xquery.iterators.XQueryVariableMapper.getObjects(XQueryVariableMapper.java:447)
    at com.bea.wli.sb.test.transform.XQueryProcessor.invoke(XQueryProcessor.java:165)
    at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
    at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.NoClassDefFoundError: nl/darwin-it/osb/dvm/DomainValueMap
    at nl.darwin-it.osb.xpath.DomainValueMapLookup.lookupDVM(DomainValueMapLookup.java:35)
    ... 28 more
    Caused by: java.lang.ClassNotFoundException: nl.darwin-it.osb.dvm.DomainValueMap
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
    ... 29 more
    Can any one explain to me how I can get the OSB Util Services jar library in the same classpath as the custom-xpath-functions jar, without having it put along the custom-xpath-functions jar in the osb-home/config/xpath-functions folder (since that somehow breaks the weblogic console)?
    How does the OSB classpath/classloading mechanisms work in this?
    Thanks in advance,
    Regards,
    Martien

    I am running the plugin registration utility but it generates the error mentioned below. I have verified the structure of my zip file and the structure of zip file is:
    -> SelfRegisterUserCustomValidator.zip
    ->Plugin.xml
    ->/lib/SelfRegisterUserCustomValidator.jar
    ->/resources/
    Following our contents of plugin.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
    <plugin pluginclass= "com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator" version="1.0.0" name="SelfRegisterUserCustomValidator">
    </plugin>
    </plugins>
    </oimplugins>
    Following is the error being generated:
    Enter name (complete file name with path) of the plugin file:
    /u01/oracle/Middleware/Oracle_IDM1/server/plugin_utility/SelfRegisterUserCustomValidator.zip
    [java] Java Result: 1
    [echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/iam/platformservice/utils/PluginUtility
    [echo] Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.utils.PluginUtility
    [echo] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [echo] at java.security.AccessController.doPrivileged(Native Method)
    [echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    [echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    [echo] Could not find the main class: oracle.iam.platformservice.utils.PluginUtility. Program will exit.

  • Use of XPath 2.0 in XSLT plugins

    Hi
    I need to use the upper-case XPath function in a XSLT. This function is available in XPath 2.0.
    I set the stylesheet version="2.0" and is works fine when I test the xslt in Editix before I deploy it.
    The Saxon parser installed with OSM 7.0.1 supports XPath 2.0.
    However, the deployed plugin throws an exception like:
    <01-jul-2010 10:44:08,241 CEST AM> <INFO> <plugin.AbstractAutomator> <ExecuteThread: '13' for queue: 'oms.automation'> <Creating automation plugin [class com.mslv.oms.automation.plugin.XSLTReceiver_yg33wa_Impl] built using SDK version [7.0.1.524]>
    SystemId Unknown; Line #49; Column #90; Could not find function: upper-case
    SystemId Unknown; Line #49; Column #90; Could not find function: upper-case
    SystemId Unknown; Line #49; Column #90; function token not found.
    SystemId Unknown; Line #49; Column #90; function token not found.
    (Location of error unknown)java.lang.NullPointerException
    <01-jul-2010 10:44:08,287 CEST AM> <WARN> <plugin.AbstractAutomator> <ExecuteThread: '13' for queue: 'oms.automation'> <Attempting to clean up references to bad EJB references>
    <01-07-2010 10:44:08 CEST> <Warning> <oms> <BEA-000000> <plugin.AbstractAutomator: Attempting to clean up references to bad EJB references>
    <01-jul-2010 10:44:08,397 CEST AM> <ERROR> <core.logSQLException> <ExecuteThread: '13' for queue: 'oms.automation'> <SQL Exception 0 : Transaction BEA1-0FBBA0CDB6AB0C3F5CBB not active anymore. tx status = Marked rollback. [Reason=java.lang.NullPointerException]>
    java.sql.SQLException: Transaction BEA1-0FBBA0CDB6AB0C3F5CBB not active anymore. tx status = Marked rollback. [Reason=java.lang.NullPointerException]
    at weblogic.jdbc.jts.Driver.getTransaction(Driver.java:542)
    Any clues anyone?

    As far as i know, the XSLTReceiver plugin uses XALAN as the XSLT transformation implementation. if you need to use SAXON, then you need to set the javax.xml.TransformerFactory system property to the correct implementation class from SAXON. How one could do this is beyond me. You could validate my statement by attempting to write a simple java client that does the transformation(rather than use a editor tool such as XMLSpy/ other). set your classpath to include saxon jars and exclude xalan jars, the transformation should succeed.
    hope this helps.

  • Xpath function and XSLT reusability in OSB

    Hi Experts,
    I have xslt which using custome xpath functions and working fine in bpel layer.Can I reuse the same jar,xslt and with some configuration(http://eelzinga.wordpress.com/2010/05/10/oracle-service-bus-11g-using-custom-xpath-functions/) in the OSB layer? its urgent,please respond asap.
    Thanx in advance.-Aswini

    I would think so... after all custom XPath is just Java static functions called from OSB... as long as you stick to the guidelines for method signature exposed here http://docs.oracle.com/cd/E21764_01/doc.1111/e15866/custom_xpath.htm#CBAFHDIJ you should be fine

  • Including customized xquery functions in XQuery/XSLT expression Editor-OSB

    Hi,
    I have written a customized xquery function. I want this to be included in the List of Xquery Functions which is displayed by Oracle Service Bus in the XQuery/XSLT
    Expression Editor. OSB displays the built in xquery functions in the XSLT/Xquey Expression Editor. Is there any way to add the customised xquery to this list, so that it can be dragged and dropped later?
    Thanks,
    Balaji.

    I doubt if that is exposed out side of Oracle Engineering (Not public/documented). Please raise a support ticket for enhancement. If PM should concur you might get the steps that need to be performed for this feature.
    Thanks
    Manoj
    Edited by: Manoj Neelapu on Jun 8, 2010 8:37 AM

  • Osb-custom xpath function in 11g

    is it possible to place osb-custom.xml in some other locations other than C:\<middlewarehome>\oracle_osb1\config\xpathfunctions and refer it during server startup as we have only read access to oracleOSB1 in production environments???

    I understand your reply and we are already doing that.
    the osb installation is common across the domains .but i need these custom xpath function reflected only for my domain.
    so my query is "whether we can set/overwrite any -D property at server startup or any server/domain level settings rather than updating the installation path?"
    I am just trying to understand whether we can avoid conflicts with multiple domains sharing the same installation.

  • XPath expression failed to execute.

    Hi Everybody ,
    I am working  AIA PIP 3.1 for JDE E1.I am facing some errors so that i can't proceed.
    See the log errors as below:
    javax.xml.ws.soap.SOAPFaultException: XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:processXSLT('xsl/Xform_BillOfMaterialsListABM_to_BillOfMaterialsListAXML.xsl',bpws:getVariableData('InitialLoadBillOfMaterialsListReqMsg','InitialLoadBillOfMaterialsList'),bpws:getVariableData('Parameters')). The XPath expression failed to execute; the reason was: oracle.fabric.common.xml.xpath.XPathFunctionException: javax.xml.transform.TransformerException: oramds:/deployed-composites/default/InitialLoadBillOfMaterialsListJDEE1toAgileImpl_rev1.0/xsl/Xform_BillOfMaterialsListABM_to_BillOfMaterialsListAXML.xsl<Line 18, Column 271>: XML-22044: (Error) Extension function error: Error invoking 'lookupXRef':'oracle.tip.xref.exception.RepositoryException: lookup could not find values in column name "AGILE_01" for table name "oramds:/apps/AIAMetaData/xref/ITEM_ITEMID.xref" using reference column name "JDEE1_01" and reference value "731882::M30" Please ensure lookup criteria has a match.'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    Please reply me ASAP,
    Waiting for your response.....
    Regards
    Jyoti Nayak

    Hi,
    Ya i checked the data for same table,but i didn't get any XREF related information in xref_data table.
    Did you mean that, data should already present under AIAFPINST_XREF.Probably xref is meant for storing dynamic value.
    Please check the above error and reply me soon.
    With Regards
    Jyoti Nayak

  • Bpel Server Does Not Catch Exceptions Thrown By Custom Xpath Functions

    Hi.
    I am using some custom xpath functions in a bpel process and whenever they fail I get an XPathExecutionError with summary:
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "<my function>", the reason is FOTY0001: type error.
    Please verify the xpath query.
    I am forcing my function to fail by giving a wrong input, which should result in an XPathFunctionException("Input does not respect format").
    There is a note on Metalink with ID 458434.1 on this subject which says that patch 5926809 should fix my problem.
    Patch 5926809 fixes Bug 5926809 - ORA:PARSEESCAPEDXML XPATH EXPRESSION FAILED TO EXECUTE FOTY0001: TYPE ERROR.
    I am using it, but it does not work :(
    I am using version 10.1.3.3.0 of App Server with various patch sets, including fix for bug 5926809.
    Has anyone suggestions on how to overcome this problem?
    Thanks

    Hello,
    I am trying to add a custom xpath function to the BPEL server, and I see that you made it work. I am using Oracle SOA Suite 10.1.3.3 and jDeveloper 10.1.3.4. I am using this function inside an xsl mapping file, although I am able to compile and deploy the Bpel Process to the server, it stops mapping where I placed the function and I have not seen any meaningful message from the domain/log/ files.
    Can you tell me how you did it?
    I think you will tell me faster than Oracle support, I already placed an SR but they just give me superficial advice.
    I appretiate your time and advice,
    Guillermo

  • Issue with AIA XPath Functions while compiling in JDeveloper 11.1.1.2.0

    Hi,
    BPEL flow contains Assign activity as below :
    <assign name="Assign_1"><copy><from expression='aia.getServiceProperty("{http://xmlns.oracle.com/ABCSImpl/SAP/Core/UpdateItemListSAPReqABCSImpl/V1}UpdateItemListSAPReqABCSImpl","Default.SystemID",true())'/>
    <to variable="temp"/></copy> </assign>
    When I try to compile this flow, it gives me below errors :
    SOALog:
    Buildfile: D:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite : 'D:\test\TestAIAFunc\composite.xml'
    [scac] FATAL_ERROR: in TestAIABPELProcess.bpel(81): unresolved xpath function
    [scac] could not resolve xpath function "aia.getServiceProperty", because function "aia.getServiceProperty" not registered.
    [scac] Make sure this function is either in the system xpath function configuration file or in the custom xpath function configuration file. Refer to the user guide regarding how to register xpath functions in your compiler environment.
    BUILD FAILED
    D:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml:264: Java returned: 1 Check log file : D:\test\TestAIAFunc\SCA-INF\classes\scac.log for errors
    Total time: 9 seconds
    CompilerLog:
    Project: D:\test\TestAIAFunc\TestAIAFunc.jpr
    D:\test\TestAIAFunc\TestAIABPELProcess.bpel
    Error(81): unresolved xpath function
    could not resolve xpath function "aia.getServiceProperty", because function "aia.getServiceProperty" not registered.
    Make sure this function is either in the system xpath function configuration file or in the custom xpath function configuration file. Refer to the user guide regarding how to register xpath functions in your compiler environment.
    I got latest aia.jar from server(SOA11.1.1.2, weblogic 10.3.2, AIA11gR1) and added aia.jar @ JDeveloper 11.1.1.2--> Tools--> Preferences--> SOA
    I also added it in jdeveloper/lib, jdeveloper/jdev/lib
    aia namespace is there in .bpel as : xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    Thanks,
    Hema

    You have to include the aia.jar file. I had same issue .. I had aia.jar included in the project but the file was not ther ein the path . so i updated the correct path .. it worked

  • Ora:processXSLT xpath function and absolute paths

    It looks like ora:processXSLT xpath function does not honor absolute paths when specifying the location of the xslt to use in the first parameter. For example, if I call it like this:
    <copy>
    <from expression="ora:processXSLT('/u01/transforms/mytransform.xsl',bpws:getVariableData('xslInput','payload'))"/>
    <to variable="xslOutput"/>
    </copy>
    I get the following error in the bpel logs:
    Error while processing xpath expression, the expression is "ora:processXSLT('/u01/transforms/mytransform.xsl', bpws:getVariableData("xslInput", "payload"))", the reason is javax.xml.transform.TransformerException: java.io.FileNotFoundException: /u01/oracle/bpel/integration/orabpel/domains/test/tmp/.bpel_transformTest_1.0.jar/u01/transforms/mytransform.xsl (No such file or directory).
    Please verify the xpath query.
    It is assuming that the xsl will be relative to the bpel suitcase and just appending the supplied path to the relative path for the bpel process. Why would I want to do this? Well, I have hundreds of these maps and I want to be able to select one at runtime. I'm also adding new ones every day and I don't want to have to redeploy the process that uses them each time I add a new map. Is there any way to force this process to recognize the absolute path? I can work around it for now by using a bunch of ../../../../ stuff but that's a kludge and I'd like to find a better way to do it.
    I get the same error with xdk:processXSLT.
    Any suggestions?
    Thanks!
    Sean

    Hi Sean,
    Did you try to the file path with the file:// prefix and not just the path?
    ~ronen

  • Xref:populateXRefRow xpath function.

    Hi All,
    I am facing an issue with xref:populateXRefRow xpath function.
    Requirement:
    To populate the value obtained from Siebel & an autogenerated common value into cross reference table.
    Steps Performed:
    1.Cross reference table (addressed_sbl_ucm) created in xreftool shell.
    2.Run a SQL script on SQLPLUS to create XREF_DATA table in SQL.
    3.In ASSIGN activity, written the below code and assigned it to a string variable.
    xref:populateXRefRow(
    'ADDRESSID_SBL_UCM',
    'SBL_ADDID',
    string(bpws:getVariableData('inputVariable','payload','/ns1:UCMContactExtrnIO/ns1:Contact_INSPersonalAddress/ns1:INSPersonalAddressId')),
    'COMMON_ADDRESSID',
    ora:generateGUID(),
    'ADD')
    4.Deployed the process on server.
    5.Instantiated the process on the BPEL console.
    While instantiating the process on the console we are getting the error shown below:
    Your test request was processed synchronously. It took 63.0milliseconds to finish and generated the following output:
    Value:     
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09500 XPath expression failed to execute. Error while processing xpath expression, the expression is "xref:populateXRefRow('ADDRESSID_SBL_UCM','SBL_ADDID',
    string(bpws:getVariableData('inputVariable','payload','/ns1:UCMContactExtrnIO/ns1:Contact_INSPersonalAddress/ns1:INSPersonalAddressId')),
    'COMMON_ADDRESSID',ora:generateGUID(),
    'ADD')",
    the reason is FOTY0001: type error.
    Please verify the xpath query.
    </faultstring>
    </Fault>
    Any pointers to this will be of great help.
    Thanks & Regards,
    Shanty
    P.S. : If possible please provide me link to the documentation & tutorials on cross reference table.

    According to the docs:
    http://download.oracle.com/docs/cd/E11036_01/doc.1013/e10295/esb_xref.htm
    This function is available in Oracle ESB? Are you using that or are you using BPEL? If you are using Oracle AIA, this function is available in BPEL.
    Regards,
    Marc
    http://orasoa.blogspot.com

  • Custom XPath Function not working - ORABPEL-09503 error

    I wrote a simple date conversion custom xpath function.
    1. Implemented IXPathFunction as mentioned in Clemens and Antony Reynolds blog.
    2. Also changed the xpath-functions.xml kept at C:\product\10.1.3.1\OracleAS_1\bpel\system\config\xpath-functions.xml and also at C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\config\xpath-functions.xml (Not sure why this xml is in two places)
    3. Placed my class file at C:\product\10.1.3.1\OracleAS_1\bpel\system\classes and also made a jar and placed in C:\product\10.1.3.1\OracleAS_1\j2ee\home\applib.
    But when I run the process which uses this custom function, it is throwing the following error
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09503 Invalid xpath expression. Error while parsing xpath expression "o2c:formatDateString('10/30/2007', 'MM/DD/yyyy', 'YYYY-MM-DD');", the reason is Error in expression: 'o2c:formatDateString('10/30/2007', 'MM/DD/yyyy', 'YYYY-MM-DD');'.. Please verify the xpath query "o2c:formatDateString('10/30/2007', 'MM/DD/yyyy', 'YYYY-MM-DD');" which is defined in BPEL process. </faultstring>
    </Fault>
    Can somebody help me to resolve this.

    My bad. I had a semi-colon after the expression. Now I am getting a different error
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09500 XPath expression failed to execute. Error while processing xpath expression, the expression is "o2c:formatDateString('10/30/2007', 'MM/DD/YYYY', 'YYYY-MM-DD')", the reason is FOTY0001: type error. Please verify the xpath query. </faultstring>
    </Fault>

  • Ebi:getConvertedDateWithTZ   XPATH function in AIA 11g?

    Hi all,
    There was an XPATH function available with PIP module to convert the datetime into a particular format.
    xmlns:ebi="http://www.oracle.com/XSL/Transform/java/oracle.apps.ebi.core.xpath.EBIXPathFunctions" ebi:getConvertedDateWithTZ .
    Can anybody point me which jar contains the 'oracle.apps.ebi.core.xpath.EBIXPathFunctions' class? Is this jar available with AIA 11g?
    Rgds.

    I understand your reply and we are already doing that.
    the osb installation is common across the domains .but i need these custom xpath function reflected only for my domain.
    so my query is "whether we can set/overwrite any -D property at server startup or any server/domain level settings rather than updating the installation path?"
    I am just trying to understand whether we can avoid conflicts with multiple domains sharing the same installation.

  • Error using custom xpath function with XSL transformations in BPM

    Hi,
    We have created a custom xpath function for use with SOA Suite and BPM. This has been built as per specified within the http://docs.oracle.com/cd/E29597_01/dev.1111/e10224/bp_appx_functs.htm#SOASE11100. We have also reviewed the Oracle Sample for mapper-107-ExtensionFunctions (sample demonstrates the use of user-defined extension functions). This has been registered with jDeveloper and SOA within the oracle.soa.ext_11.1.1 (run ant to include in oracle.soa.ext.jar)
    We ideally want to use this is BPM within an xsl. However when consuming this function is either BPEL or BPM using an xsl, the xsl fails with an error such as:
    XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/default/gwCustomXpathUtil_rev1.0/xsl/Transformation_1.xsl<Line 9, Column 113>: XML-22043: (Error) Extension function error: Method not found 'getWeekDayDate'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    In an Assign it operates fine and returns the expected result. We have included a combination of both of the Config files (ext-mapper-xpath-functions-config.xml and ext-soa-xpath-functions-config.xml) in the META-INF folder, however neither allow the use of this function in the XSL.
    I believe there may be an issue getting the custom xpath functions within XSL files. Hence I have also raised an SR. Has anyone experiences of this?
    Our SOA / BPM suite environment is using 11.1.1.6.4 and has the following patches applied:
    13801175
    14406487 (11.1.1.6.4 SOA Bundle)
    13896993
    13088538
    Regards Dave
    Edited by: DavidGaskell on Mar 14, 2013 10:08 PM

    Hi All,
    I am also facing the same issue...Experts can you please help us.
    hi DavidGaskell, did you find any resolution, if so can you share it with me.....
    Thanks,
    RR

Maybe you are looking for