Check tomcat running script

I am still facing the problem of tomcat 5.0 just going dead without any warning.
tomcat logs don't help much about identifying the problem.
I am looking for a script that could periodically check whether tomcat 5.0 is running or not. If it is not running then save a copy of the logs and start tomcat.
any help would be appreciated. thank you

thank you for the good replies, i think we are on the right track
yes sth that returns saying that tomcat is alive or not? but what is that, i have never done this before (come across such a problem before), large systems like the one i am using should have these kind of things.
debug and clean the system, its a huge system, debugging it would take ages
how to clean up the system? and ya, it is not periodic :( (difficult to figure out whats causing it)
by the way, what can be so serious as to shutdown tomcat?
is there a script/program that could monitor tomcat every now and then like malcolmmc suggested.
i need this
and after that
what could be the problem, codes? what could be so serious
waiting for your reply
thnx in advance

Similar Messages

  • JNI and Tomcat running on Linux

    Hi all!
    I have a small problem with calling a native library from my Tomcat running on a linux.
    The code is simple enough
    System.loadLibrary(myLibrary);I know that when libmyLibrary.so isn't in the java.library.path I get an error at this line. When it is in the path it goes past this line with out problems but on the next line
    myFunction(); that is a function within myLibrary i get something like
    java.lang.UnsatisfiedLinkError: myFunction()The thing is. This exact code when either executed in a standalone java application or from a Tomcat running on windows works with out problem. Tomcat on linux doesn't.
    myLibrary uses other libraries on a different path and my guess is that tomcat for some reason won't allow access to those. The security manager however doesn't give me any errors, nor does tomcat itself other than the UnsatisfiedLinkError.
    Anyone running Tomcat on linux and using native libraries or perhaps just knows alot about this?
    Please help. Thanks!

    Are you sure you are not running into a class loader issue? Does this occur the very first LoadLibrary call or after the first successfull call?
    It could be that your JNI or bridge has already been loaded by another class loader in the tomcat class loader hierarchy and this would result in the UnsatisfiedLinkError.
    Check out: http://www.onjava.com/pub/a/onjava/2004/06/30/classloader2.html

  • "Run Scripts" giving a problem to create portal domain

    Hello All.
    I am new to weblogic portal development. Was trying to create my basic sample portal in weblogic_portal_10.3.4 with the help of documentation. I am getting in running scripts when I was creating the domain. I have followed the below steps, please help me if you find any issue with my steps.
    1. downloaded Weblogic_Portal_10.3.4 and installed in my windows 7 environment.
    2. launched eclipse for weblogic portal.
    3. opened portal prospective in eclipse.
    4. right click on server tab and selected "Oracle WebLogic Server 11gR1 (10.3.4)"
    5. opened "Domain Configuration Wizard"
    6. Selected "Create a new Weblogic domain" radio button.
    7. in the next screen for "Generate a domain configured automatically to support the following products"
    selected "Weblogic Portal 10.3.4" radio button
    8. in the next screen given the domain_name
    9. in the next screen provided the password/confirm-password for administrator user
    10. in the next screen selected JRocket SDK and development_mode for my domain.
    11. in the next screen just left all the default configuration for the datasources. ( non of the datasource is selected in their check boxes)
    12. in the next screen just clicked on "Next" button and "OK" on my popup
    13. in this screen "p13nDataSource" is selected on my left top window area, All 3 SQL Files are selected for loading database.
    Clicked on *"Run Scripts"*
    At this point i am getting an error saying : "CFGFWK-60839:  Database Load Failed!"
    java.lang.Exception: SQLException when executing file file:/C:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_drop_tables.sql
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:183)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    Caused by: java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
         at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         ... 1 more
    Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:273)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1674)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:189)
         at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:206)
         at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    CFGFWK-60839:  Database Load Failed!
    Please help me if you find any problem with the steps that I am following to create my weblogic_portal_domain.
    I was following the steps mentioned at : http://docs.oracle.com/cd/E15919_01/wlp.1032/e14252.pdf to create my domain to start portal development.

    Those are the WLP 10.3.2 instructions. But, the 10.3.4 instructions in the tutorial (http://docs.oracle.com/cd/E26806_01/wlp.1034/e14252/setup_dev_env.htm#i1014619) are wrong, too.
    In 10.3.4, with derby, Run Scripts doesn't work any longer; it should still work the other database (Oracle, SQL Server, etc.). Instead, for derby, just create the domain, accepting any warning dialogs about databases that come up. After that finishes, in the domain directory, run create_db.cmd (on windows) or create_db.sh (on *nix and Mac). It should create the derby database files in the domain, and include everything needed.
    I'll send a note to get the docs updated.
    Greg

  • Why does Firefox on my Windows 7 PC hang (become unresponsive) while it waits for most pages to load or run scripts?

    Firefox hangs (becomes unresponsive) when accessing many sites including Gmail. Eventually, when hung, Firefox will throw up a window saying "WARNING: A script has become unresponsive" or, in the case of Gmail, the page itself will say "Some Gmail features have failed to load due to an internet connectivity problem."
    IE8 and Google Chrome are working normally. I've tried Firefox in safe mode, re-installing and even running Firefox portable from a USB thumb drive. Each time with the same result—Firefox hangs or becomes unresponsive while it waits for most pages to load or run scripts.
    #### PC Workstation Environment ####
    Firefox 13.0.1
    Windows 7
    Symantec Endpoint Protection 11.0.6200.754
    --

    Your problem sounds like the one that a co-worker and I started to have about the same time. Check your Symantec client management control log. You might see a line like the following.
    Date and Time Severity Level Action Test / Production Description API Class Rule Caller Process ID Caller Process Parameter User
    2012-07-30 10:48:09 AM 15 Block Production Unauthorized NT call rejected by protection driver. System Built-in rule 1608 FlashplayerPlu FuncID-B6H, R... None
    At first we thought that it was a Javascript problem until we noticed this log. The key words are 'Block' and 'FlashPlayerPlu'. This problem recently started for us, perhaps with a software push 1-2 weeks ago. Internet Explorer does not hang when accessing pages with Flash.
    The Flash page does eventually load after a long time. However, since the whole browser hangs for a while, for the most part having the Flash plugin enabled makes Firefox unusable if accessing pages with Flash.
    Disabling the Flash plugin solves the hanging problem, but I do not know what is causing the problem, nor do I know when a combination of Windows 7, Flash, and Symantec will work. Your later version of Symantec shows that we might have the problem for a while, but I do not know what customization CSC did with Symantec. My coworker did run a complete virus scan, uncovering nothing. Another co-worker is running Windows XP. She does not have the problem, but I do not know what other versions of software she is running.
    Symantec Endpoint Protection version 11.0.6100.645
    Flash version 11.3.300.268
    Firefox version 14.0.1
    Windows 7 32-bit service pack 1

  • Detecting the name of a running script

    Hello,
    if I code something like this
    #!/sbin/sh
    # do anything
    # source in another script
    . /tmp/include.sh
    Is there any change to detect inside of /tmp/include.sh that /tmp/include.sh is running?
    ($0 still has the old value)
    TIA
    Bernd

    I think this may be a little difficult. When a script
    is dotted (. <script>), it executes in the environment of
    the current script. It does not fork off a new process so
    there is no new $0.
    Have you considered using some type of flag in the environment? Something like:
    RUNNING=include.sh
    . /tmp/include.sh
    unset RUNNING
    Then in include.sh, check for RUNNING. Not an ideal solution, but could work...

  • Looking for an SQL query to retreive callvariables + ECC from a RUN SCRIPT RESULT (Translation to VRU)

    Hi Team,
    I am looking for an SQL query to check the data (ECC + CallVariable) received following a RUN SCRIPT RESULT when requesting an external VRU with a Translation Route to VRU with a "Run External Script".
    I believe the data are parsed between the Termination Call Detail + Termination Call Variable .
    If you already have such an SQL query I would very much appreciate to have it.
    Thank you and Regards
    Nick

    Omar,
    with all due respect, shortening a one day's interval might not be an option for a historical report ;-)
    I would recommend to take a look the following SQL query:
    DECLARE @dateFrom DATETIME, @dateTo DATETIME
    SET @dateFrom = '2014-01-24 00:00:00'
    SET @dateTo   = '2014-01-25 00:00:00'
    SELECT
    tcv.DateTime,
    tcd.RecoveryKey,
    tcd.RouterCallKeyDay,
    tcd.RouterCallKey,
    ecv.EnterpriseName AS [ECVEnterpriseName],
    tcv.ArrayIndex,
    tcv.ECCValue
    FROM Termination_Call_Variable tcv
    JOIN
    (SELECT RouterCallKeyDay,RouterCallKey,RecoveryKey FROM Termination_Call_Detail WHERE DateTime > @dateFrom AND DateTime < @dateTo) tcd
    ON tcv.TCDRecoveryKey = tcd.RecoveryKey
    LEFT OUTER JOIN Expanded_Call_Variable ecv ON tcv.ExpandedCallVariableID = ecv.ExpandedCallVariableID
    WHERE tcv.DateTime > @dateFrom AND tcv.DateTime < @dateTo
    With variables, you can parametrize your code (for instance, you could write SET @dateFrom = ? and let the calling application fill in the datetime value in for you).
    Plus joining two large tables with all rows like you did (TCD-TCV) is never a good option.
    Another aspect to consider: all ECC's are actually arrays (always), so it's not good to leave out the index value (tcv.ArrayIndex).
    G.

  • Error when running script from OTM

    Hi team,
    Customer is trying to run script from OTM but is getting a "JWG file does not exist" error. I found the following metalink note and the customer has verified that the repositories are defined with exactly the same names & paths in OTM & Openscript.
    Scripts Failing To Play Back From OATS Test Manager (OTM) (Doc ID 1587941.1)
    I've also checked the following post in the forums but this doesn't apply to the customer because both the OTM & agent are on Windows:
    https://forums.oracle.com/message/10707963
    Appreciate any pointers
    Thanks,
    Krishna

    Hi Krishna
    Is the agent running as a windows service or started from an interactive batch?
    What kind of script is that? Web, Forms, Siebel, other?
    Are they different repositories or the same? If different, how do you copy scripts from one to the other one?
    Cheers
    JB

  • Data Manager not running scripts

    Dear Experts,
    I've followed one of the "How to pass parameters to BPC scripts" guide and created a Process Chain to run scripts. The whole thing didn't go as smooth as expected and I'm not sure which part went wrong.
    As I'm having trouble validating the complex version of codes. I wrote something very simple instead like
    *XDIM_MEMBERSET AcctDetail=Non_AcctDetailInput
    *WHEN ACCOUNTPLAN
    *IS "SSVV060"
    *REC(EXPRESSION=%VALUE%,P_DataSrc="INPUT")
    *ENDWHEN
    *COMMIT
    I ran the package, the package should trigger the process chain. but it never showed itself in the package status like it's never ran once at all.
    I'm posting my script problem on another thread.
    anyone has an idea? Thanks a million...
    , Jim Hsu

    Please check your task profile....
    Make sure you  have all task profile related to data manager....do let us know if youstill face this problem

  • Error when trying to run script using SDK at plugin startup

    Hi
    I am trying to run a script when my InDesign plugin is loaded. I referred to the PanelTreeView sdk sample as an example and implemented a StartupShutdown Boss
    In my implementation, in the startup() method I have the code to get the scriptManager and the scriptRunner for my javascript that I want to run. However, when my code hits the following line :
              InterfacePtr<IScriptRunner>theRunner(Utils<IScriptUtils>()->QueryScriptRunner(scriptFile) ); //scriptfile is ID script file that I want to run
              I get the error saying "Calling ScriptInfoDatabase::InitScriptInfoManager before resources have been registered".
    I am wondering how I can fix this error. or if this is too early to invoke scriptrunner, then is there some other place where I can invoke the scriptrunner to run my script
    this is how I have defined my StartupShutdown Boss class in  the .fr file
        Class
             kmyStartupShutdownBoss,
             kInvalidClass,
                 /** Implementation of IStartupShutdownService that runs a  scripts on startup */
                 IID_IAPPSTARTUPSHUTDOWN, kmyStartupShutdownImpl,
                 /** identify the service type */
                 IID_IK2SERVICEPROVIDER, kCStartupShutdownProviderImpl,
    Appreciate any help on this one .. thanks!
    Sameer

    Dependent on your InDesign version, you can schedule an IdleTask and do it from there, or just use a lazy startup.
    IID_IK2SERVICEPROVIDER,kLazyStartupShutdownProviderImpl,
    Again dependent on your InDesign version you should first check whether a script can run at all - some nasty other plugins may prevent that with modal dialogs.
    Finally there is the possibility to run startup scripts even without plugin ...
    Dirk

  • "Run Script" (F5) Flacky Behavior with CREATE PROCEDURE and PACKAGE

    When I have the following create statement in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. Why does it not tell me that there was a compile error? The procedure is marked with a little red "X" in the connections pane.
    CREATE OR REPLACE PROCEDURE bogus IS
    BEGIN
      x := 1;
    END;
    /Also, when I have the following command in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. The difference is that I removed the slash after the CREATE PROCEDURE command. I can go into that procedure in the database via the Connections pane, click on the compile button, and the procedure compiles with no errors. Why does it not compile in a script when missing the slash?
    CREATE OR REPLACE PROCEDURE bogus IS
    BEGIN
      NULL;
    END;I noticed the same flaky behavior with CREATE PACKAGE BODY as well. This is in version 1.0.0.14.67 on Windows XP. Has this been fixed in the latest version?
    Mike

    I found a number of earlier posts on this (going back to at least v804), but I cannot find a thread with a response from the SQL Developer team - see:
    Package compilation error
    Succesful compilation message and Compiling Invalid Objects
    Creating a stored procedure from a file does not show compilation errors
    Re: Syntax Error Feedback
    I assume that it is just a bug with SQL Developer that it does not check for compilation errors when determining the status message to display (ie "PROCEDURE bogus Compiled"). At least now we get the little red cross on the navigator to tell us it is invalid :)

  • Running script consuming memory

    Hi,
    To create many thousands of icons I've created a pretty simple script that turns the various layers and group objects in my AI file on/off, and exports the icon as a GIF. The script works in so much as it creates all the icon permutations I'm after, however the memory being consumed grows. Using Window's task manager I can see illustrator.exe is using ~101000KB and page file usage is at 915MB, prior to running the script. After running the script illustrator.exe is using 3 times the memory and page file usage is up around 1.28GB.
    Is there something I should be looking into regarding my script to better manage memory usage?

    Hey David
    I have run into this as well, except I start to get a Param error(which is usually memory). Check out the scripting reference for the $ Global Object I think thats what its called, and find a place in your script to run the garbage collector $.gc(); That should get rid of empty references that are taking up memory. Let us know if that helps.
    A

  • Safari 3 cannot run scripts in new window

    The problem that I am encountering is that Safari cannot seem to run scripts in a new window. Whenever I click on a link, nothing happens. This occurs on sites like http://www.nbcolympics.com/video/share.html?videoid=0824hd_ccben209 (when I am trying to view the videos) and http://music.aol.com/radioguide/ (Trying to play the stations).
    I'm not sure if it's a JavaScript issue or something. I have enabled Java, JavaScript and plug-ins in the preferences pane. I also tried disabling the pop-up blocker but that didn't seem to work. It usually works fine in Firefox (though the nbcolympics site insisted that I didn't meet the browser requirements, when I clearly did.) Sorry I can't provide you guys with much info, I don't know much about web stuff.
    I am using Safari 3.1.2 on a 2GHz Macbook. Thanks loads

    Yup the options are checked.
    http://lh5.ggpht.com/NileRider92/SMAarjNGUII/AAAAAAAAAto/zHiaP-xMj8Q/s720/Pictur e%204.png
    I downloaded and installed the Silverlight plug-in some time ago, but it doesn't seem to have affected anything
    http://lh3.ggpht.com/NileRider92/SMAarrPkBQI/AAAAAAAAAtg/TRf0Pg4IdhM/s720/Pictur e%203.png

  • Running script

    Well here is another problem I need help with. When I am on the webpage www.geocaching.com, and click on a
    geocache link, my BB will request, load, running script, loading, requesting, running script all in a endless cycle.
    The page will never load, just cycles as described. What do I need to change on my BB Tour?
    You all have been very helpfull with my questions. Once again, thanks in advance for your help.

    Do you have an example of a geocache link?
    Okay, I tried the Hide & Seek A Cache link, and with JavaScript enabled, I ran in the continous loop problem you were experiencing. I turned off JavaScript and was able to access the Hide & Seek A Cache page.
    Interestingly enough, though I have "Prompt to enable JavaScript" enabled, I never did receive a request to enable JavaScript. I checked the source for the Hide & Seek A Cache page with Firefox on my desktop computer and it definitely has references to JavaScript. So JavaScript handling by the BB Browser is sketchy at best. I wish there was a way to set JavaScrip on a per page or per website basis.
    Message Edited by mousky on 09-13-2009 09:54 PM

  • Sick and tired to your long running scripts.

    I am about to switch my internet service to a different company since I am so sick and tired of your long running scripts that take away my time when ever I want to use my computer.  This is so discusting.

    paulfm,
    What Jason meant was, when you e-mailed customer support, did you use the same e-mail address as you have on your profile here (that you used to sign up on the forum)? We can check into it for you then.
    Cat

  • "An error occurred while running scripts from the package "DeveloperTools.pkg"

    I'm trying install my xcode 4.2 and check log and this where there is problem
    "An error occurred while running scripts from the package “DeveloperTools.pkg”

    II found the answer elsewhere. I logged in from a diffent admin acount and the install went fine.

Maybe you are looking for

  • JDBC & Open Cursors

    Hi, Could it be possible that even if all ResultSet and Statement objects are closed (in finally blocks so that the close() statements are guaranteed to be executed), one can still get ORA 1000 or max open cursors exceeded? Is there a bug in JDBC tha

  • 5508 WLC HA pair - change management interface settings

    Hi, We have a pair of 5508 WLC's in a HA configuration that is working well at the moment, however I have noticed that the management interface is configured as untagged. I would like to change this to tagged and change the attached switch to trunk f

  • HT2512 how do I "share"folders on a network? or even setup a networks in windows

    In windows I coulf right click a folder and share via other coms in home network. How to I do this on mac. Many thanks

  • MBP APE can not connect to 802.11n only 5GHz

    I purchased a 17" MBP about a month ago and then got the APE two weeks ago. I am running DSL to a Linksys (not WiFi) router. I attached the APE to the Linksys and created a network using 'Bridge'. Everything worked great. During setup I tested 802.11

  • Nokia 1520

    Hello everyone. I have a Nokia 1520 that was sent to me by Nokia repair.  I have told them this phone does not belong to me, but they refuse to believe it. They at one time sent a shipping label from fedex for me to return the phone but they did not