cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1323
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Nathan Galloway on 09-12-2009 09:31:58 PM
Hello,

I am attempting to configure a JNDI data source to use in a VXML email element on CVP 4.1, Call Studio 6.0.

I have followed the instructions I found on another topic on this forum but am still receiving an error.  Below are the steps that I have gone through, does anyone know what the issue might still be?
 
1.       Copied mail.jar and activation.jar to TOMCAT/common/lib
2.       Added a mail session using the TOMCAT interface called mail/CVPMail and clicked ¿Commit Changes¿
3.       Built VXML app with only a start, end and email element.  In the JNDI name part of the element I entered ¿CVPMail¿
4.       Deployed app, tested and got the following error:  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 'CVPMail'. The root cause was: javax.naming.NameNotFoundException: Name CVPMail is not bound in this Context com.audium.server.AudiumException: A built-in element encountered an exception of type com.audium.server.AudiumException.




Subject: Re: New Message from Nathan Galloway in Customer Voice Portal (CVP) - Gener
Replied by: Janine Graves on 09-12-2009 09:36:59 PM
Tomcat is missing an important jar file for email. It's called
naming-factory.jar and you should be able to download it from the
internet and store it into Tomcat/common/lib and then restart tomcat.



Cisco Developer Community Forums wrote:
> Nathan Galloway has created a new message in the forum "General
> Discussion - All Versions":
>
> --------------------------------------------------------------
> Hello,
>
> I am attempting to configure a JNDI data source to use in a VXML email
> element on CVP 4.1, Call Studio 6.0.
>
> I have followed the instructions I found on another topic on this
> forum but am still receiving an error. Below are the steps that I
> have gone through, does anyone know what the issue might still be?
> Â
> 1.      Copied mail.jar and activation.jar to TOMCAT/common/lib
> 2.      Added a mail session using the TOMCAT interface called
> mail/CVPMail and clicked â¿¿Commit Changesâ¿¿
> 3.      Built VXML app with only a start, end and email
> element. In the JNDI name part of the element I entered ⿿CVPMail⿿
> 4.      Deployed app, tested and got the following error: 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 'CVPMail'. The root cause was:
> javax.naming.NameNotFoundException: Name CVPMail is not bound in this
> Context com.audium.server.AudiumException: A built-in element
> encountered an exception of type com.audium.server.AudiumException.
>
>
>
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/message/1828965>
>
> or simply reply to this email.

Subject: RE: Re: New Message from Nathan Galloway in Customer Voice Portal (CVP) - G
Replied by: Nathan Galloway on 09-12-2009 11:11:26 PM
Thanks for the response.  In taking a look at my installation of CVP 4.1, Tomcat is coming with the file naming-factory.jar.  I have read places that this file may be missing class files.  Could this be it or something else?

Subject: RE: Re: New Message from Nathan Galloway in Customer Voice Portal (CVP) - G
Replied by: Nathan Galloway on 10-12-2009 12:32:48 AM
I was able to get by the error that I was running into by downloading a version of naming-factory.jar that includes all the classes needed.  I also added a step to what I posted earlier.
 
So far here is what I have to resolve this:
1.  Copy mail.jar and activation.jar to tomcat/common/lib
2.  Download good copy of naming-factory.jar, remove old one and copy in new one to tomcat/common/lib
3.  Insert the following into server.xml  <GlobalNamingResources>
<Resource auth="Container" name="mail/Session" type="javax.mail.Session" mail.smtp.host="yourhost.smtp.com" />
4. In the email element tag make the JNDI name Session
5.  Insert the following into web.xml
<resource-ref>


  <res-ref-name>mail/Session</res-ref-name>


  <res-type>javax.mail.Session</res-type>


  <res-auth>Container</res-auth>

  </resource-ref>

Now the issue that I am running into is: Could not connect to SMTP host: localhost port: 25.
If you have any input on this, let me know.  I am just beginning to research, McAfee was my first guess, but after shutting that down the problem still was there.

Subject: Re: New Message from Nathan Galloway in Customer Voice Portal (CVP) - Gener
Replied by: Janine Graves on 10-12-2009 01:48:57 AM
do you have javamail running on port 25?

