Difference between revisions of "Configure Tomcat server in Eclipse"
From OpenKM Documentation
m |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Go to servers tab Using contextual menus select Add / server. '''Select Tomcat 7 server''': | Go to servers tab Using contextual menus select Add / server. '''Select Tomcat 7 server''': | ||
− | [[File:Okm_dev_guide_035.png|center]] | + | [[File:Okm_dev_guide_035.png|450px|center]] |
+ | |||
Configure a new '''Run time server environment''': | Configure a new '''Run time server environment''': | ||
− | [[File:Okm_dev_guide_036.png|center]] | + | |
+ | [[File:Okm_dev_guide_036.png|450px|center]] | ||
+ | |||
+ | |||
+ | * Checkbox '''Use Tomcat installation''' ( takes control of tomcat installation ). | ||
+ | * Increment startup and stop '''timeouts'''. | ||
+ | |||
+ | |||
+ | [[File:Okm_dev_guide_037.png|800px|center]] | ||
+ | |||
+ | |||
+ | Edit '''launch configuration''': | ||
+ | Add '''sigar''' library path and '''utf-8''' file enconding at arguments tab | ||
+ | -Djava.library.path="/your tomcat path/lib/sigar" -Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.awt.headless=true -Dfile.encoding=utf-8 | ||
+ | |||
+ | |||
+ | [[File:Okm_dev_guide_038.png|700px|center]] | ||
+ | |||
+ | |||
+ | Add your '''openkm project''' at source tab | ||
+ | |||
+ | |||
+ | [[File:Okm_dev_guide_039.png|600px|center]] | ||
+ | |||
+ | |||
+ | Add '''CATALINA_PID''' and '''LD_LIBRARY_PATH''' environement variables: | ||
+ | CATALINA_PID=$CATALINA_HOME/catalina.pid | ||
+ | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib/sigar:/usr/local/apr/lib | ||
+ | |||
+ | [[File:Okm_dev_guide_040.png|600px|center]] | ||
[[Category: Developer Guide]] | [[Category: Developer Guide]] |
Latest revision as of 08:17, 23 April 2013
Go to servers tab Using contextual menus select Add / server. Select Tomcat 7 server:
Configure a new Run time server environment:
- Checkbox Use Tomcat installation ( takes control of tomcat installation ).
- Increment startup and stop timeouts.
Edit launch configuration:
Add sigar library path and utf-8 file enconding at arguments tab
-Djava.library.path="/your tomcat path/lib/sigar" -Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.awt.headless=true -Dfile.encoding=utf-8
Add your openkm project at source tab
Add CATALINA_PID and LD_LIBRARY_PATH environement variables:
CATALINA_PID=$CATALINA_HOME/catalina.pid LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib/sigar:/usr/local/apr/lib