2 Replies Latest reply: Jun 20, 2012 12:20 PM by Alexey -Oracle RSS

    How to send messages using JAVASubsys to queue created on a weblogic server

    936103
      Hi Experts,
      I am trying to do a JMS setup to send messages to a queue defined on Weblogic server. I have performed below steps so far and looking forward for successfull setup.

      1. Installed Weblogic Server
      2. Created JMS Server in Weblogic as below:

      Name : JMSSiebelVision
      Persistent Store: VisionFileStore
      Target: AdminServer
      Current Server: AdminServer

      Created JMS Module in weblogic as below:
      Module Name: SiebelVisionSystemModule

      JMS Module Resources:
      Name: SiebelVisionConnectionFactory
      Type: Connection Factory
      JNDI Name: jndi.SiebelVisionConnectionFactory
      Subdeployment: SiebelVisionQueue
      Targets : JMSSiebelVision

      Name: SiebelVisionQueue
      Type: Queue
      JNDI Name: jndi.SiebelVisionQueue
      Subdeployment: SiebelVisionQueue
      Targets : JMSSiebelVision

      3. In Siebel Application I have created named subsystem as below:
      Name: JAVA
      Subsystem Type: JVMSubSys
      Parameters are:
      CLASSPATH = \\145.36.252.54\fs\JMS\jndi.properties;\\145.36.252.54\fs\JMS;\\145.36.252.54\fs\JMS\Siebel.jar;\\145.36.252.54\fs\JMS\SiebelJI_enu.jar;\\145.36.252.54\fs\JMS\jms.jar;\\145.36.252.54\fs\JMS\jndi.jar;\\145.36.252.54\fs\JMS\weblogic.jar;\\145.36.252.54\fs\JMS\wlclient.jar;\\145.36.252.54\fs\JMS\wljmsclient.jar;.
      VMOPTIONS = -Xrs -Djava.compiler=NONE -Djms.log=\\145.36.252.54\fs\JMS\JMSLOG\jmsLog.log
      JVM dll path = 'E:\java\jre6\bin\client\jvm.dll'

      same parameter is defined in ucm.cfg file by adding a block for [JAVA]

      I have created a one more named subsystem as below for sending messages (logic is written in workflow and defined to used below Named Subsytem) to JMS queue:

      Name: JMS_VisionODIDispatchSend
      Subsystem: JVMSubSys

      We are finding below errors in the JMS Log file:

      2:43:14.924 PM Thu May 10: Invoking method Send
      2:43:14.939 PM Thu May 10: >ConnectionFactory=SiebelVisionConnectionFactory
      2:43:14.955 PM Thu May 10: >ConnectionUsername=weblogic1
      2:43:14.955 PM Thu May 10: >ConnectionPassword=*
      2:43:14.955 PM Thu May 10: >SendQueue=SiebelVisionQueue
      2:43:14.955 PM Thu May 10: >SendUsername=weblogic1
      2:43:14.955 PM Thu May 10: >SendPassword=*
      2:43:14.955 PM Thu May 10: >ReceiveUsername=weblogic1
      2:43:14.955 PM Thu May 10: >ReceivePassword=*
      2:43:14.955 PM Thu May 10: >TopicUsername=weblogic1
      2:43:14.955 PM Thu May 10: >TopicPassword=*
      2:43:14.955 PM Thu May 10: is a Receiver : false
      2:43:14.955 PM Thu May 10: distributed destinations : false
      2:43:14.971 PM Thu May 10: No cached connection found
      2:43:14.971 PM Thu May 10: Send failed.
      2:43:14.986 PM Thu May 10: Checking if exception is a connection exception
      2:43:14.986 PM Thu May 10: CREATING_JNDI_CONTEXT : is not a Connection related exception
      2:43:14.986 PM Thu May 10: Error invoking Send --

      SiebelJMSException errorSubtype=CREATING_JNDI_CONTEXT
           at com.siebel.eai.jms.SiebelJNDIContext.getContext(SiebelJNDIContext.java:73)
           at com.siebel.eai.jms.SiebelJNDIContext.<init>(SiebelJNDIContext.java:47)
           at com.siebel.eai.jms.JMSBusinessService.getJNDIContext(JMSBusinessService.java:1323)
           at com.siebel.eai.jms.JMSBusinessService.createConnection(JMSBusinessService.java:1229)
           at com.siebel.eai.jms.JMSBusinessService.doInvokeMethodWithExceptions(JMSBusinessService.java:314)
           at com.siebel.eai.jms.JMSBusinessService.doInvokeMethod(JMSBusinessService.java:182)
           at com.siebel.eai.SiebelBusinessService.invokeMethod(SiebelBusinessService.java:9)

      2:43:15.002 PM Thu May 10: Threw SiebelBusinessServiceException with
      ErrorCode = JNDI_ERROR
      ErrorMessage = java.lang.NoClassDefFoundError: weblogic/security/acl/UserInfo
      StackTrace = SiebelJMSException errorSubtype=CREATING_JNDI_CONTEXT
           at com.siebel.eai.jms.SiebelJNDIContext.getContext(SiebelJNDIContext.java:73)
           at com.siebel.eai.jms.SiebelJNDIContext.<init>(SiebelJNDIContext.java:47)
           at com.siebel.eai.jms.JMSBusinessService.getJNDIContext(JMSBusinessService.java:1323)
           at com.siebel.eai.jms.JMSBusinessService.createConnection(JMSBusinessService.java:1229)
           at com.siebel.eai.jms.JMSBusinessService.doInvokeMethodWithExceptions(JMSBusinessService.java:314)
           at com.siebel.eai.jms.JMSBusinessService.doInvokeMethod(JMSBusinessService.java:182)
           at com.siebel.eai.SiebelBusinessService.invokeMethod(SiebelBusinessService.java:9)

      2:43:15.002 PM Thu May 10: Cumulative time = 14109
      6:00:01.946 PM Thu May 10: destroy is called


      Please let me know where I am going wrong.


      Regards,
      Amit Shukla