zoukankan      html  css  js  c++  java
  • 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
    下即可

  • 相关阅读:
    poj 3693 Maximum repetition substring 重复次数最多的连续子串
    hdu 3518 Boring counting 后缀数组 height分组
    Codeforces 920G List Of Integers 二分 + 容斥
    Codeforces 920E Connected Components? 补图连通块个数
    Codeforces 920D Tanks
    LeetCode Weekly Contest 70 A B C D
    Educational Codeforces Round 37 A B C D E F
    检查站点SSL证书配置是否正确
    nginx rewrite之后post参数丢失问题
    Linux中如何避免buffers/cached占用过多内存
  • 原文地址:https://www.cnblogs.com/myparamita/p/1377295.html
Copyright © 2011-2022 走看看