0 Replies Latest reply on May 11, 2002 6:09 AM by Kris A

    JBoss 2.4.4 Tomcat 4.0,1 JNDI issues

    Kris A Newbie

      I have seen lots of messages about this, is there an all encompassing FAQ on the subject?

      My problem is as follows, i have deployed 3 ejb jars in jboss and one war file containing a jsp client to those ejb jars. When i go to run the client the web pages are displayed ok but all ejb lookups fail. I am assuming that this is because the jndi.properties file isnt being picked up (the exact error is below)

      I can run this application ok on JBoss 2.4.4 and Tomcat 3.2.3, but would like to upgrade to the new version. I would be really grateful if someone was able to give me some advice about how to solve this hopefully simple problem.

      Kris


      [11:05:44,322,Default] java.lang.NullPointerException
      [11:05:44,323,Default] at com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:135)
      [11:05:44,324,Default]
      [11:05:44,324,Default] at javax.naming.InitialContext.init(InitialContext.java:222)
      [11:05:44,325,Default]
      [11:05:44,325,Default] at javax.naming.InitialContext.(InitialContext.java:182)
      [11:05:44,326,Default]
      [11:05:44,326,Default] at com.kainos.workflow.webclient.WFCResourceTagHandler.localise(WFCResourceTagHandler.java:275)
      [11:05:44,326,Default]
      [11:05:44,327,Default] at com.kainos.workflow.webclient.WFCResourceTagHandler.doStartTag(WFCResourceTagHandler.java:129)
      [11:05:44,327,Default]
      [11:05:44,328,Default] at org.apache.jsp.index$jsp._jspService(index$jsp.java:146)
      [11:05:44,328,Default]
      [11:05:44,329,Default] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      [11:05:44,330,Default]
      [11:05:44,330,Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [11:05:44,331,Default]
      [11:05:44,331,Default] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
      [11:05:44,331,Default]
      [11:05:44,332,Default] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      [11:05:44,332,Default]
      [11:05:44,333,Default] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      [11:05:44,333,Default]
      [11:05:44,334,Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [11:05:44,334,Default]
      [11:05:44,335,Default] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      [11:05:44,335,Default]
      [11:05:44,336,Default] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      [11:05:44,336,Default]
      [11:05:44,337,Default] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      [11:05:44,337,Default]
      [11:05:44,337,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [11:05:44,338,Default]
      [11:05:44,338,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [11:05:44,371,Default]
      [11:05:44,372,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [11:05:44,372,Default]
      [11:05:44,373,Default] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      [11:05:44,373,Default]
      [11:05:44,374,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [11:05:44,374,Default]
      [11:05:44,375,Default] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      [11:05:44,375,Default]
      [11:05:44,376,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      [11:05:44,376,Default]
      [11:05:44,377,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [11:05:44,377,Default]
      [11:05:44,378,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [11:05:44,378,Default]
      [11:05:44,378,Default] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
      [11:05:44,379,Default]
      [11:05:44,380,Default] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      [11:05:44,380,Default]
      [11:05:44,381,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [11:05:44,381,Default]
      [11:05:44,382,Default] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      [11:05:44,382,Default]
      [11:05:44,382,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      [11:05:44,383,Default]
      [11:05:44,383,Default] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      [11:05:44,384,Default]
      [11:05:44,384,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      [11:05:44,385,Default]
      [11:05:44,385,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [11:05:44,386,Default]
      [11:05:44,386,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [11:05:44,433,Default]
      [11:05:44,434,Default] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      [11:05:44,434,Default]
      [11:05:44,435,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [11:05:44,435,Default]
      [11:05:44,436,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [11:05:44,436,Default]
      [11:05:44,437,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [11:05:44,437,Default]
      [11:05:44,438,Default] at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      [11:05:44,438,Default]
      [11:05:44,438,Default] at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      [11:05:44,439,Default]
      [11:05:44,440,Default] at java.lang.Thread.run(Thread.java:484)