0 Replies Latest reply on Oct 22, 2002 6:12 PM by David Nash

    Axis install causing authentication faults - please help!!

    David Nash Newbie

      Hi,

      I am running into problems trying to get Axis to run under jboss-2.2.2_tomcat-3.2.2.

      If I install axis by copying the files to the webapps directory of tomcat, all seems to work well - except for the following "env not bound" error on every call to an axis service:

      [EmbeddedTomcatSX] javax.naming.NameNotFoundException: env not bound
      [EmbeddedTomcatSX] at org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
      [EmbeddedTomcatSX] at org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
      [EmbeddedTomcatSX] at org.jnp.server.NamingServer.getObject(NamingServer.java:487)
      [EmbeddedTomcatSX] at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
      [EmbeddedTomcatSX] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
      [EmbeddedTomcatSX] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:457)
      [EmbeddedTomcatSX] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      [EmbeddedTomcatSX] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      [EmbeddedTomcatSX] at org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:102)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.RequestImpl.getUserPrincipal(RequestImpl.java:359)
      [EmbeddedTomcatSX] at org.apache.tomcat.facade.HttpServletRequestFacade.getUserPrincipal(HttpServletRequestFacade.java:376)
      [EmbeddedTomcatSX] at org.apache.axis.transport.http.AxisServlet.createMessageContext(AxisServlet.java:736)
      [EmbeddedTomcatSX] at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:506)
      [EmbeddedTomcatSX] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      [EmbeddedTomcatSX] at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
      [EmbeddedTomcatSX] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [EmbeddedTomcatSX] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [EmbeddedTomcatSX] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [EmbeddedTomcatSX] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [EmbeddedTomcatSX] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [EmbeddedTomcatSX] at java.lang.Thread.run(Unknown Source)

      On the other hand, if I put axis in a war and then an ear and deploy as normally to jBoss, I get an authentication error when trying to call an axis service and *nothing* works:

      2002-10-22 05:03:31 - Ctx( /axis ): Exception in: R( /axis + /StockQuoteService.jws + null) - java.lang.NullPointerException
      at org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:113)
      at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837)
      at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
      at org.apache.tomcat.core.RequestImpl.getUserPrincipal(RequestImpl.java:359)
      at org.apache.tomcat.facade.HttpServletRequestFacade.getUserPrincipal(HttpServletRequestFacade.java:376)
      at org.apache.axis.transport.http.AxisServlet.createMessageContext(AxisServlet.java:736)
      at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:259)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Unknown Source)

      Any suggestions or help greatly appreciated!

      Thanks,

      David