Cisco Developer Community Forums wrote:
> Nathan Galloway has created a new message in the forum "General
> Discussion - All Versions":
>
> --------------------------------------------------------------
> I was able to get by the error that I was running into by downloading
> a version of naming-factory.jar that includes all the classes
> needed.  I also added a step to what I posted earlier.
> Â
> So far here is what I have to resolve this:
> 1.  Copy mail.jar and activation.jar to tomcat/common/lib
> 2.  Download good copy of naming-factory.jar, remove old one and copy
> in new one to tomcat/common/lib
> 3.  Insert the following into server.xml  <GlobalNamingResources>
> <Resource auth="*Container*" name="*mail/Session*"
> type="*javax.mail.Session*" mail.smtp.host="yourhost.smtp.com" />
> 4. In the email element tag make the JNDI name Session
> 5.  Insert the following into web.xml
> <resource-ref>
>
>
> *Â * <res-ref-name>*mail/Session*</res-ref-name>
>
>
> *Â * <res-type>*javax.mail.Session*</res-type>
>
>
> *Â * <res-auth>*Container*</res-auth>
>
> *Â * </resource-ref>
>
> Now the issue that I am running into is: Could not connect to SMTP
> host: localhost port: 25.
> If you have any input on this, let me know.  I am just beginning to
> research, McAfee was my first guess, but after shutting that down the
> problem still was there.
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/message/1829372>
>
> or simply reply to this email.

Subject: RE: Re: New Message from Nathan Galloway in Customer Voice Portal (CVP) - G
Replied by: Nathan Galloway on 10-12-2009 02:08:40 AM
Would there be anything more to do that drop the activation.jar and mail.jar files into Tomcat/common/lib and restart VXML server?

Subject: RE: Re: New Message from Nathan Galloway in Customer Voice Portal (CVP) - G
Replied by: Nathan Galloway on 10-12-2009 09:22:24 AM
Ok, I was able to get this worked out.
From a new CVP 4.1 VXML Server build this what I ended up doing.
 
ALLOW USE OF TOMCAT ADMIN TOOL
1.  Copy admin.xml into Tomcat\conf\Catalina\localhost
2.  Copy the admin folder in Tomcat\server\webapps
3.  Add a new user, with roles of admin and manager to Tomcat\conf\tomcat-users.xml
ADD NEW MAIL SESSION
1.  Copy mail.jar and activation.jar Tomcat\common\lib
2.  Restart VXML Server
3.  Login to Tomcat Admin http://localhost:7000/admin
4.  Go to Tomcat Server\Service (Catalina)\Host (localhost)\Context (/CVP)\Resources\Mail Sessions
5.  Select create new mail session, under name enter "mail/Session", under mail.smtp.host enter "yourhost.mail.com"
6.  Click save, then click commit changes, close Tomcat Admin
7.  In the email element of the VXML app, make the JNDI name "Session"
8.  Restart VXML Server
9.  Deploy app and test, all works.
 
Thanks for your help.

Subject: CVP 7.2 email element "LinkageError"
Replied by: Luc Gagnon on 22-03-2010 01:53:56 PM
I have found my own answer. it is working now.
I have to use the Tomcat\conf\web.xml and not the the Tomcat\webapps\CVP\WEB-INF\web.xml
 
==============================================================================
I have followed all these instructions to get the CVP 7.2 email ellement working and I'm getting this "LinkageError"
What could be the problem?  I have put both of the jars in common/lib as suggested (here, and in other site).
 
10.234.128.36.1269218859328.0.testemail,03/21/2010 17:47:39.468,A built-in element encountered an exception of type java.lang.LinkageError. The error was: java.lang.LinkageError: loader constraints violated when linking javax/activation/DataHandler class
java.lang.LinkageError: loader constraints violated when linking javax/activation/DataHandler class
 at com.audium.server.action.email.EmailActionUtil.addMessageContent(EmailActionUtil.java:287)
 at com.audium.server.action.email.EmailActionUtil.doAction(EmailActionUtil.java:185)
 at com.audium.server.action.email.EmailAction.doAction(EmailAction.java:136)
 at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:384)
 at com.audium.server.controller.Controller.goToAction(Controller.java:2716)

Subject: RE: Re: New Message from Nathan Galloway in Customer Voice Portal (CVP) - G
Replied by: Thanveer Abdulla on 09-02-2011 09:20:25 AM
Hi Nathan Galloway,

