Tomcat start/restart

To start Tomcat, we are doing the following methods :-
1) through services.msc from run
2) tomcat5w from tomcat's bin dir
3) startup.bat file from tomcat's bin dir
Over all above specified methods, startup.bat only always works perfectly. But, it is opening another console window. If we close this window accidently, suddenly tomcat gets down.
Please let me know the easiest method to start tomcat.
And also let me know other two methods are not working sometimes.

I start it the way you do and leave the console window running, I find it better as I can see error messaged output through the console.
If you dont want the console to appear there is a program Tomcat Montitor (i think) that lets you run tomcat as a service.

Similar Messages

  • If I copy the "lcds" folder, Tomcat starts with socket errors

    In the documentation it is said that when you create a new server-side application, you can start by copying the 'webapps/lcds' folder. I did that but then, Tomcat starts with some socket errors:
    [LCDS]SocketServer 'my-rtmp-SocketServer' failed to pre-validate desired socket settings for BindSocketAddress: 0.0.0.0:2038
    java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    [LCDS]SocketServer 'my-rtmp-SocketServer' failed to start.
    flex.messaging.LocalizedException: SocketServer 'my-rtmp-SocketServer' cannot bind to accept client connections on port '2038' because another process has already bound the port. Please ensure that multiple endpoints across all applications  are not configured to use this same port.
    Am I doing something wrong?
    Thanks,
    Borek

    What is happening is that you are getting a port conflict for the socket-based NIO and RTMP endpoints used in the channel definitions in the services-config.xml file of your new web app. The issue is that you have endpoints bound to the same port  in the LCDS web and in your new web app.
    You can deal with this one of two ways:
    Option 1: In that services-config.xml file, search on "RTMP" and "NIO" to find the channel definitions and change the port numbers to something slightly different than the ones used in the LCDS web app.
    Options 2: Move the LCDS web app out of the picture so it doesn't get loaded, and just use a template for future web apps. If you aren't using it for any of your development, there is really no reason you have to load it.
    I'll add a note about this to the documentation that talks about using the LCDS web app as a template.

  • Start, restart, stop and status stored procedure - howto?

    First:
    - this and other otn forums are awesome!
    - apex is neat
    Second:
    - I have O'Reilly books: "Oracle pl/sql programming" and "Mastering Oracle SQL"
    - Also tried to search / google best practices around stopping 'hanging stored procedures' and creating logics for such happening
    Challenge:
    I would like to implement simple solution for starting, stopping, restarting and maybe even getting status of stored procedures. Sounds like unix runlevels but in "userspace" without the sys rights.
    Finally I would like to have this functionality in apex-application where predefines stored procedures could be started, restarted, stopped and maybe even status could be retrieved.
    start - this is simple, start - but maybe check if such stored procedure is already started ( so this start will fail)
    stop - send signal to certain procedure(s) that now it/they should exit immediately
    restart - actually stop+start
    status - maybe via status table indicating e.g. records_processed/records_to_be_processed
    Mostly I need this stop so what would be the best way to write "exit" for stored procedure? I would like to avoid the following approach:
    SELECT sid, serial# , username, schemaname, osuser FROM gv$session;
    ALTER SYSTEM KILL SESSION '<sid>,<serial#>' IMMEDIATE;
    /paavo
    Edited by: paavo on Jul 13, 2009 11:35 AM - added status to subject :)

    paavo wrote:
    Thank you, very good references, but still I think my challenge persist on stop still because I try to do this without the rights to v$session etc. tables.
    So what would be the best way to deliver stop-message to executing stored procedure. E.g.
    - via table which is regularly checked by stored procedure (e.g. in loop it selects from the table)
    /paavoI think for stopping such a procedure you have only two sensible possibilities.
    First option is to kill the session. For this you or the logic that does the kill needs the appropriate rights to do it.
    Second option would be to programm this behaviour. The procedure can listen to a kind of signal and if it gets that signal it is stopped. This signal can be a value in a parameter table, but it can also be a message in some pipe/advanced queue. However this means the procedure will stop only at certain defined points (whenever it checks for the stop signal).
    Btw: You didn't mention what is the business case behind that technical request. Maybe you can elaborate a little on that too.

  • Why does my location change every time I start/restart my computer?

    I have yahoo weather set to my location. Every time I switch to an other account or start /restart my computer it changes to another location. I follow the "Firefox cure" Yahoo gives for the problem but it continues to do the same . This started about a week ago when I updated Firefox.
    The problem is about to drive me nuts.
    HELP !!

    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''

  • SQL Server 2012 Management Studio - Stop, Start, Restart options all Greyed Out

    I am a sa and local admin on various SQL Servers. I can see the stop/start/restart etc. options when using lower version tools and also when directly logged onto the servers. However with SQL2012 SP2 MS remotely these options are all greyed out for
    all servers. I can confirm that I have effective 'view server state' perms, and also that domain admins can see the options. Why can't I see these options through SQL2012 SP2 MS? Any help appreciated.

    I am a sa and local admin on various SQL Servers. I can see the stop/start/restart etc. options when using lower version tools and also when directly logged onto the servers. However with SQL2012 SP2 MS remotely these options are all greyed out for
    all servers. I can confirm that I have effective 'view server state' perms, and also that domain admins can see the options. Why can't I see these options through SQL2012 SP2 MS? Any help appreciated.
    What rights do you have on windows machine where SQL server 2012 resides, the one who you want to start stop remotely. Are you connecting SQL server 2012 with SSMS 2012 or some lower version SSMS ?
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • My macbook from 2008 which I bought used worked fine for 3 weeks and then suddenly it started restarting and now it restarts, goes to grey apple screen and a code saying something about a kernel panic appears and it restarts again and again. Help?

    My macbook from 2008 which I bought used worked fine for 3 weeks and then suddenly it started restarting and now it restarts, goes to grey apple screen and a code saying something about a kernel panic appears and it restarts again and again. Help?

    Restart the computer and immediately hold the Option key down.
    Select the Recovery partition and continue.
    On the next pane, select Disk Utility and continue.
    When DU opens, select your hard drive in the left column, click the First Aid tab, the click Repair Disk.
    When that is done, quit DU and restart in the usual way.

  • New install cant 'see' infoview etc when Tomcat starts as a windows service

    Post Author: sdimb
    CA Forum: Deployment
    Help, we are a new site trying to install BOXI R2 SP2 on a windows server.  We have installed as per all instructions including Tomcat but when we try to 'use' Infoview we get a blank page.  If we stop Tomcat and restart it via the command prompt we can use Infoview but we need to have this working as a windows service.  We have tried re-installing several times and always get the same result.  does anyone have any ideas as to what we have done wrong please.

    Post Author: mewdied
    CA Forum: Deployment
    Running tomcat as a service may be running under a different user context than when running it via the command prompt.  This may be causing your issue.

  • How to run class after Tomcat starts?

    Hello!,
    I want to run a class after Tomcat start.
    How can I achieve?
    Reg,
    Chetan

    Well the official way to do it it to create a class which implements org.apache.catalina.LifecycleListener. Then you can name the class in a <Listener> element in server.xml. It can appear at various levels e.g. inside the Engine block, and it will receive notification when that level starts and stops.

  • Perform action when Tomcat start and stop

    Hi. I'd read a thread about performing an action when Tomcat starts with configuring the web.xml file. I just wonder whether it's probable or not to perform an action when the Tomcat is stop. I mean like when the Tomcat is called to stop it'll run a class or call a servlet first before it's finally shut down. Is it possible to do that???
    Thanx!

    It should by possible with a Listener. You can see the use within the server.xml with the ServletLifecycleListener.
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    Look into the LifecycleListener Interface from the source and the implementations. I see some samples with mBeans using this interface.
    Examples:
    http://rollerweblogger.org/page/roller/20040625
    I 'have never try it out, but it should work like described!
    regards Dietmar

  • Rescue & Recovery every start/restart

    Every time I start/restart, I get rescue and recovery page. I do the quick recovery.
    Have Lenovo 3000 N500 model 423352U.  I usually leave machine on but am
    about to take it on a 3,000 mile trip .
    What to do?

    do you have any issue on shutting down your computer?

  • When do services fail, while start/restart the services

    Hi All,
    when do we have chance of services get fail while start/restart it (consider that everything is properly configured and instaled).
    and How do i troubleshoot it.
    can anyone come across related this issue, your experices will be helpful.
    Thanks in Advance.

    When Essbase.sec file got corrupted services will fail frequently.
    If you have back up of essbase.sec then replace it and restart the services or you need to create the essbase.sec file from starting.
    Regards
    Venkat G

  • I restarted my ipod touch and it ran out of power half way,now it will charge for one little bar and then start restarting again without charging until it runs out, it also wont show up on itunes, can you help me

    i restarted my ipod touch and it ran out of power half way,now it will charge for one little bar and then start restarting again without charging until it runs out, it also wont show up on itunes, can you help me

    the only other thing i can think of is the put the ipod into recovery mode
    but as itunes cant find it, it may not work
    hold the power button for 3sec's keep holding the power button now also hold in the home buttton the screen goes black
    now let go of the power button keep the home held in the screen goes blue and shows the itunes with the cd and the up arrow with the usb cable, connect to itunes to start recovery mode.
    or take it to an apple store fore them to help with recovery mode but this can take up to 3hrs
    or try out www.ipodsurgery.co.uk

  • Some times on Tomcat start up it creates SSL error while JDBC connection to SQL server

    We are using Apache Tomcat 6 and SQL server 2008 on production. In the application in ServletContextListner we make DB connection to read some property from DB. When we restart the Tomcat 6.0 in that case sometimes it does not gets DB connection till 5 to
    10 minutes. It does not happen every time. We are using JNDI for getting the Datasource objectand using SQL JDBC 3.0 driver. We get following error in log
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset by peer: socket write error".)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at com.rightwave.util.RWDBConnectionManager.getConnection(RWDBConnectionManager.java:145)
    at com.rightwave.util.RWDataBaseDAO.executeQuery(RWDataBaseDAO.java:306)
    at com.rightwave.util.RWDataBaseDAO.executeQuery(RWDataBaseDAO.java:289)
    at com.rightwave.admin.RWApplicationContext.setMConfigurationProperties(RWApplicationContext.java:226)
    at com.rightwave.admin.RWAdminApplicationContext.initialize(RWAdminApplicationContext.java:85)
    at com.rightwave.admin.RWServletContextListener.contextInitialized(RWServletContextListener.java:186)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset by peer: socket write error".
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1368)
    at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1412)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1058)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:833)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:716)
    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841)
    at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
    ... 31 more
    Caused by: java.io.IOException: Connection reset by peer: socket write error
    at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.ensureSSLPayload(IOBuffer.java:500)
    at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.readInternal(IOBuffer.java:570)
    at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.read(IOBuffer.java:562)
    at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.readInternal(IOBuffer.java:757)
    at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.read(IOBuffer.java:745)
    at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)
    at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1379)
    ... 39 more
    Urgent help will be appreciated. 

    So, you've got a network error.. Check your physical layer.

  • JSP + Tomcat start problems

    Hi all ,sorry fot desturbing with question that was descused befoure but I have problem to start JSP application on Tomcat server
    1.I have created folder named my_folder and set my application here
    2.I have created subfolder WEB-INF (but its empty because I want only to test deployment on Tomcat and I have only one file my_application.jsp)
    3. I have restarted the server
    4.I have typed in browser http://localhost:8080/my_folder/my_application.jsp
    And it doesnt work show me error 404
    Please somebody who can help with solving of this problem to write here
    10x.

    Try putting a basic web.xml file into the web-inf folder
    Tomcat 4
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <display-name>Welcome to Tomcat</display-name>
    </web-app>Tomcat 5
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
      <display-name>Welcome to Tomcat</display-name>
    </web-app>

  • Start java-Program when Tomcat starts

    I have a TimerTask, that should be executed every hour (war in webapp of Tomcat). If Apache Tomcat will be shut down and started again, Task won't be executed.
    Can I define somewhere, that some class should be executed when Tomcat server starts and after restart the tasks will be countinued.
    Can I, for example define it some where in web.xml or somewhere else?
    I can't controll when tomcat was turned off and started again.
    Thanks in advance.

    I have a TimerTask, that should be executed every
    hour (war in webapp of Tomcat). If Apache Tomcat will
    be shut down and started again, Task won't be
    executed.
    Can I define somewhere, that some class should be
    executed when Tomcat server starts and after restart
    the tasks will be countinued.
    Can I, for example define it some where in web.xml or
    somewhere else?
    I can't controll when tomcat was turned off and
    started again.
    Thanks in advance.My advice is to be:
    Making your TimerTask to be an application which will do something every 1 hour if it has nothing to do with the Tomcat Server .And tell us what do you want your TimerTask to do ???waiting for you .

