[richfaces-issues] [JBoss JIRA] (RF-12159) Richfaces Kitchensink Archetype adds atmosphere-compat-weblogic-0.8.4.jar to the WEB-INF\lib
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Wed Apr 11 11:05:48 EDT 2012
[ https://issues.jboss.org/browse/RF-12159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683073#comment-12683073 ]
Brian Leathem commented on RF-12159:
------------------------------------
When I exclude the extra atmosphere dependencies via the maven dependency exclusion:
{code}
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-runtime</artifactId>
<exclusions>
<exclusion>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-compat-weblogic</artifactId>
</exclusion>
<exclusion>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-compat-tomcat</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
{code}
I got the runtime error:
{code}
08:01:16,730 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-as-kitchensink-rf].[FacesServlet]] (http--0_0_0_0_0_0_0_0-8080-1) Servlet.service() for servlet FacesServlet threw exception: java.lang.IllegalArgumentException
at org.richfaces.resource.PushResource.encode(PushResource.java:85) [richfaces-components-ui-4.2.1-20120411.094942-22.jar:4.2.1-SNAPSHOT]
at org.richfaces.resource.UserResourceWrapperImpl.encode(UserResourceWrapperImpl.java:188) [richfaces-core-impl-4.2.1-20120411.093452-16.jar:4.2.1-SNAPSHOT]
at org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:222) [richfaces-core-impl-4.2.1-20120411.093452-16.jar:4.2.1-SNAPSHOT]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:591) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
...
{code}
Which originates in the RichFaces code:
{code:title=PushResource.java#L82-L86}
String[] topicNames = externalContext.getRequestParameterValuesMap().get(PUSH_TOPIC_PARAM);
if (topicNames == null) {
throw new IllegalArgumentException();
}
{code}
So there is something in one of those jars required for initializing the push component.
> Richfaces Kitchensink Archetype adds atmosphere-compat-weblogic-0.8.4.jar to the WEB-INF\lib
> --------------------------------------------------------------------------------------------
>
> Key: RF-12159
> URL: https://issues.jboss.org/browse/RF-12159
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: archetype
> Affects Versions: 4.2.0.Final
> Reporter: Burr Sutter
> Attachments: Screen Shot 2012-04-11 at 9.42.28 AM.png
>
>
> The currently deployed archetype in JBoss Central includes atmosphere-compat-weblogic-0.8.4.jar in the WEB-INF\lib of the deployed .war - it also includes Jetty, Tomcat.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list