Am usinv CVP 7.0, Testing email integration,
I have done the following methods..
1.  Copy mail.jar and activation.jar to tomcat/common/lib
2.  Download good copy of naming-factory.jar, remove old one and copy in new one to tomcat/common/lib --- (The naming-factory.jar is already there, so i did nt do any changes)
3.  Insert the following into
server.xml 
<GlobalNamingResources>
<Resource auth="Container" name="mail/HCLEMAIL" type="javax.mail.Session" mail.smtp.host="yourhost.smtp.com" />

4. In the email element tag make the JNDI name Session
5. Added in context.xml - <ResourceLink global="mail/HCLEMAIL" name="mail/HCLEMAIL" type="javax.mail.Session"/>  


Restarted vxml service
But I got the following error...
##########
10.128.138.76.1297259769276.1.sample,02/09/2011 08:56:13.432,A built-in element encountered an exception of type com.audium.server.AudiumException. The error was: There was a problem looking up the JNDI data source 'HCLEMAIL'. The root cause was: javax.naming.NameNotFoundException: Name HCLEMAIL is not bound in this Context
com.audium.server.AudiumException: There was a problem looking up the JNDI data source 'HCLEMAIL'.
 at com.audium.server.action.email.EmailActionUtil.getMailSession(EmailActionUtil.java:83)
 at com.audium.server.action.email.EmailActionUtil.doAction(EmailActionUtil.java:111)
 at com.audium.server.action.email.EmailAction.doAction(EmailAction.java:136)
 at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:384)
 at com.audium.server.controller.Controller.goToAction(Controller.java:2716)
 at com.audium.server.controller.Controller.goToElement(Controller.java:2458)
 at com.audium.server.controller.Controller.continueCall(Controller.java:2282)
 at com.audium.server.controller.Controller.goToElement(Controller.java:2499)
 at com.audium.server.controller.Controller.continueCall(Controller.java:2282)
 at com.audium.server.controller.Controller.doPost(Controller.java:599)
10.128.138.76.1297259769276.1.sample,02/09/2011 08:56:13.432, 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 'HCLEMAIL'. The root cause was: javax.naming.NameNotFoundException: Name HCLEMAIL 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:400)


Can you Help me to sort this issue.

regards
Thanveer

Subject: RE: JNDI Configuration to use email element in CVP 4.1
Replied by: Thanveer Abdulla on 21-02-2011 05:29:11 AM
Hi Nathan Galloway,

Am usinv CVP 7.0, Testing email integration,
I have done the following methods..
1.  Copy mail.jar and activation.jar to tomcat/common/lib
2.  Download good copy of naming-factory.jar, remove old one and copy in new one to tomcat/common/lib --- (The naming-factory.jar is already there, so i did nt do any changes)
3.  Insert the following into
server.xml 
<GlobalNamingResources>
<Resource auth="Container" name="mail/HCLEMAIL" type="javax.mail.Session" mail.smtp.host="localhost" />
4. In the email element tag make the JNDI name Session
5. Added in context.xml - <ResourceLink global="mail/HCLEMAIL" name="mail/HCLEMAIL" type="javax.mail.Session"/>  

Restarted vxml service
But I got the following error...
##########

Element,warning,A messaging error occured: Could not connect to SMTP host: localhost port: 25.  Email will not be sent

Kindly help on this on how to proceed further....

regards
Thanveer

Subject: RE: JNDI Configuration to use email element in CVP 4.1
Replied by: Sidney Orret on 21-02-2011 10:50:20 AM
Do you have SMTP server running on <localhost> and has been tested?. First test, go into the VXML Server box and from the command prompt do telnet locahost 25
 
If the SMTP server is up and running, then the telnet connection should be established. If you get a message like "connection refused" or similiar then there is a problem with the SMTP that needs to be corrected before your VXML app can work.
 
Also you can use any email client, like Outlook, Thunderbird, configure it to send email using that very same SMTP server and then test sending few messages to make sure that email routing is working fine too.
 
Hope this helps. Regards,
 
    Sidney
 
 
Hi Nathan Galloway,

