Difference between revisions of "Debugging remote JBoss server"

From OpenKM Documentation
Jump to: navigation, search
Line 1: Line 1:
If you got problems on production environement this configuration is specially useful. But it might not be setting if you've not problem in these environments.
+
If you got problems on production environement this configuration is specially useful. But it might not be setting if you've not problem in these environments. Add this line at the top of ''$JBOSS_HOME/bin/run.sh'' script:
 
 
 
 
In $JBOSS_HOME/bin/run.sh script must be added the line.
 
 
 
JAVA_OPTS="-Xmx2000m -Djava.awt.headless=true -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 "
 
  
 +
<source lang="bash">
 +
JAVA_OPTS="-Xmx2000m -Djava.awt.headless=true -Xdebug -Xnoagent \
 +
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 "
 +
</source>
  
 
== Configure eclipse ==
 
== Configure eclipse ==
 +
Select the project and the host. Include in source your OpenKM java project. You can debug normally, setting breakpoints etc...
  
Select the project and the host. Include in source your OpenKM java project.
 
 
You can debug normally, setting breakpoints etc...
 
  
 +
[[File:Okm_user_guide_073.jpeg|670px|center]]
  
[[File:Okm_user_guide_073.jpeg|670px]]
 
  
 +
[[File:Okm_user_guide_074.jpeg|670px|center]]
  
[[File:Okm_user_guide_074.jpeg|670px]]
+
[[Category:Developer Guide]]

Revision as of 11:37, 4 February 2010

If you got problems on production environement this configuration is specially useful. But it might not be setting if you've not problem in these environments. Add this line at the top of $JBOSS_HOME/bin/run.sh script:

JAVA_OPTS="-Xmx2000m -Djava.awt.headless=true -Xdebug -Xnoagent \
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 "

Configure eclipse

Select the project and the host. Include in source your OpenKM java project. You can debug normally, setting breakpoints etc...


Okm user guide 073.jpeg


Okm user guide 074.jpeg