aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 7 is shutting down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 is shutting down" Watch "Tomcat 7 is shutting down" New topic
Author

Tomcat 7 is shutting down

bayan aljifri
Greenhorn

Joined: Apr 18, 2013
Posts: 11
Hi,
I have Tomcat 7 and I am linking it to apex .unfortunately it is shutting down and I have to start the tomcat up every 24 hours
it's affecting our operations . is there a solution to prevent that please?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

The first step is for you to repair your display name. Until you do that, don't expect many answers.

We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .


Customer surveys are for companies who didn't pay proper attention to begin with.
bayan aljifri
Greenhorn

Joined: Apr 18, 2013
Posts: 11
It has been changed as requested. anyone have a solution please?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
Your first step would be to examine the Tomcat logs. I would expect any condition that caused a shutdown to create extensive log entries.

Is this Tomcat running a commercial application or one you are developing?

Have you used the Management app to monitor your Tomcat instance?

Bill
bayan aljifri
Greenhorn

Joined: Apr 18, 2013
Posts: 11
I am still a beginner.
can someone explain this for me in details.I don't know how to check my tomcat logs or using the tool to resolve this incident.
Thank you
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
Your Tomcat installation directory has a "logs" subdirectory where log files are written.

These are plain text files containing mostly boring statements about what Tomcat is doing - examine log files with a text editor, start at the end of the files for what was going on when tomcat shut down.

Bill
bayan aljifri
Greenhorn

Joined: Apr 18, 2013
Posts: 11
all the logs files are empty!!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
If Tomcat started at all there should be startup logging. Do the timestamps on the log files match the time you started Tomcat?

Is your Tomcat running as a Service or as an Application?

Bill
bayan aljifri
Greenhorn

Joined: Apr 18, 2013
Posts: 11
I have installed Apache Tomcat on my server and integrated it with Apex. Everyday I face the same issue when the server is down that I can't call the report from tomcat.
I have to get into my bin folder and start it up
was that helpful?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
So you are running Tomcat as an application.
Open a command prompt window and navigate to the Tomcat bin directory, execute the startup.bat
You should see some informative messages as Tomcat starts up and Tomcat will be creating log files and possibly writing to the Catalina log
The timestamps on the log files should match when you started Tomcat - if not you are looking in the wrong logs directory.

I have no idea what "Apex" is - are you saying that after restarting Tomcat you can then get the report? But subsequently Tomcat appears to quit and you can't?

Bill
bayan aljifri
Greenhorn

Joined: Apr 18, 2013
Posts: 11
yes Apex is oracle application express which doesn't have the feature of giving a printable documents of the database. So I am getting them through tomcat using jasper ireport application
I've checked the log files
there are: cataline, hostmanager, localhost, manager, localhost_access files
cataline show me something like this :
Am still not getting it


Apr 29, 2013 3:32:00 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8888"]
Apr 29, 2013 3:32:00 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Apr 29, 2013 10:20:35 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_41\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;.
Apr 29, 2013 10:20:35 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8888"]
Apr 29, 2013 10:20:35 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 29, 2013 10:20:35 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 338 ms
Apr 29, 2013 10:20:35 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 29, 2013 10:20:35 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Apr 29, 2013 10:20:35 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor C:\apache-tomcat-7.0.37\conf\Catalina\localhost\JasperReportsIntegration.xml
Apr 29, 2013 10:20:38 AM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '5' did not find a matching property.
Apr 29, 2013 10:20:43 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\apex
Apr 29, 2013 10:20:43 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\doc
Apr 29, 2013 10:20:43 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\docs
Apr 29, 2013 10:20:43 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\examples
Apr 29, 2013 10:20:43 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\host-manager
Apr 29, 2013 10:20:44 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\lib
Apr 29, 2013 10:20:44 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\manager
Apr 29, 2013 10:20:44 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\ROOT
Apr 29, 2013 10:20:44 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\sql
Apr 29, 2013 10:20:44 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.37\webapps\webapp
Apr 29, 2013 10:20:44 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8888"]
Apr 29, 2013 10:20:44 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Apr 29, 2013 10:20:44 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8849 ms


William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
So log files are being written! Good!

If Tomcat shuts down you should see messages in the Catalina or localhost log indicating why.

Bill
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat 7 is shutting down