Forum Discussion

MJancik's avatar
MJancik
Occasional Contributor
15 years ago

mockservicerunner -b does not work

Hello,

I am facing a problem that has already been reported to you earlier by someone else in
viewtopic.php?t=2346

I'm currently using soapUI Pro 3.6.1 and have exactly the same problem as described in that bug.

Operating system: RHEL 5.5, 64-Bit
Java version: 1.6.0_21

I use command:
nohup mockservicerunner.sh  -b soapui-project.xml >> nohup.out 2>&1 &


When I start without option '-b' it works as intended, but I cannot stop it (except kill): background process awaits 'Press any key to terminate...'.

Regards
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    hmm.. can you show the entire output you are getting from the mockservicerunner when running with the -b option?

    regards!

    /Ole
    eviware.com
  • MJancik's avatar
    MJancik
    Occasional Contributor
    Full start command line

    ./programs/soapui-3.6.1/bin/mockservicerunner.sh -Pdb.url=jdbc:oracle:thin:MOCK_ACI_ESB/MOCK_ACI_ESB@dbs-d:1521:PBLSR -Pdb.username=MOCK_ACI_ESB -Pdb.password=MOCK_ACI_ESB -Dsoapui.log.dir=./logs -p8201 -a/esbPOC -mESB_MockService -b ./mocks_POC/ws_ESB/mock-POC-ws-ESB-soapui-project_runableACI.xml


    soapui.log

    2010-12-13 09:24:24,140 INFO [SoapUI] Adding [/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/ext/ojdbc6.jar] to extensions classpath
    2010-12-13 09:24:24,710 INFO [DefaultSoapUICore] initialized soapui-settings from [/opt/soa-ib/mocks/programs/soapui-3.6.1/soapui-settings.xml]
    2010-12-13 09:24:27,329 INFO [WsdlProject] Loaded project from [file:/opt/soa-ib/mocks/./mocks_POC/ws_ESB/mock-POC-ws-ESB-soapui-project_runableACI.xml]
    2010-12-13 09:24:27,651 INFO [SoapUIMockServiceRunner] Setting project property [db.url] to [jdbc:oracle:thin:MOCK_ACI_ESB/MOCK_ACI_ESB@dbs-d:1521:PBLSR]
    2010-12-13 09:24:27,652 INFO [SoapUIMockServiceRunner] Setting project property [db.username] to [MOCK_ACI_ESB]
    2010-12-13 09:24:27,652 INFO [SoapUIMockServiceRunner] Setting project property [db.password] to [MOCK_ACI_ESB]
    2010-12-13 09:24:27,652 INFO [SoapUIMockServiceRunner] Running MockService [ESB_MockService] in project [mock_POC_ws_ESB]
    2010-12-13 09:24:27,652 INFO [SoapUIMockServiceRunner] Press any key to terminate
    2010-12-13 09:24:28,075 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
    2010-12-13 09:24:28,370 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
    2010-12-13 09:24:28,372 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
    2010-12-13 09:24:28,373 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
    2010-12-13 09:24:28,374 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
    2010-12-13 09:24:28,376 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
    2010-12-13 09:24:28,378 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/soap/envelope/
    2010-12-13 09:24:28,412 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/soap/encoding/
    2010-12-13 09:24:28,415 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/soap-envelope
    2010-12-13 09:24:28,422 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/soap-encoding
    2010-12-13 09:24:28,423 INFO [SchemaUtils] Loading schema types from [file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl]
    2010-12-13 09:24:28,424 INFO [SchemaUtils] Getting schema file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl
    2010-12-13 09:24:28,431 INFO [SchemaUtils] Getting schema file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.xsd
    2010-12-13 09:24:31,692 INFO [log] jdbc connection url: jdbc:oracle:thin:MOCK_ACI_ESB/MOCK_ACI_ESB@dbs-d:1521:PBLSR
    2010-12-13 09:24:31,714 INFO [log] Mock correctly connected to DB.
    2010-12-13 09:24:31,869 INFO [jetty] Logging to com.eviware.soapui.support.log.JettyLogger@1f561437 via com.eviware.soapui.support.log.JettyLogger
    2010-12-13 09:24:31,987 INFO [jetty] jetty-6.1.x
    2010-12-13 09:24:32,021 INFO [jetty] Started JettyMockEngine$SoapUIConnector@0.0.0.0:8201
    2010-12-13 09:24:32,022 INFO [JettyMockEngine] Started mockService [ESB_MockService] on port [8201] at path [/esbPOC]
    2010-12-13 09:24:32,022 INFO [SoapUIMockServiceRunner] MockService started on port 8201 at path [/esbPOC]
    2010-12-13 09:24:32,069 INFO [WsdlMockRunner] Mounted WSDL for interface [ch-sbe-messagesSOAP] at [/esbPOC?WSDL]
    2010-12-13 09:24:32,069 INFO [SoapUIMockServiceRunner] Started 1 runner
    2010-12-13 09:24:32,069 INFO [SoapUIMockServiceRunner] time taken: 4417ms


    soapui-errors.log - empty

    global-groovy.log

    2010-12-13 09:24:31,692 INFO [log] jdbc connection url: jdbc:oracle:thin:MOCK_ACI_ESB/MOCK_ACI_ESB@dbs-d:1521:PBLSR
    2010-12-13 09:24:31,714 INFO [log] Mock correctly connected to DB.


    @groovy.log
    - these two lines are from MockService 'Start script'
    - I have also added logging to 'Stop script', but it is not found in global-groovy.log (probably 'Stop script' is not triggered)


    nohup

    Mon Dec 13 09:24:20 CET 2010 executing ./programs/soapui-3.6.1/bin/mockservicerunner.sh -Pdb.url=jdbc:oracle:thin:MOCK_ACI_ESB/MOCK_ACI_ESB@dbs-d:1521:PBLSR -Pdb.username=MOCK_ACI_ESB -Pdb.password=MOCK_ACI_
    ESB -Dsoapui.log.dir=./logs -p8201 -a/esbPOC -mESB_MockService -b ./mocks_POC/ws_ESB/mock-POC-ws-ESB-soapui-project_runableACI.xml
    ==============
    ================================
    =
    = SOAPUI_HOME = /opt/soa-ib/mocks/programs/soapui-3.6.1
    =
    ================================
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
    java version=
    JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dsoapui.home=/opt/soa-ib/mocks/programs/soapui-3.6.1 -Dsoapui.ext.libraries=/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/ext -Dsoapui.ext.li
    steners=/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/listeners -Dsoapui.ext.actions=/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/actions
    SOAPUI_CLASSPATH=/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/activation-1.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/javamail-1.4.jar:/opt/
    soa-ib/mocks/programs/soapui-3.6.1/lib/wsdl4j-1.6.2-fixed.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/junit-4.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/rsyntaxtextarea-1.3.4.jar:/opt/soa-ib/mocks
    /programs/soapui-3.6.1/lib/log4j-1.2.14.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/looks-2.2.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/binding-2.0.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/l
    ib/forms-1.0.7.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/commons-logging-1.1.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/commons-collections-3.2.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/
    commons-lang-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/commons-io-1.3.2.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/not-yet-commons-ssl-0.3.11.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/co
    mmons-cli-1.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/commons-beanutils-1.7.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/commons-httpclient-3.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/js
    on-lib-2.2.2-jdk15.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/ezmorph-1.0.5.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xom-1.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/swingx-soapui.jar:/opt
    /soa-ib/mocks/programs/soapui-3.6.1/lib/l2fprod-common-fontchooser-7.3.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/l2fprod-common-directorychooser-7.3.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/comm
    ons-codec-1.3.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/groovy-all-1.7.5.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/js-1.7R2.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/jetty-6.1.22.jar:/opt/s
    oa-ib/mocks/programs/soapui-3.6.1/lib/jetty-util-6.1.22.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/servlet-api-2.5-20081211.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xbean-fixed-2.4.0.jar:/opt/soa
    -ib/mocks/programs/soapui-3.6.1/lib/xbean_xpath-2.4.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xmlpublic-2.4.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/jsr173_1.0_api-xmlbeans-2.4.0.jar:/opt/so
    a-ib/mocks/programs/soapui-3.6.1/lib/soapui-xmlbeans-3.6.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/policy-xmlbeans-1.5.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/soap-xmlbeans-1.2.jar:/opt/soa-i
    b/mocks/programs/soapui-3.6.1/lib/wadl-xmlbeans-1.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/j2ee-xmlbeans-1.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/ext-xmlbeans-1.2.jar:/opt/soa-ib/mocks/pr
    ograms/soapui-3.6.1/lib/saxon-9.1.0.8j.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/saxon-dom-9.1.0.8j.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xmlunit-1.2.jar:/opt/soa-ib/mocks/programs/soapui-3.6
    .1/lib/xmlsec-1.4.3.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/opensaml-1.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xalan-2.7.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xercesImpl-2.9.1.j
    ar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xml-apis-2.9.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/serializer-2.7.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/wss4j-1.5.8.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/bcprov-jdk15-144.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/jtidy-r872-jdk15.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/jxbrowser-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/jniwrap-native.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/tuxpack-0.2.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/winpack-3.8.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xulrunner-windows-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xulrunner-linux64-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xulrunner-linux-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xulrunner-mac-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/MozillaGlue-jxbrowser-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/MozillaInterfaces-jxbrowser-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/engine-gecko-jxbrowser-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/engine-ie-jxbrowser-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/engine-webkit-jxbrowser-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/mshtml-jxbrowser-2.4.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/slf4j-api-1.5.8.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/slf4j-log4j12-1.5.8.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/wsi-test-tools-1.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/jms-1.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/hermes-1.14.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/flex-messaging-common-1.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/flex-messaging-core-1.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/flex-messaging-opt-1.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/flex-messaging-proxy-1.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/flex-messaging-remoting-1.0.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/xstream-1.3.1.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/cajo-1.142.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/htmlunit-2.7.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/sac-1.3.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/htmlunit-core-js-2.7.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/cssparser-0.9.5.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/lib/nekohtml-1.9.14.jar:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/ext/ojdbc6.jar
    soapUI 3.6.1 MockService Runner
    09:24:24,140 INFO [SoapUI] Adding [/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/ext/ojdbc6.jar] to extensions classpath
    09:24:24,710 INFO [DefaultSoapUICore] initialized soapui-settings from [/opt/soa-ib/mocks/programs/soapui-3.6.1/soapui-settings.xml]
    09:24:27,329 INFO [WsdlProject] Loaded project from [file:/opt/soa-ib/mocks/./mocks_POC/ws_ESB/mock-POC-ws-ESB-soapui-project_runableACI.xml]
    09:24:27,651 INFO [SoapUIMockServiceRunner] Setting project property [db.url] to [jdbc:oracle:thin:MOCK_ACI_ESB/MOCK_ACI_ESB@dbs-d:1521:PBLSR]
    09:24:27,652 INFO [SoapUIMockServiceRunner] Setting project property [db.username] to [MOCK_ACI_ESB]
    09:24:27,652 INFO [SoapUIMockServiceRunner] Setting project property [db.password] to [MOCK_ACI_ESB]
    09:24:27,652 INFO [SoapUIMockServiceRunner] Running MockService [ESB_MockService] in project [mock_POC_ws_ESB]
    09:24:27,652 INFO [SoapUIMockServiceRunner] Press any key to terminate
    Progress: 1 - Loading Definition from cache
    09:24:27,791 DEBUG [AbstractDefinitionContext] Loading Definition...
    09:24:27,814 DEBUG [WsdlInterfaceDefinition] Loading WSDL: file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl
    09:24:27,814 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl]
    Retrieving document at 'file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl'.
    Retrieving schema at 'ch-sbe-messages.xsd', relative to 'file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl'.
    09:24:28,014 DEBUG [AbstractWsdlDefinitionLoader] Returning latest import URI [file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.xsd]
    09:24:28,075 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
    09:24:28,370 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
    09:24:28,372 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
    09:24:28,373 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
    09:24:28,374 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
    09:24:28,376 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
    09:24:28,378 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/soap/envelope/
    09:24:28,412 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/soap/encoding/
    09:24:28,415 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/soap-envelope
    09:24:28,422 INFO [SchemaUtils] Added default schema from file:/opt/soa-ib/mocks/programs/soapui-3.6.1/bin/soapui-3.6.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/soap-encoding
    09:24:28,423 INFO [SchemaUtils] Loading schema types from [file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl]
    09:24:28,424 INFO [SchemaUtils] Getting schema file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.wsdl
    09:24:28,431 INFO [SchemaUtils] Getting schema file:./mocks_POC/ws_ESB/WSDL/ch-sbe-messages.xsd
    09:24:28,941 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
    09:24:31,692 INFO [log] jdbc connection url: jdbc:oracle:thin:MOCK_ACI_ESB/MOCK_ACI_ESB@dbs-d:1521:PBLSR
    09:24:31,714 INFO [log] Mock correctly connected to DB.
    09:24:32,022 INFO [JettyMockEngine] Started mockService [ESB_MockService] on port [8201] at path [/esbPOC]
    09:24:32,022 INFO [SoapUIMockServiceRunner] MockService started on port 8201 at path [/esbPOC]
    09:24:32,069 INFO [WsdlMockRunner] Mounted WSDL for interface [ch-sbe-messagesSOAP] at [/esbPOC?WSDL]
    09:24:32,069 INFO [SoapUIMockServiceRunner] Started 1 runner
    09:24:32,069 INFO [SoapUIMockServiceRunner] time taken: 4417ms



    After that there is no service available

    # telnet localhost 8201
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    telnet: Unable to connect to remote host: Connection refused


    Also there is no java process

    ps -ef|grep java

    While the script is running I see for one second a java process.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    Thanks for this; shouldn't there be a bunch of nohup-related arguments in the command-line invocation?

    regards!

    /Ole
    eviware.com
  • MJancik's avatar
    MJancik
    Occasional Contributor
    eviware support wrote:
    Hi!
    Thanks for this; shouldn't there be a bunch of nohup-related arguments in the command-line invocation?


    What kind of "nohup-related arguments" do you mean ?
  • MJancik's avatar
    MJancik
    Occasional Contributor
    Is my answer is clear ?
    Do you have managed to reproduce the problem?

    nohup command has no specific parameters. Usage of this command is still the same:
    nohup mockservicerunner.sh  -b soapui-project.xml >> nohup.out 2>&1 &


    This is without specific parameters for soapui test script. Those parameters are given in one of my previous posts.
  • MJancik's avatar
    MJancik
    Occasional Contributor
    Have you found something? Are you going to fix the problem or do I have to find some workaround by myself?
  • jlee49's avatar
    jlee49
    New Contributor
    Good morning. I can confirm this is still an issue in SoapUI 4.5.1 Pro. My environment: Windows 7 x64, Java 1.7 x86, SoapUI 4.5.1 Pro x64

    This is the same issue described here: viewtopic.php?f=13&t=7757

    The process is as follows:

    1. Create and save a MockService in SoapUI.
    2. Attempt to run from the command line:
    mockservicerunner.bat -m"SERVICE" -b "soapui-project.xml"

    Result:

    14:27:44,479 INFO [WsdlMockRunner] Mounted WSDL for interface [INTERFACE] at [WSDL]
    14:27:44,808 INFO [JettyMockEngine] Started mockService [SERVICE] on
    port [8088] at path [PATH]
    14:27:44,812 INFO [SoapUIProMockServiceRunner] MockService started on port 8088
    at path [PATH]
    14:27:44,813 INFO [SoapUIProMockServiceRunner] Started 1 runner
    14:27:44,814 INFO [SoapUIProMockServiceRunner] time taken: 5407ms

    netstat confirms:
    TCP 0.0.0.0:1198 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<--------NO ENTRY HERE--------
    TCP 0.0.0.0:42599 0.0.0.0:0 LISTENING

    If I run mockservicerunner like so:
    mockservicerunner.bat -m"SERVICE" "soapui-project.xml", there are no problems.

    netstat confirms:
    TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:8088 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:42599 0.0.0.0:0 LISTENING

    I am attempting to run multiple MockServices through the mockservicerunner.bat by executing the .bat multiple times in the same command window. These MockServices share the same SSL port through SoapUI's preferences. For the record, using mockservicerunner without the -b also works for the SSL MockService, but I need both running at a minimum. Please advise.