<?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 when running as a Windows Service in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240405#M193535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i used bitrock installer to build alfresco.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i get&amp;nbsp; alfresco-community-withpostgresql-3.4.b-1-windows-installer.exe file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i try to run this file i get this error :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There has been an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error writing file C:/Alfresco/tomcat/bin/setenv.bat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The application will exit now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need ur help please&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 14:36:18 GMT</pubDate>
    <dc:creator>akalf</dc:creator>
    <dc:date>2012-10-02T14:36:18Z</dc:date>
    <item>
      <title>Javascript debugger when running as a Windows Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240401#M193531</link>
      <description>I'm using Community 3.4 release and I'm not sure how to bring up the debugger for server side investigation.I've used it before, but with version 3.4, Alfresco is installed as a Windows Service rather than an app that I can start from the command line.I'm not sure that's the problem, but that is dif</description>
      <pubDate>Mon, 25 Oct 2010 16:48:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240401#M193531</guid>
      <dc:creator>ghernando</dc:creator>
      <dc:date>2010-10-25T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript debugger when running as a Windows Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240402#M193532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was having the same issue and ended up getting the debugger to work by stopping the service and running it from the command line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Log into machine from which alfresco is running (debugger does not work remotely)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Stop alfresco service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Run [ALFRESCO_HOME]\tomcat\bin\startup.bat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;4. Go to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://[ALFRESCO_DOMAIN]/alfresco/service/" rel="nofollow noopener noreferrer"&gt;http://[ALFRESCO_DOMAIN]/alfresco/service/&lt;/A&gt;&lt;SPAN&gt; using browser on same machine that alfresco is running on&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click Refresh Web Scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Click List Web Scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Click Alfresco Javascript Debugger&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Click Enable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9. You should see a standalone java app pop up entitled "Alfresco web-tier JavaScript Debugger"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10. Now just run a webscript and you should see the javascript controller in the debugger window&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the first time I tried to run startup.bat from the command line I got a permgen exception. Adding &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;set "JAVA_OPTS=-Xms256m -Xmx256m -XX:PermSize=256m -XX:MaxPermSize=256m"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; to startup.bat just above the line with &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;call "%EXECUTABLE%" start %CMD_LINE_ARGS%&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; solved it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lastly, for me, the debugger only works for one webscript execution. I have to disable then enable the debugger between consecutive executions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 22:44:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240402#M193532</guid>
      <dc:creator>cmcmillen1</dc:creator>
      <dc:date>2011-06-21T22:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript debugger when running as a Windows Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240403#M193533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What version of windows do you have? I'm not successful with running javascript debugger.. I have windows 7 64 bit. Enabling the debugger results in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.Thread.run(Thread.java:619)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aused by: java.awt.HeadlessException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.awt.GraphicsEnvironment.checkHGadlGss(GraphicsEnvironment.java:1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.awt.Window.&amp;lt;init&amp;gt;(Window.java:432)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.awt.Frame.&amp;lt;init&amp;gt;(Frame.java:403)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at javax.swing.JFrame.cinit&amp;gt;(3Frame.java:202)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.mozilla.javascript.tools.debugger.SwingGui.cinit&amp;gt;(SwingGui.java:1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I start manually by using catalina start, so windows services limitation is not the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did anyone achieve success in running javascript debugger on win7 64 bit?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 14:07:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240403#M193533</guid>
      <dc:creator>michalwrobel</dc:creator>
      <dc:date>2011-08-11T14:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript debugger when running as a Windows Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240404#M193534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I got it runnig doing the following steps im my Alfresco version 3.4d running on Windows 7 Enterprise 64.bit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Debugger will not start if Alfresco runs as a Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So stop the alfresco service and also the alfresco mysql service and set the startup property to "manual".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have configured a SSO it may be necessary to disable that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On my machine there was an error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color:#ff0000;"&gt;java.lang.UnsatisfiedLinkError: org.alfresco.jlan.netbios.win32.Win32NetBIOS.GetLocalNetBIOSName()Ljava/lang/String;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if I startet Alfresco as described below. After disabling SSO Alfresco started without error and also now I was able to start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.change in c:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\log4j.properties under "Repository" near line 241:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#ff0000;"&gt;log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#ff0000;"&gt;log4j.logger.org.alfresco.repo.jscript.ScriptLogger=DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.create alf_start.bat in c:\Alfresco&amp;nbsp; [adjust the path to your requirements] with content:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#0000FF;"&gt;@echo off&lt;BR /&gt;rem —————————————————————————&lt;BR /&gt;rem Start script for the Alfresco Server&lt;BR /&gt;rem —————————————————————————&lt;BR /&gt;&lt;BR /&gt;call "%~dp0alfresco.bat" start %1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4.create alf_stop.bat in c:\Alfresco with content:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#0000FF;"&gt;@echo off&lt;BR /&gt;rem —————————————————————————&lt;BR /&gt;rem Stop script for the Alfresco Server&lt;BR /&gt;rem —————————————————————————&lt;BR /&gt;&lt;BR /&gt;call "%~dp0alfresco.bat" stop %1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. create alfresco.bat in c:\Alfresco with content&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#0000FF;"&gt;@echo off&lt;BR /&gt;rem —————————————————————————&lt;BR /&gt;rem Start script for the Alfresco Server&lt;BR /&gt;rem —————————————————————————&lt;BR /&gt;&lt;BR /&gt;rem set Alfresco home (includes trailing \ e.g. c:\alfresco\)&lt;BR /&gt;set ALF_HOME=%~dps0&lt;BR /&gt;set CATALINA_HOME=%ALF_HOME%tomcat&lt;BR /&gt;&lt;BR /&gt;rem Set any default JVM options&lt;BR /&gt;set JAVA_OPTS=-Xms512m -Xmx512m -Xss512k -XX:MaxPermSize=256m -XX:NewSize=256m -server -Dalfresco.home=%ALF_HOME% -Dcom.sun.management.jmxremote&lt;BR /&gt;&lt;BR /&gt;rem — If SetPaths.bat already exists - assume set by hand and use as is&lt;BR /&gt;set PATH=%ALF_HOME%bin;%PATH%&lt;BR /&gt;if not exist "SetPaths.bat" goto getpaths&lt;BR /&gt;call SetPaths.bat&lt;BR /&gt;goto start&lt;BR /&gt;&lt;BR /&gt;:getpaths&lt;BR /&gt;call RegPaths.exe&lt;BR /&gt;call SetPaths.bat&lt;BR /&gt;del SetPaths.bat&lt;BR /&gt;&lt;BR /&gt;:start&lt;BR /&gt;rem — Test for Java settings&lt;BR /&gt;set BASEDIR=%CATALINA_HOME%&lt;BR /&gt;rem — Reset errorlevel hack&lt;BR /&gt;verify &amp;gt;nul&lt;BR /&gt;call "%CATALINA_HOME%\bin\setclasspath.bat"&lt;BR /&gt;if errorlevel 1 goto error&lt;BR /&gt;set PATH=%JAVA_HOME%\bin;%PATH%&lt;BR /&gt;rem —————————————&lt;BR /&gt;rem Start Components&lt;BR /&gt;rem —————————————&lt;BR /&gt;&lt;BR /&gt;if not ""%1"" == ""start"" goto stop&lt;BR /&gt;&lt;BR /&gt;if not exist "%ALF_HOME%mysql\my.ini" goto tomcat&lt;BR /&gt;rem —————————————&lt;BR /&gt;rem Start MySQL&lt;BR /&gt;rem —————————————&lt;BR /&gt;echo Starting MySQL…&lt;BR /&gt;start "MySQL" "%ALF_HOME%mysql\bin\mysqld" –defaults-file="%ALF_HOME%mysql\my.ini" –basedir="%ALF_HOME%mysql" –datadir="%ALF_HOME%mysql\data" –console&lt;BR /&gt;&lt;BR /&gt;rem Uncomment below to pause for some seconds before starting Tomcat&lt;BR /&gt;rem Change 5 to the number of seconds delay required&lt;BR /&gt;rem ping 1.0.0.0 -n 5 -w 1000 &amp;gt;NUL&lt;BR /&gt;&lt;BR /&gt;:tomcat&lt;BR /&gt;rem —————————————&lt;BR /&gt;rem Start Tomcat&lt;BR /&gt;rem —————————————&lt;BR /&gt;&lt;BR /&gt;echo Starting Tomcat…&lt;BR /&gt;call "%CATALINA_HOME%\bin\startup.bat"&lt;BR /&gt;&lt;BR /&gt;rem ———————————&lt;BR /&gt;rem Start Virtualization if available&lt;BR /&gt;rem ———————————&lt;BR /&gt;rem if exist "~dp0virtual_start.bat" call "~dp0virtual_start.bat"&lt;BR /&gt;&lt;BR /&gt;goto end&lt;BR /&gt;&lt;BR /&gt;:stop&lt;BR /&gt;&lt;BR /&gt;rem —————————————&lt;BR /&gt;rem Stop Components&lt;BR /&gt;rem —————————————&lt;BR /&gt;&lt;BR /&gt;if not ""%1"" == ""stop"" goto nostop&lt;BR /&gt;&lt;BR /&gt;echo Shutting down Tomcat…&lt;BR /&gt;call "%CATALINA_HOME%\bin\shutdown.bat"&lt;BR /&gt;&lt;BR /&gt;if not exist "%ALF_HOME%mysql\my.ini" goto nextstop&lt;BR /&gt;if ""%2"" == ""nouser"" goto tomcatwait&lt;BR /&gt;set /P pause="Please wait until Tomcat has shut down, then press ENTER to continue…"&lt;BR /&gt;goto stopmysql&lt;BR /&gt;:tomcatwait&lt;BR /&gt;rem Change 10 to the number of seconds delay required&lt;BR /&gt;ping 1.0.0.0 -n 10 -w 1000 &amp;gt;NUL&lt;BR /&gt;&lt;BR /&gt;:stopmysql&lt;BR /&gt;echo Stopping MySQL…&lt;BR /&gt;call "%ALF_HOME%mysql\bin\mysqladmin" -u root shutdown&lt;BR /&gt;&lt;BR /&gt;:nextstop&lt;BR /&gt;rem if exist "virtual_start.bat" call virtual_stop.bat&lt;BR /&gt;&lt;BR /&gt;goto end&lt;BR /&gt;&lt;BR /&gt;:error&lt;BR /&gt;echo Error encountered.&lt;BR /&gt;if ""%2"" == ""nouser"" goto end&lt;BR /&gt;set /P pause="Press ENTER to continue…"&lt;BR /&gt;&lt;BR /&gt;:end&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. create setPath.bat in c:\Alfresco with content and modify the last line so that it is pointing to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the dir on your machine where the JDK (!!!) is installed. Do not point to a JRE path!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#0000FF;"&gt;@ECHO OFF&lt;BR /&gt;REM Set Paths Utility - created by installer&lt;BR /&gt;SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_27&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To start alfresco now doubleclick alf_start.bat in the explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wait a little time until alfresco is started completely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And the debugger should start if you call the page &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/&lt;/A&gt;&lt;SPAN&gt; and there click on "Javascript debugger" and "enable" in the following page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 06:49:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240404#M193534</guid>
      <dc:creator>martinn</dc:creator>
      <dc:date>2011-09-09T06:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript debugger when running as a Windows Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240405#M193535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i used bitrock installer to build alfresco.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i get&amp;nbsp; alfresco-community-withpostgresql-3.4.b-1-windows-installer.exe file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i try to run this file i get this error :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There has been an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error writing file C:/Alfresco/tomcat/bin/setenv.bat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The application will exit now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need ur help please&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:36:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240405#M193535</guid>
      <dc:creator>akalf</dc:creator>
      <dc:date>2012-10-02T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript debugger when running as a Windows Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240406#M193536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i used bitrock installer to build alfresco.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i get alfresco-community-withpostgresql-3.4.b-1-windows-installer.exe file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i try to run this file i get this error :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There has been an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error writing file C:/Alfresco/tomcat/bin/setenv.bat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The application will exit now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need ur help please&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;akalf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:37:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-debugger-when-running-as-a-windows-service/m-p/240406#M193536</guid>
      <dc:creator>akalf</dc:creator>
      <dc:date>2012-10-02T14:37:03Z</dc:date>
    </item>
  </channel>
</rss>

