JSF 2.3 WebApp with Tomcat 9

前端 未结 2 660
误落风尘
误落风尘 2021-01-16 01:50

I want to develop a JSF web application.

I use JSF 2.3 (.xhtml), Tomcat 9.0.33 and Open JDK 11.0.2 (on Windows 10)

Apache Netbean 11.3 is my IDE. (this now s

相关标签:
2条回答
  • 2021-01-16 02:16
    <project
        xmlns="http://maven.apache.org/POM/4.0.0" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
    
      <groupId>fri</groupId>
      <artifactId>jsfMavenEclipse</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    
      <packaging>war</packaging>
    
      <dependencies>
        <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>javax.servlet-api</artifactId>
          <version>4.0.0</version>
          <scope>provided</scope>
        </dependency>
    
        <dependency>
          <groupId>org.glassfish</groupId>   <!-- Oracle -->
          <artifactId>javax.faces</artifactId>
          <version>2.3.9</version>
        </dependency>
    
        <dependency>
          <groupId>org.jboss.weld.servlet</groupId>   <!-- Red Hat -->
          <artifactId>weld-servlet-shaded</artifactId>
          <version>3.1.2.Final</version>
        </dependency>
    
      </dependencies>
    
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
              <source>1.8</source>
              <target>1.8</target>
            </configuration>
          </plugin>
    
        </plugins>
    
      </build>
    
    </project>
    
    0 讨论(0)
  • 2021-01-16 02:27

    Verify if the build classes have been copied to tomcat.

    ${tomcat_home}\wtpwebapps\${project_name}\WEB-INF\classes
    

    or

    ${tomcat_home}\webapps\${project_name}\WEB-INF\classes
    

    or

    ${tomcat_home}\(.metadata\.plugins...)\{project_name}\WEB-INF\classes
    
    0 讨论(0)
提交回复
热议问题