Maybe you are looking for

  • After 8.0.1 to 8.0.2 upgrade, iTunes no longer sees my iPhone..

    I'm at a loss. I've done everything listed on the generic help page... http://support.apple.com/kb/TS1363?viewlocale=en_US ...and I still can't get iTunes to see my iPhone. It worked fine yesterday, but after the iTunes update, I doesn't show up at a

  • Help in sql xml

    sorry i am new in the oracle xmldb features. i need help with a select statement on a xmltype column. my table: CREATE TABLE ESHOP_CUSTOMER_BASKET BSK_ID INTEGER, BSK_CUSTOMER_GID VARCHAR2(10 BYTE), BSK_STATUS INTEGER DEFAULT 0, BSK_ORDER_DETAIL XMLT

  • Data Scrolling Issue

    I have an application that shows a thumbnail image inside of a cell in a DataGrid.  Not every row must have a thumbnail but can.  If you have few enough items in the datagrid so that scrolling isn't necessary then you add 2 thumbnails at the top of t

  • I am usiing Kaspersky Internet protection.  I keep getting a 403 error Virus Detected on just one of the files that I am trying to convert.  What do I need to do.

    I am getting a message 403 that the file that I am trying to convert has a virus.  I use Kaspersky virus detection and I ran it on just that file.  I have converted another file with on problems.  What do I need to do?

  • Problem with the config.xml

    Dear all, After doing a wscompile on the config.xml file (JWSDP1.6), I am able to generate the wsdl for the interface defined. But now the config.xml shows an error "Cannot find the declaration of element 'configuration' " for the attribute xmlns="ht