Book a Demo

Author Topic: Debug Java Web Servers  (Read 2581 times)

kamsky

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Debug Java Web Servers
« on: October 21, 2007, 11:44:49 pm »
Hi,

I am evaluating EA to debug web application to generate sequence diagram. I followed the intructions (except #6) below but I get 'No agent loaded in process C:\Program Files\Java\jdk1.5.0_05\bin\java.exe'.  

Do you have idea what did I miss?

Can you tell me what the 'client' means in instruction #6?

Any help or feedback would be grately appreciated. Thanks.

--------From the user guide-----
1. Ensure binaries for the web server code to be debugged have been built with debug information.

2. Launch the server with the VM startup option described in this topic.

3. Import source code into the Enterprise Architect Model, or synchronize existing code.

4. Create or modify the Package Build Script to specify the Debug option for attaching to the process.

5. Set breakpoints.  

6. Launch the client.

7. Attach to the process from Enterprise Architect.


Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Debug Java Web Servers
« Reply #1 on: October 22, 2007, 09:44:13 am »
Hello Kamsky,

I guess that you need to add option '-agentlib:SSJavaProfiler5_70' to Web server process.

Please read help file 'Attach to VM' page.

Hope this helps.

--
t-kouno
--
t-kouno

kamsky

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Debug Java Web Servers
« Reply #2 on: October 22, 2007, 06:06:47 pm »

Hi t-kouno,

Yes, I did that and I saw it in the process explorer that it's running with TID 2748 and here's the option in my tomcat and catalina.bat:
-----
set JAVA_OPTS=%JAVA_OPTS% -agentlib:SSJavaProfiler5_70 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"


Do you know what's does the client mean in item #6?
Also the detail in another help page that:

"Launch the client and ensure the client executes. This must be done before attaching to the server process in Enterprise Architect.

After the client has been executed at least once, return to Enterprise Architect, open the source code you imported and set some breakpoints."

Thanks for your help.