tomcat端口改成80成功启动后改回8080就不行了,这是怎么回事?
=============
怎么可能
你的出错信息是什么?在webapps下tomcat自带的应用都能访问到,我自己建的应用就是不能访问这又是什么问题?
================
理论上来说,肯定是没有问题的。
除非你的项目web.xml配置有问题
=============
怎么可能
你的出错信息是什么?在webapps下tomcat自带的应用都能访问到,我自己建的应用就是不能访问这又是什么问题?
================
理论上来说,肯定是没有问题的。
除非你的项目web.xml配置有问题
你的应用没有部署成功
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
然后我启动tomcat的时候如果有打开其他的网页出现的错误是80端口已被占。
目录结构为WEB-INF/classes
/lib
web.xml
我web.xml的配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>helloword</servlet-name>
<servler-class>helloword</servler-class>
</servlet>
<servlet-mapping>
<servlet-name>helloword</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
</web-app>
哪里有错误吗?
二、oracle的端口用的是8080看看是不是你的oracle占用了!!