<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Mango wants to conect to X server"]]></title>
		<link>http://mango.serotoninsoftware.com/forum/posts/list/2.page</link>
		<description><![CDATA[Latest messages posted in the topic "Mango wants to conect to X server"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Mango wants to conect to X server</title>
				<description><![CDATA[ Hi<br /> I have installed Mango 1.8 as the root application in tomcat6 on  Fedora linux .<br /> I changed the paths in log4j.xml and env.properties files in the<br />   [mango]/WEB-INF/classes/  to a folder writable by the tomcat user.<br /> <br /> I am getting an error in the tomcat6/localhost.log, saying mango cannot connect to the X server.<br /> [code]<br /> SEVERE: Exception sending context initialized event to listener instance of class com.serotonin.mango.MangoContextListener<br /> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.<br />         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)<br />         at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)<br />         at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)<br />         at java.security.AccessController.doPrivileged(Native Method)<br />         at sun.awt.X11GraphicsEnvironment.&lt;clinit&gt;(X11GraphicsEnvironment.java:131)<br />         at java.lang.Class.forName0(Native Method)<br />         at java.lang.Class.forName(Class.java:169)<br />         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)<br />         at sun.awt.X11.XToolkit.&lt;clinit&gt;(XToolkit.java:89)<br />         at java.lang.Class.forName0(Native Method)<br />         at java.lang.Class.forName(Class.java:169)<br />         at java.awt.Toolkit$2.run(Toolkit.java:834)<br />         at java.security.AccessController.doPrivileged(Native Method)<br />         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)<br />         at com.serotonin.mango.view.ViewGraphicLoader.loadDirectory(ViewGraphicLoader.java:107)<br />         at com.serotonin.mango.view.ViewGraphicLoader.loadViewGraphics(ViewGraphicLoader.java:55)<br />         at com.serotonin.mango.MangoContextListener.imageSetInitialize(MangoContextListener.java:379)<br />         at com.serotonin.mango.MangoContextListener.contextInitialized(MangoContextListener.java:84)<br />         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)<br />         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)<br />         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)<br />         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)<br />         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)<br />         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)<br />         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)<br />         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)<br />         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)<br />         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)<br />         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)<br />         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)<br />         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)<br />         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)<br />         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br />         at org.apache.catalina.core.StandardService.start(StandardService.java:516)<br />         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br />         at org.apache.catalina.startup.Catalina.start(Catalina.java:583)<br />         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />         at java.lang.reflect.Method.invoke(Method.java:597)<br />         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)<br />         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)<br /> Mar 1, 2010 7:55:13 PM org.apache.catalina.core.ApplicationContext log<br /> INFO: Closing Spring root WebApplicationContext<br /> <br /> [/code]<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/322/1487.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/322/1487.page</link>
				<pubDate><![CDATA[Mon, 1 Mar 2010 15:34:35]]> GMT</pubDate>
				<author><![CDATA[ rmb]]></author>
			</item>
			<item>
				<title>Re:Mango wants to conect to X server</title>
				<description><![CDATA[ Google says: [url]http://www.linuxquestions.org/questions/linux-general-1/cant-connect-to-x11-window-server-using-0.0-as-the-value-of-the-display-variable.-178234/[/url]]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/322/1488.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/322/1488.page</link>
				<pubDate><![CDATA[Mon, 1 Mar 2010 15:38:04]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:Mango wants to conect to X server</title>
				<description><![CDATA[ I am confused as to why mango wants to connect to a display, as it is being started by the tomcat user, when the system starts tomcat.<br /> The tomcat user does not "login" to the system, and has no display.<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/322/1490.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/322/1490.page</link>
				<pubDate><![CDATA[Mon, 1 Mar 2010 17:48:50]]> GMT</pubDate>
				<author><![CDATA[ rmb]]></author>
			</item>
			<item>
				<title>Re:Mango wants to conect to X server</title>
				<description><![CDATA[ Mango doesn't care about the display. It's Java that is trying to connect. The referenced link tell you how to tell Java not to care.<br /> <br /> You might say that Mango should tell Java itself, but this is the first i've heard of this issue.]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/322/1491.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/322/1491.page</link>
				<pubDate><![CDATA[Mon, 1 Mar 2010 18:01:15]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:Mango wants to conect to X server</title>
				<description><![CDATA[ Hi,<br /> Found the fix for headless mode, on Fedora 11. Edit /etc/tomcat6/tomcat6.conf and add the following<br /> [code]<br /> # To run our environment with a headless implementation,<br /> # the follow property may be specified at the java command line:<br /> <br /> JAVA_OPTS="-Djava.awt.headless=true"<br /> [/code]<br /> <br /> I get a bit further now, in that the folder mangoDB , and the mango.log file are created in /var/log/tomcat6.<br /> I modified ROOT/WEB-INF/classes/env.properties<br /> [code]<br /> # db.url=~/../../mangoDB<br /> db.url=/var/log/tomcat6/mangoDB<br /> [/code]<br /> and log4j.xml<br /> [code]<br />   &lt;appender name="logfile" class="org.apache.log4j.DailyRollingFileAppender"&gt;<br /> &lt;!--    &lt;param name="File" value="../logs/mango.log"/&gt; --&gt;<br />     &lt;param name="File" value="/var/log/tomcat6/mango.log"/&gt;<br /> [/code]<br /> <br /> I am now getting the following error in the tomcat localhost file<br /> [code]<br /> SEVERE: Exception sending context initialized event to listener instance of class com.serotonin.mango.MangoContextListener<br /> com.serotonin.ShouldNeverHappenException: java.io.FileNotFoundException: createTables.log (Permission denied)<br /> .<br /> .<br /> Caused by: java.io.FileNotFoundException: createTables.log (Permission denied)<br />         at java.io.FileOutputStream.open(Native Method)<br /> [/code]<br /> Where is the path set for createTables.log<br /> <br /> Thanks<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/322/1493.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/322/1493.page</link>
				<pubDate><![CDATA[Tue, 2 Mar 2010 03:17:23]]> GMT</pubDate>
				<author><![CDATA[ rmb]]></author>
			</item>
			<item>
				<title>Re:Mango wants to conect to X server</title>
				<description><![CDATA[ Those logs get written to the default directory, which is likely the directory you are in when you start Tomcat.]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/322/1496.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/322/1496.page</link>
				<pubDate><![CDATA[Tue, 2 Mar 2010 10:03:37]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:Mango wants to conect to X server</title>
				<description><![CDATA[ The user tomcat does not own the home directory /usr/share/tomcat6<br /> the fix is to <br /> [code]<br /> # chown tomcat:tomcat /usr/share/tomcat6<br /> [/code]<br /> <br /> Mango now runs :-)<br /> <br /> Mango does not recognise  Firefox 3.5.8, as I get a complaint on the login page<br /> [code]<br /> Firefox 3.5 on Linux<br /> This browser is supported. Your browser may work with this product, but is not officially supported by Serotonin Software. We instead recommend the use of Firefox, Chrome, or Internet Explorer 7.<br /> [/code]<br /> However, I can login, and everything appears OK<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/322/1498.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/322/1498.page</link>
				<pubDate><![CDATA[Tue, 2 Mar 2010 12:52:57]]> GMT</pubDate>
				<author><![CDATA[ rmb]]></author>
			</item>
	</channel>
</rss>
