Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility check for 'org.apache.catalina.websocket.WebSocketServlet' with jbossweb 7.2.2.Final yields a false positive #1262

Closed
bleathem opened this issue Aug 30, 2013 · 1 comment
Labels

Comments

@bleathem
Copy link
Contributor

The 7.2.2.Final release of jbossweb now includes the class org.apache.catalina.websocket.WebSocketServlet. This is the class used to test for the presence of Tomcat 7 websockets on the class path. This check leads to a false positive, and later blows up with a ClassNotFoundException for the org.apache.coyote.http11.upgrade.UpgradeInbound class.

A reasonable resolution for this issue would appear to be to replace the check for the WebSocketServlet class with one for UpgradeInbound in the check for support of Tomcat 7 Websockets.

Note: This issue was initially reported in the RichFaces issue: RF-13154, but will likely affect any application that uses Atmosphere with jbossweb 7.2.2.Final

@bleathem
Copy link
Contributor Author

I tried the proposed patch and can confirm it resolves the problem with jbossweb 7.2.2.Final. I'll submit a pull request.

bleathem added a commit to bleathem/atmosphere that referenced this issue Aug 30, 2013
…t support.

The check for the WebSocketServlet class is replaced with a check for the UpgradeInbound class in the check for support of Tomcat 7 Websockets.
jfarcand added a commit that referenced this issue Sep 2, 2013
Fixes #1262 - changes the check class for Tomcat 7 Websocket support.
@jfarcand jfarcand closed this as completed Sep 2, 2013
jfarcand pushed a commit that referenced this issue Sep 3, 2013
The check for the WebSocketServlet class is replaced with a check for the UpgradeInbound class in the check for support of Tomcat 7 Websockets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants