为什么是eclipse3.1下发布不了我的web工程?

ll_feng ll_feng 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我在eclipse3.1中创建的web project 发布不了。很是郁闷。向各位请教!
我的配置是:
eclipse-SDK-3.1-win32.zip
lomboz-emf-gef-jem-3.1RC2.zip
tomcatPluginV31beta.zip
wtp-sdk-0.7.zip
tomcat5.0.28
jdk1.4.1

配置一切正常。tomcat也能在eclipse中启动。
1、File->New->Project===Web->Dynamic Web Project 创建一个叫myweb的工程
2、在myweb->JavaSource中创建一个test.printString.java:
package test;
public class printString {
public static String printStr(){
return "Hello World!";
}
}

3、在 myweb->WebContent 中创建一个test.jsp:
<%@page import="test.*"%>
<h3><%=printString.printStr()%></h3>

4、保存后执行run as->run on server
通赤以上步骤,问题出现了
一开始则出现警告框"Starting server":

Port 8080,8005,8009 required by Tomcat v5.0 Server @ localhost is 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).

没办法,只好修改tomcat安装目录下的server.xml文件中的这几个端口。再次运行则出现"无法显示网页"的页面。web Broser的地址栏中显示的地址是“http://localhost:8081/myweb/test.jsp”

我的问题是:
1、关于端口的报错是怎么回事。我并没有运行其它程序呀
2、为什么修改端口后仍不能在eclipse中浏览我的工程

愿各位有经验的同志们多多指教。谢谢!!
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
ll_feng
Eclipse 58,440 成员 49,457 内容