I switched to Yuan's approach and after adding a few dependencies, I got maven to create a war. But the war still fails to deploy. I now see a different message:
22:17:46,925 INFO [TomcatDeployer] deploy, ctxPath=/TestSeam, warUrl=.../tmp/deploy/tmp24620TestSeam-exp.war/ | 22:17:47,661 ERROR [STDERR] javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory | 22:17:47,661 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:569) | 22:17:47,661 ERROR [STDERR] at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448) | 22:17:47,661 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249) and later: 22:17:47,683 ERROR [[/TestSeam]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener | javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory | at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:569) | at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448) | at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249) The pom I ended up using looks like: <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/maven-v4_0_0.xsd"> | | <modelVersion>4.0.0</modelVersion> | <groupId>com.gestalt.afmstt.modernization.testseammaven</groupId> | <artifactId>TestMaven</artifactId> | <packaging>war</packaging> | <version>1.0-SNAPSHOT</version> | <name>TestMaven Webapp</name> | <parent> | <groupId>org.jboss.seam</groupId> | <artifactId>root</artifactId> | <version>2.0.0.GA</version> | </parent> | <repositories> | <repository> | <id>repository.jboss.org</id> | <name>JBoss Repository</name> | <url>http://repository.jboss.org/maven2</url> | </repository> | </repositories> | <dependencies> | <dependency> | <groupId>org.jboss.seam</groupId> | <artifactId>jboss-seam</artifactId> | </dependency> | <dependency> | <groupId>junit</groupId> | <artifactId>junit</artifactId> | <version>3.8.1</version> | <scope>test</scope> | </dependency> | | <dependency> | <groupId>org.jboss.seam</groupId> | <artifactId>jboss-el</artifactId> | <exclusions> | <exclusion> | <groupId>javax.el</groupId> | <artifactId>el-api</artifactId> | </exclusion> | </exclusions> | </dependency> | <dependency> | <groupId>org.jboss.seam</groupId> | <artifactId>jboss-seam-ui</artifactId> | </dependency> | <dependency> | <groupId>com.sun.facelets</groupId> | <artifactId>jsf-facelets</artifactId> | </dependency> | <dependency> | <groupId>javax.persistence</groupId> | <artifactId>persistence-api</artifactId> | </dependency> | <dependency> | <groupId>org.hibernate</groupId> | <artifactId>hibernate-validator</artifactId> | </dependency> | <dependency> | <groupId>javax.ejb</groupId> | <artifactId>ejb-api</artifactId> | </dependency> | <dependency> | <groupId>javax.jws</groupId> | <artifactId>jsr181-api</artifactId> | <exclusions> | <exclusion> | <groupId>javax.xml.bind</groupId> | <artifactId>jaxb-api</artifactId> | </exclusion> | </exclusions> | </dependency> | </dependencies> | <build> | <finalName>TestSeam</finalName> | <plugins> | <plugin> | <groupId>org.apache.maven.plugins</groupId> | <artifactId>maven-compiler-plugin</artifactId> | <configuration> | <source>1.5</source> | <target>1.5</target> | </configuration> | </plugin> | <plugin> | <groupId>org.codehaus.mojo</groupId> | <artifactId>jboss-maven-plugin</artifactId> | <configuration> | <jbossHome>/usr/local/jboss-4.2.2.GA</jbossHome> | <port>8080</port> | </configuration> | </plugin> | </plugins> | </build> | </project> The set of jar files included in the war's lib folder is different: antlr-2.7.6.jar asm-1.5.3.jar asm-attrs-1.5.3.jar cglib-2.1_3.jar commons-beanutils-1.7.0.jar dom4j-1.6.1-jboss.jar ejb-api-3.0.jar el-api-1.0.jar hibernate-3.2.4.sp1.jar hibernate-validator-3.0.0.GA.jar javassist-3.3.ga.jar jboss-el-2.0.0.GA.jar jboss-seam-2.0.0.GA.jar jboss-seam-ui-2.0.0.GA.jar jsf-api-1.2_04-p02.jar jsf-facelets-1.1.14.jar jsr181-api-1.0-MR1.jar jta-1.0.1B.jar persistence-api-1.0.jar The one that has the javax.faces.FacesException in it is the jsf-api jar. I do NOT declare a dependency for this in my pom and yet it is included. Why? Hope someone has the patience to look through this and set me straight. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112434#4112434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112434 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
