Difference between revisions of "Configure Tomcat server in Eclipse"

From OpenKM Documentation
Jump to: navigation, search
Line 23: Line 23:
  
 
Add your '''openkm project''' at source tab
 
Add your '''openkm project''' at source tab
 +
 
[[File:Okm_dev_guide_039.png|700px]]
 
[[File:Okm_dev_guide_039.png|700px]]
  

Revision as of 13:05, 24 October 2012

Go to servers tab Using contextual menus select Add / server. Select Tomcat 7 server:

Okm dev guide 035.png


Configure a new Run time server environment:

Okm dev guide 036.png


  • Checkbox Use Tomcat installation ( takes control of tomcat installation ).
  • Increment startup and stop timeouts.

Okm dev guide 037.png


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

Okm dev guide 038.png


Add your openkm project at source tab

Okm dev guide 039.png


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

Okm_dev_guide_040.png