Archive

Archive for September, 2012

Atmosphere 1.0 – Chat example – JBoss 5.1.0

September 10, 2012 Leave a comment

I’ve recently tested Atmosphere 1.0 Chat example with JBoss EAP 5.1.0 (Windows 7 – 64bit).

Here the changes I did in order to get it working:

web.xml – Removed <async-supported>true</async-supported> from servlet declaration

web.xml – Replaced existing web-app declaration with:
<web-app version=”2.5? xmlns=”http://java.sun.com/xml/ns/javaee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd“&gt;

NB: in order to make sure an XSD URL (Example: http://java.sun.com/xml/ns/javaee/web-app_2_5.xs) is valid, simply try to open this URL using your preferred browser. If you have a 404 page, the XSD URL is invalid, otherwise, if the an XSD file is opened (or displayed for download in some browsers), so the XSD URL is good.

Copied jboss-native-2.0.9-windows-x64-ssl\bin\native to jboss-as\bin

Added:
<category name=”org.apache.catalina.core”>
<priority value=”DEBUG”/>
</category>

to

jboss-as\server\default\conf\jboss-log4j.xml

Removed the following files from war archive:
slf4j-api-1.6.1.jar
slf4j-simple-1.6.1.jar
atmosphere-compat-jbossweb-1.0.0.jar
context.xml (2x)

Updated jboss-as\server\default\deployers\jbossweb.deployer\web.xml

Commented the following entries
<!–
<listener>
<listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
</listener>
–>

<!–
<listener>
<listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
</listener>
–>

<!–
<init-param>
<description>JSF standard tlds</description>
<param-name>tagLibJar0</param-name>
<param-value>jsf-libs/jsf-impl.jar</param-value>
</init-param>
–>

NB: Make sure you’ve downloaded the appropriate JBoss Native for your OS.
Activating org.apache.catalina.core log category will help you to identify the best suitable JBoss Native version.
Please take a look at the eventual errors during JBoss startup.

More info about Atmosphere 1.0