[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.hyades] Re: launch remote application

Hi,

Sébastien Mathy wrote:
Luca Di Stefano a écrit :

Hi,



Hi,


Extracted from the help:

# To launch an external Java Process, follow these steps:

  1. Double click on External Java Application. A new configuration is
created.
  2. On the Host tab, specify the Host name or IP address and the Agent
Controller port (if different from the default). Click Add, then switch
to the Main tab.
  3. Select the Java Class on the file system.
  4. You may need to specify where to find the Class path, directory,
and JAR file.
  5. You may specify Parameters, VM arguments, and Environment
Variables, as needed.


Step 1 and 2 are ok.

Step 3:
what you think about filesystem?
/home/pmyproject/src/org/lds/test/MyTest.class or the classic
org.lds.test.MyTest ?
... OK in the document "Tutorial: Analyzing the profiling data from a
Java process" I discover that the second choice is the correct one.

But you say "Select the Java Class .." how? the button is disabled and
is enabled only if I select the rac on localhost. I think they are other
constraints about configuration of the remote rac: wich are??.


Is it only the button browse that is disabled?
classpath and class related buttons are disabled, but text areas are
enabled.
Couldn't you specify 'MyTest' in the specify class field (assuming
MyTest has a main method)?

Yes I can, and I do it but it not works:
I copied the project environment in the remote host, setted the classpath with absolute paths of remote machine, setted the class (with main obviously) and started profile:
on remote windows I get in console
java.lang.NoClassDefFoundError: org/lds/test/MyTest
Exception in thread "main"


on remote hpux I get nothing
on localhost linux the same of hpux

for all in the relative rac log:
<SERVER_MSG time="2004:10:21:16:0:42" severity="INFORMATION" text="Connection accepted on socket 0"/>
<SERVER_MSG time="2004:10:21:16:0:50" severity="INFORMATION" text="Attempting to launch process : java.exe -XrunpiAgent:server=controlled org.lds.test.MyTest"/>
<SERVER_MSG time="2004:10:21:16:0:50" severity="INFORMATION" text="Adding agent interest: Java Profiling Agent"/>
<SERVER_MSG time="2004:10:21:16:0:55" severity="INFORMATION" text="Process 25039 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:21:16:0:55" severity="INFORMATION" text="Process 25039 exited"/>


Note:
rac servers haves rwx access rights for all paths & files

when I start it in standalone works well.






thanks,

Luca