Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able access the jndi lookup services using tomcat 7

 
srilatha nimmaneni
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

please help me out bellow error.

java.lang.VerifyError: (class: weblogic/jndi/WLSJNDIEnvironmentImpl, method: pushTransactionHelper signature: ()V) Incompatible argument to function
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:169)
weblogic.jndi.internal.JNDIEnvironment.getJNDIEnvironment(JNDIEnvironment.java:33)
weblogic.jndi.Environment.<clinit>(Environment.java:89)
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:197)
com.hp.it.sp4ts.healthcheck.controller.coreServiceController.getInitialContext(coreServiceController.java:196)
com.hp.it.sp4ts.healthcheck.controller.coreServiceController.getCSConnection(coreServiceController.java:155)
com.hp.it.sp4ts.healthcheck.controller.coreServiceController.submitCoreServiceForm(coreServiceController.java:102)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


i am trying to lookup the jndi service in my controller, where ever i am calling that method i got that error.
here is the my code to get jndi environment details.

Hashtable<String, String> env = new Hashtable<String, String>();
env.put(InitialContext.PROVIDER_URL, System.getProperty("ods.url", "t3://g1u0754c.austin.hp.com:21852,g1u0755c.austin.hp.com:21852"));
//env.put(InitialContext.PROVIDER_URL, System.getProperty("ods.url", "t3://seeker-sasu.atlanta.hp.com:21852"));
env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
env.put(InitialContext.SECURITY_PRINCIPAL, "sp4ts");
env.put(InitialContext.SECURITY_CREDENTIALS, "sp4ts1q2w#E$R");


please help me out solving this issue.

thanks in advance.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18092
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is a "Tomcat 7" problem showing WebLogic classes and URLs?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic