<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>CVP v8.5(1): DB Element with Oracle JNDI</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9558315" />
  <subtitle>CVP v8.5(1): DB Element with Oracle JNDI</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9558315</id>
  <updated>2013-05-19T09:20:22Z</updated>
  <dc:date>2013-05-19T09:20:22Z</dc:date>
  <entry>
    <title>RE: Re: New Message from Faisal Zaidi in Customer Voice Portal (CVP) - CVP</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9654484" />
    <author>
      <name>Faisal Zaidi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9654484</id>
    <updated>2012-12-21T20:50:29Z</updated>
    <published>2012-12-21T20:50:29Z</published>
    <summary type="html">Janine, that was it the context.xml file had a typo! thanks so much (both) for your guidance...</summary>
    <dc:creator>Faisal Zaidi</dc:creator>
    <dc:date>2012-12-21T20:50:29Z</dc:date>
  </entry>
  <entry>
    <title>Re: New Message from Faisal Zaidi in Customer Voice Portal (CVP) - CVP - Al</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9647553" />
    <author>
      <name>Janine Graves</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9647553</id>
    <updated>2012-12-21T16:22:56Z</updated>
    <published>2012-12-21T16:22:56Z</published>
    <summary type="html">please send the vxmlserver/tomcat/conf/context.xml and do you have the driver jar file in tocat/common/lib? did you restart vxml server? On 12/21/2012 2:56 AM, Cisco Developer Community Forums wrote: Faisal Zaidi has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- hi janine - audio file played without any isues - the wav is here http://xxx.xx.xx.xxx/nvs/en-us/MoTD/app_message0.wavÂ and played successfully but i still get an error on the DB element. Below is the output including the activity log. (btw the activity log seems to suggest a normal call termination, this is not the case, the default error announcement is played) ACTIVITY LOG: xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.266,Subdialog Start_01,enter, xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.766,Subdialog Start_01,exit,done xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.766,Welcome,enter, xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.766,Welcome,interaction,audio_group,initial_audio_group xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Welcome,exit,done xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,enter, xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,element,error,A built-in element encountered an exception of type com.audium.server.AudiumException. xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,exit, xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,,element,error, xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,interaction,audio_group,initial_audio_group xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:14.562,,end,how,hangup xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:14.562,,end,result,normal xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:14.562,,end,duration,9 Â  ERROR LOG: xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844, The error was: A built-in element encountered an exception of type com.audium.server.AudiumException. There was a problem looking up the JNDI data source 'DEMUOracle'. The root cause was: javax.naming.NameNotFoundException: Name DEMUOracle is not bound in this Context com.audium.server.AudiumException: A built-in element encountered an exception of type com.audium.server.AudiumException. Â at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:413) Â at com.audium.server.controller.Controller.goToAction(Controller.java:2959) Â at com.audium.server.controller.Controller.goToElement(Controller.java:2691) Â at com.audium.server.controller.Controller.continueCall(Controller.java:2511) Â at com.audium.server.controller.Controller.doPost(Controller.java:733) Â at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) Â at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) Â at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) Â at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) Â at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) Â at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) Â at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) Â at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) Â at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) Â at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) Â at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879) Â at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) Â at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) Â at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) Â at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) Â at java.lang.Thread.run(Thread.java:662) -- To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/9637898 or simply reply to this email. -- Janine Graves</summary>
    <dc:creator>Janine Graves</dc:creator>
    <dc:date>2012-12-21T16:22:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Faisal Zaidi in Customer Voice Portal (CVP) - CVP - Al</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9646992" />
    <author>
      <name>GEOFFREY THOMPSON</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9646992</id>
    <updated>2012-12-21T15:46:56Z</updated>
    <published>2012-12-21T15:46:56Z</published>
    <summary type="html">&gt;&gt;&gt;&gt;&gt;but i still get an error on the DB element

Please post your configuration of the Oracle JNDI setting. Where do you have your oracle JAR file located?

Regards,
Geoff</summary>
    <dc:creator>GEOFFREY THOMPSON</dc:creator>
    <dc:date>2012-12-21T15:46:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Re: New Message from Faisal Zaidi in Customer Voice Portal (CVP) - CVP</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9637898" />
    <author>
      <name>Faisal Zaidi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9637898</id>
    <updated>2012-12-21T07:56:25Z</updated>
    <published>2012-12-21T07:56:25Z</published>
    <summary type="html">hi janine - audio file played without any isues - the wav is here [url=http://xxx.xx.xx.xxx/nvs/en-us/MoTD/app_message0.wav]http://xxx.xx.xx.xxx/nvs/en-us/MoTD/app_message0.wav[/url] and played successfully but i still get an error on the DB element. Below is the output including the activity log. (btw the activity log seems to suggest a normal call termination, this is not the case, the default error announcement is played)

ACTIVITY LOG:
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.266,Subdialog Start_01,enter,
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.766,Subdialog Start_01,exit,done
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.766,Welcome,enter,
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.766,Welcome,interaction,audio_group,initial_audio_group
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Welcome,exit,done
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,enter,
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,element,error,A built-in element encountered an exception of type com.audium.server.AudiumException.
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,exit,
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,,element,error,
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844,Database_01,interaction,audio_group,initial_audio_group
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:14.562,,end,how,hangup
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:14.562,,end,result,normal
xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:14.562,,end,duration,9
 
ERROR LOG:

xxx.xx.xx.xxx.1356075665266.7.NVS_DBLookupApplication,12/21/2012 08:41:05.844, The error was: A built-in element encountered an exception of type com.audium.server.AudiumException. There was a problem looking up the JNDI data source 'DEMUOracle'. The root cause was: javax.naming.NameNotFoundException: Name DEMUOracle is not bound in this Context
com.audium.server.AudiumException: A built-in element encountered an exception of type com.audium.server.AudiumException.
 at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:413)
 at com.audium.server.controller.Controller.goToAction(Controller.java:2959)
 at com.audium.server.controller.Controller.goToElement(Controller.java:2691)
 at com.audium.server.controller.Controller.continueCall(Controller.java:2511)
 at com.audium.server.controller.Controller.doPost(Controller.java:733)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Thread.java:662)</summary>
    <dc:creator>Faisal Zaidi</dc:creator>
    <dc:date>2012-12-21T07:56:25Z</dc:date>
  </entry>
  <entry>
    <title>Re: New Message from Faisal Zaidi in Customer Voice Portal (CVP) - CVP - Al</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9613714" />
    <author>
      <name>Janine Graves</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9613714</id>
    <updated>2012-12-20T15:48:56Z</updated>
    <published>2012-12-20T15:48:56Z</published>
    <summary type="html">-----------------------------Faisal,
