2017-09-28 122 views
0

以下是啓動日誌消息:的Apache Tomcat掛後「初始化啓動......」

Check if Algo ant logger exists 
Found Algo logger, starting with Algo ant logging 
Buildfile: $ALGOWEBAPPS_HOME/bin/algowebapps-control.xml 
Deleting:$ALGO_TOP/algowebapps/webapps/ 
     acm.war,acm470help.war,awl.war,dmcfg.war,Navigator.war,mdc.war,Visualizer.war 
Copying 7 file to $ALGO_TOP/algowebapps/webapps 
Deleting directory $ALGO_TOP/algowebapps/webapps/awl 
Copying 1 file to $ALGO_TOP/algowebapps/webapps/ROOT 
Sep 26, 2017 10:18:25 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... 
Sep 26, 2017 10:18:25 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-12001 
Sep 26, 2017 10:18:26 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8888 
Sep 26, 2017 10:18:26 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1145 ms 
Sep 26, 2017 10:18:26 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Sep 26, 2017 10:18:26 PM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32 
Sep 26, 2017 10:18:26 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive Navigator.war 
Load details in $ALGO_TOP/algowebapps/webapps/Navigator//MetaTables.xml 
     Loaded 11 tables & views 
Load details of db jdbc:oracle:thin:@UAT4 
Load details of db jdbc:oracle:thin:@UAT4 
Sep 26, 2017 10:18:32 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive mdc.war 
Sep 26, 2017 10:18:32 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive acm.war 
INFO: GridServlet - ==> initializing GridServlet processing 
INFO: TreeServlet - ==> initializing TreeServlet processing 
==> initializing LoaderServlet 
INFO: AjaxStoreServlet - ==> initializing AjaxStoreServlet processing 
INFO: ConfigStoreServlet - ==> initializing ConfigStoreServlet processing 
INFO: ActionDataServlet - ==> initializing Ricos HTTP Servlet Executer 
INFO: ExecuterServlet2 - ==> initializing Ricos HTTP Servlet Executer 
INFO: ValidationServlet - ==> initializing ValidationServlet processing 
Sep 26, 2017 10:18:32 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive acm470help.war 
Sep 26, 2017 10:18:32 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive awl.war 
Sep 26, 2017 10:18:32 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive dmcfg.war 
2017-09-26 22:18:33,525 DEBUG [dmcfg] Installing into composite=com.algorithmics.log.provider.DailyLogFileProvider com.algorithmics.log.provider.CompositeLogProvider 
2017-09-26 22:18:33,533 DEBUG [dmcfg] File path 'log' is relative - prepending ALGO_TOP=/opt/bns/alreu4/Algo/ALGO_TOP com.algorithmics.log.provider.DailyLogFileProvider 
2017-09-26 22:18:33,534 DEBUG [dmcfg] Opening file '$ALGO_TOP/log/dmcfg-default-sbuvvrwm471-2017-09-26.log' om.algorithmics.log.provider.DailyLogFileProvider 
2017-09-26 22:18:33,541 DEBUG [dmcfg] Installing into composite=com.algorithmics.log.provider.ConsoleLogProvider com.algorithmics.log.provider.CompositeLogProvider 
Sep 26, 2017 10:18:36 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive Visualizer.war 
Initializing started... 

<<<It hangs here indefinitely>>> 

下面是什麼,預計在正常啓動遵循:

[[ 
Initializing finished... 
Sep 26, 2017 10:37:48 PM org.apache.catalina.startup.HostConfig  deployDirectory 
INFO: Deploying web application directory ROOT 
Sep 26, 2017 10:37:48 PM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on http-12001 
Sep 26, 2017 10:37:48 PM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on http-8443 
Sep 26, 2017 10:37:48 PM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 7637 ms 
]] 

正在下載的Tomcat源代碼並啓用Tomcat調試模式來唯一選擇識別此類問題的根本原因?但我無法訪問在Tomcat中運行的那些應用程序的源代碼(我可以在War文件中反編譯jar文件,雖然它很乏味)。或者有更好的方法來找出原因?

回答

1

這似乎是部署應用程序啓動時的問題。您將不得不爲應用程序啓用調試日誌記錄,並查看根本原因。

1

您也可以檢查webapp的context.xml並查看它是否連接到外部資源(例如數據庫)。日誌消息明確提到了Oracle jdbc驅動程序,它可能在嘗試創建數據庫連接池時掛起。

0

現在通過NFS服務器升級到V4可以緩解問題。

相關問題