When will the space problem with the startup scripts will be
Hello all,
I like to install the jazz server in C:\Program Files\ibm\jazz. Everytime I do the server startup scripts barf. Is there any other way besides setting the environment variables to search for C:\Progra~1 instead of C:\Program Files. regards Kartik |
4 answers
Modifying your server.startup.bat to the following should fix things up:
rem Unset JAVA_HOME because we really want to use the JRE that is bundled. rem Also, Tomcat will complain if JAVA_HOME is set to a JRE instead of a JDK rem and that should be avoided set OLD_JAVA_HOME=%JAVA_HOME% set JAVA_HOME= set JRE_HOME=%cd%\win32\ibm-java2-i386-50\jre set CATALINA_HOME=%cd%\tomcat set CATALINA_OPTS=-Dcom.ibm.team.workitem.common.behavior.useCustomAccessProfiles=false -Dcom.ibm.team.server.configURL=file:///"%cd%"/teamserver.properties set JAVA_OPTS=-Xmx700M call "%CATALINA_HOME%"\bin\startup.bat set "JAVA_HOME=%OLD_JAVA_HOME%" set OLD_JAVA_HOME= set JRE_HOME= set CATALINA_HOME= set CATALINA_OPTS= set JAVA_OPTS= You will also need to modify the server.shutdown.bat: rem Unset JAVA_HOME because we really want to use the JRE that is bundled. rem Also, Tomcat will complain if JAVA_HOME is set to a JRE instead of a JDK rem and that should be avoided set OLD_JAVA_HOME=%JAVA_HOME% set JAVA_HOME= set JRE_HOME=%cd%\win32\ibm-java2-i386-50\jre set CATALINA_HOME=%cd%\tomcat set JAVA_OPTS= call "%CATALINA_HOME%"\bin\shutdown.bat set "JAVA_HOME=%OLD_JAVA_HOME%" set OLD_JAVA_HOME= set JRE_HOME= set CATALINA_HOME= This issue is reported in https://jazz.net/jazz/web/projects/Jazz%20Project#perspective=Work%20Items&action=viewWorkItem&id=25916. |
Hello
Is there any other way besides setting the environment variables to search for Indeed. You can try to find out which line causes trouble and then wrap the path in quotas. Like, if %EXECUTABLE%\Jazz resolves to C:\Program Files\Jazz\server in you environment, you need to add quotas. So "%EXECUTABLE%\Jazz" will result in proper functionality. As the server.startup.bat invokes the common Apache Tomcat batch inside tomcat/bin/startup.bat, you will have to seek that one for the right quota-position. Hint: you can have all variables prompted in command line with echo %VARIABLE-NAME% With that you can find out which is not set properly. Regards, Stefan |
Stefan Stern wrote:
Hello Hi Stefan, This is what I have in server.startup.bat ------------------------------- rem Unset JAVA_HOME because we really want to use the JRE that is bundled. rem Also, Tomcat will complain if JAVA_HOME is set to a JRE instead of a JDK rem and that should be avoided set OLD_JAVA_HOME=%JAVA_HOME% set JAVA_HOME= echo current directory == %cd% set JRE_HOME="%cd%\win32\ibm-java2-i386-50\jre" set CATALINA_HOME= %cd%\tomcat set CATALINA_OPTS=-Dcom.ibm.team.workitem.common.behavior.useCustomAccessProfiles=false -Dcom.ibm.team.server.configURL=file:///"%cd%"/teamserver.properties set JAVA_OPTS=-Xmx700M call "%CATALINA_HOME%\bin\startup.bat" set "JAVA_HOME=%OLD_JAVA_HOME%" set OLD_JAVA_HOME= set JRE_HOME= set CATALINA_HOME= set CATALINA_OPTS= set JAVA_OPTS= -------------------------------- the output error message looks like this -------------Start of error message------------------- D:\Program Files\ibm\jazz\server>set CATALINA_OPTS=-Dcom.ibm.team.workitem.commo n.behavior.useCustomAccessProfiles=false -Dcom.ibm.team.server.configURL=file:// /"D:\Program Files\ibm\jazz\server"/teamserver.properties D:\Program Files\ibm\jazz\server>set JAVA_OPTS=-Xmx700M D:\Program Files\ibm\jazz\server>call " D:\Program Files\ibm\jazz\server\tomcat\ bin\startup.bat" The filename, directory name, or volume label syntax is incorrect. D:\Program Files\ibm\jazz\server>set "JAVA_HOME=" D:\Program Files\ibm\jazz\server>set OLD_JAVA_HOME= D:\Program Files\ibm\jazz\server>set JRE_HOME= D:\Program Files\ibm\jazz\server>set CATALINA_HOME= D:\Program Files\ibm\jazz\server>set CATALINA_OPTS= D:\Program Files\ibm\jazz\server>set JAVA_OPTS= D:\Program Files\ibm\jazz\server> -------------------end of error message------------ The problem comes up when the call function is initiated in the batch file. Regards, Kartik |
Kartik Kanakasabesan wrote:
Stefan Stern wrote: ok got it working modified the batch script to look like this now -------------------- rem Unset JAVA_HOME because we really want to use the JRE that is bundled. rem Also, Tomcat will complain if JAVA_HOME is set to a JRE instead of a JDK rem and that should be avoided set OLD_JAVA_HOME=%JAVA_HOME% set JAVA_HOME= echo current directory == %cd% set JRE_HOME=%cd%\win32\ibm-java2-i386-50\jre set CATALINA_HOME=%cd%\tomcat set CATALINA_OPTS=-Dcom.ibm.team.workitem.common.behavior.useCustomAccessProfiles=false -Dcom.ibm.team.server.configURL=file:///"%cd%"/teamserver.properties set JAVA_OPTS=-Xmx700M call "%CATALINA_HOME%\bin\startup.bat" set "JAVA_HOME=%OLD_JAVA_HOME%" set OLD_JAVA_HOME= set JRE_HOME= set CATALINA_HOME= set CATALINA_OPTS= set JAVA_OPTS= --------------------------- Instead of the way it was before. Regards, Kartik |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.