Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-220

ServiceLifecycle init not called for webservice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • jboss-ws4ee-4.0.3
    • jboss-ws4ee-4.0.2
    • jbossws-native
    • None

    Description

      The interface method init of ServiceLifeCycle is not called for a webservice on JBoss-4.0.2. Works fine on JBoss-4.0.1.

      Deployed on JBoss-4.0.1
      16:43:23,656 INFO [TomcatDeployer] deploy, ctxPath=/HelloWorld, warUrl=file:/C:
      /jboss-4.0.1/server/default/tmp/deploy/tmp15816HelloWorld-exp.war/
      16:43:23,750 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.0.1/s
      erver/default/data/wsdl/HelloWorld.war/HelloWorld.wsdl
      16:43:23,812 INFO [AxisService] WSDD published to: C:\jboss-4.0.1\server\defaul
      t\data\wsdl\HelloWorld.war\PortComponent.wsdd
      16:43:23,812 INFO [AxisService] Web Service deployed: http://yoda:8080/HelloWor
      ld/HelloWorld
      16:43:24,109 INFO [TomcatDeployer] deploy, ctxPath=/HelloWorldServlet, warUrl=f
      ile:/C:/jboss-4.0.1/server/default/tmp/deploy/tmp15817HelloWorldServlet-exp.war/

      16:43:38,015 INFO [STDOUT] In HelloWorld_Impl.init...
      16:43:38,015 INFO [STDOUT] context = org.apache.axis.transport.http.ServletEndp
      ointContextImpl@11f56a3
      16:43:38,031 INFO [STDOUT] In HelloWorld_Impl.destroy...

      Deployed on JBoss-4.0.2
      16:46:16,968 INFO [TomcatDeployer] deploy, ctxPath=/HelloWorld, warUrl=file:/C:
      /jboss-4.0.2/server/default/tmp/deploy/tmp39991HelloWorld-exp.war/
      16:46:17,515 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.0.2/s
      erver/default/data/wsdl/HelloWorld.war/HelloWorld.wsdl
      16:46:17,625 INFO [AxisService] WSDD published to: C:\jboss-4.0.2\server\defaul
      t\data\wsdl\HelloWorld.war\PortComponent.wsdd
      16:46:17,984 INFO [AxisService] Web Service deployed: http://yoda:8080/HelloWor
      ld/HelloWorld
      16:46:18,250 INFO [TomcatDeployer] deploy, ctxPath=/HelloWorldServlet, warUrl=f
      ile:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp39993HelloWorldServlet-exp.war/

      16:46:27,593 INFO [STDOUT] context = null

      HelloWorld_Impl.java
      package com.acme.webservices;

      import javax.xml.rpc.server.ServiceLifecycle;
      import javax.xml.rpc.server.ServletEndpointContext;
      import javax.xml.rpc.ServiceException;

      public class HelloWorld_Impl implements com.acme.webservices.HelloWorld, java.rmi.Remote, ServiceLifecycle
      {

      private ServletEndpointContext context;

      public java.lang.String echo() throws
      java.rmi.RemoteException

      { System.out.println("context = " + context); return "Hello World"; }

      public void init(Object context) throws ServiceException

      { this.context = (ServletEndpointContext) context; System.out.println("In HelloWorld_Impl.init..."); }

      public void destroy()

      { System.out.println("In HelloWorld_Impl.destroy..."); this.context = null; }

      }

      Attachments

        Activity

          People

            jgreene@redhat.com Jason Greene
            sirwio_jira sirwio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: