1 Reply Latest reply on Sep 20, 2005 12:26 PM by bill.burke

    javax.naming.NameNotFoundException: with Weblogic 9 when loo

    zaidhaque

      Hi,

      Thnx Bill for your response before...

      As you said I droped xerces 2 7 1 jar in WEB-INF\lib. Still it didn't work. However, I added these jars in the start of the classpath through startWeblogic.cmd (.sh). Still the problem exist if I start it through eclipse (I have 3.1 with MyEclipse). I think I may have to do something with eclipse or may be with myeclipse. However, with startWeblogic running in cmd prompt it comes up. Now my problem is while lookup of a bean, it is trying to go through weblogic naming (I believe Jboss EJB3 container has to pickup this lookup. I'm not sure weather I'm correct). I have added all the libraries in the WEB-INF\lib. Also then I tried adding jars in start of the classpath to check wether it works. Still the problem exist. Follwoing is stack trace

      javax.naming.NameNotFoundException: While trying to lookup 'com.emirates.ibe.tes
      tejb3.business.interfaces.Calculator' didn't find subcontext 'com'. Resolved '';
      remaining name 'com/emirates/ibe/testejb3/business/interfaces/Calculator'
      at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
      NamingNode.java:1123)
      at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
      a:245)
      at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
      ava:171)
      at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:20
      4)
      at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
      ava:267)
      at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at jsp_servlet.__calculator.jspInit(__calculator.java:97)
      at weblogic.servlet.jsp.JspBase.init(JspBase.java:27)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
      ubSecurityHelper.java:265)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
      tyHelper.java:61)
      at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
      ifecycleHelper.java:58)
      at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHel
      per.java:48)
      at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
      mpl.java:502)
      at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:225)
      at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:224)
      at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(Servlet
      StubImpl.java:383)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:298)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:165)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:3022)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:1925)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:1848)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1288)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)


      Rgds,

      Zaid