在 Eclipse 中部署 JSP 应用程序时遇到问题

发布于 2024-10-04 15:29:21 字数 840 浏览 0 评论 0原文

我在 Eclipse 中部署动态 Web 应用程序时遇到问题。我的应用程序由 JSP 组成,使用 Spring/Hibernate 框架,并具有 MySQL 数据库后端。当我部署应用程序时,出现错误:

HTTP Status 404 - 

type Status report

message 

description The requested resource () is not available.

Apache Tomcat/6.0.29

在控制台中,当我清理项目时,我收到以下语句:

log4j:ERROR LogMananger.repositorySelector 为 null 可能是由于 使用 NOPLoggerRepository 重新加载类时出错。 log4j:警告否 可以为记录器找到附加程序 (org.springframework.web.servlet.DispatcherServlet)。 log4j:请警告 正确初始化log4j系统。

当我部署项目时,我在控制台中收到以下错误:

log4j:WARN 找不到记录器的附加程序 (org.springframework.web.servlet.DispatcherServlet)。 log4j:请警告 正确初始化log4j系统。

我不确定为什么会收到上述语句,因为我的 log4j.xml 文件位于 Eclipse 中 Web 应用程序的根项目文件夹中。如果这不是正确的位置,那么它应该在哪里?

我正在使用最新版本的 Eclipse (Helios),并使用 Tomcat6 作为我的 Web 服务器。谁能看出问题是什么吗?

I am having problems deploying a dynamic web application in Eclipse. My application is made up of JSPs, uses Spring/Hibernate frameworks, and has a MySQL database backend. When I deploy the application, I get the error:

HTTP Status 404 - 

type Status report

message 

description The requested resource () is not available.

Apache Tomcat/6.0.29

In the console, I am getting the following statements when I clean the project:

log4j:ERROR LogMananger.repositorySelector was null likely due to
error in class reloading, using NOPLoggerRepository. log4j:WARN No
appenders could be found for logger
(org.springframework.web.servlet.DispatcherServlet). log4j:WARN Please
initialize the log4j system properly.

When I deploy the project, I get the following error in the console:

log4j:WARN No appenders could be found for logger
(org.springframework.web.servlet.DispatcherServlet). log4j:WARN Please
initialize the log4j system properly.

I am not sure why I am getting the above statements, as I have my log4j.xml file in the root project folder of my web application in Eclipse. If this is not the correct location, then where should it be?

I am using the latest version of Eclipse (Helios), and I'm using Tomcat6 as my web server. Can anyone see what the problem is?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み青杉依旧 2024-10-11 15:29:21

看来您的应用程序尚未部署。
您能打开您的应用程序的索引页吗?
您如何进行部署?

路易斯

Seems to be that your application is not deployed.
Can you open the index page of your application?
How are you making the deployment?

Luis

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文