On 22.07.2016 05:28, chandra sekhar wrote:
Actually, i didn't configure the Apex ORDS yet with DB.As i told you in
previous mail chain i just extracted and trying to see the apche tomcat
home page first before going to configure Apex ORDS.

a) If you are using Internet Explorer, go into the "extra" or "preferences" settings, and find and disable the "show friendly error pages" option.
You might then see what is really returned by Tomcat (or whatever the error 
really is).

b) out of the logfile which you posted earlier, I have extracted the following part, which shows

1) the end of a previous Tomcat startup sequence :

Jul 21, 2016 8:13:36 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 128687 ms

2) Then almost immediately (4 s later), a shutdown sequence :

Jul 21, 2016 8:13:40 PM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port.
Stopping the Server instance.
Jul 21, 2016 8:13:40 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-1036"]
Jul 21, 2016 8:13:40 PM org.apache.catalina.core.StandardService
stopInternal
INFO: Stopping service Catalina
Jul 21, 2016 8:13:40 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
SEVERE: The web application [/apex_bkp] registered the JDBC driver
[oracle.jdbc.OracleDriver] but failed to unregister it when the web
application was stopped. To prevent a memory leak, the JDBC Driver has been
forcibly unregistered.
Jul 21, 2016 8:13:40 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-1036"]
Jul 21, 2016 8:13:40 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-1036"]

3) then, more than one hour later, a new startup :

Jul 21, 2016 9:32:36 PM 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:
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Jul 21, 2016 9:32:36 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 21, 2016 9:32:37 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 633 ms
Jul 21, 2016 9:32:37 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jul 21, 2016 9:32:37 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
Jul 21, 2016 9:32:37 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
/data1/app/apache-tomcat-7.0.55/webapps/apex.war
Jul 21, 2016 9:32:40 PM
oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder:
/data1/app/apache-tomcat-7.0.55/webapps/apex/apex
Default Database connection not configured properly
Jul 21, 2016 9:33:41 PM oracle.dbtools.rt.web.SCListener
contextInitialized
INFO: Oracle REST Data Services initialized
Oracle REST Data Services version : 2.0.8.163.10.40
Oracle REST Data Services server info: Apache Tomcat/7.0.55

Jul 21, 2016 9:33:50 PM org.apache.catalina.util.SessionIdGenerator
createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using
[SHA1PRNG] took [8,478] milliseconds.
Jul 21, 2016 9:33:50 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
/data1/app/apache-tomcat-7.0.55/webapps/apex.war has finished in 72,969 ms
Jul 21, 2016 9:33:50 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/ROOT
Jul 21, 2016 9:33:50 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/ROOT has finished in 36 ms
Jul 21, 2016 9:33:50 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_bkp
Jul 21, 2016 9:33:51 PM
oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder:
/data1/app/apache-tomcat-7.0.55/webapps/apex/apex_bkp
Jul 21, 2016 9:33:52 PM oracle.dbtools.rt.web.SCListener
contextInitialized
INFO: Oracle REST Data Services initialized
Oracle REST Data Services version : 2.0.8.163.10.40
Oracle REST Data Services server info: Apache Tomcat/7.0.55

Jul 21, 2016 9:33:52 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_bkp has finished in 2,089 ms
Jul 21, 2016 9:33:52 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_old
Jul 21, 2016 9:33:53 PM
oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder:
/data1/app/apache-tomcat-7.0.55/webapps/apex_old
Default Database connection not configured properly
Jul 21, 2016 9:34:54 PM oracle.dbtools.rt.web.SCListener
contextInitialized
INFO: Oracle REST Data Services initialized
Oracle REST Data Services version : 2.0.8.163.10.40
Oracle REST Data Services server info: Apache Tomcat/7.0.55

Jul 21, 2016 9:34:54 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_old has finished in 62,251 ms
Jul 21, 2016 9:34:54 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/i
Jul 21, 2016 9:34:54 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/i has finished in 27 ms
Jul 21, 2016 9:34:54 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 21, 2016 9:34:54 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 137431 ms

Tomcat is now fully running.
And it took Tomcat approximately 3 minutes to start up completely.


4) 9 minutes later, Tomcat shuts down again :

