【问题标题】:TomEE and IntellijTomEE 和 Intellij
【发布时间】:2022-08-09 18:53:25
【问题描述】:

我关注了这个tutorial,但最后我得到了一个 404 Not Found。 http://localhost:8080/TomEE_war_exploded/

The requested resource [/TomEE_war_exploded/] is not available

在 Intellij 中,我看不到错误。 Apache Tomee 在 ~/software/apache-tomee-plume-8.0.11 的 windows 下运行,代码在 ~/playground/TomEE

不幸的是,我无法理解如何将 war 文件复制到 ~/software/apache-tomee-plume-8.0.11/webapps 目录或存在配置错误的位置。

从日志文件中,我不确定部署是否正确:

30-May-2022 16:49:53.486 WARNING [http-nio-8080-exec-4] org.apache.batchee.container.services.ServicesManager.init You didn\'t specify org.apache.batchee.jmx.application and JMX is already registered, skipping
30-May-2022 16:49:53.486 INFO [http-nio-8080-exec-4] org.apache.openejb.assembler.classic.Assembler.createApplication Deployed Application(path=/home/maggus/playground/TomEE/target/TomEE-1.0-SNAPSHOT)
30-May-2022 16:49:53.664 INFO [http-nio-8080-exec-4] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[2022-05-30 04:49:53,804] Artifact TomEE:war exploded: Artifact is deployed successfully
[2022-05-30 04:49:53,804] Artifact TomEE:war exploded: Deploy took 823 milliseconds

有人看到错误吗?

谢谢, 马库斯

    标签: intellij-idea apache-tomee tomee-8


    【解决方案1】:

    我今天遇到了一些类似的问题,过了一段时间我发现它没有在以下部署应用程序上下文即在下配置部署制表符运行/调试配置.

    /TomEE_war_exploded
    

    如果您尝试在 http://localhost:8080/TomEE_war_exploded/ 访问,它会给出 404。

    相反,(在我的情况下)它可以通过 http://localhost:8080/TomEE-1.0-SNAPSHOT/ 访问

    在哪里1.0-快照是 pom.xml 中定义的版本号。

    现在为了找到它部署的确切路径,你需要去Tomcat Web 应用程序管理器在以下地址:

    http://localhost:8080/manager/html

    代替8080TomEE 在您的机器上运行的端口号。

    默认用户和密码是看书.

    查看路径下,您会找到它。只需点击它,它就可以访问。

    我希望它有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-12
      • 1970-01-01
      相关资源
      最近更新 更多