running JEC from tomcat guide

16 views
Skip to first unread message
Message has been deleted

sanders....@gmail.com

unread,
Apr 30, 2008, 2:47:44 AM4/30/08
to jec users2
Hi All,
Here is a complete guide for running JEC from tomcat.
You also can download a complete tomcat5.5 with JEC from this
location:
http://jec-users2.googlegroups.com/web/apache-tomcat-5.5.23.zip?gda=udObHUkAAADKLyrYMYu_EguqTnTwgGa5jp9ENHtj4Kj8cAIdmmM5q2G1qiJ7UbTIup-M2XPURDT1L3YVWOsrovSFp8qcpTQWzdd7qrCoWIELcLUro2UwQw&gsc=uqCJgxYAAAAtZqK-5tqIISkYzma7haNqT_SMBUDEckcwD8Aq3xG6zg


1. extract JEC zip file, copy the jars in the lib dir and jec.jar from
bin dir to Tomcat WEB-INF/lib.

2. update web.xml to add the mapping and servlet:

<servlet>
<servlet-name>JECServletExample</servlet-name>
<servlet-class>JECServletExample</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>JECServletExample</servlet-name>
<url-pattern>/servlet/JECServletExample</url-pattern>
</servlet-mapping>

3. update JECServletExample to your exchange information, compile it
and place the class file in Tomcat WEB-INF/classes dir.

4. edit catalina.bat / catalina.sh and add the JEC lib folder to the
tomcat classpath:
set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;
%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar;C:\projects\JEC
\jec\lib

5. if you use SSL (Self Signed certificate) to communicate with
Exchange server,
update the JAVA_OPTS of catalina.bat/ catalina.sh with the
privkeystore location:
set JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djavax.net.ssl.trustStore=C:\projects\JEC\jec\lib\privkeystore -
Djava.util.logging.config.file="%CATALINA_BASE%\conf
\logging.properties"



Jonathan,
JEC Team


Reply all
Reply to author
Forward
0 new messages