spring - 上下文路径中未部署的应用程序

标签 spring jsf jakarta-ee tomcat

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

OK - Undeployed application at context path /gest_project In-place deployment at C:\Users......\target\gest_project Deployment is in progress... deploy?config=file%3A%2FC%3A%2FUsers%2Fnadya%2FAppData%2FLocal%2FTemp%2Fcontext1123098247565520222.xml&path=/gest_project FAIL - Deployed application at context path /gest_project but context failed to start The module has not been deployed. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:187) at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:167) at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:123) at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:208) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)

在 tomcat 日志上我有这个:

GRAVE: Error listenerStart 11 sept. 2011 23:37:04 org.apache.catalina.core.StandardContext startInternal GRAVE:Error Starting context [/ gest_project] following previous errors

这是我的 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>

非常感谢

最佳答案

(不是答案)

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

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

关于spring - 上下文路径中未部署的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7382216/

相关文章:

java - Spring mvc/安全 : excluding the login page from spring security

java - p :commandButton in p:dialog does not call actionListener method

java - 当拦截器存在时,EJB 注入(inject)失败

jsf - 制作p :commandButton work like h:button

java - war 部署到 webapp 但创建的目录没有内容

Spring 与 JMS 和 DB 的集成和事务

java - 在 Spring 中注入(inject) EJB

java - 自定义过滤器突然破坏@WebMvcTest

java - Hibernate 是否需要 Java EE

java - JSP 的 JTable 替代品