2 Replies Latest reply: Dec 6, 2012 1:57 AM by Vivek RSS

    Problem with script in order to create service of WLS_REPORTS

    Iwawa
      Hi to All, I have written 3 command script in order to create the services for the AdminServer, WLS_FORMS and WLS_REPORTS
      echo off
      SETLOCAL
      set DOMAIN_NAME=FrmDomain
      set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\FrmDomain
      REM SERVER_NAME is AdminServer, WLS_FORMS or WLS_REPORTS
      set SERVER_NAME=<Server>
      set PRODUCTION_MODE=true
      set JAVA_VENDOR=Sun
      set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_37
      set
      JAVA_OPTIONS=-Dweblogic.Stdout="C:\Oracle\Middleware\user_projects\domains\FrmDomain\stdout.txt" -Dweblogic.Stderr="C:\Oracle\Middleware\user_projects\domains\FrmDomain\stderr.txt"
      set ADMIN_URL=http://myServer:7001
      call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
      call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
      ENDLOCAL
      When I run the script for AdminServer and WLS_FORMS all work fine; if I inspect the Windows registry I find the 2 service and so in services.msc.
      But If I execute the script for WLS_REPORTS, the service is not created.
      I suppose that the script have problems with the lenght of the command line.
      Oracle Forms and Reports are installed on Windows 2008 64 bits.

      Have You an idea in order to resolve my problem ?

      Thank You and Best regards
      gaetano
        • 1. Re: Problem with script in order to create service of WLS_REPORTS
          Vivek
          Hello Nick,
          Please make some changes on ur installsvc.cmd script---

          Like-- set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%

          To---

          set CLASSPATH=%WEBLOGIC_CLASSPATH%;

          After that you will be able to create service for WLS_Reports...

          I hope it will work..

          Vivek
          • 2. Re: Problem with script in order to create service of WLS_REPORTS
            Vivek
            Hello Nick,
            Please ignore my previous solution. Here is fix solution--


            Please start WLS_REPORT server from managed server script (command line). Then go to WLS_REPORT.log and check the entry java.class.path and copy this entry to txt file and place it to any location. Then go to the your customized installsvc.cmd script and search for --set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% ..................and so on..

            Here you have to give your txt file location like---

            set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath @D:\oracle\classpath.txt -Dweblogic.Name=%SERVER_NAME%.....so on

            Then try to create window service for wls_report. I hope this will work.

            Thanks,
            Vivek