Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

12.1.3 XSLT Map Editor Query-Database extension function

SteveF-FresnoFeb 17 2015 — edited Mar 3 2015

Hi,

We are trying to move from JDeveloper 11.1.1.7 to 12.1.3. We have developed a number of xsl maps in 11.1.1.7 which use the Oracle Extention function oraext:query-database (where the oraext namespace is xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"). This works in JDeveloper 11.1.1.7 when unit testing the map where the call in the map looks like this:

<xsl:value-of select="oraext:query-database(concat(&quot;select GetMapCodeList('param1', 'param2', 'param3') fvalue from dual&quot;),false(),false(),&quot;jdbc:oracle:thin:dbuser/dbpassword@dbhost:1521:dbservicename&quot;)"/>

In the select statement above is "select GetMapCodeList" which is a function defined in the database that takes 3 parameters. This works nicely for us in 11.1.1.7. We're new to 12.1.3 and we're getting an error testing the XSLT map in JDeveloper. The error is

file:/[file path]/[file name].xsl: XML-22044: (Error) Extension function error: Error invoking 'queryDatabase':'java.lang.NoClassDefFoundError: oracle/jdbc/OracleConnection'.

It looks like it can't find the ojdbc6.jar file, but I don't see where that should be added.

Edit:

OK, I've realized that the Oracle XPath extension functions are not appearing in my XSLT Map Editor component pallet. I also see that when I edit the xpath expression the oraext:query-database call is highlighted by JDev as invalid. I believe my problem is with the XPath extension functions not being loaded.

Thanks in advance.

Steve

This post has been answered by SteveF-Fresno on Mar 2 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2015
Added on Feb 17 2015
23 comments
4,084 views