java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S during InitialContext.lookup I am not sure What I did wrong, please help. I have following the steps in FAQ for stand-alone java client and put the appserv-rt.jar and javaee.jar in the classpath. (The client and server on the same host). I used the InitialContext ctx = new InitialContext(); Insteadof new InitialContext(Properties). Anything else I should do ? Thanks Chester --------------Here is the exception stack trace. [testng] java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S [testng]

Oracle Community | chesterxgchen123 | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S

    Oracle Community | 10 years ago | chesterxgchen123
    java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S during InitialContext.lookup I am not sure What I did wrong, please help. I have following the steps in FAQ for stand-alone java client and put the appserv-rt.jar and javaee.jar in the classpath. (The client and server on the same host). I used the InitialContext ctx = new InitialContext(); Insteadof new InitialContext(Properties). Anything else I should do ? Thanks Chester --------------Here is the exception stack trace. [testng] java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S [testng]

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.omg.CosTransactions.OTSPolicy.value()S during InitialContext.lookup I am not sure What I did wrong, please help. I have following the steps in FAQ for stand-alone java client and put the appserv-rt.jar and javaee.jar in the classpath. (The client and server on the same host). I used the InitialContext ctx = new InitialContext(); Insteadof new InitialContext(Properties). Anything else I should do ? Thanks Chester --------------Here is the exception stack trace. [testng] java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S [testng]

      at com.sun.jts.pi.InterceptorImpl.send_request()
    2. Embedded GlassFish Web
      InterceptorImpl.send_request
      1. com.sun.jts.pi.InterceptorImpl.send_request(InterceptorImpl.java:234)
      1 frame
    3. glassfish-corba-orb
      CorbaClientDelegateImpl.is_a
      1. com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeClientInterceptorStartingPoint(InterceptorInvoker.java:242)
      2. com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeClientPIStartingPoint(PIHandlerImpl.java:318)
      3. com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:251)
      4. com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:154)
      5. com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:294)
      5 frames
    4. Java RT
      NamingContextHelper.narrow
      1. org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
      2. org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
      2 frames
    5. Glassfish Naming
      SerialContext.lookup
      1. com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:112)
      2. com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:166)
      3. com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:315)
      3 frames
    6. Java RT
      InitialContext.lookup
      1. javax.naming.InitialContext.lookup(InitialContext.java:351)
      1 frame
    7. com.ascentmedia
      ServiceLocator.getService
      1. com.ascentmedia.ServiceLocator.getService(ServiceLocator.java:38)
      1 frame