Forum Discussion

lenenberg's avatar
lenenberg
Occasional Contributor
10 years ago

It is not possible to deploy war for REST Mock Service

1. Take example project "Sample REST Project" Sample-REST-Project-soapui-project.xml
2. Select "Deploy As War" in context menu.
An error message appears: project does not have any MockServices to deploy.
the version is SOAPUI free 5.0.0 maintenance build 1533.
in 5.1.1 PRO it works fine.

4 Replies

  • lenenberg's avatar
    lenenberg
    Occasional Contributor
    I had another problem when use deployed REST Mock service. it is an exception.
    I found the root cause of problem. I have several installed versions.

    SoapUI-5.0.0
    SoapUI-5.0.0-m-SNAPSHOT
    SoapUI-Pro-5.1.1-m-SNAPSHOT

    I export project to WAR file in SOAPUI 5.1.1 and discovered that it contains several libs:

    soapui-5.0.0.jar
    soapui-5.1.1-m-20140807.160849-4.jar
    soapui-pro-5.1.1-m-SNAPSHOT.jar

    Obviously soapui-5.0.0.jar is extra. I deleted it from WAR file. Deployed REST Mock works fine.
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi,
    what you see is a limitation of the war generator. If a war with the same name exists in the target directory, it does not delete it prior the generation but update it.
    So if you have generated a war with SoapUI 5.0 then regenerate the same war with SoapUI 5.1, it will be updated with all new jars included in the 5.1 version