tomcat使用点滴


 
lwl@lwl:~/soft/apache-tomcat-7.0.0/bin$ ./startup.sh 
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
=>某个(些)文件缺执行权限的原因,把bin下的文件都+x就可以启动tomcat了了
+++++++++++++++++++++++
2010-7-6 20:29:50 org.apache.catalina.startup.Catalina start
信息: Server startup in 1900 ms
2010-7-6 20:29:50 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: create[localhost:8005]:
java.net.BindException: Cannot assign requested address
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:359)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:654)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:608)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
2010-7-6 20:29:50 org.apache.coyote.http11.AbstractHttp11Protocol pause
信息: Pausing Coyote HTTP/1.1 on http-8090
----------
查看/etc/network/interfaces,原来之前被改为:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
#auto eth0
#iface eth0 inet dhcp
#address 192.168.33.3
#gateway 192.168.33.1
#netmask 255.255.255.0
# The primary network interface
 auto eth0
 iface eth0 inet dhcp
----------------
恢复/etc/network/interfaces为原来文件
root@lwl:/etc/network# route add -net 127.0.0.0 gw 127.0.0.1 netmask 255.0.0.0 dev lo
SIOCADDRT: No such process
root@lwl:/etc/network# ifconfig lo 127.0.0.1
root@lwl:/etc/network# route add -net 127.0.0.0 gw 127.0.0.1 netmask 255.0.0.0 dev lo
之后就可以正常启动tomcat了
可用telnet ip port检测连接
++++++++++++++++++++++++++++
An error occurred at line: 95 in the jsp file: /results.jsp
IKAnalyzer cannot be resolved to a type

IKAnalyzer3.2.3Stable.jar复制到luceneweb/WEB-INF/lib,重启tomcat后即可
+++++++++++++++++++++++++++
luming@Xluke:~/luowl/lucene-3.0.1/demo-jar$ ls
lucene-demos-my.jar  META-INF  org
luming@Xluke:~/luowl/lucene-3.0.1/demo-jar$ jar cf lucene-demos-my.jar  META-INF  org
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值