Forum Discussion

NicInRichmond's avatar
12 years ago

WAR mock endpoint not same as SOAPUI

Hello all,

I have a webservice (domainname:port/Mywebservice) for which I am building a mock service with the particularity that the end point needs to look like this:

domainname:port/mock/Mywebservice.

When created and started in SOAP UI, this mock service works great so I have no issues at this point. It is when I deploy as a WAR file, and deploy the latter on Tomcat that the service gets loaded as:

localhost:port/Mywebservice.

When trying to hit the service with SOAP UI, I get a 404 error and when accessing the service from Tomcat's admin, I get an error 500 with the following stack


Error instantiating servlet class com.eviware.soapui.mockaswar.MockAsWarProServlet

javax.servlet.ServletException: Error instantiating servlet class com.eviware.soapui.mockaswar.MockAsWarProServlet
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)



In the "Deploy As War" popup:
    I select "Include External Jar files" and "Check to Enable WebUI"
    In the MockService Endpoint, I enter /mock/Mywebservice
    The WAR file and the War Directory are respectively C:\Mywebservice.war and C:\Mywebservice


I am using SoapUI 4.6.4 Pro on Windows 7 64bit.

Any suggestions?

Thanks

Nic

1 Reply

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi, if you are a pro user, you should post your question in soapui pro forums to get direct support from SmartBear.

    have you try with an endpoint configuration without leading /
    this should work, see viewtopic.php?t=2702

    Regards,
    Thomas