aspose file tools*
The moose likes Tomcat and the fly likes Not able access the jndi lookup services using tomcat 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Not able access the jndi lookup services using tomcat 7" Watch "Not able access the jndi lookup services using tomcat 7" New topic
Author

Not able access the jndi lookup services using tomcat 7

srilatha nimmaneni
Greenhorn

Joined: Jun 22, 2009
Posts: 15
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

Joined: Jun 25, 2001
Posts: 16014
    
  20

Why is a "Tomcat 7" problem showing WebLogic classes and URLs?


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able access the jndi lookup services using tomcat 7