Am usinv CVP 7.0, Testing email integration,
I have done the following methods..
1.  Copy mail.jar and activation.jar to tomcat/common/lib
2.  Download good copy of naming-factory.jar, remove old one and copy in new one to tomcat/common/lib --- (The naming-factory.jar is already there, so i did nt do any changes)
3.  Insert the following into
server.xml 
<GlobalNamingResources>
<Resource auth="Container" name="mail/HCLEMAIL" type="javax.mail.Session" mail.smtp.host="localhost" />
4. In the email element tag make the JNDI name Session
5. Added in context.xml - <ResourceLink global="mail/HCLEMAIL" name="mail/HCLEMAIL" type="javax.mail.Session"/>  

Restarted vxml service
But I got the following error...
##########

Element,warning,A messaging error occured: Could not connect to SMTP host: localhost port: 25.  Email will not be sent

Kindly help on this on how to proceed further....

regards
Thanveer


Subject: Re: New Message from Thanveer Abdulla in Customer Voice Portal (CVP) - Gene
Replied by: Janine Graves on 21-02-2011 10:55:23 AM
Thanveer,
I haven't tried getting email to work, but in #4 of your post, you set
the Studio JNDI name incorrectly. It should be HCLEMAIL


On 2/21/2011 5:29 AM, Cisco Developer Community Forums wrote:
> Thanveer Abdulla has created a new message in the forum "General
> Discussion - All Versions":
>
> --------------------------------------------------------------
> Hi Nathan Galloway,
>
> Am usinv CVP 7.0, Testing email integration,
> I have done the following methods..
> 1. Copy mail.jar and activation.jar to tomcat/common/lib
> 2. Download good copy of naming-factory.jar, remove old one and copy
> in new one to tomcat/common/lib --- (The naming-factory.jar is already
> there, so i did nt do any changes)
> 3. Insert the following into
> server.xml
> <GlobalNamingResources>
> <Resource auth="Container" name="mail/HCLEMAIL"
> type="javax.mail.Session" mail.smtp.host="*localhost*" />
> 4. In the email element tag make the JNDI name Session
> 5. Added in context.xml - <ResourceLink global="mail/HCLEMAIL"
> name="mail/HCLEMAIL" type="javax.mail.Session"/>
>
> Restarted vxml service
> But I got the following error...
> ##########
>
> *Element,warning,A messaging error occured: Could not connect to SMTP
> host: localhost port: 25. Email will not be sent*
>
> Kindly help on this on how to proceed further....
>
> regards
> Thanveer
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/3081955>
>
> or simply reply to this email.

--
Janine Graves

Subject: RE: JNDI Configuration to use email element in CVP 4.1
Replied by: Michael Jezierski on 30-04-2012 11:00:28 PM
I know this information is loosely outlined aboveI just wanted to post the files and configurations that worked for me to enable SMTP mail to be from CVP Studio Apps.

All config (xml) and jar files are in the <CVPHome>\VXMLServer\Tomcat\conf (xml config files) and <CVPHome>\VXMLServer\Tomcat\common\lib (jar files) folders.

2 of the 3 jar files can be downloaded from here mail.jar can be extracted from the javamailX_X_X.zip file and activation.jar can be extracted from the JavaBeans Activation Framework (jaf-X_X_X.zip). The third file (naming-factory.jar) can be found here, once all files are downloaded copy them into the lib directory mentioned above.

Next, the following lines were added context.xml and server.xml config files.


In the context.xml file the next line is added within the <Context> tags where JNDIMailName is the JNDI Name you have used in the Email Element in your CVP Studio App.

<ResourceLink global="mail/JNDIMailName" name="mail/JNDIMailName" type="javax.mail.Session"/>

In the server.xml file the next line is added within the <GlobalNamingResources> tags, again JNDIMailName is the JNDI Name you have used in the Email Element in your CVP Studio App, and SMTP-ServerNameOrIPAddress is the IP address or host name for the SMTP server you'll be sending emails to.

<Resource auth="Container" name="mail/JNDIMailName" type="javax.mail.Session" mail.smtp.host="SMTP-ServerNameOrIPAddress" />

The final step is to stop and restart the VXML Server via CVP Ops console.


Note: This process was used on CVP 7.X, also the SMTP server needs to allow unauthenticated email requests from the VXML server.


I hope someone finds this helpful.

Mike Jezierski
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links