Hi,
EWSJ and JEC run on Jboss without any problem (with or without SSL).
In this guide, I added JEC to the Jboss jmx-console.war,
Here are the steps to do it (this is not necessarily the only way, and of-course you can do it to any WAR or create a new WAR):
1. edit and compile and compile EWSJServletExample.java (set your own credentials)
2. copy the EWSJServletExample.class file to the WEB-INF/classes
3. copy jec lib dir to WEB-INF
4. edit the web.xml add the servlet and the mapping as follows:
<servlet>
<servlet-name>EWSJServletExample</servlet-name>
<servlet-class>EWSJServletExample</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>EWSJServletExample</servlet-name>
<url-pattern>/servlet/EWSJServletExample</url-pattern>
</servlet-mapping>
5. edit Jboss run.bat to add JEC lib dir to it:
if "%JBOSS_CLASSPATH%" == "" (
set JBOSS_CLASSPATH=%JAVAC_JAR%;C:\jboss\server\default\deploy\jmx-console.war\WEB-INF\lib\;%RUNJAR%
) ELSE (
set JBOSS_CLASSPATH=
%JBOSS_CLASSPATH%;%JAVAC_JAR%;C:\jboss\server\default\deploy\jmx-console.war\WEB-INF\lib\core\lib\jec;%RUNJAR%
)
6. restart Jboss and call the URL:
http://localhost:8080/jmx-console/servlet/EWSJServletExample you should see the message:
JEC servlet is up!
trying to init connector...
connector created.
Jonathan,
JEC Team