<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: javascript debugger error in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259089#M212219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I had the same with a default Alfresco installation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to change the &amp;lt;alfresco&amp;gt;/tomcat/scripts/ctl.sh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change-Djava.awt.headless=true to &lt;/SPAN&gt;&lt;STRONG&gt;false &lt;/STRONG&gt;&lt;SPAN&gt;to the JAVA_OPTS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mine looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;export JAVA_OPTS="-XX:MaxPermSize=512m -Xms128m -Xmx1024m -XX:-DisableExplicitGC -Djava.awt.headless=false -Dalfresco.home=/opt/alfresco-4.0.2 -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Sep 2012 12:05:14 GMT</pubDate>
    <dc:creator>shazada</dc:creator>
    <dc:date>2012-09-23T12:05:14Z</dc:date>
    <item>
      <title>javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259081#M212211</link>
      <description>When i visit the following link and try o enable the debugger i get an errorhttp://localhost:8080/alfresco/service/api/javascript/debuggerThe Web Script /alfresco/service/api/javascript/debugger has responded with a status of 500 - Internal Error.500 Description: An error inside the HTTP server whic</description>
      <pubDate>Tue, 11 Sep 2012 10:15:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259081#M212211</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-09-11T10:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259082#M212212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the debugger needs a graphical user interface on the server it runs on. For most real servers (running linux / unix without X11 or even an attached terminal), it can not be used. In certain situations on local *nix development boxes, the environment might not be properly configured before starting the Alfresco / Share server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please have a look at the first answer to the following question, which is pretty decent: &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:58:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259082#M212212</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-09-11T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259083#M212213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Didn't work for me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:13:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259083#M212213</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-09-11T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259084#M212214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Then you might provide some basic information on your setup - otherwise nobody from the community may provide more input / tips than is already available on sites like stackoverflow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:16:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259084#M212214</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-09-11T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259085#M212215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco 4.0d installed on "Linux 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried enabling the debugger where I have ssh into the server using ssh -X … using firefox but does not wok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the server does not have a graphics display&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:22:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259085#M212215</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-09-11T11:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259086#M212216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;based on this I'd assume this wouldn't work. The only way I see you might get this to work is by starting the Alfresco server in / from your X-forwarding SSH session, otherwise it will always be attached to the non-existent X11 display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:46:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259086#M212216</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-09-11T11:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259087#M212217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Once i logged in to alfresco server using ssh -X ..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I restarted alfresco.&amp;nbsp; What else should i do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:48:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259087#M212217</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-09-11T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259088#M212218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It depends on how you start your server. If you use the regular start scripts (/etc/init.d/tomcat6 e.g.), then your server will be started in the background / another session. You might need to run the startup.sh directly for this to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, this is where my limited knowledge of X11 comes to its final end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since servers regularily don't have a graphic console, I don't like having to depend on the Rhino debugger. Earlier this year I have investigated an alternative for JavaScript debugging, which looks promising. It uses Eclipse and no longer requires a graphical interface on the server. Unfortunately, there a still some changes that need to be made to Alfresco for this to work effectively. See &lt;/SPAN&gt;&lt;A href="http://axel-faust.de/?p=47&amp;amp;lang=en" rel="nofollow noopener noreferrer"&gt;Debugging Alfresco #1 – Eclipse JavaScript Debugger and Alfresco Repository&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://axel-faust.de/?p=75&amp;amp;lang=en" rel="nofollow noopener noreferrer"&gt;Script imports with a cleaner API&lt;/A&gt;&lt;SPAN&gt; for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 12:23:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259088#M212218</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-09-11T12:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: javascript debugger error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259089#M212219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I had the same with a default Alfresco installation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to change the &amp;lt;alfresco&amp;gt;/tomcat/scripts/ctl.sh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change-Djava.awt.headless=true to &lt;/SPAN&gt;&lt;STRONG&gt;false &lt;/STRONG&gt;&lt;SPAN&gt;to the JAVA_OPTS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mine looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;export JAVA_OPTS="-XX:MaxPermSize=512m -Xms128m -Xmx1024m -XX:-DisableExplicitGC -Djava.awt.headless=false -Dalfresco.home=/opt/alfresco-4.0.2 -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Sep 2012 12:05:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-error/m-p/259089#M212219</guid>
      <dc:creator>shazada</dc:creator>
      <dc:date>2012-09-23T12:05:14Z</dc:date>
    </item>
  </channel>
</rss>

