Tomcat:groovy.lang.MissingPropertyException:无此类属性:类的模拟请求:Script1

时间:2018-07-25 10:03:49

标签: java tomcat groovy soapui

SOAPUI 5.4.0 上,我为Rest项目创建了模拟服务。然后,我编写了一个简单的常规脚本来生成动态响应。通过SOAPUI运行模拟服务时,一切正常。

后来想到了将这些模拟服务移至 Tomcat服务器。在SOAPUI中使用“作为WAR部署”创建了战争文件。

将生成的war部署在tomcat服务器中。我收到以下所说的异常

  

09:49:51,701错误[SoapUI]发生错误[没有这样的属性:类的模拟请求:Script1],有关详细信息,请参见错误日志   groovy.lang.MissingPropertyException:否这样的属性:类的模拟请求:Script1           在org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)           在org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:52)上           在org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:307)           在Script1.run(Script1.groovy:1)           在com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:90)           在com.eviware.soapui.impl.support.AbstractMockService.runAfterRequestScript(AbstractMockService.java:529)           在com.eviware.soapui.impl.rest.mock.RestMockDispatcher.dispatchRequest(RestMockDispatcher.java:52)           在com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:144)           在com.eviware.soapui.mockaswar.MockAsWarServlet $ MockServletSoapUICore.dispatchRequest(MockAsWarServlet.java:247)           在com.eviware.soapui.mockaswar.MockAsWarServlet.service(MockAsWarServlet.java:182)           在javax.servlet.http.HttpServlet.service(HttpServlet.java:742)           在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)           在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)           在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)           在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)           在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)           在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)           在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)           在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)           在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)           在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)           在org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)           在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)           在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)           在org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)           在org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)           在org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:790)           在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1459)           在org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)           在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)           在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)

0 个答案:

没有答案