Geronimo-Devtools
  1. Geronimo-Devtools
  2. GERONIMODEVTOOLS-256

Publish operation after an Eclipse restart deletes a deployed Web Service's "server-config.wsdd" file

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.2.2
    • Component/s: eclipse-plugin
    • Labels:
      None
    • Environment:
      AG 2.0.2 + Geronimo Eclipse Plug-in v2.0 + WTP 2.0.1

      Description

      Steps to recreate:
      1) Create a Web Service as per the instructions at
      http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/BottomUpWebService/BottomUpWebService.html
      2) Test the web service using (the auto launched) Web Service Explorer. Everything works fine.
      3) Shut down server and restart the server. Again launch the web service. It runs fine without any error.
      4) Shut down server, close eclipse, restart eclipse, start server. This time try to access the web service and you will not be able to access it.

      An initial analysis shows that in Step-4 (after a Eclipse & Server restart) the "Publish" operation of Eclipse is deleting "server-config.wsdd" from <GERONIMO_HOME>\repository\<path-to-deployed-EAR>\<war name>\WEB-INF directory.

      You will get the following error in the console:
      17:01:56,218 ERROR [EngineConfigurationFactoryServlet] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd

      Is this related to the issue reported in http://mail-archive.ow2.org/jonas-team/2006-08/msg00046.html ? Needs to be explored.

        Activity

        Hide
        Rex Wang added a comment -

        Seems it is a bug of WTP, I think we can closed this coz gep2.2 are based on wtp3.1
        -Rex

        Show
        Rex Wang added a comment - Seems it is a bug of WTP, I think we can closed this coz gep2.2 are based on wtp3.1 -Rex
        Hide
        Shiva Kumar H R added a comment -

        As said before, this will only be available in WTP 3.0. As a workaround until then, with GEP 2.1.0 & WTP 2.0.1, we will have to request users to manually do these:

        Use "Web Services Wizard" to create & deploy web-services. Then,
        1) Go to the below deployed path on Geronimo server: <GERONIMO_HOME>\repository\<path-to-deployed-EAR>\<war name>\WEB-INF
        ex.: E:\AG-Servers\geronimo-tomcat6-javaee5-2.1\repository\default\HelloWorldEAR\1.0\HelloWorldEAR-1.0.car\HelloWorld.war\WEB-INF

        2) Copy "server-config.wsdd" from here into the following path on your eclipse workspace:
        <eclipse-workspace-path>\<web-project-containing-webservice>\WebContent\WEB-INF
        ex: E:\IDEworkspaces\testWebService\HelloWorld\WebContent\WEB-INF
        (or you can easily drag-n-drop "server-config.wsdd" into the above workspace path).

        That's it and all further deploy/redeploy will work correctly even across eclipse restarts.

        Show
        Shiva Kumar H R added a comment - As said before, this will only be available in WTP 3.0. As a workaround until then, with GEP 2.1.0 & WTP 2.0.1, we will have to request users to manually do these: Use "Web Services Wizard" to create & deploy web-services. Then, 1) Go to the below deployed path on Geronimo server: <GERONIMO_HOME>\repository\<path-to-deployed-EAR>\<war name>\WEB-INF ex.: E:\AG-Servers\geronimo-tomcat6-javaee5-2.1\repository\default\HelloWorldEAR\1.0\HelloWorldEAR-1.0.car\HelloWorld.war\WEB-INF 2) Copy "server-config.wsdd" from here into the following path on your eclipse workspace: <eclipse-workspace-path>\<web-project-containing-webservice>\WebContent\WEB-INF ex: E:\IDEworkspaces\testWebService\HelloWorld\WebContent\WEB-INF (or you can easily drag-n-drop "server-config.wsdd" into the above workspace path). That's it and all further deploy/redeploy will work correctly even across eclipse restarts.
        Hide
        Shiva Kumar H R added a comment -

        https://bugs.eclipse.org/bugs/show_bug.cgi?id=119964 say this is fixed in WTP 3.0M6. However when I tried with WTP 3.0M6 & used Web Services Wizard, I keep hitting the following error:

        IWAB0489E Error when deploying Web service to Axis runtime
        axis-admin failed with

        {http://xml.apache.org/axis/}

        HTTP
        (404)/HelloWS/services/AdminService

        This seems to be some other issue in WTP (see same error reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=201061 ) and need to report it / follow-up in WTP bugzilla.

        Show
        Shiva Kumar H R added a comment - https://bugs.eclipse.org/bugs/show_bug.cgi?id=119964 say this is fixed in WTP 3.0M6. However when I tried with WTP 3.0M6 & used Web Services Wizard, I keep hitting the following error: IWAB0489E Error when deploying Web service to Axis runtime axis-admin failed with {http://xml.apache.org/axis/} HTTP (404)/HelloWS/services/AdminService This seems to be some other issue in WTP (see same error reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=201061 ) and need to report it / follow-up in WTP bugzilla.
        Hide
        Shiva Kumar H R added a comment -
        Show
        Shiva Kumar H R added a comment - Also refer this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=201061
        Hide
        Shiva Kumar H R added a comment -

        Other related bugzilla report on Eclipse WTP:
        "Remove the workarond to write server-config.wsdd for Geronimo"
        https://bugs.eclipse.org/bugs/show_bug.cgi?id=109292

        Show
        Shiva Kumar H R added a comment - Other related bugzilla report on Eclipse WTP: "Remove the workarond to write server-config.wsdd for Geronimo" https://bugs.eclipse.org/bugs/show_bug.cgi?id=109292
        Hide
        Shiva Kumar H R added a comment -

        Related Bugzilla report on Eclipse WTP:
        "Need a way to persist server-config.wsdd in the workspace for Axis Web services" https://bugs.eclipse.org/bugs/show_bug.cgi?id=119964

        Show
        Shiva Kumar H R added a comment - Related Bugzilla report on Eclipse WTP: "Need a way to persist server-config.wsdd in the workspace for Axis Web services" https://bugs.eclipse.org/bugs/show_bug.cgi?id=119964
        Hide
        Shiva Kumar H R added a comment -

        Classes to watch for:
        \plugins\org.eclipse.jst.ws.axis.consumption.core_*.jar
        1) org.eclipse.jst.ws.internal.axis.consumption.core.command.AxisDeployCommand.class
        2) org.eclipse.jst.ws.internal.axis.consumption.core.command.GeronimoAxisDeployCommand.class !!

        \plugins\org.eclipse.jst.ws.axis.creation.ui_*.jar
        3) org.eclipse.jst.ws.internal.axis.creation.ui.wsrt.AxisWebService.class

        In class 3) above, observe following method:
        public ICommandFactory run(IEnvironment env, IContext ctx, ISelection sel,
        String project, String earProject)
        {
        ...
        if (getWebServiceInfo().getServerFactoryId().equals("org.eclipse.jst.server.geronimo.10"))

        { commands.add(new GeronimoAxisDeployCommand(project)); }

        else

        { commands.add(new AxisDeployCommand()); }

        ...
        }

        Show
        Shiva Kumar H R added a comment - Classes to watch for: \plugins\org.eclipse.jst.ws.axis.consumption.core_*.jar 1) org.eclipse.jst.ws.internal.axis.consumption.core.command.AxisDeployCommand.class 2) org.eclipse.jst.ws.internal.axis.consumption.core.command.GeronimoAxisDeployCommand.class !! \plugins\org.eclipse.jst.ws.axis.creation.ui_*.jar 3) org.eclipse.jst.ws.internal.axis.creation.ui.wsrt.AxisWebService.class In class 3) above, observe following method: public ICommandFactory run(IEnvironment env, IContext ctx, ISelection sel, String project, String earProject) { ... if (getWebServiceInfo().getServerFactoryId().equals("org.eclipse.jst.server.geronimo.10")) { commands.add(new GeronimoAxisDeployCommand(project)); } else { commands.add(new AxisDeployCommand()); } ... }

          People

          • Assignee:
            Unassigned
            Reporter:
            Shiva Kumar H R
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development