2 Replies Latest reply on Jul 2, 2013 7:08 PM by jkostic

    Creating a windows Service for Weblogic 12c Domain hosting Apex 2.2 listener

    jkostic

      Hi Guys,

       

      Does anyone have experience of Weblogic 12c under windows?

       

      I have some difficulties to create a windows service for a domain.

       

      Here is the script to create the service:

       

      echo off

      SETLOCAL

      set DOMAIN_NAME=PMU

      set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\PMU

      set SERVER_NAME=LICORNE2012

      set WL_HOME=C:\Oracle\Middleware\wlserver_12.1

      set PRODUCTION_MODE=true

      set JAVA_OPTIONS=-Dweblogic.Name=LICORNE2012

      set WLS_USER=weblogic

      set WLS_PW=password

      set ADMIN_URL=http://LICORNE2012:7001

      set MEM_ARGS=-Xms256m –Xmx256m

      call "C:\Oracle\Middleware\wlserver_12.1\server\bin\installSvc.cmd"

      ENDLOCAL

       

       

      The service is created and when I start the service, it start then stop few second after.

       

      Here is the error I am getting.

       

      [Tue Jun 25 23:36:01 2013] [I] [initLog] initializing logger

      [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'ROTATION_TYPE' header found. 'TIME' based rotation will be used by default.

      [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'TIME_START_DATE' header found or value is invalid. Rotation will take place every 24 hours beginning today at 23:59:59

      [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'TIME_INTERVAL_MINS' header found. Using the default value of 24 hours.

      [Tue Jun 25 23:36:01 2013] [I] [initLog] TIME based log rotation is ON

      [Tue Jun 25 23:36:01 2013] [I] [trigger] First rotation due in 1438 secs

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] console allocation successful. THREAD_DUMP redirection enabled

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] About to execute CreateThread()

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszCmdLine = -client -Xms32m -Xmx200m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseSpinning -Dweblogic.Name=LICORNE2012 -Xverify:none -Djava.endorsed.dirs=C:\Oracle\MIDDLE~1\JDK160~1/jre/lib/endorsed;C:\Oracle\MIDDLE~1\WLSERV~1.1/endorsed -classpath "C:\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_oepe101\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_12.1.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;" -Dweblogic.Name=LICORNE2012 -Dweblogic.management.username=weblogic -Dweblogic.management.server="http://LICORNE2012:7001" -Dweblogic.ProductionModeEnabled= -Djava.security.policy="C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.policy" weblogic.Server

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszJavaHome = C:\Oracle\MIDDLE~1\JDK160~1

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszExecDir = C:\Oracle\Middleware\user_projects\domains\PMU

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszOldPath = C:\app\oracle\product\11.2.0.3\jko\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszNewPath = C:\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32\oci920_8;C:\app\oracle\product\11.2.0.3\jko\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszDelay = 0

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszStopClass = []

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszLog = [c:\temp\web.log]

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Thread created successfully

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Reporting SCM of SERVICE_START_PENDING with delay=0

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszHost = []

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszPort = []

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Reporting SCM of SERVICE_RUNNING

      [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] waiting for multiple events

      [Tue Jun 25 23:36:01 2013] [I] [StartJVM] Parsing JVM Arguments

      [Tue Jun 25 23:36:01 2013] [I] [StartJVM] Initializing JVM

      [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Loading class - weblogic.Server

      [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Locating method "public static void main([]String)" in main class

      [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Building arguments for main class

      [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Invoking main class

      <25 juin 2013 23 h 36 CEST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>

      <25 juin 2013 23 h 36 CEST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>

      <25 juin 2013 23 h 36 CEST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.4-b02 from Sun Microsystems Inc..>

      <25 juin 2013 23 h 36 CEST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012

      WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012

      WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012

      WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012

      WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012

      WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012

      WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012

      WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012

      WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012

      WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012

      WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 >

      <25 juin 2013 23 h 36 CEST> <Info> <Management> <BEA-141223> <The server name LICORNE2012 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.>

      <25 juin 2013 23 h 36 CEST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:

       

      There are 1 nested errors:

       

      weblogic.management.ManagementException: [Management:141223]The server name LICORNE2012 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.

          at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:149)

          at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:41)

          at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)

          at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)

          at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:883)

          at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:570)

          at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)

          at weblogic.Server.main(Server.java:74)

       

      >

      <25 juin 2013 23 h 36 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>

      <25 juin 2013 23 h 36 CEST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>

      <25 juin 2013 23 h 36 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>

      [Tue Jun 25 23:36:11 2013] [I] [ExitHandler] Fire (-1)

      [Tue Jun 25 23:36:11 2013] [I] [ServiceStart] done waiting for multiple events. Wait=0

      [Tue Jun 25 23:36:11 2013] [I] [ServiceStart] Informing SCM about SERVICE_STOP

       

       

      Thanks for your help

      jko