adding Weblogic 12.1.2.00 Admin Server as a window service

dbruce38141

Member
has anyone had any success adding weblogic 12.1.2.00 as a windows service. documentation is written for weblogic 10.3.x. created new CreateWLSSvc.cmd and modified installsvc.cmd. when running CreateWLSSvc from command prompt, get error message:

Files\java\jdk1.7.0_51"\jre\bin;C:\Program was not expected at this time.
 
Here it goes. replace X:\<WLS_HOME> with your weblogic home.

1) Navigate to X:\<WLS_HOME>\user_projects\domains\<DOMAIN>\servers\AdminServer and create a folder called security

2) Inside the folder create a file called boot.properties and include your weblogic username and secure password

3) On X:\<WLS_HOME>\wlserver\server\bin, create a new file called InstallAdminServerSvc.cmd and add the following items to it, adjusting the paths accordingly

echo off
SETLOCAL
set DOMAIN_NAME=<PUT YOUR DOMAIN NAME HERE>
set USERDOMAIN_HOME=X:\<WLS_HOME>\user_projects\domains\<YOUR DOMAIN NAME HERE>
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=true
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
call "X:\<WLS_HOME>\wlserver\server\bin\installSvc.cmd"
ENDLOCAL

4) Make sure the Admin Server is down

5) Run InstallAdminServerSvc.cmd as administrator
 
https://community.oracle.com/thread/4281342?start=0&tstart=0


[FONT=&quot]Hi all,[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]I did upgrading Weblogic 12.1.2 To 12.1.3.[/FONT]
[FONT=&quot]And did reconfiguration also.[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Reference -->https://dbaclass.com/article/steps-upgrading-weblogic-12-1-2-12-1-3/[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]But after WebLogic upgrade, windows services for the domain


instances are not starting,[/FONT]

[FONT=&quot]Can you help me please and resolve the above issue.[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Thanks in advance![/FONT]
 
[FONT=&quot]SETLOCAL[/FONT]
[FONT=&quot]set DOMAIN_NAME=XXX[/FONT]
[FONT=&quot]set USERDOMAIN_HOME=E:\WebLogicSvr\user_projects\domains\XXX[/FONT]
[FONT=&quot]set SERVER_NAME=JDVXXX[/FONT]
[FONT=&quot]set PRODUCTION_MODE=true[/FONT]
[FONT=&quot]set ADMIN_URL=http://XXXXXX:7001[/FONT]
[FONT=&quot]set JAVA_VENDOR=Oracle[/FONT]
[FONT=&quot]set JAVA_HOME=E:\Java\JDK[/FONT]
[FONT=&quot]set JAVA_OPTIONS=-XX:MaxPermSize=350m -Xms32m -Xmx1024m -Djava.xml.rpc.ServiceFactory=oracle.j2ee.ws.client.ServiceFactoryImpl[/FONT]
[FONT=&quot]call "E:\WebLogicSvr\user_projects\domains\XXX\bin\setDomainEnv.cmd"[/FONT]
[FONT=&quot]call "E:\WeblogicSvr12_1_3\wlserver\server\bin\installSvc.cmd"[/FONT]
[FONT=&quot]ENDLOCAL[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Above is instance creating .cmd file.[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]call "E:\WebLogicSvr\user_projects\domains\XXX\bin\setDomainEnv.cmd"[/FONT]
[FONT=&quot]call "E:\WeblogicSvr12_1_3\wlserver\server\bin\installSvc.cmd"[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]First call is using weblogic 12.1.2 (old)[/FONT]
[FONT=&quot]Second call is using weblogic 12.1.3 (new)[/FONT]
[FONT=&quot]**can you justify these calls?[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Thanks[/FONT]
 
It seems you are trying to create a Windows service to start up your JDV instance, rather than the AdminServer service that was the original subject of this thread.

Is that what you are trying to do? If so, then I find that it's easier to write a WebLogic script to start up an instance (or instances), put that in a batch file, and make a service out of that. It does depend on having NodeManager and AdminServer up and running first though.
 
Back
Top