-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DG,

On 5/1/12 1:39 PM, dgchristen...@comcast.net wrote:
> Mark, you are a genius.  I followed the above and the Swing app 
> starts without a problem.  If anybody's willing to explain it, I'd 
> like to understand what the difference is between starting Tomcat
> via startup.sh and starting it as a service.

If you run Tomcat as a "service" (whatever that means under Linux),
then it probably runs as some user other than "you" (the one who owns
the X environment). When you run it as "you", then you get access to X.

It would work as a service if:

1. X starts before Tomcat
2. X is configured with "xhost +" for whatever user it is
3. Tomcat's startup can have the proper DISPLAY variable set
(localhost:0?)

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+gTuoACgkQ9CaO5/Lv0PBh6QCbBMXdRUUp6ZQyd+X4YzIahs8O
GB0An35Yf17m5FdrQXrW6OlRaUFvFput
=w5WE
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to