日期:2014-05-17  浏览次数:20775 次

求助:tomcat无法打开欢迎页面
这两天学做javaweb tomcat已经安装好了,但总是打不开欢迎页面,自己总也找不出原因来,实在很着急。希望各位帮助一下,也好趁这国庆节好好的学习web。下面是其环境变量设置:
CATALINA_HOME:D:\tomcat\apache-tomcat-6.0.30
CATALINA_BASE:D:\tomcat\apache-tomcat-6.0.30
TOMCAT_HOME:D:\tomcat\apache-tomcat-6.0.30

CLASSPATH:.:%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%CATALINA_HOME%\lib\servlet-api.jar;

path:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%CATALINA_HOME%\bin

下面是JDK的配置:
JAVA_HOME:D:\jdk

下面是tomcat的启动log:
2012-10-1 19:43:21 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\jdk\bin;D:\tomcat\apache-tomcat-6.0.30\bin
2012-10-1 19:43:21 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-10-1 19:43:21 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 432 ms
2012-10-1 19:43:21 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-10-1 19:43:21 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.30
2012-10-1 19:43:21 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2012-10-1 19:43:21 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2012-10-1 19:43:21 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2012-10-1 19:43:21 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2012-10-1 19:43:21 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2012-10-1 19:43:21 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-10-1 19:43:21 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-10-1 19:43:21 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/23 config=null
2012-10-1 19:43:21 org.apache.catalina.startup.Catalina start
信息: Server startup in 517 ms


------解决方案--------------------
看你了你发的各种信息,你tomcat已经成功启动了,打不开页面是报404错误还是怎么的,说详细点。
------解决方案--------------------
把:TOMCAT_HOME:D:\tomcat\apache-tomcat-6.0.30
改成:CATALINA_HOME:D:\tomcat\apache-tomcat-6.0.30
你试试!!!!!!!!!!!
------解决方案--------------------
你指的是哪个欢迎页面?
------解决方案--------------------
IE访问http://localhost:8080,看一下配置文件,主要是端口设置好没有,默认是8080