HTTP Status 500 Unable to compile class for JSP

HTTP Status 500 Unable to compile class for JSP

安装tomcat6.0.16和apache2.2.6,以及jk1.2.6,安装配置都成功,tomcat自带的index.jsp能正常显示,但是访问一下复杂一些的jsp就报错,错误如下:

HTTP Status 500 - type Exception report
The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:599)        
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)      
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
java.lang.ClassNotFoundException: org.apache.jsp.cwbbs.setup.setup_jsp      
java.net.URLClassLoader$1.run(URLClassLoader.java:200)        
java.security.AccessController.doPrivileged(Native Method)        
java.net.URLClassLoader.findClass(URLClassLoader.java:18        
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)        
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)        
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)        
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)        
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


baidu和google了2天多,没能看到解决办法。很多人的答复都是说去修改jsp文件,或者看看是有class文件。但是同样的程序在另外一台机器却能正常访问(环境为winxp+jdk15.+tomcat5.5)。

下面说说我的安装过程

1.安装JDK

装jdk jdk-6u6-linux-i586.bin   
#chmod u+x jdk-6u6-linux-i586.bin
#./jdk-6u6-linux-i586.bin   
#vi /etc/profile 加入以下几行
export JAVA_HOME=/usr/java/jdk1.6.0.06
export CLASSPATH=$JAVA_HOME/lib/dt.jarJAVA_HOME/lib/tools.jar
export PATH=$PATHJAVA_HOME/bin
export CATALINA_HOME=/usr/local/tomcat  
保存退出。
#source /etc/profile
java –version 能正确显示java版本信息

2.安装apache
tar-zxvf httpd*
cd httpd*
./configure --prefix=/usr/local/apache --enable-dav --enable-dav-jf --enable-module=so (加--enable-dav --enable-dav-jf参数,是为了稍后安装subversion )
make && make install
/usr/local/apache/bin/apachectl start   
用浏览器访问:http://localhost  显示It Works

3.安装tomcat
tar -zxvf apache-tomcat*
cp -r apache-tomcat-6.0.16 /usr/local/tomcat
/usr/local/tomcat/bin/startup.sh 启动tomcat
用浏览器访问:http://localhost:8080,显示tomcat信息

4.编译生成mod_jk
tar -zxvf tomcat-connectors-1.2.26-src.tar.gz
cd tomcat-connectors-1.2.26-src/native
./configure --with-apxs=/usr/local/apache/bin/apxs  --with-tomcat=/usr/local/tomcat --with-java-home=/usr/java/jdk1.6.0_06 --with-jni
make && make install
ll /usr/local/apache/modules/mod_jk.so 看到mod_jk.so已经生成

5.配置

在/usr/local/apache/conf/下面建立两个配置文件mod_jk.conf和workers.properties。

# vi mod_jk.conf

