java.net.BindException: Cannot assign requested address: JVM_Bind:8080
我在server.xml中配置了连接池,在tomcat 4.1下正常启动,在5.0下却报上面的错误。即使把端口8080改成其他(9511)也会报同样的错误JVM_Bind:9511。
环境变量配置没问题,我JDK装的是1.5的。机器上装的是Oracle客户端。
请各位赐教! 谢谢!
server.xml文件如下:
<Server port= "8005 " shutdown= "SHUTDOWN " debug= "0 ">
<!-- Uncomment these entries to enable JMX MBeans support -->
<Listener className= "org.apache.catalina.mbeans.ServerLifecycleListener "
debug= "0 "/>
<Listener className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener "
debug= "0 "/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name= "simpleValue " type= "java.lang.Integer " value= "30 "/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name= "UserDatabase " auth= "Container "
type= "org.apache.catalina.UserDatabase "
description= "User database that can be updated and saved ">
</Resource>
<ResourceParams name= "UserDatabase ">
<parameter>
<name> factory </name>
<value> org.apache.catalina.users.MemoryUserDatabaseFactory </value>
</parameter>
<parameter>
<name> pathname </name>
<value> conf/tomcat-users.xml </value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<DefaulstContext reloadable= "true " />
<!-- Tomcat Root Context -->
<Service name= "Catalina ">
<Connector port= "8080 " acceptCount= "100 " connectionTimeout= "20000 " disableUploadTimeout= "true " address= "192.16.1.14 " redirectPort= "1521 ">
</Connector>
<Connector port= "8009 " protocol= "AJP/1.3 " protocolHandlerClassName= "org.apache.jk.server.JkCoyoteHandler " redirectPort= "1521 ">
</Connector>
<Engine defaultHost= "localhost " name= "Catalina ">
<Host appBase= "webapps " name= "localhost ">
<Logger className= "org.apache.catalina.logger.FileLogger " prefix= "localhost_log. " suffix= ".txt " timestamp= "true "/>
<!-- Tomcat Examples Context -->