To start tomcat automatically when machine restarts on linux

can anybody tell the procedure how to do this that when machine boots under linux how can make tomcat start automatically.

A lot many files have to be created in /etc/init.d
entries in /etc/rc0, rc1. ...etc .
Since this is the previlage available to the root user,
I suggest you ask your sysadmin to do the job.

Similar Messages

  • How do I disable Firefox from starting automatically when I restart my computer

    When I restart my computer (MacBook Pro) Firefox (18.0.2) automatically starts up.

    See:
    * https://support.mozilla.org/kb/Firefox+launches+automatically+when+your+computer+starts

  • Transferring 650 gb to a new external hard drive for my time machine.  It is going real slow. Says it is going to day days. After an hour or so it stops and I have to start again.  When I restart, it starts where it left off.  I'm not always here to resta

    I have a new external drive for my time machine.  My hard drive of 650 gb is full.  It is reallyslow backing up to my external drive.  I have to stay near by as it stops after an hour or so.  If I'm not here to restart it, I lose all that time it could have been backing up. It says it is going to take 581 days. Eventually it will say 12 days. Back up time is all over the place.  How can I keep the machine backing up when I sleep at night.
    Gerald

    I would go into your  in the upper left corner of the mac
    Click on system preferences
    Click on energy saver
    Change the computer sleep and display sleep to never.

  • Mail starts & syncs automatically when accessing Contacts [iPhone 3GS/iOS4]

    Hi all - I wonder if this query has been posted or answered before.
    I've an iPhone 3GS which is running iOS4. I have noticed off late, when I access Contacts to look up for a number, Mail starts & syncs from my Gmail account automatically (I've set Gmail as my defaut email account). I do not want that to happen since it eats up my data plan & also the battery charge. Just to inform you that I've set the fetching of emails for Mail as Manual. I've tried looking for a solution within Settings but was unable to find one.
    Can anyone tell me precisely where I am going wrong and what can be the solution to this nagging issue? thanks a ton in advance.
    Bhooshan
    Message was edited by: Bhooshan
    Message was edited by: Bhooshan

    Anyone with an answer, please respond to my query.

  • Muvo Slim - Track starts playing automatically when turned

    With my Muvo Slim 52, firmware .0.05, whenever I turn the unit on, it starts to play a track, EVEN if there was NO track playing when I turned off the unit. In a similar situation, after I have transferred files onto the unit - as soon as I disconnect the USB cable - the unit powers itself on, and the first track starts to play - before I even press the play button. QUESTIONS --- () Is "automatically playing track after power on" a normal behavior? (2) Is there any way to stop this i.e. so that a track only starts playing (or resumes) when I MYSELF press play? (3) If not, how can such a feature be requested in a future firmware revision?

    Jason,
    Thanks. I just downloaded the latest firmware for my MuVo Slim (..03 -- previous version was .02.0) and it has corrected the problem! Perfect!
    M.

  • Why is the Plugin Check suddenly starting up automatically when I open Firefox, and how do I stop it?

    Instead of Firefox opening to my homepage, as it has been doing for several years now, it opens to a Plugin Check screen. I don't know why this started, and I haven't found a way to prevent this from happening. What can I do?

    That is a bug with blocklisting plugins that has been fixed.<br />
    You can correct this issue by forcing the file blocklist.xml to update or wait until Firefox updates the file.<br />
    That update will remove the severity="0" flags in the file that cause the problem.
    See:
    * [/questions/832793?page=2#answer-198407]
    * http://forums.mozillazine.org/viewtopic.php?p=10899869#p10899869
    * [https://bugzilla.mozilla.org/show_bug.cgi?id=663722 Bug 663722] - The blocklist output is including severity="0" where it shouldn't be

  • Why is it when I select my personal preferences/user/login items, that when i select the check box for items to NOT pop up on my dock when i restart and start my macbook air 11 inch that they still continue to?

    why is it that every time i start up my macbook air and when i restart it, that the new office with word and those three other apps constantly pop up? even though i went to personal preferences/users/login items, and selected the box that clearly says "items to NOT be brought up when logging in" ?

    If you don't want to start Office automatically when your Mac starts, see > http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/how-do-i-prev ent-microsoft-office-2011-word-from/dd5b8b17-8397-4e7c-b635-79b9c976c4ab?msgId=f 00ac42a-e4fe-43aa-83d7-16ccd35a0d8a
    Also, on System Preferences > Users & Groups > Login Items, select all items related to Office and press - button to delete them

  • Bluetooth no longer loads automatically when the computer starts

    I have the Bluetooth Stack version 2.01.21.1. It was working fine. When the laptop booted up, the bluetooth mouse was automatically connected.
    All of a sudden the icon no longer appears automatically in the system tray and so I have to manually connect the mouse each time
    It is still listed in the startup menu on the desktop and it is still checked in startup in the msconfig.
    How do I fix this?
    Thanks in advance

    I have just gotten off the phone with a microsoft tech who actually seems to have fixed this somewhat
    He went to start/run to get to services.msc.
    He chose "SSDP Discovery Services" which "enables discovery of
    UPnP devices on your home network" and DISABLED it.
    Go figure
    The BT icon now appears in my system tray and starts up automatically when the computer starts.
    I say somewhat because It still disconnects if left idle for a long period, which it did not do previously, but at least it is there when I log on.
    I want to mention that I have a Dell, not a Toshiba (did not realize this forum was for Toshiba laptops rather than Toshiba software) but perhaps
    you will find this information useful.
    Also, at http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx you will find an autorun tool that lets you fix what is or is not
    in the startup menus. It seems to work better than using msconfig which on my laptop was not making a difference as to what started up and what did not.
    It is meant for IT professionals so I would not mess with it too much. However if you just check or uncheck in the startups for the BT manager you will
    not do any damage.

  • Since iPhone 4.3.4, iTunes 10.4 doesn't start up automatically

    Since I updated my iPhone 4 to 4.3.4, iTunes 10 v.10.4 no longer starts up automatically when I connect my iPhone, though "Open iTunes when this iPhone is connected" remains checked.  iPhoto '11 v.9.1.5, however, still starts up automatically. I'm running OS X v.10.6.8.

    thx. my IT guy told me about itunes helper which i verified was there in account preferences. but it didn't have an app icon, it was just a blank doc icon. also checked activity monitor to see if it was running or not. which it wasn't. then he fixed it so that it was repaired and showed up as an itunes icon, so it was working. reinstalled itunes and it launched when i plugged the iphone in. but the iphone still wouldn't show up in devices (in fact there was no DEVICES column to be seen).
    when that didn't work, i got an old snow leopard disk and reinstalled 10.6 fresh. still didn't work. so he opened up preferences and found that there were A TON of extensions, apps, preferences that i really didn't need that were set up by my previous IT guy (e.g. growl, iclipboard, perian, etc etc etc). i honestly had no idea what they were. he elimintated them one by one until it was virtually clean. in the meantime, he went into the RAID utility app and performed redundancy verification and initialization tasks, and before those painfully long tasks even finished IT FINALLY WORKED! i finally have my iphone back. the huge lesson here for me is, when in doubt keep as a lean and clean system as you can! if you don't know what something is in your preferences, you probably don't need it! oh, and one added benefit, my system runs faster now!

  • I am unable to open Safari.  It was working yesterday before I installed the update.  The update seemed to be automtic when I restarted my computer.  I am running 10.9.5.  I don't want to lose my contacts, bookmarks etc if I have to delate the app.

    I am unable to open Safari.  It was working yesterday before I installed the update.  The update seemed to be automatic when I restarted my computer.  I am running 10.9.5.  I don't want to lose my contacts, bookmarks etc if I have to delete the app.  Any suggestions?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Try to launch Safari. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Due to NAS issues, when I started a new time machine backup it did not have the old backups available. My question is do I need to delete them or will time machine automatically reclaim the space?  Only one Sparse Bundle, same name.

    Due to NAS issues, when I started a new time machine backup it did not have the old backups available. My question is do I need to delete them or will time machine automatically reclaim the space?  There is only one sparse bundle but when I enter time machine I don't see my historic backups.  I use a synology DS212 for my time machine.  Started a new backup which is 218gb but it says 618 gb is occupied  therefore it looks like 2 or 3 backups are still on the disk. Before my NAS issues the last backup was in 2014.  As you can see there is a second sparse bundle from 2012.  Not sure what that is.

    This is an old message now, but what happened to me similarly was:
    I had a major computer crash and through complicated pathways ended up reinstalling (Mavericks) as a new user (long story).
    At least I had good Time Machine backups on an NAS drive (Synology DS212j), or so I thought - when I started Time Machine up again, the old backup file was gone, replaced by a new one using my "new computer" name. The old file was gone both by directly mounting the NAS drive and by clicking "Enter Time Machine".
    It's like I had {OldShareName}.sparsebundle and then it was replaced by {NewShareName}.sparsebundle, all of the old info vanished.
    (I have spent a week finding old files elsewhere and have completed a satisfactory self-restore. It pays to "archive" [my own variation of] as well as "back-up".)
    My belief is that if this were a wired-netword-drive, e.g. plugged right into my iMac with a USB cable, then the old file would have remained.
    But this is an NAS drive, connected directly to my Airport wireless router, and I don't know the significance of the fact that it stores its Time Machine backups as "sparsebundle" files rather than simply as plain(er) files.
    As usual when things get complicated with computers (not just Apple computers) there was never a warning message. Something like "YOU'RE ABOUT TO DELETE A TIME MACHINE BACK-UP FILE!!!" would have made my life a lot simpler.
    BTW, I did try a "restore from Time Machine" option the first thing I had my "new computer" (old hardware, 2009 iMac) up and running, using Migration Assistant, and it ran for many hours and then failed in the wee hours - what that has to do with anything I'm not sure.
    I'm not sure that I have a question about this other than "why do these things happen to me?", but it's a warning. Apart from that I've been very happy with the stability and reliability (but not the cost or set-up complexity) of NAS vs. directly-cabled external drives.
    Charles

  • Safari starts automatically when restarting (Snow Leopard)

    Two days ago, Safari began to start automatically when restarting the system (iMac, Snow Leopard). I checked in Accounts>Login Item and it doesn't appear there. I also right-clicked the icon in the dock and the option to open when starting session was disabled.
    ¿Anyone knows how to solve it?
    Thanks in advance.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    As Guest, launch the application(s) and test. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on some Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.) Post the results of steps 1 and 2.

  • Can i let tomcat automatically start when Window be up

    Hi,
    I developer a small client-server search project for a not profit organization, the project is being testing , but i don't why and who, shout down the PC and reopen it , I have a password , avoid people to tuch and change the Web application, databaese, and so on. its a way to let tomcat automatically up when windowns start?
    Thank you
    by the way is weblogic is free for use?

    I run Tomcat as a Windows Service under WinXP, there are instructions on how to do this on the Tomcat site. The service can be configured to start automatically with the system.
    Weblogic is free for development use, for comercial use it costs a large amount of money. I don't know situation for non-profit organizations, but yu could contact BEA. For a small project you are probably better off with Tomcat and Hibernate.

  • Automatic startup of WL when Machine starts

    hi guys,
    I installed AdminServer and managed server on machine 1 and a managed server on machine 2
    Also A node manager on machine 1 and node manager on machine 2.
    All works ok.
    Now I have 2 questions :
    Q 1 - I read that starting Node manager can start automaticaly AdminServer and its managed servers , How to configure it ?
    Q 2 - How to make all WL environnement (AdminServer, managed Servers ...) automaticaly start when machine Starts ?
    I know that all this is accompliched by WLST command line, but need more help to how process.
    regards.
    hassan

    Hi,
    I found this wonderful article, you try it:
    http://middlewaremagic.com/weblogic/?p=8187#comment-8617
    And you can also try this code(source :http://weblogic.middlewarebase.com/2011/10/shell-script-to-startstop-weblogic.html)
    #!/bin/ksh 
    #-----------------------------------------------VARIABLES----------------------------------------------------------- 
    CLASSPATH='/beafiler/wlserver_10.3/server/lib/weblogic.jar'; 
    $(export CLASSPATH=$CLASSPATH); 
    WEBLOGIC_PATH=' /wls_domains/base_domain/bin/'; 
    ADMIN_CHECK_DELAY='300'; 
    M_START_DELAY='60'; 
    MANAGED_CHECK_DELAY='300'; 
    ADMIN_IP='192.168.150.132'; 
    ADMIN_PORT='56001'; 
    UNAME='lotus'; 
    PASS='lotus1234'; 
    M_SERVER_1='ms1'; 
    MS1_IP='192.168.150.132'; 
    MS1_PORT='56002'; 
    M_SERVER_2='ms2'; 
    MS2_IP='192.168.150.132'; 
    MS2_PORT2='56003'; 
    #-----------------------------------------------AMDIN----------------------------------------------------------------- 
          $(nohup .${WEBLOGIC_PATH}startWeblogic.sh); 
               sleep $ADMIN_CHECK_DELAY; 
          ADMIN_STATUS=$(echo $(/beafiler/jdk1.6.0_21/bin/java weblogic.Admin -url t3://${ADMIN_IP}:${ADMIN_PORT} -username lotus -password lotus1234 GETSTATE)|awk '{print $6}'); 
          if [ ${ADMIN_STATUS} = ''RUNNING ]; then 
               'Admin Server RUNNING'; 
               sleep M_START_DELAY; 
          else 
               'Admin Server is NOT RUNNING , its status is [$ADMIN_STATUS]'; 
               exit 1; 
          fi 
    #-----------------------------------------------------Managed Server1---------------------------------------------- 
    echo "Starting Managed Servers..."; 
    echo "Starting Managed Server1"; 
          $(.${WEBLOGIC_PATH}startManagedWebLogic.sh ${M_SERVER_1} t3://${ADMIN_IP}:${ADMIN_PORT}); 
          sleep MANAGED_CHECK_DELAY; 
    M_STATUS=$(echo $(/beafiler/jdk1.6.0_21/bin/java weblogic.Admin -url t3://${MS1_IP}:${MS1_PORT} -username ${UNAME} -password ${PASS} GETSTATE)|awk '{print $6}'); 
          if [ ${M_STATUS} = ''RUNNING ]; then 
               'Managed Server [${M_SERVER_1}] RUNNING'; 
               sleep ${M_START_DELAY}; 
          else 
               'Managed Server [${M_SERVER_1}] NOT RUNNING , its status is [$M_STATUS]'; 
          fi 
    #------------------------------------------------------Managed Server2-------------------------------------------- 
    echo "Starting Managed Server2"; 
          $(.${WEBLOGIC_PATH}startManagedWebLogic.sh ${M_SERVER_2} t3://${ADMIN_IP}:${ADMIN_PORT}); 
          sleep MANAGED_CHECK_DELAY; 
    M_STATUS=$(echo $(/beafiler/jdk1.6.0_21/bin/java weblogic.Admin -url t3://${MS2_IP}:${MS2_PORT} -username ${UNAME} -password ${PASS} GETSTATE)|awk '{print $6}'); 
          if [ ${M_STATUS} = ''RUNNING ]; then 
               'Managed Server [${M_SERVER_2}] RUNNING'; 
               sleep ${M_START_DELAY}; 
          else 
               'Managed Server [${M_SERVER_2}] NOT RUNNING , its status is [$M_STATUS]'; 
          fi  Edited by: Salim Chelabi on 11-May-2013 5:38 PM

  • How can i avoid restarting tomcat server when servlet is modified?

    please advice me that how can i avoid restarting the tomcat server, whenever a servlet file is modified in my application. is their any way ?

    No probs. Here's how I do things...
    1. Install tomcat as normal (e.g. I install to C:\Apps\jakarta-tomcat-5.5.4)
    2. Create a webapps directory in your eclipse project with the following directory structure
    MyEclipseProject
       - src
       - conf
       - webapps
          - MyApplication
             - META-INF
             - WEB-INF
                - classes
                - lib
                - pages3. Set the project's output folder (e.g. bin folder) to webapps/MyApplication/WEB-INF/classes
    4. Put all your jar files in the lib directory
    5. Put JSPs / HTML in the pages directory (you may also want to create additional directories for TLDs, config files etc)
    6. Ensure your web.xml is in the WEB-INF directory
    7. Although it isn't essential I create a context.xml file and store it in META-INF, e.g.
    <Context reloadable="true">
        <!-- Default set of monitored resources -->
         <WatchedResource>WEB-INF/web.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/struts-config.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/tiles-defs.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/validation.xml</WatchedResource>     
    </Context>I use this to set monitored resources that will trigger an automatic appliation reload and to configure JAAS (not shown). See the Tomcat documentation for additional information.
    8. In the 'conf' directory I create a server.xml file used to configure Tomcat (you can copy the one from your <TOMCAT_HOME>/conf/server.xml).
    After copying the file change appBase attribute in the host element to be the full path to the webapps directory. You can also change the HTTP and HTTPS ports if you wish
    9. Download and install the Tomcat Launcher plugin from Sysdeo.
    10. In Eclipse's Preferences menu you will see a new entry for Tomcat. Click this then
    a. Set your Tomcat Version
    b. Set your Tomcat Home
    c. Set "Context declaration mode" to server.xml
    d. Set the configuration file to the full path to your server.xml file created in step 8
    On the "Advanced " sub page select all relevant projects to add to the Tomcat classpath
    On the "JVM Settings" page add all the jars in your WEB-INF lib directory to the class path
    On the "Source Path" page select all relevant projects
    Now if you start Tomcat using the Tomcat icon, you will be able to remote debug your application. If you change web.xml (or any other file in your context.xml watched resources) it will automatically reload. Any changes to JSPs will automatically be picked up (providing your tell your browser not to use the page in cache - e.g. CTRL+F5 in IE)
    There are some limitations that I'm still working on however. Primarily that I haven't included the Tomcat Manager application in my webapps directory, so Sysdeo cannot perform a reload. This means that if I change a source file, and eclipse auotmatically rebuilds, Tomcat doesn't pick up the change unless I either change a watched resource file (e.g. web.xml) or stop and restart Tomcat.
    There's no reason why this can't be fixed, I just haven't got round to it yet.
    I'm sure there are lots of other (probably better) ways of achieving the same thing. This was the first method I tried and it worked, so I stuck with it. I'm not a Tomcat config guru and I'm sure other forum users could provide some improvements should they wish.
    Post if you get into trouble, however I won't be able to respond until next week.
    Cheers,
    Steve

Maybe you are looking for

  • MQ Series - Error while reading messages from MQ in Sender adapter if EOIO

    Dear all, we've configured a scenario with a sending JMS-adapter (MQSeries). With configured Quality-Of-Service = EO everything works fine. If we switch to Quality-Of-Service = EOIO we get the following error message: com.sap.aii.adapter.jms.api.chan

  • Restart the Java-Engine in a dual stack installation (java+abap)

    Hi, how is it possible to restart or start only the j2ee-engine in a dual stack installation. We have a JAVA- and a ABAP-Stack and want only restart the JAVA-Stack. In windows i can use the MMC of SAP but how is it possible in UNIX. regards, sharam

  • Bug report - hidden confirmation buttons in HDR on 13" display

    For the HDR Pro function, hidden buttons 'OK' and 'Cancel' on Macbook Pro 13" running Snow Leopard and Photoshop CS5. Of course I can use the 'esc' key for 'Cancel' and 'return' key for 'OK' - but this is still annoying. See image below to illustrate

  • Factless fact tables????

    Hi gurus, Anybody please tell me about factless fact tables? in what are all the scenarios we can use it? Can we create Infocube without key figures? Thanks, Karthik T

  • DB growth in client copy

    Hello Gurus, I am evaluating execute a client copy with customizing option, but i dont know if my disk space availability is enough. My DB size is 1 TB and the disk available is 500 GB. in yours experience how much in percent will growth my DB? what