[jboss-user] [JBoss Seam] - WAR only: Seam 2.0.0.0GA + Maven2 doesn`t work...
jsolderitsch
do-not-reply at jboss.com
Wed Dec 12 14:21:44 EST 2007
I have followed I think the advice that has been given in this thread but I am in a simpler situation -- only one pom for a single war deployment.
I copied in dependencies from the examples I have seen in this thread and gotten mvn install to produce a war file.
When I go to deploy it, JBoss shows:
| 14:14:37,619 INFO [TomcatDeployer] deploy, ctxPath=/TestSeam, warUrl=.../tmp/deploy/tmp57916TestSeam-exp.war/
| 14:14:37,930 ERROR [[/TestSeam]] Exception starting filter Seam Filter
| java.lang.ClassCastException: org.jboss.seam.servlet.SeamFilter
| at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
| at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
| at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
| at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3722)
|
My dependency section of the pom looks like:
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam</artifactId>
| <version>2.0.0.GA</version>
| </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-seam-debug</artifactId>
| <version>2.0.0.GA</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-ui</artifactId>
| <version>2.0.0.GA</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-el</artifactId>
| <version>2.0.0.GA</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>javax.el</groupId>
| <artifactId>el-api</artifactId>
| <version>1.0</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>javax.faces</groupId>
| <artifactId>jsf-api</artifactId>
| <version>1.2_04-p02</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>javax.persistence</groupId>
| <artifactId>persistence-api</artifactId>
| <version>1.0</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>org.hibernate</groupId>
| <artifactId>hibernate-validator</artifactId>
| <version>3.0.0.GA</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <!--<groupId>jboss</groupId>-->
| <groupId>org.jboss.javaee</groupId>
| <artifactId>jboss-ejb-api</artifactId>
| <!--<version>4.2.1.GA</version>-->
| <version>3.0.0.20070913080910</version>
| <scope>provided</scope>
| </dependency>
|
Can anyone see what I am doing wrong. Seam and maven newbie!
The code I am adapting came out of seam-gen so the java class code is all generated stuff from seam-gen.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112341#4112341
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112341
More information about the jboss-user
mailing list