AS7 should run on Headless mode by default
------------------------------------------
Key: AS7-1603
URL:
https://issues.jboss.org/browse/AS7-1603
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.0.1.Final
Environment: Debian
Reporter: George Gastaldi
When running a JSF app on Debian, the following stacktrace is shown:
{code:java}
23:04:31,468 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]]
(MSC service thread 1-3) Exception sending context initialized event to listener instance
of class com.sun.faces.config.ConfigureListener: java.lang.InternalError: Can't
connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY
variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) [:1.6.0_22]
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52) [:1.6.0_22]
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155) [:1.6.0_22]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
[:1.6.0_22]
at java.lang.Class.forName0(Native Method) [:1.6.0_22]
at java.lang.Class.forName(Class.java:169) [:1.6.0_22]
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
[:1.6.0_22]
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89) [:1.6.0_22]
at java.lang.Class.forName0(Native Method) [:1.6.0_22]
at java.lang.Class.forName(Class.java:169) [:1.6.0_22]
at java.awt.Toolkit$2.run(Toolkit.java:834) [:1.6.0_22]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826) [:1.6.0_22]
at
org.richfaces.application.InitializationListener$AWTInitializer.initialize(InitializationListener.java:85)
[richfaces-core-impl-4.0.0.Final.jar:]
at
org.richfaces.application.InitializationListener.onStart(InitializationListener.java:122)
[richfaces-core-impl-4.0.0.Final.jar:]
at
org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:152)
[richfaces-core-impl-4.0.0.Final.jar:]
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:1993)
[jsf-impl.jar:2.0.2-FCS]
at
com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:1969)
[jsf-impl.jar:2.0.2-FCS]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:299)
[jsf-impl.jar:2.0.2-FCS]
at
org.jboss.as.weld.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:288)
[jboss-as-weld-7.0.1.Final.jar:7.0.1.Final]
at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:683)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.jboss.seam.faces.environment.SeamApplicationWrapper$Proxy$_$$_WeldClientProxy.publishEvent(SeamApplicationWrapper$Proxy$_$$_WeldClientProxy.java)
[seam-faces-3.0.2.Final.jar:]
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:601)
[jsf-impl.jar:2.0.2-FCS]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:344)
[jsf-impl.jar:2.0.2-FCS]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
[jsf-impl.jar:2.0.2-FCS]
at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)
[jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_22]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
{code}
The solution is to enable the headless mode on the startup scripts, as this surely solves
this problem
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira