Cloud Pak for Business Automation

 View Only
Expand all | Collapse all

messages.log:javax.naming.NameNotFoundException: Intermediate context does not exist: mail/CNMailSession

  • 1.  messages.log:javax.naming.NameNotFoundException: Intermediate context does not exist: mail/CNMailSession

    Posted Wed November 16, 2022 10:47 AM
    Hi, I have configured a configdropin/override on liberty of IBM Content Navigator, part of CP4BA deployment, on OpenShift (fyre install).

    The override is something like this:
    <server>
        <mailSession mailSessionID="CNMailSession"
     	jndiName="mail/CNMailSession"
    	description="ICN Mail Session"
    	storeProtocol="imap"
    	transportProtocol="smtp"
    	host="smtp.sendgrid.net"
    	user="mailadmin"
    	password="password"
    	from="MailAdmin@domain.com">
            <property name="mail.smtp.host" value="smtp.sendgrid.net" />
            <property name="mail.smtp.port" value="465" />
            <property name="mail.smtp.auth" value="true" />
            <property name="mail.smtp.ssl.enable" value="true" />
        </mailSession>
    </server>
    from the following link
    https://www.ibm.com/support/pages/ibm-content-navigator-configuring-send-mail-container-environment

    Parameter values in here are fake ones, however I tested them on an traditional WAS with my mail settings and everything was fine.
    I was able to send a mail via Content Navigator of containerized CP4BA install.

    However I always get the following error in the containerized liberty of Content Navigator:
    messages.log:javax.naming.NameNotFoundException: Intermediate context does not exist: mail/CNMailSession.

    Moreover, if I have to send via TLS, how do I inject signer certificates inside the containerized liberty of Content Navigator?

    Thanks, regards (edited) 


    ------------------------------
    Leonardo Modeo
    ------------------------------


  • 2.  RE: messages.log:javax.naming.NameNotFoundException: Intermediate context does not exist: mail/CNMailSession

    Posted Thu December 08, 2022 10:55 AM
    Hello Leonardo,
    You are able to send emails using Navigator in CP4BA, correct?

    re: the following exception
    javax.naming.NameNotFoundException: Intermediate context does not exist: mail/CNMailSession.

    If you are you able to send mails, then this exception is harmless. To localize this exception, we may need to turn on tracing. You may also want to verify step (1) in the link below i.e. verify if you have javaMail-1.5 feature referenced in your server.xml inside the Navigator pod.
    https://www.ibm.com/docs/en/was-liberty/base?topic=manually-administering-javamail-liberty

    re: the following
    how do I inject signer certificates inside the containerized liberty of Content Navigator?

    We typically follow the link below to import custom certificates into CP4BA:
    https://www.ibm.com/docs/en/cloud-paks/cp-biz-automation/21.0.x?topic=services-importing-certificate-external-service

    Best Regards
    Anuraj

    ------------------------------
    ANURAJ BERDE
    ------------------------------