The below post describes the installation of WebLogic server as a windows service, we will look at how we can install the Admin Server as well as Managed server as a service.
Steps:
1. Create an install batch script that contains the domain, server details.
Installing Admin Server as a service.
Create an install script as below.
—————————————————
SETLOCAL set DOMAIN_NAME=Wonders_Domain set USERDOMAIN_HOME=C:BEA103user_projectsdomainsWonders_Domain set SERVER_NAME=AdminServer set WL_HOME=C:BEA103wlserver_10.3 set WLS_USER=weblogic set WLS_PW=weblogic set PRODUCTION_MODE=true set MEM_ARGS=-Xms512m –Xmx512m call "%WL_HOME%serverbininstallSvc.cmd" ENDLOCAL
—————————————————
Installing Managed Server as Windows Service:
If you want to install a Managed Server as a Windows service, you must include a variable that specifies the location of the domain’s Administration Server. The Managed Server must contact the Administration Server to retrieve its configuration data.
The Administration Server (which is not a service) must be started before installing and starting Managed Server as a Windows service.
Create an install script as below.
—————————————————
echo off SETLOCAL set DOMAIN_NAME= Wonders_Domain set USERDOMAIN_HOME= C:BEA103user_projectsdomainsWonders_Domain set SERVER_NAME=ManagedServer1 set PRODUCTION_MODE=true set WL_HOME=C:BEA103wlserver_10.3 set ADMIN_URL=http://<adminserver-host>:7501 set MEM_ARGS=-Xms40m -Xmx250m call "%WL_HOME%serverbininstallSvc.cmd"
—————————————————
NOTE: If you set up both an Administration Server and a Managed Server to run as Windows services on the same computer, you can specify that the Managed Server starts only after the Administration Server. In that scenario we need to pass the below argument while running the script.
-delay
:delay_milliseconds
For example:
"%WL_HOME%serverbinbeasvc" -install
-svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
-delay:120000
2. After running this script in the command prompt you will observe a log statement such as
“beasvc <Server> installed”
You can check the same from the services list as well using the services.msc utility.
3. Verify whether the WebLogic Server is successfully installed as a service as below.
Open a command window and enter the following command:
set PATH=WL_HOMEserverbin;%PATH%
Navigate to the WLS_SERVER_HOME/server/bin
Enter: beasvc -debug “yourServiceName“
For Example:
C:BEA103wlserver_10.3serverbin>beasvc -debug “beasvc Wonders_Domain_AdminServer”
4. You can start / stop the server from the services.msc window or you can also use the below commands.
Starting the service:
net start “beasvc Wonders_Domain_AdminServer”
Stopping the service:
net stop “beasvc Wonders_Domain_AdminServer”
Note: For each server instance that you set up as a Windows service, WebLogic Server creates a key in the Windows Registry under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices. The registry entry contains such information as the name of the server and other startup arguments.
Uninstall the WebLogic server as a windows service.
1. Create an Uninstall script as below.
******************************************************
echo off SETLOCAL set DOMAIN_NAME= Wonders_Domain set SERVER_NAME=AdminServer set WL_HOME=G:BEA103wlserver_10.3 call "%WL_HOME%serverbinuninstallSvc.cmd" ENDLOCAL
******************************************************
2. Execute the script from the command prompt and you will see the below massage.
beasvc <service-name> removed.
References:
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/server_start/winservice.html.
Cheers,
Wonders Team. 🙂
Simple …Good one!!
Can I install weblogic as windows service while using BEA Weblogic 9.1 .
Yes Balu, off course you can install any version of WebLogic Server as a Windows Service following the same instruction as in the post.
Note: The directory structure of the later versions might have changed, however it works the same as earlier versions.
Do let us know, if you run into any issues. We would be more than glad to help you out.
Cheers,
Wonders Team. 🙂
Thank you raj..
Hi,
I’ve managed to create the service however i’m not able to start it up. It stops after few seconds upon startup. Here is the debug error.
There are 1 nested errors:
weblogic.management.ManagementException: [Management:141223]The server name wonders specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer,managedWebServer}.
Appreciate any advice.
Thanks.
Hi Josh,
It seems that SERVER_NAME parameter in the install script is specified as Wonders and however there is no server available by that name.
Hence the WebLogic Server is not able to determine the server that needs to be started.
Please try to specify as below
set DOMAIN_NAME=
set USERDOMAIN_HOME=
set SERVER_NAME=
Note: In your case it is AdminServer for the Administration Server and managedWebServer for managed server name.
For Ex:
set DOMAIN_NAME= Wonders_Domain
set USERDOMAIN_HOME= C:\BEA103\user_projects\domains\Wonders_Domain
set SERVER_NAME= AdminServer
Do let us know how it goes. We would be more than glad to help you out.
Cheers,
Wonders Team. 🙂
hi all,
iam using following script to install weblogic server as windows service
echo off
SETLOCAL
set JAVA_HOME=C:\bea\jdk150_11
set JAVA_VENDOR=Sun
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\bea\user_projects\domains\base_domain
set SERVER_NAME=C:\bea\wlserver_10.0
set WLS_USER=weblogic
set WLS_PW=weblogic
set PRODUCTION_MODE=true
call “C:\bea\wlserver_10.0\server\bin\installSvc.cmd”
ENDLOCAL
it is throwing error after running in cmdprompt as service not created.
could u please help me how to solve it
Could you please paste the error you are seeing.
You can specify -log= parameter to re-direct the standard out and standard error to a log file.
-log:”pathname “
where pathname is a fully qualified path and filename of the file that you want to store the server’s standard out and standard error messages.
The modified beasvc command will resemble the following command:
“%WL_HOME%\server\bin\beasvc” -install
-svcname:”%DOMAIN_NAME%_%SERVER_NAME%”
-javahome:”%JAVA_HOME%” -execdir:”%USERDOMAIN_HOME%”
-extrapath:”%WL_HOME%\server\bin” -password:”%WLS_PW%”
-cmdline:%CMDLINE%
-log:”d:\bea\user_projects\domains\myWLSdomain\myWLSserver-stdout.txt”
Once the logs are captured paste the same as that would give more detailed information.
Regards,
Anandraj
Hi Can you let me know, If we want to install Admin and managed servers as windows service , We need to create two seperate scripts or we put the sscript in one single file. Can any one brief on this.
Hi,
It is recommended to create two separate scripts for Admin server and the managed server since the managed server script would include few parameters that are not required for the Admin Server service.
For example, in the managed server script, you might want to specify the Admin server URL, or may be you want to specify different memory arguments.
This way it provides the flexibility to specify server specific arguments and is easy to maintain.
Hope that answers your query.
Regards,
Anandraj
Can we have multiple domains managed by single admin server in weblogic..?
We cant have that setup Suresh!
Hi ,
Does these create 3 separate windows service if I have one admin server and 2 managed servers?Also, the delay parameter should I be adding the delay parameter to the installSvc.cmd file after I have ran the script for the admin server ?
Yes, it does create 3 different windows services.
1 Admin Server, 2 Managed Servers.
In the scripts for Managed Servers, you can specify the -delay:delay_milliseconds parameter.
This specifies the number of milliseconds to wait before the Windows SCM changes the service status from SERVER_START_PENDING to STARTED.
This parameter will help to specify that the Managed Server starts only after the Administration Server. So that it can get the JNDI updates from the Admin Server.
Refer the below link for more understanding on the parameter.
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/server_start/winservice.html
Regards,
Anandraj
I have created 3 scripts: 1 for admin server and 2 for managed servers….
My Admin server script is as follows:
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=clinadmin_101
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms512m –Xmx512m
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
After this I run the script and it creates a windows service…
After this step I create a second script for the managed servers as follows :
Script for MS1
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS1
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://adminserver:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
Script for MS2
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS2
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://adminserver:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
3) before running the managed server scripts I set the delay option in the installSvc.cmd and then run the managed server customizied scripts that I created
4)After all the scripts are run I start the admin server windows service(beasvc base_domain_AdminServer) and beasvc base_domain_MS1 and beasvc base_domain_MS2
Now the problem is the admin server starts but the managed servers are not starting and I am not sure why… Is my admin url correct? set set ADMIN_URL=http://adminserver:7001 (do we specicy the actual machine name like set ADMIN_URL=http://machine_name:7001)??? I tried everything but couldnt get the managed servers to start as windows service… Please help??
Also, I have a weblogic server with similar configuration for unix solaris box as well…how do i set up these kinds of services on unix box?
Thanks in advance!
You need to specify the HostName of the Admin Server in the AdminURL, so that the managed server can establish a JMX connectivity to the Admin Server to get the JNDI updates and all.
For Ex: http://localhost:7001
You can use the ‘nohup’ to run the WebLogic server as a background process.
Regards,
Anandraj
Hi Anandraj,
I have 1 admin server and 2 managed servers so I created 3 scripts 1 for admin server and 2 for managed servers .
*1)Admin server scripts is as below:*
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=clinadmin_101
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms512m –Xmx512m
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
After I created this script I ran this script
2)I then created the 2 managed server scripts in 2 seperate files
*Here are the MS1 and MS2 Scripts:*
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS1
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://*localhost*:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
++++++++++++++++++++++++++++++++++++++++++++++++++
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS2
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://*localhost*:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
Also, I added a delay parameter to the installSvc.cmd file
“%WL_HOME%\server\bin\beasvc” -install
-svcname:”%DOMAIN_NAME%_%SERVER_NAME%” -delay:120000
Then I ran the 2 managed server scripts.
3) I then started the windows service for the admin server and 2 managed server (It created 3 different windows service namely :
beasvc base_domain_AdminServer , beasvc base_domain_MS1 and beasvc base_domain_MS2
Now the problem is the admin server started but the even though the windows service starts for MS1 and MS2 the actual server doesnt start and I can’t figure it out why.
Also, one more question how do you do the same thing in Solaris(unix)?
Appreciate the help!
You can use the -debug option with the beasvc utility to get the verbose output and diagnose it further.
You can run it as below.
1. Open a command prompt and set the classpath running the setDomainEnv script.
2. Then execute the below command.
beasvc -debug “yourServiceName”
This would give a verbose output that helps in troubleshooting.
Refer below link.
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/server_start/winservice.html#wp1188201
Regards,
Anandraj
Refer the below link.
Hi Anandraj,
I have 1 admin server and 2 managed servers so I created 3 scripts 1 for admin server and 2 for managed servers .
1)Admin server scripts is as below:
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=clinadmin_101
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms512m –Xmx512m
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
After I created this script I ran this script
2)I then created the 2 managed server scripts in 2 seperate files
Here are the MS1 and MS2 Scripts:
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS1
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://*localhost*:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
++++++++++++++++++++++++++++++++++++++++++++++++++
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS2
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://*localhost*:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
Also, I added a delay parameter to the installSvc.cmd file
“%WL_HOME%\server\bin\beasvc” -install
-svcname:”%DOMAIN_NAME%_%SERVER_NAME%” -delay:120000
Then I ran the 2 managed server scripts.
3) I then started the windows service for the admin server and 2 managed server (It created 3 different windows service namely :
beasvc base_domain_AdminServer , beasvc base_domain_MS1 and beasvc base_domain_MS2
Now the problem is the admin server started but the even though the windows service starts for MS1 and MS2 the actual server doesnt start and I can’t figure it out why.
Also, one more question how do you do the same thing in Solaris(unix)?
Appreciate the help!
Hi Anandraj,
I have 1 admin server and 2 managed servers so I created 3 scripts 1 for admin server and 2 for managed servers .
1)Admin server scripts is as below:
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=weblogic
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms512m –Xmx512m
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
After I created this script I ran this script
2)I then created the 2 managed server scripts in 2 seperate files
Here are the MS1 and MS2 Scripts:
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS1
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://*localhost*:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
++++++++++++++++++++++++++++++++++++++++++++++++++
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=MS2
set PRODUCTION_MODE=true
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set ADMIN_URL=http://*localhost*:7001
set MEM_ARGS=-Xms40m -Xmx250
call “C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
Also, I added a delay parameter to the installSvc.cmd file
“%WL_HOME%\server\bin\beasvc” -install
-svcname:”%DOMAIN_NAME%_%SERVER_NAME%” -delay:120000
Then I ran the 2 managed server scripts.
3) I then started the windows service for the admin server and 2 managed server (It created 3 different windows service namely :
beasvc base_domain_AdminServer , beasvc base_domain_MS1 and beasvc base_domain_MS2
Now the problem is the admin server started but the even though the windows service starts for MS1 and MS2 the actual server doesnt start and I can’t figure it out why.
Also, one more question how do you do the same thing in Solaris(unix)?
Appreciate the help!
how do you stop the server if you start using nohup option when you log back into putty?
Hi Sid,
Try using the stopWeblogic.sh script for stopping the server.
Best Regards,
Divya
Hi,
I have 1 admin server and 2 managed server and so I have created 3 scripts for running the admin server and the two managed servers as service.
Now my question is how can set the services in such a way that the admin server service starts first and then the managed server services?
Hi Bikash,
Please follow the below steps:
– Uninstall the existing admin server windows service
– Create a new installSvc.cmd and inside that write a parameter -delay:delay_milliseconds. This parameter specifies the time in milliseconds before the service status is changed from pending to started.
– So if your admin server takes one minute to start, have the delay time as 60000 milliseconds.
– Now in the installSvc.cmd of the managed server, mention the parameter -depend:AdminServerServiceName where AdminServerServiceName is the name of the admin server windows service.
– This parameter ensures that when the admin server service status is started, only then the managed servers start.
Let me know if you face any issues.
Best Regards,
Divya
I setup a new Managed Server as a Service, but it fails with this ERROR when the service starts. I can start the Managed Server from the command line.
Any Ideas?
#### <>
#### <>
#### <>
#### <>
#### <>
Verify whether the WebLogic Server is successfully installed as a service as below.
Open a command window and enter the following command:
set PATH=WL_HOME\server\bin;%PATH%
Navigate to the WLS_SERVER_HOME/server/bin
Enter: beasvc -debug “yourServiceName“
For Example:
C:\BEA103\wlserver_10.3\server\bin>beasvc -debug “beasvc Wonders_Domain_AdminServer”
This would give comprehensive debug details about weblogic server as a windows service.
For further reading refer the below link.
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/server_start/winservice.html
Regards,
Anandraj
I’ve been trying to follow the instructions in this thread, initially just to get the Admin server running as a service. The service gets created, but when I use command line beasvc -debug mydomain_myserver (my domain and servername), I get error Unable to open Registry Key…System\CurrentControlSet\services\mydomain_myserver\Parameters. This is Weblogic 10.0, MP1 on Windows 2008.
Any suggestions, I’ve been chasing this for quite awhile, and would really appreciate any guidance.
Hi Cathy,
Make sure you provide the correct windows service name.
Check the service name from the services list by running services.msc.
The service might be named as “beasvc mydomain_myserver”.
Try to execute the below command
beasvc -debug “beasvc mydomain_myserver”
Regards,
Anandraj
Never mind, figured out I needed quotes around the service name, now onto the next problem
@sid’s query in 14
There are 2 ways of registering Weblogic as windows service:
1. If ONLY Admin Server is required to be registered as windows service, then there is no need to modify ‘installSvc.cmd’.
2. If both Admin & Managed Servers are required to be registered as windows services, follow the following steps:
a). Modify ‘installEnv.cmd’ and add the following argument to the command that invokes the beasvc utility
-delay:120000 (say 2 minutes)
b). Execute the batch file (created by you earlier) to register Admin Server as windows service
c). Modify ‘installEnv.cmd’ and add the following argument to the command that invokes the beasvc utility
-depend:”AdminServer_WindowsServiceName”
d). Execute the batch file (created by you earlier) to register Managed Server as windows service.
Hi,
Really very useful for me .. Very simple and clear ..
Thanks a lot..
Gr8 to hear that one. 🙂
Hi Anand,
i have tried to follow the same to setup the admin server i have as a service. unfortunately it didnt work
my script was as follows
—SETLOCAL
set DOMAIN_NAME=srs_production_domain
set USERDOMAIN_HOME=D:\apps\Oracle\Middleware\user_projects\domains\srs_production_domain
set SERVER_NAME=AdminServer
set WL_HOME=D:\apps\Oracle\Middleware\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=alex88!pa
set PRODUCTION_MODE=true
set HOST=localhost
set PORT=7001
set MEM_ARGS=-Xms512m –Xmx512m
call “%WL_HOME%\server\bin\installSvc.cmd”
ENDLOCAL
—–
The system where i am trying to set this up is a windows 2008 server machine.
i get this error when try to start the service
Error : Service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
——————–
my java home is a JDK not JRockit. does it make any difference?
if you can help me out in this, it will be really great i need to do this for one of the production setups.
Regards,
Poornima
Hi Poornima,
JDK should not matter.
You can try running the installed service in debug mode.
1. Open a command window and enter the following command:
set PATH=WL_HOME\server\bin;%PATH%
Navigate to the WLS_SERVER_HOME/server/bin
Enter: beasvc -debug “yourServiceName“
For Example:
C:\BEA103\wlserver_10.3\server\bin>beasvc -debug “beasvc Wonders_Domain_AdminServer”
Check the error it is throwing.
Regards,
Anandraj
Hi Anand,
I am trying to setup a service for 1 admin server and 2 managed servers. I can set up the admin server and 1 managed server but when I try and create a service for the second managed server. It doesn’t work. I tried setting up the log parameter and it doesn’t even get that far to generate the log.
SETLOCAL
set DOMAIN_NAME=formreportdomain
set USERDOMAIN_HOME=D:\Oracle\Middleware\user_projects\domains\formreportdomain
set SERVER_NAME=WLS_REPORTS
set PRODUCTION_MODE=true
set ADMIN_URL=http://egenemts app5.gunter.afmc.ds.af.mil:7001
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
call “D:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd”
ENDLOCAL
pause
Hi Jason,
Are you able to create the Service or having trouble starting the managed server service.
If you are having problems creating the service.
1. Make sure that the service names are different.
If you have problems running the service.
1. Check if there are port conflicts.
Try to run the service in debug mode for troubleshooting.
beasvc -debug “beasvc Wonders_Domain_AdminServer”
You can start / stop the server from the services.msc window or you can also use the below commands.
Starting the service:
net start “beasvc Wonders_Domain_AdminServer”
Stopping the service:
net stop “beasvc Wonders_Domain_AdminServer”
Cheers,
Anandraj
Where does it pull the service name? Is it a combination pulled from the parameter set SERVER_NAME=WLS_REPORTS?
If so they are different I have WLS_REPORTS and WLS_FORMS
Thanks.
Ok, you can try running the service in debug mode.
beasvc -debug “beasvc Wonders_Domain_AdminServer”
You can start / stop the server from the services.msc window or you can also use the below commands.
Starting the service:
net start “beasvc Wonders_Domain_AdminServer”
Stopping the service:
net stop “beasvc Wonders_Domain_AdminServer”
Regards,
Anandraj
Hi I am New to weblogic how to set weblogic CLASS PATH AND PATH GLOBALLY IN WINDOWS ENVIRONMENT?
Hi Simha,
Why do you want to do that?
Hi,
I created one admin server service named Admin_server and a manage server service named admin_Managedserver1.
The problem is even though both the services are started but manage server is not showing in the weblogic console.
When i start the manage server using beasvc -debug “admin_Managedserver1” it gives me the below error. Can you help me out where am i going wrong.
<Server f
ailed. Reason:
There are 1 nested errors:
weblogic.management.ManagementException: [Management:141223]The server name Mser
ver1 specified with -Dweblogic.Name does not exist. The configuration includes t
he following servers {AdminServer}.
at weblogic.management.provider.internal.RuntimeAccessImpl.(Runtim
eAccessImpl.java:149)
at weblogic.management.provider.internal.RuntimeAccessService.start(Runt
imeAccessService.java:41)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesMan
ager.java:461)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServ
icesManager.java:166)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:879)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:566)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:467)
at weblogic.Server.main(Server.java:71)
>
Thanks..it helps me lot..
Thanks Jitu.
Regards,
Wonders Team.
I have tried with the above example with steps. I am able to create windows service for AdminServer. But i am unable to start the service.
I tried with net start option as well as “%WL_HOME%\server\bin\beasvc” -install -svcname:”OSB11_domain AdminServer” -javahome:”%JAVA_HOME%” -execdir:”%USERDOMAIN_HOME%” -extrapath:”%WL_HOME%\server\bin” -password:”%WLS_PW%”
-cmdline:%CMDLINE% -log:”E:\Oracle\MW_HOME\user_projects\domains\OSB11_domain\myWLSserver-stdout.txt”
Error Message: Some services stop automatically if they are not in use by other services or programs
what is the exception in the logs?
myWLSserver-stdout.txt
Hi Wonders Team,
I am trying to setup Windows Services for Admin Server (Weblogic) and Managed Server (bi_server1) but after installing the windows service for Admin Server with below script and trying to Start the service but getting below error:
The beasvc oii_test_obiee_AdminServer service on TESTAPP19 server started and then stopped. some services stop automatically if they are not in use by other services or programs.
—————————————
Script:
installAdmServer_Service.cmd:
SETLOCAL
set DOMAIN_NAME=oii_test_obiee
set USERDOMAIN_HOME=E:\Oracle\Middleware\user_projects\domains\oii_test_obiee
set SERVER_NAME=AdminServer
set WL_HOME=E:\Oracle\Middleware\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=access123
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms512m –Xmx1024m
call “%WL_HOME%\server\bin\installSvc.cmd”
ENDLOCAL
———————————-
Please help me out with this if I am missing anything .
Thanks in advance,
Janardhan
Hi Janardhan,
You can mail Anand regarding this issue.
anandraj.kulkarni@gmail.com
Thanks,
Faisal
This all installs fine. 1 Admin Server and 1 Managed Server installed as services and both running fine.
However, I can open a Weblogic Admin Console in a browser using http://server:7001/console but I cannot open a Fusion Middleware Control page at http://server:7001/em
I am using this for Oracle Forms and similarly the forms don’t launch if I use the Windows service but everything is fine if I use the desktop shortcuts that are created automatically by the Oracle Forms installer.
Any ideas?
Not sure Richard, havn’t worked on FMC
Hi,
If you have EM (Enterprise manager) along with weblogic, once you configure Weblogic as windows service you may not be able to load EM console. It gives some class not found exception
Solution: – This is known issue. bug:10117712
– Replace commEnv.cmd with setDomainEnv.cmd in installSvc.cmd. So that classpath gets set properly.
– Also comment out below line from installSvc.cmd:
set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%
Now uninstall service, install it and start again. It should work.
Regards,
Ranit
Hello Team,
I am beginner to ORacle Weblogic Application Server,this article is very use ful for me.But i want to know from you what concepts should i learn about WLS.Which concepts are important for WLS.
Please help me regarding that but i am not getting any proper documentation so that i can learn WLS step by step.
waiting for your reply.
Hi Kunal,
We have added the beginners corner for those who want to start with Weblogic Server.
Thanks,
Faisal
hi after installing windows services of Admin and managed server.If i run the startWeblogic.cmd from bin and then close the terminal…..Will the servers be up and running smoothly???or just get shut down??? please tell a way that all servers are running even if i close the terminal.I m using windows 2003
if you have installed admin server and managed server as a service.. then u try to start the admin server of the same domain from bin, there will be port conflict..
just let is run as a windows service in the backgroud. it shud continue running after u log out..
Thanks, nice tip
Hi,
I am getting below mentioned error at the stage of debugging. Please suggest what to be done.
————————————————————————————
F:\OBI_11g\wlserver_10.3\server\bin>beasvc -debug “beasvc bifoundation_domain_AdminServer”
Debugging service ……. beasvc bifoundation_domain_AdminServer
Command Line: ……. -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Xverify:none -classpath “F:\OBI_11g\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;F:\O
BI_11g\ORACLE~2\jdk\lib\tools.jar;F:\OBI_11g\WLSERV~1.3\server\lib\weblogic_sp.jar;F:\OBI_11g\WLSERV~1.3\server\lib\weblogic.jar;F:\OBI_11g\modules\features\weblogic.server.modules_10.3.5.0.jar;F:\OBI
_11g\WLSERV~1.3\server\lib\webservices.jar;F:\OBI_11g\modules\ORGAPA~1.1/lib/ant-all.jar;F:\OBI_11g\modules\NETSFA~1.0_1/lib/ant-contrib.jar;” -Dweblogic.Name=AdminServer -Dweblogic.management.usernam
e= -Dweblogic.ProductionModeEnabled= -Djava.security.policy=”F:\OBI_11g\WLSERV~1.3\server\lib\weblogic.policy” weblogic.Server
Current Directory: ……. F:\OBI_11g\user_projects\domains\bifoundation_domain
Path: ……. F:\OBI_11g\WLSERV~1.3\server\native\win\x64\;F:\OBI_11g\WLSERV~1.3\server\bin;F:\OBI_11g\ORACLE~2\jdk\jre\bin;F:\OBI_11g\ORACLE~2\jdk\bin;F:\OBI_11g\WLSERV~1.3\server\native\win\x64\oci9
20_8;F:\OBI_11g\Oracle_BI1\jdk\bin;F:\OBI_11g\wlserver_10.3\server\bin;WL_HOME\server\bin;F:\Oracle_DB\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Sy
stem32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\System Center Operations Manager 2007\;F:\OBI_11g\Oracle_BI1\bin;F:\OBI_11g\Oracle_BI1\opmn\bin;F:\OBI_11g\Oracle_BI1\opmn\lib;F:\OBI_11g\Oracle_B
I1\perl\bin
Java Home: ……. F:\OBI_11g\ORACLE~2\jdk
Delay: ……. 0
Thread created successfully!
Unrecognized option: -client
Error in java application …….
The following line contains specific error details …….
————————————————————————————————–