Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by chesterxgchen123, 1 year ago
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]
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(InterceptorImpl.java:234)	at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeClientInterceptorStartingPoint(InterceptorInvoker.java:242)	at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeClientPIStartingPoint(PIHandlerImpl.java:318)	at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:251)	at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:154)	at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:294)	at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)	at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)	at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:112)	at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:166)	at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:315)	at javax.naming.InitialContext.lookup(InitialContext.java:351)	at com.ascentmedia.ServiceLocator.getService(ServiceLocator.java:38)