搜索引擎项目——jsp框架前后端相连(一 )配置

mac2025-12-20  4

配置环境:tomcat eclipse

tomcat页面:验证成功

安装的是Eclipse IDE for Java EE Developers

两个版本的教程都有看,到后来的创建sever服务是跟着2版本做的

安装eclipse,配置tomcat——作者:绿茶叶使用eclipse开发JavaWeb项目——作者:米粒教育eclipse没有(添加)”Dynamic Web Project”选项的方法——作者:海边的第八只螃蟹(这个是不用重装eclipse,但没有尝试过)

Error

The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports. 端口为-1:server shutdown port没有设置成8005,而是-1StandardServer.await: create[localhost:8020]:Failed to initialize connector [Connector[AJP/1.3-8081]]Several ports (8081, 8020, 8020) required by web Tomcat v8.5 Server at localhost are 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启动报错: StandardServer.await: create[8005]简单解决方案——作者:青龙指引你(进阶版本,以后理解,现在不看也没事)

导入web项目

所有不是在自己电脑上开发的web项目,都需要重新配置一下 ,注意配置jre、jdk、tomcat

选jre的时候,workplace那个应该是可以自动识别你的本地的jre的,所以改选了第三个 如何快速通过eclipse导入web项目及Tomcat 部署步骤【详细教程】——作者: 怂怂呀

编码格式:UTF-8 and GBK

Eclipse修改编码格式

Project facet jst.web.jstl has not been defined. 上面的pority Project facet jst.web.jstl has not been defined.——作者:牧羊仒 <installed facet="me.spring" version="4.1"/>

这个我没找着,就跳过了,也没事。

导入项目其中出现的问题

在eclipse里,src隐藏在resources下面(这个应该影响不大,只是当时疯狂爆错,又不知道错哪,就和样本各种不一样的当做问题找了结局方案) 之前: 之后: Eclipse中去掉javaResources文件夹,只显示src文件夹目录,和myeclipse显示一样——作者:JustinXTT

web项目中jsp文件全有红色叉号 发现是缺少servlet-api.jar add external…>tomcat 下面的lib找servlet-api.jar

Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core" 这个是在result.jsp里的,少了jstl.jar和standard.jar,下载包文件,拷贝到web-inf\lib里,然后右键项目,refresh

查看web项目所使用的servlet版本以及jsp版本号——作者:oille101[应该下载什么版本的jstl包——作者:西门吹牛](https://www.cnblogs.com/gudi/p/6870346.htmlstandard.jar和jstl.jar的下载地址——作者:coderpwh Description Resource Path Location Type Target runtime com.genuitec.runtime.generic.jee60 is not def

Description Resource Path Location Type Target runtime com.genuitec.runtime.generic.jee60 is not def——作者: wuliEcho

到最后就只剩文件夹底下有红叉,其他文件都没有,找错找了很久,走而很多弯路,还配置了maven(此处无关,有空再补),强烈推荐第二种方法! 最全Eclipse中项目上有小红叉,但就是找不到报错文件(总结,持续更新——作者:ispotueclipse项目没错却有红叉(解决方法)——作者:csdn_小东 添加链接描述 Could not publish server configuration for Tomcat v8.5 Server at localhost.

Could not publish server configuration for Tomcat v8.5 Server at localhost.——作者:TK_HST

原始服务器没有找到目标资源的当前表示,或者不愿意公开该目标资源 web中常见错误之404 原始服务器没有找到目标资源的当前表示,或者不愿意公开该目标资源。——作者:qll19970326IDEA Web项目 tomcat成功启动也没有报错 localhost:8080页面为什么不显示?原始服务器没有找到目标资源的当前表示,或者不愿意透露目标资源的存在。——作者:我的咩

(我不是这个问题,我是tomcat sever start的时候看似成功,但其实有问题,改了之后就可以了)

- maven Java web开发常见100个问题之2:使用Eclipse,关闭Tomcat Server,一直在Stopping——作者:/home/liupc maven版本对应jdk版本要求

最新回复(0)