3 Replies Latest reply on Jan 4, 2005 1:41 PM by Paul Casal

    not having success when invoking webservice in jboss 3.2.6

    Karim Romero Newbie

      Hi

      I have a web service working on jboss 3.2.1 and plain c clients running successfully for a long time.

      I wanted to migrate it to jboss 3.2.6 but when the client invoke a service from the server, it is getting a stack trace.

      For testing purpouse i deployed the service in jboss 3.2.3 and is running ok.

      I followed and double checked the docs but everything looks ok.
      Iam tried with local and remote bean view-type without success.

      those are the xdoclet tags that im using:

       * @ejb.security-role-ref role-name="Posclient" role-link="Posclient"
       *
       * @ejb.permission role-name="Posclient"
       * @ejb.security-identity run-as="Authenticated"
       *
       * @jboss-net.web-service urn="PosServer"
       *
       * @jboss-net.authentication domain="calypso" validate-unauthenticated-calls="true"
       *
       * @jboss-net.authorization domain="calypso" roles-allowed="Posclient"
      The service fragment inside web-service.xml is: (Note that i had commented a line to jboss 3.2.1 and 3.2.3 are able to run )
      <service name="PosServer" provider="Handler">
       <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"
      />
       <parameter name="beanJndiName" value="bonos.services.bonos.PosServer"/>
       <parameter name="allowedMethods" value="hello scramblePromoTiendaCajaTrn get
      Header posServerReservaItem posServerConsultaNotaCambio posServerGetFactura posS
      erverCobraNotaCambio posServerItemDomicilio creaBonoRebaja validaRebajaTarjetaMC
       "/>
       <requestFlow name="PosServerRequest">
      <!--
       <handler type="java:org.jboss.net.axis.server.TransportAuthorizationHandle
      r">
       </handler>
      -->
       <handler type="java:org.jboss.net.axis.server.JBossAuthenticationHandler">
       <parameter name="securityDomain" value="java:/jaas/calypso"/>
       <parameter name="validateUnauthenticatedCalls" value="true"/>
       </handler>
       <handler type="java:org.jboss.net.axis.server.JBossAuthorizationHandler">
       <parameter name="securityDomain" value="java:/jaas/calypso"/>
       <parameter name="allowedRoles" value="Posclient"/>
       </handler>
      
       </requestFlow>
       <responseFlow name="PosServerResponse">
      
       </responseFlow>
       <!-- Operation mapping results -->
      
       </service>

      finally the stack trace fragment:

      2004-10-23 22:45:57,761 DEBUG [org.apache.axis.transport.http.AxisServlet] servi
      ceName: PosServer
      2004-10-23 22:45:57,761 ERROR [org.jboss.web.localhost.Engine] StandardWrapperVa
      lve[JBossAxisServlet]: Servlet.service() for servlet JBossAxisServlet threw exce
      ption
      java.lang.NullPointerException
      at org.jboss.net.axis.Deployment.oldGetService(Deployment.java:255)
      at org.jboss.net.axis.Deployment.getService(Deployment.java:275)
      at org.apache.axis.configuration.FileProvider.getService(FileProvider.ja
      va:290)
      at org.apache.axis.AxisEngine.getService(AxisEngine.java:302)
      at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:90
      0)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
      e.java:372)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
      ContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:158)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
      torBase.java:540)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)


      I am chasing the problem for three days now and i dont have any clue what is wrong here ... please heeeeelp