eclipse,myeclipse,Tomcat进行JSP开发配置

1:安装JDK
2:安装eclipse
3:安装myeclipse,完成后将其copy到eclipse目录下,作为插件安装
4:下载tomcat压缩包,解压至一目录
5:在eclipse中配置tomcat:
    窗口/首选项/myeclipse/tomcat/tomcat 6.x
    设置目录为tomcat解压缩目录
    jdk为jdk所在目录(不是jre)
    launch改为run mode
6:在*\tomcat-6.0.14\conf下找到server.xml文件
    设置端口为大于1024的一个值
        <Connector port="1221" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />    
        <Connector executor="tomcatThreadPool"
               port="1221" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />    

错误处理:

1:若启动tomcat时出现
严重: Error initializing endpoint
严重: Error starting endpoint
严重: Catalina.start: 
此时说明所选端口已被占用,可在cmd中用netstat查看,按步骤6设置即可解决

2:若在浏览器中查看文件时出现:
http status 404 错误
则说明未找到文件,注意文件放置位置是否正确,或者链接地址有误

3:若在浏览器中查看文件时出现:
http status 500 错误
The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application
此为未配置struts
在项目上右键-myeclipse-add struts capabilities即可
4:若为
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
则为jstl未配置
从网站上下载jakarta-taglibs-standard-1.1.2.zip,解压后放在......\tomcat-6.0.14\webapps\工程名\WEB-INF
下即可

转载于:https://www.cnblogs.com/myparamita/archive/2009/01/16/1377295.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值