Jul 21, 2016 9:43:52 PM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port.
Stopping the Server instance.
Jul 21, 2016 9:43:52 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jul 21, 2016 9:43:52 PM org.apache.catalina.core.StandardService
stopInternal
INFO: Stopping service Catalina
Jul 21, 2016 9:43:52 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
SEVERE: The web application [/apex_bkp] registered the JDBC driver
[oracle.jdbc.OracleDriver] but failed to unregister it when the web
application was stopped. To prevent a memory leak, the JDBC Driver has been
forcibly unregistered.
Jul 21, 2016 9:43:52 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jul 21, 2016 9:43:52 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]

Tomcat is now stopped.

5) new startup 6 minutes later :

Jul 21, 2016 9:49:54 PM 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:
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Jul 21, 2016 9:49:54 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 21, 2016 9:49:55 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 636 ms
Jul 21, 2016 9:49:55 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jul 21, 2016 9:49:55 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
Jul 21, 2016 9:49:55 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
/data1/app/apache-tomcat-7.0.55/webapps/apex.war
Jul 21, 2016 9:49:58 PM
oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder:
/data1/app/apache-tomcat-7.0.55/webapps/apex/apex
Default Database connection not configured properly
Jul 21, 2016 9:50:59 PM oracle.dbtools.rt.web.SCListener
contextInitialized
INFO: Oracle REST Data Services initialized
Oracle REST Data Services version : 2.0.8.163.10.40
Oracle REST Data Services server info: Apache Tomcat/7.0.55

Jul 21, 2016 9:51:17 PM org.apache.catalina.util.SessionIdGenerator
createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using
[SHA1PRNG] took [17,359] milliseconds.
Jul 21, 2016 9:51:17 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
/data1/app/apache-tomcat-7.0.55/webapps/apex.war has finished in 81,839 ms
Jul 21, 2016 9:51:17 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/ROOT
Jul 21, 2016 9:51:17 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/ROOT has finished in 36 ms
Jul 21, 2016 9:51:17 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_bkp
Jul 21, 2016 9:51:18 PM
oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder:
/data1/app/apache-tomcat-7.0.55/webapps/apex/apex_bkp
Jul 21, 2016 9:51:19 PM oracle.dbtools.rt.web.SCListener
contextInitialized
INFO: Oracle REST Data Services initialized
Oracle REST Data Services version : 2.0.8.163.10.40
Oracle REST Data Services server info: Apache Tomcat/7.0.55

Jul 21, 2016 9:51:19 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_bkp has finished in 2,136 ms
Jul 21, 2016 9:51:19 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_old
Jul 21, 2016 9:51:20 PM
oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder:
/data1/app/apache-tomcat-7.0.55/webapps/apex_old
Default Database connection not configured properly
Jul 21, 2016 9:52:21 PM oracle.dbtools.rt.web.SCListener
contextInitialized
INFO: Oracle REST Data Services initialized
Oracle REST Data Services version : 2.0.8.163.10.40
Oracle REST Data Services server info: Apache Tomcat/7.0.55

Jul 21, 2016 9:52:21 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/apex_old has finished in 62,238 ms
Jul 21, 2016 9:52:21 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/data1/app/apache-tomcat-7.0.55/webapps/i
Jul 21, 2016 9:52:21 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/data1/app/apache-tomcat-7.0.55/webapps/i has finished in 27 ms
Jul 21, 2016 9:52:21 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 21, 2016 9:52:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 146344 ms


Tomcat is running again, and it took approximately 2 minutes for this startup.


In that logfile, there are more startup/shutdown sequences than shown above 
here.
There are no errors visible in that logfile, from the Tomcat point of view, apart from the database connection.

But,
it is quite difficult to help you determining why you cannot get to the Tomcat homepage, because we have no idea *when* you actually trid to access that page, nor from where. And we also do not know if you were trying to access it while Tomcat was running, or while Tomcat was shut down (or incompletely started).

So, could you, exactly in this sequence :

- close your browser
- stop Tomcat
- wait 1 minute
- then (important) : delete all the Tomcat logfiles
- then start Tomcat and note the time at which you do that
- then, *wait 3 minutes*

Then open your browser, try to access the Tomcat homepage, and note
  - the complete URL which you use to do that
  - the exact time at which you do that
  - the exact error which you get in the browser

- then shutdown Tomcat and note when you did this
- wait a couple of minutes
- then edit the new Tomcat logfile, and copy/paste the whole logfile *here* (and *not* at the top of your email) and also give us the other information requested above, below the logfile content.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to