Services to start and stop Tomcat
I have Tomcat 4.1.27 on a Windows 2000 Server where the startup.bat doesnt work and I have to startup the container using the Windows Services tool. The server also doesnt show any Tomcat console window so I can see what is happening.
The startup.bat just pulls up a window real quick and it disappears and the container never starts up. The shutdown.bat does shut down the container but I use the Server Services to shutdown the container when needed.
Please advise if this is normal and anyway to change it to how I have it in my local develper environment. In my local developer env, I use startup.bat and shutdown.bat and see Tomcat console window after it is started up and the console window stays up so I can view it.
Hi,
I have the same env. I faced the same problem. Go to cmd prompt and go to tomcat bin directory, before that set the JAVA_HOME in the windows Env properties or open Catlina.bat file and set the JAVA_HOME. After setting the JAVA_HOME setup, give the command as like this "catalina run" in the command prompt, the command prompt window will not be disappered. If you give "Catlina start" a new tomcat startup window will be opened. If any error occurs on startup the window gets disappered.
Let me know you need some more help.
Cheers!!!
Sundaram.
Similar Messages
-
Need help getting Tomcat 5.0.28 to start (and stop, eventually)
Hi!
I am such a newbie to the Terminal and writing scripts, so please forgive my naiveté. I have successfully installed Tomcat in my /usr/local directory, but I am having trouble creating files to start and stop Tomcat, per the instructions on the following page:
http://developer.apple.com/internet/java/tomcat1.html
I've followed the directions but continue to get the following error after I execute ~/bin/start_tomcat.
-bash: start_tomcat: command not found
My file contains the following code:
#!/bin/sh /n
export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28 /n
export JAVA_HOME=/usr /n
$CATALINA_HOME/bin/startup.sh /n
If anyone can help me, I would really, really, really appreciate it!
Thanks!
PowerBook G4 12" Mac OS X (10.4.5)Why are there all those "/n" there? Either you or the place you copied from has the wrong slash. But still, it's wronger than that to have them at all: "\n" means a newline (i.e., press "return") not the actual "backslash en" characters. Sometimes people post code with those \n visible: by making it explicit where a line-break should be, one doesn't have as much trouble when a web browser reformats the text and puts line breaks where they don't belong.
-
Apple mobile device service started and stopped
my iPod touch cant be synced or even recognized on my iTunes and it says i gotta *start the apple mobile device service*.
i finally found it and it tells me that *"apple mobile device service started and stopped..."*
how can i fix it?
help!!!!Hello and Welcome to Apple Discussions.
Follow the instructions in this article:
http://docs.info.apple.com/article.html?artnum=307078
mrtotes -
How to start and stop the BI Services in Solaris 10
Hello All,
Can anyone guide me on how to start and stop the BI Services in Solaris 10. In windows there are options set in Start->Programs->Middleware_Home->Start/Stop BI Services.
Primarily after doing changes to the scheduler configuration, I need to restart the services to get it implemented? If yes how can I do it?
Any help will be appreciated
Thank you
Ash
Edited by: 902739 on Jan 11, 2012 12:17 PMPlease help me by showing action plan for stop sap , offline backup and then start sap.
i am little bit confuse How to start and stop SAP on cluster for offline backup
Below are the systems name with host name , please explain me in sequence
Systems name Hostname
# Hope SAP ERP Prod DB Primary gsgbbux860
# Hope SAP ERP Prod DB Standby gsgbbux861
# Hope SAP ERP Prod Cluster gsgbbux862
# Hope SAP ERP App 1 gsgbbux864
# Hope SAP ERP App 2 gsgbbux865
Thanks in advance
Zaheer -
Batch file to start and stop services
I've setup a CF Probe on my Development Server to ensure my
CF Production server is up and running (services = Apache and CF
Application Server). It checks the PROD login page and if it times
out in 30 sec the probe fails. I understand I can execute a file
(batch file with net start and net stop) but the problem is I need
to have the probe somehow point to the .bat file on the PROD server
and not on the local machine. How can I remotely access this batch
file and execute it? I don't know how to point to the file on the
other server... can anyone help?Hi Ken,
You had pointed me in the right direction regarding the
psstools in order to create a batch file that can remotely start
and stop services.
i used the psexec command and am able to successfully restart
the services needed remotely... however when i pick the file in the
coldfusion administrator (in the probes section) how to i point to
the batch file to run? it seems like the probe is not running the
script like i want... the file is located on the c:\ so i entered
c:\test2.bat...
Thanks,
Matt
Matt,
You should review the online help in the cfadmin for probes
and the links it points you to in the developer's guide. Basically
you need to define a new probe in the cfadmin by clicking the
"Define New Probe" button. One of the probe's attributes will be
what action. Define the action as a program and point it at a batch
file running psexec. You will probably need to run CFMX as a
specific user and not as localsystem, which is the default. -
Is there a way to Start and Stop OC4J through Services
Currently we are starting and stopping OC4J manually through the Dos command prompt on our servers. We are interested in making it a Services where we can start and stop OC4J thourgh the services option on the control panel in windows. Any suggestions would be greatly appriciated.
Thanks!
ChadThis has been discussed several times in this forum. One of the thread is
How can I set the export path in Form Builder 6i?
yes, you can use Windows Resource Kit or some third party freeware to do so.
regards
Debu -
Start and Stop Oracle BI services on UNIX box?
Hi All,
We have OBIEE installed on the Unix Servers and want to start and stop the Bi services.
What is the command to do so?user11001347 wrote:
Hi,
At the Unix prmompt I am executing the following command but it throws an error saying : run-sa.sh command not found,I am in the OracleBI\Set up Directory on the unix machine
-bash-3.00$run-sa.sh stop
does anyone has idea is that the exact command to I am missing anything?In what directory are you trying to execute that command? Do "pwd" to see where you are. You seem to need Unix training. In Unix (like in DOS) you can only execute a command/program that exists the PATH environment variable. Most likely the OBIEE bin directory won't be in the path, unless someone specifically added it. Further more the current directory (referred as ".") is not usually in the PATH variable either so when you execute commands you have to prefix them with the full path or with the current directory as Vinodh suggested. -
Allow a user access to start and stop a particular service in Solaris 11 using RBAC controls
So, using svcbundle I created a service called "oracle" that starts and shutdown a db. I'm aware of how to grant RBAC access to be a "service operator" to be able to control start/stop ALL services. But I'd like to grant a user access to start and stop JUST this service.
in this document on page 15, it states that it's possible to do this kind of granularity but doesn't explain how to do it step by step.
how does one achieve this?
thanks.You need to add a property group such as
<property_group name='general' type='framework'>
<!-- to start stop oracle -->
<propval name='action_authorization' type='astring'
value='solaris.smf.manage.oracle' />
</property_group>
Then add the solaris.smf.manage.oracle authorization to the user profile.
As an example, see Less known Solaris features: RBAC and Privileges - Part 2: Role based access control - c0t0d0s0.org -
How to create services start and stop automation script for diff servers
Hi All,
i want to create a bat file for automation purpose to start and stop services
i have some services in 1st server aand some in 2nd server and some in 3rd servers.
has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
Thanks in advance
Regards
SMHi,
this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
1. Databases for repositories.
2. Any corporate user directories that you plan to configure for use with Shared Services.
3. Foundation Services Managed Server application server, which includes Shared Services,
and EPM Workspace.
4. Reporting and Analysis Framework — Agent Service (if required for your environment)
5. Reporting and Analysis Framework Application Server (if required for your environment)
6. Web server
The remaining services and processes can be started in any order:
1. Performance Management Architect Services
2. Performance Management Architect application server
3. Performance Management Architect Data Synchronizer application server
4. Essbase Server
5. Administration Services application server
284 Starting and Stopping EPM System Products
6. Integration Services Server
7. Essbase Studio Server
8. Provider Services application server
9. Financial Reporting Services
10. Financial Reporting application server
11. Web Analysis application server
12. Calculation Manager application server
13. Planning application server and the Hyperion RMI Registry
14. Financial Management service
15. Financial Management Web application server
16. Strategic Finance service
17. Performance Scorecard application server
18. Performance Scorecard Alerter application server
19. Profitability and Cost Management application server
to start services on different servers you can use the sc command in your batch file
for eg
sc \\10.121.201.21 start HypS9FrameworkAgent -
Start and Stop of Services for 11x
hi
Can anyone please let me know the order to stop and start the services of 11x (HSS,PLANNING,ESSBASE and BI)
Haven't found any documentation to in the portal related to start and stop of the services.
thanks in advance
Best regards
krishnatilakI take it you mean the order to start/stop services.
You can find the list at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
Cheers
John
http://john-goodwin.blogspot.com/ -
Starting and Stopping OBIEE 11g services in AIX
Helllo Experts
Could you pls. let me know how to start and stop OBIEE11g services in AIX.
Here I mean , do I need to update my . profile with all the paths OR setDomainEnv.sh will take care of that.
How to start Admin and BI server, Node manager ......what is the exact nohup command , do I need to put some parameter while starting Admin and Managed server.
Regds
ShahzadHello User,
Below the way you can start:-
To start the Weblogic Server:-
Go to the below directory location
$OBIEE_HOME /user_projects/domains/bifoundation_domain
Command:
$nohup sh ./startWebLogic.sh -Dweblogic.management.username=weblogic -Dweblogic.management.password=<Password> > wls_start.log &
$tail –f wls_start.log
To start the Node Manager:
Go to the below directory location
$OBIEE_HOME/wlserver_10.3/server/bin
Command:
$nohup ./nodemanager.sh &
To Start OPMNCTL:
Go to the below directory location
$OBIEE_HOME /instances/instanceN/bin
Command:
./opmnctl startall
./opmnctl stopall
./opmnctl status
Please mark helpful/Correct.
Thanks,
OBIEELearner. -
Starting and Stopping Repository Mgr Service
Hello All,
I am running Forte 3.0.D.0 on Windows NT 4.0. At night, I run batch files to backup and clean the repository.
With previous versions of Forte (before 2.H) my scripts simply did an rpstop, rpcopy, rpclean and finally a rpstart to start the repository again. This worked great.
Now, however, I am running the Repository Manager as an NT service, so I can no longer run rpstop or rpstart (rpstart does not start the Repository Manager service).
One solution I have found is to use Net Stop and Net Start to stop and start the Repository Manager service, so my script looks something like this:
rpcopy...
net stop "Forte Repository Manager 3.0.D.0"
rpclean...
net start "Forte Repository Manager 3.0.D.0"
This seems to work fine most of the time, but occasionally the service won't stop or start (like when a workspace is open). My questions are:
1) Are there any other command line processes that people know of to start and stop a service?
2) What is Forte's recommended process for starting and stopping the Repository Manager service in a script?
Thanks for your help
John Bruning
IBIS Consulting Inc.
www.ibis-consulting.comYour object could actually bind to a port using serverSocket.accecpt() and when a connection comes in, it exists.
-
Start and Stop a Windows Service From Java
Is there any way to start and stop a Windows service from Java? The only post I found on it (http://forum.java.sun.com/thread.jspa?threadID=647509) had a link to one of the many aps that allow Java programs to be services, which is not what I am interested in doing.
I am attempting to get data from performance counters from the Windows Performance Monitor into a Java ap without using JNI. I can get the data from C++ or a .net language pretty easily and was going to create a service that would listen for socket requests and feed back the data. However, I'd like to start and stop that service when my java code starts and stops. Is this possible? Would it make more sense to just use a .exe and Runtime.exec()?If it's only to start or stop a service then you could use the net command without any need for JNI.import java.io.*;
public class MsWinSvc {
static final String CMD_START = "cmd /c net start \"";
static final String CMD_STOP = "cmd /c net stop \"";
public static int startService(String serviceName) throws Exception {
return execCmd(CMD_START + serviceName + "\"");
public static int stopService(String serviceName) throws Exception {
return execCmd(CMD_STOP + serviceName + "\"");
static int execCmd(String cmdLine) throws Exception {
Process process = Runtime.getRuntime().exec(cmdLine);
StreamPumper outPumper = new StreamPumper(process.getInputStream(), System.out);
StreamPumper errPumper = new StreamPumper(process.getErrorStream(), System.err);
outPumper.start();
errPumper.start();
process.waitFor();
outPumper.join();
errPumper.join();
return process.exitValue();
static class StreamPumper extends Thread {
private InputStream is;
private PrintStream os;
public StreamPumper(InputStream is, PrintStream os) {
this.is = is;
this.os = os;
public void run() {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = br.readLine()) != null)
os.println(line);
catch (Exception e) {
e.printStackTrace();
}Regards -
Re: Starting and Stopping Repository Mgr Service
John,
Try this
Shutdown 0
from the Escript.
Herman Magno
Credit Lyonnais, NY
Hello All,
I am running Forte 3.0.D.0 on Windows NT 4.0. At night, I run batchfiles to backup and clean the repository.
>>
With previous versions of Forte (before 2.H) my scripts simply did anrpstop, rpcopy, rpclean and finally a rpstart to start the repository again.
This worked great.
>>
Now, however, I am running the Repository Manager as an NT service, soI can no longer run rpstop or rpstart (rpstart does not start the Repository
Manager service).
>>
One solution I have found is to use Net Stop and Net Start to stop andstart the Repository Manager service, so my script looks something like
this:
>>
rpcopy...
net stop "Forte Repository Manager 3.0.D.0"
rpclean...
net start "Forte Repository Manager 3.0.D.0"
This seems to work fine most of the time, but occasionally the servicewon't stop or start (like when a workspace is open). My questions are:
>>
1) Are there any other command line processes that people knowof to start and stop a service?
>>
2) What is Forte's recommended process for starting andstopping the Repository Manager service in a script?
>>
>>
Thanks for your help
John Bruning
IBIS Consulting Inc.
www.ibis-consulting.comYour object could actually bind to a port using serverSocket.accecpt() and when a connection comes in, it exists.
-
Does Golden Gate provide any Webservices to start and stop services?
Hi all,
We are trying to use GG in our application. But we need a way to start and stop services from java code.
Is there any Webservice interface or API to start and stop Golden gate services like GG manager, extract and replicat processes??
Thanks in advance for your help.
Yamini.You can control this at a database level using EVENTACTIONS parameter.
Create a table at source & target called "EVENT" with field EVENT_TYPE ( example names only - please call it what you like ) .
at Replicat config actions based on the data passed into the EVENT_TYPE column
MAP GG_ADM.EVENT TARGET GG_ADM.EVENT, &
FILTER ( (@STREQ(@IF(@COLTEST(EVENT_TYPE,PRESENT),EVENT_TYPE,"No EVENT"),"STOP") = 1)), &
EVENTACTIONS (IGNORE , LOG,STOP);
You'll need a seperate replicat to handle the start
MAP GG_ADM.EVENT TARGET GG_ADM.EVENT, &
FILTER ( (@STREQ(@IF(@COLTEST(EVENT_TYPE,PRESENT),EVENT_TYPE,"No EVENT"),"START_APP_02") = 1)), &
EVENTACTIONS ((SHELL (${GG_HOME}/diroby/start.ksh R1APP_02 )));
Hope that helps
Maybe you are looking for
-
CD songs load as Audio book tracks. How can I get them into music library?
Greetings. Strange. Some songs I've imported into iTunes from CDSs load into the Audiobooks folder. I can't drag them into the music folder. In one case, one song from one CD - but not any of the others - will only import as an audiobook. I can't eve
-
I have a lap top and it connects automatically to my wi-fi..My ipod asks for password to sign on to wi-fi?..I don't have a password ..Why does it not connect automatically?
-
XML Driven Flash Photo Gallery Thumbnails Control
Hi, I need to make a XML Driven Photo slide in Flash CS5. It needs to have a Box that contains 5 Thumbnails(by XML) act as buttons. The Box sits on top of the Main photo area and shrinks (or close out) when user click its close button. And it opens o
-
Alternative Payer Address information stored in REGUH table
Hi Is there a setting that would tell the system to use Alternatine Payer Address information to be used and stored in table REGUH? Whenever there is a Payer that has the Alternative Payer set, the system is using its Address information instead of A
-
Delete and create system in marketplace
Hello, I changed the hardware to one system. I asked for a knew license and I installed it.But when I tried to open the connection to SAp the hardware key was the old one. So, I deleted the system from marketplace but now I don´t know how to create i