添加以下内容:
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info  
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /servlet/* worker1
JkMount /*.jsp worker1

# vi workers.properties
添加以下内容:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

再配置apache的httpd.conf,作以下修改:
在DirectoryIndex中添加 index.jsp
DocumentRoot "/opt/htdocs"
<Directory "/opt/htdocs">
    Options Includes FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
    XBitHack on
</Directory>
<Directory "/opt/htdocs/WEB-INF">     
    Order deny,allow
    Deny from all
</Directory>

LoadModule jk_module modules/mod_jk.so
Include /usr/local/apache/conf/mod_jk.conf

最后编辑Tomcat的配置文件server.xml,在HOST段中加入:
<Context path="" docBase="/opt/htdocs" debug="0" reloadable="true" crossC/>

重启apache和tomcat


把tomcat的index.jsp复制到/opt/htdocs  能正常访问

在网上下载了一个论坛程序,放到/opt/htdocs下,路径为/opt/htdocs/cwbbs

执行改论坛的安装界面http://localhost/cwbbs/setup/index.jsp  就报错了。错误信息见上


下面贴出错误日志
/usr/local/apache/logs/error_log
由于字数限制,log就不贴那么多了。只贴后面一部分
[Thu Aug 14 15:42:02 2008] [error] [client 61.62.68.181] Invalid URI in request n\xccs\xda\xcd\x80d\xe2\xdb\xe5\x03VO\x12R\xcf\xcbG2jt\x9d\xfc!\xed\bKkM\xb0 \x99\x807\xab\xb5\xa2\xe20\x12\x1b\x14<h
[Thu Aug 14 15:42:29 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:42:53 2008] [error] [client 123.112.12.198] Invalid URI in request -\xac\xdf\xb1'LS`>\xc1\xc0rQ#\xccY\x96\x9c\xb6\xbd\x19\xda-\x1fVnY\x06\xa7\xdaT\x9fwX\xca\x04\xc76\xa3\xc6\xdc\xcdc\xbb\x94\rx\x92\x1c\xe7'\x165'G_\x98N\xa2\x0eB\x82\xf2+\xc9\xd5}\xc1\xa8\xa6x\x83\x06O\xddd\xa7\xe2\x0f\x03^\xe7\xc2\xb0\xe3
[Thu Aug 14 15:44:57 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 15:45:11 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 15:45:27 2008] [error] [client 61.62.68.181] Invalid URI in request \xc3\xeaN}4\t\x1eK.\x87\x90\x0f\xdee\xe0c\xc4\\ko\x94w\xb6\x88\x8e\x83\x03\x13l\x17m\xd0\xc3D\xd2#\x9e\x95S\xfd\x8e,\xf7Xd\xc5/g\xdd\xc1\xd8\xb1\xee]7\xb4\xf1\x1a\xfe~0)\xe5%\x07\xbb\xfc~\xb4|!\x9f\x01\xd5\xc6\xec\x1cS\xbb\x95\xf2J\xc0\xa1\xc8\xa8\xa5t\xbd\xc8\xdb\x15\xed\xd2\xe9aR\xb9~\xb42C\xa2A\xe4g\xc4j\xf6\xcf\xfc\xbeJ\x1ef\xb4\x0f\x1e\xbc\xec\xef\x1b*\xb9\x8a\x8a]\xdd$\xef\xde\x93\x9a\xfd\x9e\xd3\x9b\xfe\xd2\xd1\x14u
[Thu Aug 14 15:45:43 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 15:45:48 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:47:33 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:48:04 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:48:16 2008] [error] [client 61.62.68.181] Invalid URI in request n\x14\xc8!n\x94\x18\x99\xeaci\xe11\xb2\xf3\x8952\x06\xb9\xf5\x13\x89\xa3\xa3\x8c\xe5\xf1C\xed\x10\xb1\x9d\xad,GC4\xe4q\x9cNCO\xc1D\xaa\x8eU\xfe\xe2\xbfR\x9el\x91\xd65j3*E\xc8\x19n<\xa7?\x1f\xa5z=\x0ez\xb9\x93\x14\x0c\x82@_/\xb6$\xd4\xad\x14\xc7\xcf\x9d\xef\x887\x11\x96,\xfd\x8c\x05\x9a\x8e\x8b9\xad\x899\x8c\xdb\xcbW\xce\x85\xbb\xf9\xce\x0e\xc50p\x9a
[Thu Aug 14 15:49:16 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 15:49:35 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 15:50:12 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 15:50:22 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:51:39 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:52:00 2008] [error] [client 61.62.68.181] Invalid URI in request \xd6\x8c\x04\xd9\xe0\xe6\xd1\x90\x18:\x92\xd4#\xc4\xd3q\xfb\xe4\xb1<\xa9)\x88\x85\x19\x86\xc4d\x83O_G\x81\xfb*\x11\xf8\x1d\x91\xba\x9b\x04\xbch\xa8V\x85\xc9t<\xda\xc4\xa1\xf2\xbe\xb9\xa1EOR\xd2\xab\x9buW\xaaq\x04S\v\xa2?\x0fD6\x97(DE\xee\x89\x19CV\xec\xd0U\xdfG,"\x9a\xb5\xb6\x14X\x84\x90\xf3\xa6\xa3^G\xae\xc8|\x8bK\xf2:\xdb\xff+\xcc\xac8\xbc\xaa\xa5\xd2\x9d6\xb1\xde/\x9fR\xa2-\x068\xe0\xe0\xe0\x12\\\x93\x9c\xa4\x98G\x85\x19\xe2\xa8\xe9\x9b\x90?{"\x8b\xe8\xf6\x89
[Thu Aug 14 15:52:24 2008] [error] [client 61.62.68.181] Invalid URI in request \xb2\xa3\x80\x1aC\xe7\xfb\x1d\x87$\xbbo\x8b\x14\x8b\x83\x82\xb1\x07`w\xd5]\xfa\xd0\x88\\\x19s\xb0\xf3\xd0.AS#\x98\xcf\x03C\x9f\xc68\xa9\xe6\xb6\xd7\xaa\xb8,\x82#\xbcM\x9d\xd9\xbe\xe5\xdf\x0f\xf4 S\x83\xd32E\xbdS\xfe
[Thu Aug 14 15:52:55 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:53:27 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:53:43 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 15:56:17 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 15:57:33 2008] [error] [client 58.50.151.142] Invalid URI in request \x13BitTorrent protocolex
[Thu Aug 14 16:00:15 2008] [error] [client 61.62.68.181] request failed: error reading the headers
[Thu Aug 14 16:00:56 2008] [error] [client 61.62.68.181] request failed: error reading the headers


/usr/local/apache/logs/mod_jk.log

[Thu Aug 14 15:15:35 2008]worker1 localhost.localdomain 0.000713
[Thu Aug 14 15:18:18 2008]worker1 localhost.localdomain 0.000645
[Thu Aug 14 15:21:28 2008]worker1 localhost.localdomain 0.001531
[Thu Aug 14 15:24:31 2008]worker1 localhost.localdomain 0.000690
[Thu Aug 14 15:29:52 2008]worker1 localhost.localdomain 0.000714
[Thu Aug 14 15:30:12 2008]worker1 localhost.localdomain 0.000654
[Thu Aug 14 15:30:31 2008][16678:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri 羼齉疗k鶰L?is invalid. Uri must start with /
[Thu Aug 14 15:34:12 2008][16678:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri * is invalid. Uri must start with /
[Thu Aug 14 15:34:16 2008][16679:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri * is invalid. Uri must start with /
[Thu Aug 14 15:35:19 2008]worker1 localhost.localdomain 0.000737
[Thu Aug 14 15:37:17 2008][16730:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri * is invalid. Uri must start with /
[Thu Aug 14 15:39:28 2008]worker1 localhost.localdomain 0.000704
[Thu Aug 14 15:41:46 2008][16684:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:42:02 2008][16323:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri 檧7?⑩0<h is invalid. Uri must start with /
[Thu Aug 14 15:42:35 2008]worker1 localhost.localdomain 0.000712
[Thu Aug 14 15:42:53 2008][16321:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri x??5'G_楴?B傭+烧}哩??O載р^缏般 is invalid. Uri must start with /
[Thu Aug 14 15:43:04 2008]worker1 localhost.localdomain 0.001891
[Thu Aug 14 15:44:57 2008][16323:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:45:11 2008][16324:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (60: Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:45:27 2008][16767:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri K.噽辝郼腬ko攚秷巸lm忻D?is invalid. Uri must start with /
[Thu Aug 14 15:45:43 2008][16385:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:48:16 2008][16324:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri 侤_/?原窍濓??龑殠?瓑9屰薟螀基??p?is invalid. Uri must start with /
[Thu Aug 14 15:49:16 2008][16385:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:49:35 2008][16681:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:50:12 2008][16326:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:51:19 2008]worker1 localhost.localdomain 0.000710
[Thu Aug 14 15:52:00 2008][16681:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri ?is invalid. Uri must start with /
[Thu Aug 14 15:52:24 2008][16326:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri S冇2E絊?is invalid. Uri must start with /
[Thu Aug 14 15:53:43 2008][16323:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:57:33 2008][16675:3086501632] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri protocolex is invalid. Uri must start with /
[Thu Aug 14 15:59:08 2008]worker1 localhost.localdomain 0.000724



/usr/local/tomcat/log/catalina.out


2008-8-14 13:20:59 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2008-8-14 13:20:59 org.apache.catalina.connector.MapperListener destroy
警告: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
at org.apache.catalina.connector.Connector.stop(Connector.java:1179)
at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
2008-8-14 13:20:59 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
2008-8-14 13:20:59 org.apache.catalina.connector.Connector stop
严重: Coyote connector has not been started
2008-8-14 14:54:32 org.apache.jasper.compiler.TldLocationsCache processWebDotXml
警告: Internal Error: File /WEB-INF/web.xml not found

我检查了一下/usr/local/tomcat/webapps/*/WEB-INF/web.xml 是存在的



