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

Created by: null on 27-10-2003 06:33:18 PM
Hi,

I am trying to using a custom library (Jscape Inet factory) to send emails through an smtp server with audium 3.3 with call session data. The code runs fine and connects to the smtp server in standalone mode. But it does'nt work with audium when I use a decision element to call the class that sends the emails and smtpexceptions are displayed when tomcat starts up and tries to load the application. Please advice if this is just an issue of connectivity to the local smtp server, or are there any setting files that need to be changed?

thank you in advance

venk

Subject: RE: emails thru smtp server
Replied by: null on 28-10-2003 03:26:38 PM
Hi Venk,

There are no restrictions Audium makes in terms of running third-party Java libraries from within code you write and deploy on the Audium Server. As long as those libraries are made available to Audium by placing them inside the common/lib directory (or within the java directory of the application itself), everything should work fine.

Keep in mind that since Audium is run on tom of an existing application server, it is run in a multi-threaded environment. As long as you keep things local, you should be fine. If your libraries uses static variables, though, you may encounter problems when you receive multiple calls. You would have to synchronize your code to prevent problems.

You mention that you get errors when Tomcat loads up, not when you try to call into the application? If this is the case, then Tomcat is probably not configured correctly to to support the library as the Audium Server does not execute any of your code when the Audium Server is starting up. A decision element's code is only executed when that decision is visited in the call flow.

Hope this helps!
Comments
MasonCartor
Level 1
Level 1

Subject: RE: emails thru smtp server

Hi Venk,

I know this thread is quite old, but adding a few thoughts in case someone else runs into a similar issue today.

When you’re sending emails through an SMTP server in a Java application (like with Jscape Inet Factory), the usual reasons for smtpexceptions at Tomcat startup often include:

  • Missing or incorrectly placed library JAR files (should go inside /common/lib or your app’s /WEB-INF/lib)

  • Conflicts between libraries (like overlapping mail libraries in the classpath)

  • Environment variables or system properties not properly set when Tomcat starts

  • Hardcoded static references that don’t behave well under Tomcat’s multithreaded environment

Beyond that, it can help to:

  • Double-check if the SMTP server needs authentication or TLS/SSL, and confirm your library config supports it

  • Use a dedicated SMTP service or SMTP relay service instead of a local SMTP setup, which often avoids firewall and network issues

  • Keep SMTP credentials and configs in external files rather than hardcoded, so they’re easier to change across dev, test, and prod

Many teams today move to managed services like SMTPwire  to handle scaling, deliverability, and logging — rather than running everything locally. It saves time and reduces server configuration headaches.

If anyone here is still troubleshooting, feel free to share stack traces or config details — happy to take a look.

Best,
Mason Cartor

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