tomcat欢迎页面打不开

来源:互联网 发布:java中迭代器的作用 编辑:程序博客网 时间:2024/05/14 15:55

<!--@page { margin: 0.79in }P { margin-bottom: 0.08in }-->

OS:Ubuntu9.10

Tomcat:v6.0.20

现象:tomcat启动后,那个http://localhost:8080的欢迎页面打不开,页面显示“HTTPStatus

404”

尝试1可能8080端口被占用了。所以将server.xml中的端口改为8888,但是问题依旧。

尝试2Termial中输入“sudoupdate-alternatives --config javac”后,

输出如下:

 

There are 1 choices for thealternative javac (providing /usr/bin/javac).

Selection Path Priority Status

----------------------------------------------------------------------------------

0 /usr/lib/jvm/java-6-sun/bin/javac 63 auto mode

* 1 /usr/lib/jvm/java-6-sun/bin/javac 63 manual mode

Press enter tokeep the current choice[*], or type selection number: 

 

不知道“automode”和“manualmode”是什么意思!但改为“automode”后,问题就解决了。

再次输入“sudoupdate-alternatives --config javac”后,

输出如下:

Thereis only one alternative in link group javac:/usr/lib/jvm/java-6-sun/bin/javac

Nothingto configure.