烦人的tomcat

final :一个在运行时被初始化的值,而你不希望他被改变。


tomcat出现了各种问题;端口,127.0.0.1不能被连接......


tomcat7.0.82端口82


Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).




原因:端口8005, 8080, 8009被占用了。可能是在打开Tomcat的情况下关闭了Eclipse,或是Eclipse非正常关闭,导致先前的Tomcat没有被关闭,端口占用。或是其他软件占用了tomcat的端口号。


Connection to 127.0.0.1:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.


public:
    template<typename T>
    static List<T> asList(T a);
共出现了三个T,第一个是用来声明类型参数的,后面的两个才是泛型的实现


在用Tomcat与jetty测试JFinal的时候都出现了这种情况。
Connection to 127.0.0.1:5432 refused.Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.


Jetty的HelloWorld虽然出现错误,  但是在http://localhost/hello上仍能显示结果。


Tomcat的是在https://git.oschina.net/dongcb678/JfinalUIB导入的blog。还没弄懂,正在看代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值