You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michał Wróbel <mi...@evolpe.pl> on 2011/08/11 16:20:37 UTC

Tomcat 6 creating Swing GUI under Windows 7 64bit


------ Wiadomość oryginalna ------
Temat: 	Tomcat 6 creating Swing GUI under Windows 7 64bit
Data: 	Thu, 11 Aug 2011 16:18:29 +0200
Nadawca: 	Michał Wróbel <mi...@evolpe.pl>
Adresat: 	users@tomcat.apache.org



  Hi,

I am currently struggling with a following problem:

The system I use (Alfresco) provides a serverside javascript debugger. 
It's a Swing based window. I managed to run it under linux (when tomcat 
runs in X11 user session, although I can't find the way to display the 
same GUI when tomcat runs in Windows 7 64 bit.

I tried following approaches:
- Ticking 'Allow service to interact with desktop'
Results only in:
Caused by: java.lang.NullPointerException
     at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:230)
     at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:225)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at 
sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:480)
     ... 1 more

No effect on 'service interaction screen'

- Providing logon details for my own  windows account ( same effect as 
above )

- Running from catalina.bat
catalina start
with, and without jawa.awt.headless=false

Results in headless exception:
at java.lang.Thread.run(Thread.java:619)
aused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHGadlGss(GraphicsEnvironment.java:1
at java.awt.Window.<init>(Window.java:432)
at java.awt.Frame.<init>(Frame.java:403)
at javax.swing.JFrame.cinit>(3Frame.java:202)
at org.mozilla.javascript.tools.debugger.SwingGui.cinit>(SwingGui.java:1


I've read about a successful attempt under   Windows 7 32-bit

So... do you know is it anyhow possible to run tomcat with Swing GUI 
under Win7 64-bit or is it a system limitation...? It's eaten 2 days and 
I'm starting to be a little despaired.

thx from advance


Re: Tomcat 6 creating Swing GUI under Windows 7 64bit

Posted by Michał Wróbel <mi...@evolpe.pl>.
I know, I tried also catalina.bat, just as I've written in previous mail 
above but to no avail..

W dniu 2011-08-11 18:48, Konstantin Kolinko pisze:
> 2011/8/11 Michał Wróbel<mi...@evolpe.pl>:
>> P.S.
>> I managed to run this Swing window on virtual windows XP machine, so this
>> problem seems to be realted with Win7 64 bit. Any possible causes and
>> workarounds on your minds?
> You cannot display GUI windows if you are running Tomcat as a service.
> That is a feature of Windows Vista and later.  Use *.bat files, that
> are available in *.zip distributives.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Re: Tomcat 6 creating Swing GUI under Windows 7 64bit

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/8/11 Michał Wróbel <mi...@evolpe.pl>:
>
> P.S.
> I managed to run this Swing window on virtual windows XP machine, so this
> problem seems to be realted with Win7 64 bit. Any possible causes and
> workarounds on your minds?

You cannot display GUI windows if you are running Tomcat as a service.
That is a feature of Windows Vista and later.  Use *.bat files, that
are available in *.zip distributives.

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


Re: Tomcat 6 creating Swing GUI under Windows 7 64bit

Posted by Michał Wróbel <mi...@evolpe.pl>.
P.S.
I managed to run this Swing window on virtual windows XP machine, so 
this problem seems to be realted with Win7 64 bit. Any possible causes 
and workarounds on your minds?

W dniu 2011-08-11 16:20, Michał Wróbel pisze:
>
>
> ------ Wiadomość oryginalna ------
> Temat:     Tomcat 6 creating Swing GUI under Windows 7 64bit
> Data:     Thu, 11 Aug 2011 16:18:29 +0200
> Nadawca:     Michał Wróbel <mi...@evolpe.pl>
> Adresat:     users@tomcat.apache.org
>
>
>
>  Hi,
>
> I am currently struggling with a following problem:
>
> The system I use (Alfresco) provides a serverside javascript debugger. 
> It's a Swing based window. I managed to run it under linux (when 
> tomcat runs in X11 user session, although I can't find the way to 
> display the same GUI when tomcat runs in Windows 7 64 bit.
>
> I tried following approaches:
> - Ticking 'Allow service to interact with desktop'
> Results only in:
> Caused by: java.lang.NullPointerException
>     at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:230)
>     at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:225)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at 
> sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:480)
>     ... 1 more
>
> No effect on 'service interaction screen'
>
> - Providing logon details for my own  windows account ( same effect as 
> above )
>
> - Running from catalina.bat
> catalina start
> with, and without jawa.awt.headless=false
>
> Results in headless exception:
> at java.lang.Thread.run(Thread.java:619)
> aused by: java.awt.HeadlessException
> at java.awt.GraphicsEnvironment.checkHGadlGss(GraphicsEnvironment.java:1
> at java.awt.Window.<init>(Window.java:432)
> at java.awt.Frame.<init>(Frame.java:403)
> at javax.swing.JFrame.cinit>(3Frame.java:202)
> at org.mozilla.javascript.tools.debugger.SwingGui.cinit>(SwingGui.java:1
>
>
> I've read about a successful attempt under   Windows 7 32-bit
>
> So... do you know is it anyhow possible to run tomcat with Swing GUI 
> under Win7 64-bit or is it a system limitation...? It's eaten 2 days 
> and I'm starting to be a little despaired.
>
> thx from advance
>
>


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