Forum Discussion

BA_Service_Haus's avatar
BA_Service_Haus
Regular Contributor
14 years ago

Mock Generation on Windows 7 fails

Hi,

we are using soapUI 3.6.1.
When trying to generate a mock on a Windows 7 system, the mock generation will not finish.
It runs and runs but never stops.

The only effect I watched was the creation of the mock-folder and its subfolders (WEB-INF and so on). But they stayed empty.

We urgently need help with this problem as we will introduce Win 7 for the whole company soon and may get in trouble if this feature doesn't work.

Best regards
Nico
  • Hello,

    I guess you are using MockAsWar feature. There were some issues with it and we are solving them as soon as they are reported.
    Since 3.6.1 is quite old I urge you to upgrade to 4.0.1 at least. The best solution would be to upgrade to nightly build. Look for
    it in download section on www.soapui.org.

    Hope this helps,
    robert
    /SmartBear
  • BA_Service_Haus's avatar
    BA_Service_Haus
    Regular Contributor
    Hi Robert,

    introducing a new soapUI version is quite difficult in our organisation and means a lot of effort (evaluation, testing, informing all users, and so on).
    So I hoped ther would be an easy way to fix this problem (e.g. changing some OS or soapUI settings).

    Anyway, I now tried soapUI 4.0.1 but it only creates the WEB-INF folder (as 3.6.1 does). Additionaly it creates 77 jar-files into the lib folder.
    But no war-file and no complete mock-service. (As I told before, the progress bar is still moving and moving. But after 10 to 20 minutes, there were still no more files.

    Finaly I tried the Snapshot 4.0.2 and now it worked. It tooked a bit longer than it used to take with 3.6.1 on Windows XP. But finaly it created all the necessary files.

    Do you know any reason for this? Did the "DeployAsWar" feature not work on Win7 before? Or is there maybe a workaround to solve this problem with older soapUI versions (I would really appreciate this)?

    As I told above, introducing a new soapUI version is hard to do here. Therefore in this case I wouldn't like to use a nightly build.
    Can you tell me, when the 4.0.2 version will be released finaly?
    Do you have any kind of roadmap for upcoming version in the next year(s)?

    Best regards
    Nico
  • Hello,

    I think it worked on Win7 even before. You just need to specify war file when creating it. Only war directory in mandatory. Creating war directory should be enough if all is in place.
    That means WEB-INF folder and its contest. If you turn on WEB UI debugging than you should have two more files outside WEB-INF folder: stylesheet.css and header_logo.jpg. Reason for this is that you can manually add/modify service deployment files. Anyway war file is just ordinary zip file, just change its extension.

    robert
    /SmartBear
  • BA_Service_Haus's avatar
    BA_Service_Haus
    Regular Contributor
    Hi Robert,

    for soapUI 4.0.1 I got the error. I simply installed it to the wrong folder (C:\Programs instead of C:\Programs (x86)).
    After reinstalling the mocks were generated as expected.

    But still no mock generation with soapUI 3.6.1.
    Anyway I now can use 4.0.1.

    Best regards
    Nico