mcgyver5 / javasnoop

Automatically exported from code.google.com/p/javasnoop
0 stars 0 forks source link

JavaSnoop fails to attach to JBoss #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start JBoss AS7
2. Try to attach JavaSnoop
3. Note the HeadlessException, lack of any constructive action from JavaSnoop

What is the expected output? What do you see instead?
JBoss produces a stacktrace that includes a "HeadlessException' and JavaSnoop 
produces no UI.  

What version of the product are you using? On what operating system?
JavaSnoop 1.1RC2 on Ubuntu

Please provide any additional information below.
I also ran JavaSnoop against JBossESB/SOA-P, using 1.0Final.  This also had 
trouble, but at least let me attach/set a hook, etc.

Original issue reported on code.google.com by RickJ...@gmail.com on 7 Jul 2012 at 1:07

GoogleCodeExporter commented 9 years ago
Fix is to adjust standalone.conf:

  #JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS 
-Djava.awt.headless=false"

Original comment by RickJ...@gmail.com on 7 Jul 2012 at 1:39

GoogleCodeExporter commented 9 years ago
Thanks for the fix!

Original comment by arshan.d...@gmail.com on 21 Aug 2012 at 1:18