/usr/local/tomcat/log/catalina.2008-8-14.log


2008-8-14 13:20:58 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
2008-8-14 13:20:58 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: /usr/java/jdk1.6.0_06/jre/lib/i386/server:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
2008-8-14 13:20:58 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint
java.net.BindException: Address already in use:8080
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at org.apache.catalina.connector.Connector.initialize(Connector.java:105
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2008-8-14 13:20:58 org.apache.catalina.startup.Catalina load
严重: Catalina.start
LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use:8080
at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2008-8-14 13:20:58 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 484 ms
2008-8-14 13:20:58 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-8-14 13:20:58 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.16
2008-8-14 13:20:58 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.
2008-8-14 13:20:58 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.
2008-8-14 13:20:58 org.apache.coyote.http11.Http11Protocol start
严重: Error starting endpoint
java.net.BindException: Address already in use:8080
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
at org.apache.catalina.connector.Connector.start(Connector.java:1131)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:57
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:28
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-8-14 13:20:58 org.apache.catalina.startup.Catalina start
严重: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.net.BindException: Address already in use:8080
at org.apache.catalina.connector.Connector.start(Connector.java:113
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:57
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:28
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-8-14 13:20:58 org.apache.catalina.startup.Catalina start
信息: Server startup in 508 ms
2008-8-14 13:20:58 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:28
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-8-14 13:20:58 org.apache.coyote.http11.Http11Protocol pause
信息: Pausing Coyote HTTP/1.1 on http-8080
2008-8-14 13:20:58 org.apache.catalina.connector.Connector pause
严重: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:679)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
at org.apache.catalina.connector.Connector.pause(Connector.java:1073)
at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:62
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
2008-8-14 13:20:59 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2008-8-14 13:20:59 org.apache.catalina.connector.MapperListener destroy
警告: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
at org.apache.catalina.connector.Connector.stop(Connector.java:1179)
at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:62
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
2008-8-14 13:20:59 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
2008-8-14 13:20:59 org.apache.catalina.connector.Connector stop
严重: Coyote connector has not been started
2008-8-14 14:54:32 org.apache.jasper.compiler.TldLocationsCache processWebDotXml
警告: Internal Error: File /WEB-INF/web.xml not found


我检查了一下/usr/local/tomcat/webapps/*/WEB-INF/web.xml 是存在的
刚刚发现tomcat日志有这么一段


2008-8-14 8:02:40 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_06/jre/lib/i386/client:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386


是不是系统环境的问题?问题在哪?