• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Not able access the jndi lookup services using tomcat 7

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why is a "Tomcat 7" problem showing WebLogic classes and URLs?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic