Quantcast

How to suppress Swing GUI on Linux ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to suppress Swing GUI on Linux ?

Martin Gazak
Hallo,
I am using Wrapper 3.1.2 on Win32 running my application as a service
without any problem (great work anyway).

I tried the same on Linux (SuSE 9.3) using almost the same
configuration, but the wrapper refuses to start neither as "console" nor
as "daemon" (my testwrapper script has "IGNORE_SIGNAL" and "RUN_AS_USER"
uncommented), the result is same:

STATUS | wrapper  | 2006/01/12 15:35:15 | --> Wrapper Started as Console
STATUS | wrapper  | 2006/01/12 15:35:15 | Launching a JVM...
INFO   | jvm 1    | 2006/01/12 15:35:15 | Initializing...
INFO   | jvm 1    | 2006/01/12 15:35:15 | Wrapper (Version 3.1.2)
http://wrapper.tanukisoftware.org
INFO   | jvm 1    | 2006/01/12 15:35:15 | start()
INFO   | jvm 1    | 2006/01/12 15:35:15 | ERROR - Unable to display the
Swing GUI:
INFO   | jvm 1    | 2006/01/12 15:35:15 |
java.lang.InternalError: Can't connect to X11 window server using '' as
the value of the DISPLAY variable.
INFO   | jvm 1    | 2006/01/12 15:35:15 | Exiting
STATUS | wrapper  | 2006/01/12 15:35:17 | <-- Wrapper Stopped

I understand well, what does this error mean and why wrapper stopped.

What I do not understand is, why the wrapper tries to connect to X
server - I have no intention to run the Swing (or any other) GUI in my
application and I do not expect this from wrapper.
Therefore could you please help me, how to suppress wrapper attempts to
launch Swing and access X server, so that the wrapper and JVM starts ?
(Something like wrapper.ntservice.interactive=false on Windows).

Thank you very much in advance.

Martin

--
RNDr. Martin Gazak, MicroStep-MIS
Cavojskeho 1, 841 04 Bratislava, Slovakia
Tel: ++421 2 602 00 128, 111
Fax: ++421 2 602 00 180
e-mail: [hidden email]
www: http://www.microstep-mis.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to suppress Swing GUI on Linux ?

Martin Gazak
I am very sorry.
I changed everything in by wrapper.conf, only I forgot to change
wrapper.java.mainclass, it remained set to
wrapper.java.mainclass=org.tanukisoftware.wrapper.test.Main

Once more, sorry for bothering you.


Martin Gazak wrote:

> Hallo,
> I am using Wrapper 3.1.2 on Win32 running my application as a service
> without any problem (great work anyway).
>
> I tried the same on Linux (SuSE 9.3) using almost the same
> configuration, but the wrapper refuses to start neither as "console" nor
> as "daemon" (my testwrapper script has "IGNORE_SIGNAL" and "RUN_AS_USER"
> uncommented), the result is same:
>
> STATUS | wrapper  | 2006/01/12 15:35:15 | --> Wrapper Started as Console
> STATUS | wrapper  | 2006/01/12 15:35:15 | Launching a JVM...
> INFO   | jvm 1    | 2006/01/12 15:35:15 | Initializing...
> INFO   | jvm 1    | 2006/01/12 15:35:15 | Wrapper (Version 3.1.2)
> http://wrapper.tanukisoftware.org
> INFO   | jvm 1    | 2006/01/12 15:35:15 | start()
> INFO   | jvm 1    | 2006/01/12 15:35:15 | ERROR - Unable to display the
> Swing GUI:
> INFO   | jvm 1    | 2006/01/12 15:35:15 | java.lang.InternalError: Can't
> connect to X11 window server using '' as the value of the DISPLAY variable.
> INFO   | jvm 1    | 2006/01/12 15:35:15 | Exiting
> STATUS | wrapper  | 2006/01/12 15:35:17 | <-- Wrapper Stopped
>
> I understand well, what does this error mean and why wrapper stopped.
>
> What I do not understand is, why the wrapper tries to connect to X
> server - I have no intention to run the Swing (or any other) GUI in my
> application and I do not expect this from wrapper.
> Therefore could you please help me, how to suppress wrapper attempts to
> launch Swing and access X server, so that the wrapper and JVM starts ?
> (Something like wrapper.ntservice.interactive=false on Windows).
>
> Thank you very much in advance.
>
> Martin
>


--
RNDr. Martin Gazak, MicroStep-MIS
Cavojskeho 1, 841 04 Bratislava, Slovakia
Tel: ++421 2 602 00 128, 111
Fax: ++421 2 602 00 180
e-mail: [hidden email]
www: http://www.microstep-mis.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wrapper-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wrapper-user
Loading...