Web container troubleshooting tips
Note: 這個主題參照一或多個應用程式伺服器日誌檔。
此外,在分散式和 IBM® i 系統上,另外也建議您可以配置伺服器來使用「高效能可延伸記載 (HPEL)」日誌和追蹤基礎架構,而不使用 SystemOut.log、SystemErr.log, trace.log 及 activity.log 檔案。HPEL 與原生 z/OS® 記載機能也可以一起使用。如果您使用 HPEL,則可以從伺服器設定檔 bin 目錄,利用 LogViewer 指令行工具來存取您所有的日誌和追蹤資訊。請參閱有關利用 HPEL 疑難排解應用程式的資訊,以取得更多使用 HPEL 的相關資訊。
If you are having problems starting a web module, or accessing
resources within a particular web module:
View the JVM logs and process logs for the application server which hosts the problem web modules, and look for messages in the JVM output file which indicate that the web module has started successfully. You should see messages similar to the following:
WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002 WebContainer A SRVE0169I: Loading Web Module: [module_name] ApplicationMg A WSVR0221I: Application started: [application_name] HttpTransport A SRVE0171I: Transport http is listening on port [port_number] [server_name] open for e-business in [profile_root]/logs/[server_name]/SystemOut.log
View the JVM logs and process logs for the application server which hosts the problem web modules, and look for messages in the JVM output file which indicate that the web module has started successfully. You should see messages similar to the following:
WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002 WebContainer A SRVE0169I: Loading Web Module: [module_name] ApplicationMg A WSVR0221I: Application started: [application_name] HttpTransport A SRVE0171I: Transport http is listening on port [port_number] [server_name] open for e-business in profile_root/logs/[server_name]/SystemOut.log
View the logs for the application server which hosts the problem web modules, and look for messages in the JVM output file which indicate that the web module has started successfully. You should see messages similar to the following:
WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002 WebContainer A SRVE0169I: Loading Web Module: [module_name] ApplicationMg A WSVR0221I: Application started: [application_name] HttpTransport A SRVE0171I: Transport http is listening on port [port_number] [server_name] open for e-business in [profile_root]/logs/[server_name]/SystemOut.log
- For specific problems that can cause servlets, HTML files, and JavaServer Pages (JSP) files not to be served, refer to the topic, web resource (JSP file, servlet, HTML file, image) does not display .
For a detailed trace of the run-time behavior of the web container, enable trace for the component com.ibm.ws.webcontainer using com.ibm.ws.webcontainer*=all.
If application server related calls fail during Servlet.init method,
you can either:
- Initialize the servlet manually by making a single request to that servlet in your browser when the server is ready for e-business instead of starting the servlet upon startup or
- You can choose not to make application server related calls in the servlet's init method.
If none of these steps fixes your problem, check to see if the problem has been identified and documented by looking at the available online support (hints and tips, tech notes, and fixes). If you do not find your problem listed there contact IBM support.
For current information available from IBM Support on known problems and their resolution, refer to the IBM Support page.
IBM Support has documents that can save you time gathering information needed to resolve this problem. Before opening a PMR, see the IBM Support page.