Problem launching HSQL Database Manager when jboss started f
camross Sep 26, 2005 4:25 PMI'm trying to run jboss 4.0.2 from Fedora Core 3 as a daemon using the provided jboss_init_redhat.sh script. I've also followed the instructions in chapter 4 of startguide.pdf.
When I run jboss from the command line I can launch the HSQL Database Manager without issue. However, when I start jboss as a daemon and then try to launch the HSQL Database Manager by invoking startDatabaseManager(), I get the output shown below in server.log.
I'm not much of a bash programmer, but I notice that jboss_init_redhat.sh sets JBOSS_CONSOLE="/dev/null". Perhaps this could be the root cause?
Thanks in advance for any hep.
Cameron Ross.
----------------- start ------------------
2005-09-26 16:20:03,060 ERROR [org.jboss.jdbc.HypersonicDatabase] Failed to start database manager
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.java:556)
Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.(XToolkit.java:96)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at javax.swing.UIManager.initialize(UIManager.java:1262)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1245)
at javax.swing.UIManager.getUI(UIManager.java:851)
at javax.swing.JPanel.updateUI(JPanel.java:104)
at javax.swing.JPanel.(JPanel.java:64)
at javax.swing.JPanel.(JPanel.java:87)
at javax.swing.JPanel.(JPanel.java:95)
at javax.swing.JRootPane.createGlassPane(JRootPane.java:482)
at javax.swing.JRootPane.(JRootPane.java:313)
at javax.swing.JApplet.createRootPane(JApplet.java:134)
at javax.swing.JApplet.(JApplet.java:122)
at org.hsqldb.util.DatabaseManagerSwing.(Unknown Source)
at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source)
... 5 more
----------- end ---------------