Please try creating a subfolder of your mediaserver/en-us directory 
named 'abcdefg' (wwwroot/en-us/abcdefg) and put your welcome.wav in 
there. Then set app_media_lib to "abcdefg" in ICM. Let me know whether 
the file is found. If not, what's the URI that you see in the call 
server error log.</summary>
    <dc:creator>Janine Graves</dc:creator>
    <dc:date>2012-12-20T15:48:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Re: New Message from Faisal Zaidi in Customer Voice Portal (CVP) - CVP</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9604172" />
    <author>
      <name>Faisal Zaidi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9604172</id>
    <updated>2012-12-20T08:12:34Z</updated>
    <published>2012-12-20T08:12:34Z</published>
    <summary type="html">Hi Janine - I have been using a hardcoded IP address, still the same error?</summary>
    <dc:creator>Faisal Zaidi</dc:creator>
    <dc:date>2012-12-20T08:12:34Z</dc:date>
  </entry>
  <entry>
    <title>Re: New Message from Faisal Zaidi in Customer Voice Portal (CVP) - CVP - Al</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9590650" />
    <author>
      <name>Janine Graves</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9590650</id>
    <updated>2012-12-20T01:29:56Z</updated>
    <published>2012-12-20T01:29:56Z</published>
    <summary type="html">Faisal , What are you using to resolve the OracleServersIP in the url attribute of your &lt;Resource&gt; tag? Try hardcoding the IP address instead.</summary>
    <dc:creator>Janine Graves</dc:creator>
    <dc:date>2012-12-20T01:29:56Z</dc:date>
  </entry>
  <entry>
    <title>CVP v8.5(1): DB Element with Oracle JNDI</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9558314" />
    <author>
      <name>Faisal Zaidi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9558314</id>
    <updated>2012-12-19T10:28:17Z</updated>
    <published>2012-12-19T10:28:17Z</published>
    <summary type="html">Hi we have an Oracle 10.2.0.3 DB which we are trying to connect to using the DB element in CVP 8.5.
 
We have several connections to SQL server DBs which work well however the Oracle one is not happy.
 
1. The C:\Cisco\CVP\VXMLServer\Tomcat\conf\server.xml file looks like this:
 
 &lt;GlobalNamingResources&gt;
 .
 .
 --3 perfectly working SQL Server JNDIs here--
 .
 .
 
 &lt;Resource name="jdbc/DEMUOracle" 
 auth="Container" 
 type="javax.sql.DataSource" 
 driverClassName="oracle.jdbc.OracleDriver" 
 url="jdbc:oracle:thin:@OracleServersIP:1521:Schema" 
 username="xxxxx" 
 password="xxxxx" 
 maxActive="25" 
 maxIdle="10" 
 maxWait="10000"/&gt;
 
 
     &lt;!-- Test entry for demonstration purposes --&gt;
     &lt;Environment name="simpleValue" type="java.lang.Integer" value="30"/&gt;
 
     &lt;!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users --&gt;
     &lt;Resource auth="Container" description="User database that can be updated and saved" 
 factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" 
 pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/&gt;
 
   &lt;/GlobalNamingResources&gt;
 
 
2. I have cycled VXML Server.
 
 
3. I have placed the Oracle 10.2.0.3's ojdbc14.jar (see link below) in the directory C:\Cisco\CVP\VXMLServer\Tomcat\common\lib 
 
 http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html
 
 
4. The DB element contains the following:
 
 Type: Single
 JNDIName: DEMUOracle
 SQL Query: SELECT FIELD03 FROM CTI_CUSTOMER WHERE KUNDENNUMMER='123456'
 
 
However I'm still get the following error(?):
 
xxx.xx.xx.xxx.1355910798810.0.NVS_DBLookupApplication,12/19/2012 10:53:18.826, The error was: A built-in element encountered an exception of type com.audium.server.AudiumException. There was a problem looking up the JNDI data source 'DEMUOracle'. The root cause was: javax.naming.NameNotFoundException: Name DEMUOracle is not bound in this Context
com.audium.server.AudiumException: A built-in element encountered an exception of type com.audium.server.AudiumException.
 at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:413)
 at com.audium.server.controller.Controller.goToAction(Controller.java:2959)
 at com.audium.server.controller.Controller.goToElement(Controller.java:2691)
 at com.audium.server.controller.Controller.enterVoiceApplication(Controller.java:1206)
 at com.audium.server.controller.Controller.newCall(Controller.java:1142)
 at com.audium.server.controller.Controller.doPost(Controller.java:589)
 at com.audium.server.controller.Controller.doGet(Controller.java:446)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Thread.java:662)</summary>
    <dc:creator>Faisal Zaidi</dc:creator>
    <dc:date>2012-12-19T10:28:17Z</dc:date>
  </entry>
</feed>

