Hi Folks,
Total newbie to dynaTrace here.
Platform: Windows 7 SP1, 64 Bit, JBoss EAP 6.3.0 (Can't tell if it is 64 or 32 bit, the JBoss downloader didn't give me a choice)
JBoss server (standalone) comes up without any errors.
dynaTrace 6.1.0
Problem: When making a profile to create the JBoss tier, the system tells me to: "add the following configuration string ..." and the string is:
-agentpath:"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll"=name=JBoss_JBoss6,server=bill-pc-2:9998
I go into the file <jboss-eap-home>\bin\standalone.conf.bat and I add the following two lines:
rem # For dynaTrace
set "JAVA_OPTS=%JAVA_OPTS% -agentpath:"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll"=name=JBoss_JBoss6,server=bill-pc-2:9998"
When I restart JBoss, by running "standalone.bat" as is described in the menu selection properties (inside an administrator's window so I can capture the output), I get:
C:\Program Files\EAP630\jboss-eap-6.3\bin>standalone.bat
Calling "C:\Program Files\EAP630\jboss-eap-6.3\bin\standalone.conf.bat"
\dynaTrace\dynaTrace was unexpected at this time.
I have tried fiddling with the double quotes and backslashes in the statement and do not seem to be able to get it to work.
Do you have any advise?
Thanks,
Bill
Answer by Bill R. ·
More:
Here are three versions I've tried so far, and gotten identical results (imagine the "rem" is not in the line) ...
rem # For dynaTrace
rem set "JAVA_OPTS=%JAVA_OPTS% -agentpath:"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll"=name=JBoss_JBoss6,server=bill-pc-2:9998"
rem set "JAVA_OPTS=%JAVA_OPTS% -agentpath:\"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll\"=name=JBoss_JBoss6,server=bill-pc-2:9998"
rem set "JAVA_OPTS=%JAVA_OPTS% -agentpath:\"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll\\"=name=JBoss_JBoss6,server=bill-pc-2:9998"
I suspect the best approach is to uninstall dynaTrace and re-install it in C:\ and thereby get rid of the spaces in the path.
Bill
Try with double backslashes C:\\Program Files (x86)\\ ... I think you can even use forward slashes when they are passed to java
Answer by Kristof R. ·
Hi Bill,
I do see a double quote in front of JAVA: rem set "JAVA.
Perhaps that is the culprit?
Answer by Rob V. ·
Hey Bill,
It seems you have too many wrapping double-quotes. After the SET there should not be a double-quote before JAVA_OPTS. You'll need to remove the matching trailing double-quote too.
Rob
Answer by Wolfgang G. ·
Another possible solution - I'm notoriously lazy when it comes to typing path names, so I prefer to use mklink /j to create a short alias that I use afterwards. So for example, I use
mklink /j c:\dt61 "c:\Program Files\dynaTrace\dynaTrace 6.1.0"
and then I can use
set JAVA_OPTS=%JAVA_OPTS% -agentpath:"C:\dt61\agent\lib64\dtagent.dll"=name=MyAwesomeAgent_SystemProfile,server=wolfgang-pc:9998
without having to worry about spaces.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET