[seam-issues] [JBoss JIRA] Commented: (SEAMSERVLET-11) Servlet Module will not deploy to GlassFish 3.0
Josh Hill (JIRA)
jira-events at lists.jboss.org
Sat Sep 18 11:59:28 EDT 2010
[ https://jira.jboss.org/browse/SEAMSERVLET-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12551701#action_12551701 ]
Josh Hill commented on SEAMSERVLET-11:
--------------------------------------
Looks like AsyncListeners (like Servlet3EventBridge) have to be added programmatically during an asynchronous request.
public void doGet(HttpServletRequest request, HttpServletResponse response) {
AsyncContext asyncContext = request.startAsync(request, response);
asyncContext.addListener(new MyAsyncListener());
}
> Servlet Module will not deploy to GlassFish 3.0
> -----------------------------------------------
>
> Key: SEAMSERVLET-11
> URL: https://jira.jboss.org/browse/SEAMSERVLET-11
> Project: Seam Servlet
> Issue Type: Bug
> Environment: GlassFish 3.0
> Reporter: Josh Hill
>
> A project containing servlet module will currently not deploy to GlassFish 3.0. Attaching my pom.xml and the error.
> <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>test</groupId>
> <artifactId>testservlet</artifactId>
> <packaging>war</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>testservlet Java EE 6 Webapp</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-web-api</artifactId>
> <version>6.0</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.seam.servlet</groupId>
> <artifactId>seam-servlet</artifactId>
> <version>3.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>org.jboss.weld</groupId>
> <artifactId>weld-extensions</artifactId>
> <version>1.0.0.Alpha2</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-jdk14</artifactId>
> <version>1.5.6</version>
> </dependency>
> </dependencies>
> </project>
> java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: org.jboss.seam.servlet.event.Servlet3EventBridge, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list