Forum Discussion

seebrouk's avatar
seebrouk
New Contributor
15 years ago

Global settings file is not loaded by Mock WAR-SoapUI 4.0.1

Global settings file is not loaded by Mock WAR - SoapUI 4.0.1

I believe that the root cause is a mismatch in a property name between the Mock War generation code and MockAsWarservlet.

MockAsWarServlet

SoapUI.setSoapUICore( new MockServletSoapUICore( getServletContext(), getInitParameter( "soapuiSettings" ) ), true );

This does not match the Servlet init-param in the web.xml template :-

/com/eviware/soapui/resources/mockaswar/web.xml

This uses "soapUISettings" rather than "soapuiSettings"

I've worked round the issue for the moment by modify my build script to correct the web.xml in the war generation directory and then zipping up the WAR.