【问题标题】:Undeployed application at context path上下文路径中未部署的应用程序
【发布时间】:2011-11-14 23:35:09
【问题描述】:

我在尝试运行我的应用程序时遇到错误,错误如下:

OK - 在上下文路径 /gest_project 就地取消部署的应用程序 部署在 C:\Users......\target\gest_project 部署在 进步... deploy?config=file%3A%2FC%3A%2FUsers%2Fnadya%2FAppData%2FLocal%2FTemp%2Fcontext1123098247565520222.xml&path=/gest_project FAIL - 在上下文路径 /gest_project 但上下文中部署了应用程序 启动失败 模块尚未部署。在 org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:187) 在 org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:167) 在 org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:123) 在 org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:208) 在 org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)

在 tomcat 日志上我有这个:

GRAVE:错误 listenerStart 9 月 11 日。 2011 23:37:04 org.apache.catalina.core.StandardContext startInternal GRAVE:错误 在先前的错误之后开始上下文 [/gest_project]

这是我的 web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <!--Upload Filters-->
    <filter>
    <filter-name>PrimeFaces FileUpload Filter</filter-name>
    <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>PrimeFaces FileUpload Filter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
<!--End Upload Filters-->

    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <!-- Theme Aristo -->
    <context-param>
        <param-name>primefaces.THEME</param-name>
        <param-value>start</param-value>
    </context-param>
    <!--       FIN         -->
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/admin-direction.xhtml</welcome-file>
    </welcome-file-list>
   <!-- Add Support for Spring -->
  <listener>
    <listener-class>
        org.springframework.web.context.ContextLoaderListener
    </listener-class>
  </listener>
  <listener>
    <listener-class>
        org.springframework.web.context.request.RequestContextListener
    </listener-class>
  </listener>
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:application-context.xml</param-value>
  </context-param>

   <!-- JSF mapping -->


  <!-- Map these files with JSF -->

  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
  </servlet-mapping>
</web-app>

非常感谢

【问题讨论】:

  • 手动清除临时和工作文件夹,然后再试一次。
  • 在服务器日志中进一步阅读真正的原因。到目前为止,在提供的信息中看不到此信息,因此此问题无用且无用。您基本上关注的是摘要错误,而不是真正的错误。

标签: spring jsf jakarta-ee tomcat


【解决方案1】:

问题也可能是由于缺少权限引起的。在我的情况下,我授予了包含 Tomcat 的文件夹的权限(每个人都可以完全访问,因为我不确定到底是谁授予他们权限)。这解决了我的问题。

【讨论】:

    【解决方案2】:

    尝试在启动服务器时查看您的应用程序是否已启动并运行且没有任何错误。这样您就可以消除任何服务器配置和依赖问题。

    这样做:

    1) 停止您的 Tomcat 服务器。清理/备份所有日志文件。

    2) 如果“经理”应用未启用,请尝试启用它。

    3) 启动 tomcat 服务器。观察启动日志是否有任何错误。

    4) 如果日志中一切正常,请转到应用管理器“http://localhost:8080/manager/

    检查您的应用程序是否已启动并运行(已启动)模式。

    5) 现在尝试访问页面或 URL。

    这样您就可以指出可能的错误区域。

    【讨论】:

      【解决方案3】:

      (不是答案)

      您的错误非常普遍,可能是由除您的 web.xml 之外的许多其他地方的许多不同问题引起的。 (应用程序上下文、缺少的库等...)

      您必须深入挖掘(其他文件或查看以下相同文件)才能找到包含更多相关信息的错误。

      【讨论】:

        猜你喜欢
        • 2013-07-16
        • 2020-02-29
        • 1970-01-01
        • 2016-07-04
        • 2015-04-01
        • 2012-02-18
        • 2015-01-26
        • 2011-01-14
        • 2014-07-11
        相关资源
        最近更新 更多