Topic
  • 4 replies
  • Latest Post - ‏2010-02-16T11:50:12Z by Lewis Nancarrow
Lewis Nancarrow
Lewis Nancarrow
4 Posts

Pinned topic Error javax.naming.NoInitialContextException - P8 Connector Error

‏2010-02-10T12:20:08Z |
Im currently carrying out a OmniFind 8.5.1 installation I've run into a issue with the Content Integrator P8 connector,

When running a test connection.
Error javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

com.filenet.api.exception.EngineRuntimeException: API_UNEXPECTED_JNDI_ERROR: An unexpected error occured accessing JNDI

com.filenet.wcm.api.RemoteServerException: com.filenet.api.exception.EngineRuntimeException;An unexpected error occured accessing JNDI. Code=null; OMFC/TheNetwork/NoOp//API_UNEXPECTED_JNDI_ERROR

I'm sure this is a simple error but I've gone though all my RMIBridge config and can't see what I'm missing.

Build Information

FileNet P8 4.5
WebSphere 6.1.17
Content Integrator 8.5.1

Any assistance would be gratefully received

Kind Regards

Lewis Nancarrow
Updated on 2010-02-16T11:50:12Z at 2010-02-16T11:50:12Z by Lewis Nancarrow
  • Lewis Nancarrow
    Lewis Nancarrow
    4 Posts

    Re: Error javax.naming.NoInitialContextException - P8 Connector Error

    ‏2010-02-10T15:52:31Z  
    I thought i would add the env of the root user after starting RMIBridge

    root@audacity bin# env
    HOSTNAME=audacity.passmark.net
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    VBR_CLASSPATH=/opt/IBM/ContentIntegrator/lib/vbr.jar::/opt/IBM/ContentIntegrator/docs/examples/java:/opt/IBM/ContentIntegrator/docs/examples/wsapi/java:/opt/IBM/ContentIntegrator/lib/activation.jar:/opt/IBM/ContentIntegrator/lib/ITLMToolkit.jar:/opt/IBM/ContentIntegrator/lib/Jace.jar:/opt/IBM/ContentIntegrator/lib/javaapi.jar:/opt/IBM/ContentIntegrator/lib/jlog.jar:/opt/IBM/ContentIntegrator/lib/mailapi.jar:/opt/IBM/ContentIntegrator/lib/soap.jar:/opt/IBM/ContentIntegrator/lib/vbr.jar::/opt/IBM/ContentIntegrator/ejb/vbr_access_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_bpm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_contentmgr.jar:/opt/IBM/ContentIntegrator/ejb/vbr_documentum.jar:/opt/IBM/ContentIntegrator/ejb/vbr_dominodoc.jar:/opt/IBM/ContentIntegrator/ejb/vbr_filesystem.jar:/opt/IBM/ContentIntegrator/ejb/vbr_hummingbird.jar:/opt/IBM/ContentIntegrator/ejb/vbr_isra.jar:/opt/IBM/ContentIntegrator/ejb/vbr_livelink.jar:/opt/IBM/ContentIntegrator/ejb/vbr_mqserieswf.jar:/opt/IBM/ContentIntegrator/ejb/vbr_notes6.jar:/opt/IBM/ContentIntegrator/ejb/vbr_ntfilesystem.jar:/opt/IBM/ContentIntegrator/ejb/vbr_odwek.jar:/opt/IBM/ContentIntegrator/ejb/vbr_p8cm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_panagon_content_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_panagon_image_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_pdm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_rdbms.jar:/opt/IBM/ContentIntegrator/ejb/vbr_sharepoint.jar:/opt/IBM/ContentIntegrator/ejb/vbr_teamsite.jar:/opt/IBM/ContentIntegrator/ejb/vbr_view_services.jar
    OLDPWD=/opt/IBM/ContentIntegrator
    USER=root
    LD_LIBRARY_PATH=/opt/IBM/ContentIntegrator/htmlconverter:/usr/X11R6/lib::/opt/IBM/FileNet/ContentEngine/verity/k2/_ilnx21/bin
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:.cmd=00;32:.exe=00;32:.com=00;32:.btm=00;32:.bat=00;32:.sh=00;32:.csh=00;32:.tar=00;31:.tgz=00;31:.arj=00;31:.taz=00;31:.lzh=00;31:.zip=00;31:.z=00;31:.Z=00;31:.gz=00;31:.bz2=00;31:.bz=00;31:.tz=00;31:.rpm=00;31:.cpio=00;31:.jpg=00;35:.gif=00;35:.bmp=00;35:.xbm=00;35:.xpm=00;35:.png=00;35:.tif=00;35:
    LIBPATH=/opt/IBM/ContentIntegrator/htmlconverter:
    VBR_HOME=/opt/IBM/ContentIntegrator
    MAIL=/var/spool/mail/root
    PATH=/bin:/opt/IBM/ContentIntegrator/htmlconverter:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/jdk1.5.0_22/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/IBM/FileNet/ContentEngine/verity/k2/_ilnx21/bin:/root/bin
    INPUTRC=/etc/inputrc
    PWD=/opt/IBM/ContentIntegrator/bin
    JAVA_HOME=
    LANG=en_US.UTF-8
    P8TASKMAN_HOME=/opt/IBM/FileNet/WebClient/CommonFiles
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    VBR_ALLJARS=:/opt/IBM/ContentIntegrator/ejb/vbr_access_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_bpm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_contentmgr.jar:/opt/IBM/ContentIntegrator/ejb/vbr_documentum.jar:/opt/IBM/ContentIntegrator/ejb/vbr_dominodoc.jar:/opt/IBM/ContentIntegrator/ejb/vbr_filesystem.jar:/opt/IBM/ContentIntegrator/ejb/vbr_hummingbird.jar:/opt/IBM/ContentIntegrator/ejb/vbr_isra.jar:/opt/IBM/ContentIntegrator/ejb/vbr_livelink.jar:/opt/IBM/ContentIntegrator/ejb/vbr_mqserieswf.jar:/opt/IBM/ContentIntegrator/ejb/vbr_notes6.jar:/opt/IBM/ContentIntegrator/ejb/vbr_ntfilesystem.jar:/opt/IBM/ContentIntegrator/ejb/vbr_odwek.jar:/opt/IBM/ContentIntegrator/ejb/vbr_p8cm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_panagon_content_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_panagon_image_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_pdm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_rdbms.jar:/opt/IBM/ContentIntegrator/ejb/vbr_sharepoint.jar:/opt/IBM/ContentIntegrator/ejb/vbr_teamsite.jar:/opt/IBM/ContentIntegrator/ejb/vbr_view_services.jar
    SHLVL=1
    HOME=/root
    LOGNAME=root
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    DISPLAY=:0.0
    G_BROKEN_FILENAMES=1
    XAUTHORITY=/root/.xauthEA8Ra3
    _=/bin/env
  • Lewis Nancarrow
    Lewis Nancarrow
    4 Posts

    Re: Error javax.naming.NoInitialContextException - P8 Connector Error

    ‏2010-02-15T14:13:57Z  
    Hi sadly im still unable to progress past this error. I've posted my RMIBridge file and WcmApiConfig.properties file.
    any idea's or thoughts anyone might have on this issue would be greatfully recieved.

    RMIBridge.sh
    #!/bin/sh
    1. Launches the RMI connector server
    set WAS_HOME=/opt/IBM/WebSphere/AppServer

    1. First, check for IBM Content Integrator home and execute the config file
    if
    then
    . ./config.sh
    else
    . $VBR_HOME/bin/config.sh
    fi

    VBR_ALLJARS=$VBR_CLASSPATH
    export VBR_ALLJARS

    1. Set the VBR_ALLJARS environment variable. This variable will include
    2. all jars including connector jars necessary for external VM services.
    for i in $VBR_HOME/ejb/*.jar
    do
    VBR_ALLJARS=$VBR_ALLJARS:$i
    export VBR_ALLJARS
    done

    for i in $VBR_HOME/opt/*.jar
    do
    VBR_ALLJARS=$VBR_ALLJARS:$i
    export VBR_ALLJARS
    done

    VBR_RMIPORT=1251
    export VBR_RMIPORT

    1. Launch the RMI connector server external VM service
    java \
    -ms256m -mx256m \
    -classpath "$VBR_ALLJARS" \
    -Dvbr.home="$VBR_HOME" \
    -Dvbr.services.startregistry=true \
    -Dvbr.log.info=RMI_$VBR_RMIPORT \
    -Dvbr.services.registryport=$VBR_RMIPORT \
    -Dvbr.ejb.bridge.rmibridge.rmiurl=rmi://localhost:$VBR_RMIPORT/RMIBridgeServer \
    -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory \
    -Djava.naming.provider.url=iiop://audacity.passmark.net:2809 \
    -Djava.ext.dirs=/opt/IBM/WebSphere/AppServer/java/jre/lib/ext:/opt/IBM/WebSphere/AppServer/java/jre/lib:/opt/IBM/WebSphere/AppServer/classes:/opt/IBM/WebSphere/AppServer/lib:/opt/IBM/WebSphere/AppServer/lib/ext \
    -Xbootclasspath/p:/opt/IBM/WebSphere/AppServer/java/jre/lib/ibmorb.jar:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/properties \
    -Dcom.ibm.CORBA.ConfigURL=file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/properties/sas.client.props \
    -Dfilenet.wcmapiconfig="/opt/IBM/ContentIntegrator/lib/WcmApiConfig.properties" \
    -Dvbr.ejb.bridge.rmibridge.rmiurl=rmi://audacity.passmark.net:$VBR_RMIPORT/RMIBridgeServer \
    com.venetica.vbr.ejb.bridge.rmibridge.RMIBridgeFactoryLauncher

    WcmApiConfig.properties

    RemoteServerUrl = cemp:iiop://audacity.passmark.net:2809/FileNet/Engine
    RemoteServerUploadUrl = cemp:iiop://audacity.passmark.net:2809/FileNet/Engine
    RemoteServerDownloadUrl = cemp:iiop://audacity.passmark.net:2809/FileNet/Engine

    CredentialsProtection = Clear
    CredentialsProtection/UserToken = Symmetric

    CryptoKeyFile/UserToken = /opt/FileNet/Authentication/UTCryptoKeyFile.properties
    jaasConfigurationName = FileNetP8Engine
    TxJndiKey= jta/usertransaction
  • SystemAdmin
    SystemAdmin
    254 Posts

    Re: Error javax.naming.NoInitialContextException - P8 Connector Error

    ‏2010-02-15T21:55:52Z  
    Hi Lewis,

    In your RMIBridge.sh make following change and it should solve the issue you are facing.

    you have -Djava.ext.dirs=/opt/IBM/WebSphere/AppServer/java/jre/lib/ext:/opt/IBM/WebSphere/AppServer/java/jre/lib:/opt/IBM/WebSphere/AppServer/classes:/opt/IBM/WebSphere/AppServer/lib:/opt/IBM/WebSphere/AppServer/lib/ext \
    add /opt/IBM/WebSphere/AppServer/plugins: to the Djava.ext.dirs

    -Djava.ext.dirs=/opt/IBM/WebSphere/AppServer/plugins:/opt/was/6_1/java/jre/lib/ext:/opt/was/6_1/java/jre/lib:/opt/was/6_1/lib:/opt/was/6_1/lib/ext \

    That should take care of it.

    Thanks
    Dhruv
  • Lewis Nancarrow
    Lewis Nancarrow
    4 Posts

    Re: Error javax.naming.NoInitialContextException - P8 Connector Error

    ‏2010-02-16T11:50:12Z  
    Hi Thank you for the feedback and input, I attempted to carry out the change as advised. this is still failing but with a diffrent error, I've also included my grep rmi output .

    I also wanted to confirm this is a local installation i'm not using the Websphere client.
    There is also a older thread with the same error which wasn't answered - https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14304788&

    java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl
    at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:86)
    at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
    at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
    at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
    at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
    at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:309)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:400)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:171)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:788)
    at com.filenet.apiimpl.util.SessionLocator.findEJBSessionByPath(SessionLocator.java:734)
    at com.filenet.apiimpl.util.SessionLocator.createNewSession(SessionLocator.java:565)
    at com.filenet.apiimpl.util.SessionLocator.getSession(SessionLocator.java:144)
    at com.filenet.api.core.Factory$User.fetchCurrent(Factory.java:2652)
    at com.filenet.wcm.api.impl.bd.ZMI_TheNetwork_NoOp.execute(ZMI_TheNetwork_NoOp.java:55)
    at com.filenet.wcm.api.impl.bd.MethodImplementation.createAndCall(MethodImplementation.java:154)
    at com.filenet.wcm.api.impl.bd.RcBd.performMethodAndGetResponse(RcBd.java:222)
    at com.filenet.wcm.api.impl.bd.RcBd.doRpc(RcBd.java:130)
    at com.filenet.wcm.api.impl.bd.RcBd.doRpc(RcBd.java:40)
    at com.filenet.wcm.api.impl.RemoteCommand.execute(RemoteCommand.java:415)
    at com.filenet.wcm.api.impl.RemoteCommand.executeInner(RemoteCommand.java:397)
    at com.filenet.wcm.api.impl.RemoteCommand.execute(RemoteCommand.java:329)
    at com.filenet.wcm.api.impl.RemoteCommand.executeExpectingBOs(RemoteCommand.java:256)
    at com.filenet.wcm.api.impl.SessionImpl.verify(SessionImpl.java:415)
    at com.venetica.vbr.ejb.bridge.p8cm.P8CMBridge.logon(P8CMBridge.java:693)
    at com.venetica.vbr.ejb.bridge.rmibridge.RMIBridgeProxyImpl.logon(RMIBridgeProxyImpl.java:152)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)
    root@audacity lib# ps -ef | grep rmi
    p8ce 2511 1 0 Feb15 ? 00:00:06 gnome-terminal
    root 4392 4391 0 Feb15 pts/3 00:00:50 java -ms256m -mx256m -classpath /opt/IBM/ContentIntegrator/lib/vbr.jar::/opt/IBM/ContentIntegrator/docs/examples/java:/opt/IBM/ContentIntegrator/docs/examples/wsapi/java:/opt/IBM/ContentIntegrator/lib/activation.jar:/opt/IBM/ContentIntegrator/lib/ITLMToolkit.jar:/opt/IBM/ContentIntegrator/lib/Jace.jar:/opt/IBM/ContentIntegrator/lib/javaapi.jar:/opt/IBM/ContentIntegrator/lib/jlog.jar:/opt/IBM/ContentIntegrator/lib/mailapi.jar:/opt/IBM/ContentIntegrator/lib/soap.jar:/opt/IBM/ContentIntegrator/lib/vbr.jar:/opt/IBM/ContentIntegrator/ejb/vbr_access_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_bpm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_contentmgr.jar:/opt/IBM/ContentIntegrator/ejb/vbr_documentum.jar:/opt/IBM/ContentIntegrator/ejb/vbr_dominodoc.jar:/opt/IBM/ContentIntegrator/ejb/vbr_filesystem.jar:/opt/IBM/ContentIntegrator/ejb/vbr_hummingbird.jar:/opt/IBM/ContentIntegrator/ejb/vbr_isra.jar:/opt/IBM/ContentIntegrator/ejb/vbr_livelink.jar:/opt/IBM/ContentIntegrator/ejb/vbr_mqserieswf.jar:/opt/IBM/ContentIntegrator/ejb/vbr_notes6.jar:/opt/IBM/ContentIntegrator/ejb/vbr_ntfilesystem.jar:/opt/IBM/ContentIntegrator/ejb/vbr_odwek.jar:/opt/IBM/ContentIntegrator/ejb/vbr_p8cm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_panagon_content_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_panagon_image_services.jar:/opt/IBM/ContentIntegrator/ejb/vbr_pdm.jar:/opt/IBM/ContentIntegrator/ejb/vbr_rdbms.jar:/opt/IBM/ContentIntegrator/ejb/vbr_sharepoint.jar:/opt/IBM/ContentIntegrator/ejb/vbr_teamsite.jar:/opt/IBM/ContentIntegrator/ejb/vbr_view_services.jar:/opt/IBM/ContentIntegrator/opt/iice_common_viewer.jar:/opt/IBM/ContentIntegrator/opt/jaxb-api-2.1.jar:/opt/IBM/ContentIntegrator/opt/log4j.jar -Dvbr.home=/opt/IBM/ContentIntegrator -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory -Djava.naming.provider.url=iiop://audacity.passmark.net:2809 -Djava.ext.dirs=/opt/IBM/WebSphere/AppServer/java/jre/lib/ext:/opt/IBM/WebSphere/AppServer/java/jre/lib:/opt/IBM/WebSphere/AppServer/lib:/opt/IBM/WebSphere/AppServer/lib/ext -Xbootclasspath/p:/opt/IBM/WebSphere/AppServer/plugins:/opt/IBM/WebSphere/AppServer/java/jre/lib/ibmorb.jar:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/properties -Dcom.ibm.CORBA.ConfigURL=file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/properties/sas.client.props -Dfilenet.wcmapiconfig=/opt/IBM/ContentIntegrator/lib/WcmApiConfig.properties -Dvbr.services.startregistry=true -Dvbr.log.info=RMI_1251 -Dvbr.services.registryport=1251 -Dvbr.ejb.bridge.rmibridge.rmiurl=rmi://audacity.passmark.net:1251/RMIBridgeServer com.venetica.vbr.ejb.bridge.rmibridge.RMIBridgeFactoryLauncher