Forum Discussion

Lucas's avatar
Lucas
Occasional Contributor
17 years ago

MockServiceRunner without X configuration

Hi all,
i'm trying to use mockservicerunner.sh in a Solaris OS, but I get an error because of the X windows configuration. Exactly this :

X connection to localhost:10.0 broken (explicit kill or server shutdown).

I know I can fix it using an X server like Xming in my PC or in the Solaris OS but what I want to know is how can I use the mockservicerunner.sh in a manner that it doesn't need an X configuration.

After all, why does mockservicerunner.sh need an X configuration ? The main reason for executing it in a command line is to avoid that.

Thanks in advance

PS. thanks also for this great program
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    hmm... are you getting any other exceptions/errors in any log files?

    regards,

    /Ole
    eviware.com
  • Lucas's avatar
    Lucas
    Occasional Contributor
    Good morning :)

    I have watched both the soapui.log and the soapui-errors.log and when I execute mockservicerunner.sh nothing new is written on them.

    Here is exactly the execution I've been doing :

    system@mule-01:~/soapui-2.5/bin:>./mockservicerunner.sh -m"Mock_prueba" prueba-soapui-project.xml
    ================================
    =
    = SOAPUI_HOME = /export/home/system/soapui-2.5
    =
    ================================
    soapUI 2.5 MockService Runner
    Configuring log4j from [/export/home/system/soapui-2.5/bin/soapui-log4j.xml]
    21:49:21,027 INFO  [DefaultSoapUICore] initialized soapui-settings from [/export/home/system/soapui-2.5/soapui-settings.xml]
    X connection to localhost:10.0 broken (explicit kill or server shutdown).


    and if I do exactly the same execution but with Xming running in my PC (an X Windows server)  it works perfectly ...

    (...)
    2006-12-25 21:48:51,776 INFO  [SoapUIMockServiceRunner] Started 1 runner
    2006-12-25 21:48:54,794 INFO  [MockEngine] Stopped MockService [Mock_prueba] on port [8079]
    2006-12-25 21:48:54,795 INFO  [MockEngine] Stopping connector on port 8079
    2006-12-25 21:48:54,807 INFO  [MockEngine] No more connectors.. stopping server
    2006-12-25 21:48:54,810 INFO  [SoapUIMockServiceRunner] MockService stopped, handled 0 requests
    2006-12-25 21:48:54,811 INFO  [SoapUIMockServiceRunner] time taken: 12911ms
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    hmm.. could you try adding the java.awt.headless property to the invocation?

    ie

    ./mockservicerunner.sh -m"Mock_prueba" prueba-soapui-project.xml -Djava.awt.headless=true

    What does that result in?

    regards!

    /Ole
    eviware.com
  • Lucas's avatar
    Lucas
    Occasional Contributor
    It works !!  I will save a lot of time using soapUI in that way !!  ;D

    Thanks a lot !!  :D

    I write below the output to probe it :

    system@mule-01:~/soapui-2.5/bin:>./mockservicerunner.sh -m"Mock_Prueba" Prueba-soapui-project.xml -Djava.awt.headless=true
    ================================
    =
    = SOAPUI_HOME = /export/home/system/soapui-2.5
    =
    ================================
    soapUI 2.5 MockService Runner
    Configuring log4j from [/export/home/system/soapui-2.5/bin/soapui-log4j.xml]
    22:25:39,676 INFO  [DefaultSoapUICore] initialized soapui-settings from [/export/home/system/soapui-2.5/soapui-settings.xml]
    22:25:44,773 INFO  [WsdlProject] Loaded project from [file:/export/home/system/soapui-2.5/bin/Prueba-soapui-project.xml]
    22:25:50,509 INFO  [SoapUIMockServiceRunner] Running MockService [Mock_Prueba] in project [Prueba]
    22:25:50,511 INFO  [SoapUIMockServiceRunner] Press any key to terminate
    Progress: 1 - Loading Definition from cache
    22:25:51,178 DEBUG [AbstractDefinitionContext] Loading Definition...
    22:25:51,272 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [file:C:\Documents and Settings\usuario\Mis documentos\Mis Proyectos\DEMO\SOAP UI\trunk\Soap UI\Prueba_1.5\GestionPortabilidades_MOD.wsdl]
    Retrieving document at 'file:C:\Documents and Settings\usuario\Mis documentos\Mis Proyectos\DEMO\SOAP UI\trunk\Soap UI\Prueba_1.5\GestionPortabilidades_MOD.wsdl'.
    22:25:52,379 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
    22:25:52,506 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
    22:25:52,781 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
    22:25:52,875 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
    22:25:52,881 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
    22:25:52,888 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
    22:25:52,893 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
    22:25:52,899 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/soap/envelope/
    22:25:52,912 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/soap/encoding/
    22:25:52,918 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/soap-envelope
    22:25:52,931 INFO  [SchemaUtils] Added default schema from file:/export/home/system/soapui-2.5/bin/soapui-2.5.jar!/com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/soap-encoding
    22:25:52,935 INFO  [SchemaUtils] Loading schema types from [file:C:\Documents and Settings\usuario\Mis documentos\Mis Proyectos\DEMO\SOAP UI\trunk\Soap UI\Prueba_1.5\GestionPortabilidades_MOD.wsdl]
    22:25:52,936 INFO  [SchemaUtils] Getting schema file:C:\Documents and Settings\usuario\Mis documentos\Mis Proyectos\DEMO\SOAP UI\trunk\Soap UI\Prueba_1.5\GestionPortabilidades_MOD.wsdl
    22:25:55,022 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
    Java Accessibility Bridge for GNOME loaded.

    Progress: 1 - Loading Definition from cache
    22:25:55,787 DEBUG [AbstractDefinitionContext] Loading Definition...
    22:25:55,789 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionServicios_MOD.wsdl]
    Retrieving document at 'file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionServicios_MOD.wsdl'.
    22:25:56,296 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
    22:25:56,298 INFO  [SchemaUtils] Loading schema types from [file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionServicios_MOD.wsdl]
    22:25:56,299 INFO  [SchemaUtils] Getting schema file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionServicios_MOD.wsdl
    22:25:57,215 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
    Progress: 1 - Loading Definition from cache
    22:25:57,219 DEBUG [AbstractDefinitionContext] Loading Definition...
    22:25:57,220 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionIncidencias_MOD.wsdl]
    Retrieving document at 'file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionIncidencias_MOD.wsdl'.
    22:25:57,377 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
    22:25:57,378 INFO  [SchemaUtils] Loading schema types from [file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionIncidencias_MOD.wsdl]
    22:25:57,379 INFO  [SchemaUtils] Getting schema file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionIncidencias_MOD.wsdl
    22:25:58,144 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
    Progress: 1 - Loading Definition from cache
    22:25:58,147 DEBUG [AbstractDefinitionContext] Loading Definition...
    22:25:58,148 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionOperaciones_MOD.wsdl]
    Retrieving document at 'file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionOperaciones_MOD.wsdl'.
    22:25:58,476 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
    22:25:58,477 INFO  [SchemaUtils] Loading schema types from [file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionOperaciones_MOD.wsdl]
    22:25:58,478 INFO  [SchemaUtils] Getting schema file:/C:/Documents and Settings/usuario/Mis documentos/Mis Proyectos/DEMO/SOAP UI/trunk/Soap UI/Prueba_1.5/GestionOperaciones_MOD.wsdl
    22:25:59,331 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
    22:25:59,871 INFO  [MockEngine] Started mockService [Mock_Prueba] on port [8079] at path [/DEMO/mockPrueba]
    22:25:59,872 INFO  [SoapUIMockServiceRunner] MockService started on port 8079 at path [/DEMO/mockPrueba]
    22:26:00,371 INFO  [MockEngine] Mounted WSDL for interface [GestionPortabilidadesSoap] at [/DEMO/mockPrueba?WSDL]
    22:26:00,624 INFO  [MockEngine] Mounted WSDL for interface [GestionServiciosSoap] at [/DEMO/mockPrueba?WSDL]
    22:26:00,736 INFO  [MockEngine] Mounted WSDL for interface [GestionIncidenciasSoap] at [/DEMO/mockPrueba?WSDL]
    22:26:01,077 INFO  [MockEngine] Mounted WSDL for interface [GestionOperacionesSoap] at [/DEMO/mockPrueba?WSDL]
    22:26:01,079 INFO  [SoapUIMockServiceRunner] Started 1 runner
    Press any key to terminate...