【问题标题】:apache friends xampp tomcat - how to add new directory to webapps folderapache Friends xampp tomcat - 如何将新目录添加到 webapps 文件夹
【发布时间】:2012-09-14 15:49:43
【问题描述】:

我是 tomcat 的新手,想创建一个 java webapp。我已经下载并安装了 XAMPP Windows 1.8.0。有一个文件夹 C:\xampp\tomcat\webapps\examples,在其中我有一个文件 test.jsp,当我通过以下 URL 访问它时,它可以工作。

http://localhost/examples/test.jsp

我在 webapps 目录“C:\xampp\tomcat\webapps\myapplication”中创建了另一个文件夹,其中包含相同的文件 test.jsp,但是当我通过以下 URL 访问它时

http://localhost/myapplication/test.jsp

出现以下错误:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4

是否需要进行一些配置才能将新文件夹添加到 tomcat?

【问题讨论】:

  • 您找到解决方案了吗?现在我在这个阶段

标签: apache jsp tomcat web-applications


【解决方案1】:

localhost 是 apache web 服务器的主机,你需要输入这种类型的地址:-

localhost:8080/examples/test.jsp

Apache 在http://localhost/ 上运行 Tomcat 运行在http://localhost:8080/

【讨论】:

    【解决方案2】:

    我也遇到了同样的问题,终于找到了原因

    我之前运行的是 Xampp Apache 和 tomcat。之后我停止了该服务(这么认为,但有些不好)

    但它产生了影响。这就是它无法加载这些的原因。

    我刚刚重新启动了系统。我可以看到 tomcat 管理器页面,一切正常。很简单。

    重新启动!并且只启动tomcat服务

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-20
      • 1970-01-01
      • 2019-08-11
      • 2019-05-13
      • 2013-04-08
      • 2010-10-04
      相关资源
      最近更新 更多