Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
View Interest List Message Details
<< Back to Search Results

Date: 08/09/2007
From: matt@newatlanta.com
Subject: Re: [ServletExec] Debugging AS with Eclipse
Danny the correct way to step-debug your Servlets that run inside SE, 
using Eclipse IDE is to run your SE AS Instance inside Eclipse.
For that you need to study the StartServletExec.bat file that's used to 
startup your instance.
Use what you see there to configure Eclipse to start the instance.

This is typically done when the instance is running behind it's built-in 
webserver (not behind IIS).
But I see no reason why you could not have the instance running behind IIS.
The only difference is that you'd be having Eclipse start the instance 
rather than using the batch file or the Windows Service mechanism to 
start it.

This FAQ may help:
http://www.newatlanta.com/c/support/servletexec/self_help/faq/detail?faqId=2

Consider a simple HelloWorld java application.
If you can set that up in Eclipse and step debug it, then you'd just 
need to do something similar to that to have Eclipse run your SE AS 
instance in its debugger. Then you can set breakpoints in your Servlet 
code, make a request, and step debug your code.

Matt McGinty
Software Engineer
New Atlanta Communications, LLC
http://www.newatlanta.com 



Lin, Danny wrote:
>
> I have two AS instances installed. The URLs are cm.localhost and 
> em.localhost. I am able to launch the application (i.e. IIS and 
> ServletExec configured correctly.) I want to be able to run 
> step-through debugger from Eclipse. I created a project and set it up 
> for remote Java Application. I entered the following connection 
> properties: host: cm.localhost, port: 8888. The port 8888 is the port 
> when cm instance was installed. Is this a correct way to make debug 
> connection? Or, is there another port that I should use? After I click 
> "Debug" I am getting a Timeout exception.
>
>  
>
> Please help.
>
>  
>
> Thanks.
>
> Danny
>
>  
>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
 <meta content="text/html;charset=ISO-8859-1"                      
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana">Danny the correct way to step-debug your   
Servlets
that run inside SE, using Eclipse IDE is to run your SE AS Instance
inside Eclipse.<br>
For that you need to study the StartServletExec.bat file that's used to
startup your instance.<br>
Use what you see there to configure Eclipse to start the instance.<br>
<br>
This is typically done when the instance is running behind it's
built-in webserver (not behind IIS).<br>
But I see no reason why you could not have the instance running behind
IIS.<br>
The only difference is that you'd be having Eclipse start the instance
rather than using the batch file or the Windows Service mechanism to
start it.<br>
<br>
This FAQ may help:<br>
<a class="moz-txt-link-freetext"                                   
href="http://www.newatlanta.com/c/support/servletexec/self_help/faq/detail?
faqId=2">http://www.newatlanta.com/c/support/servletexec/self_help/faq/d
etail?faqId=2</a><br>
<br>
Consider a simple HelloWorld java application.<br>
If you can set that up in Eclipse and step debug it, then you'd just
need to do something similar to that to have Eclipse run your SE AS
instance in its debugger. Then you can set breakpoints in your Servlet
code, make a request, and step debug your code.<br>
</font>
<pre class="moz-signature" cols="72">Matt McGinty
Software Engineer
New Atlanta Communications, LLC
<a class="moz-txt-link-freetext"                                   
href="http://www.newatlanta.com">http://www.newatlanta.com</a>
; </pre>
<br>
<br>
Lin, Danny wrote:
<blockquote
cite="mid92D6B7F3215ED9468775D945DBBED20804A91D03@ASHEVS005.mcilink.com
4;
type="cite">
 <meta http-equiv="Content-Type" content="text/html;          
">
 <meta name="Generator" content="Microsoft Word 11 (filtered  
medium)">
 <style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#606420;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
 </style>
 <div class="Section1">
 <p class="MsoNormal"><font face="Arial"           
size="2"><span
style="font-size: 10pt; font-family: Arial;">I have two AS         
instances
installed. The URLs are cm.localhost
and em.localhost. I am able to launch the application (i.e. IIS and
ServletExec
configured correctly.) I want to be able to run step-through debugger
from
Eclipse. I created a project and set it up for remote Java Application.
I
entered the following connection properties: host: cm.localhost, port:
8888.
The port 8888 is the port when cm instance was installed. Is this a
correct way
to make debug connection? Or, is there another port that I should use?
After I
click &#8220;Debug&#8221; I am getting a Timeout                        
exception.<o:p></o:p></span></font></p>
 <p class="MsoNormal"><font face="Arial"           
size="2"><span
style="font-size: 10pt; font-family:                                       
Arial;"><o:p>&nbsp;</o:p></span></font></
p>
 <p class="MsoNormal"><font face="Arial"           
size="2"><span
style="font-size: 10pt; font-family: Arial;">Please                
help.<o:p></o:p></span></font></p>
 <p class="MsoNormal"><font face="Arial"           
size="2"><span
style="font-size: 10pt; font-family:                                       
Arial;"><o:p>&nbsp;</o:p></span></font></
p>
 <p class="MsoNormal"><font face="Arial"           
size="2"><span
style="font-size: 10pt; font-family:                                       
Arial;">Thanks.<o:p></o:p></span></font></p&g
t;
 <p class="MsoNormal"><font face="Arial"           
size="2"><span
style="font-size: 10pt; font-family:                                       
Arial;">Danny<o:p></o:p></span></font></p>

 <p class="MsoNormal"><font face="Arial"           
size="2"><span
style="font-size: 10pt; font-family:                                       
Arial;"><o:p>&nbsp;</o:p></span></font></
p>
  </div>
</blockquote>
</body>
</html>

Message Thread
Date Subject Author
08/09/2007 Re: [ServletExec] Debugging AS with Eclipse matt@newatlanta.com
08/09/2007 RE: [ServletExec] Debugging AS with Eclipse danny.lin@verizonbusiness.com
08/09/2007 Re: [ServletExec] Debugging AS with Eclipse matt@newatlanta.com
08/09/2007 RE: [ServletExec] Debugging AS with Eclipse danny.lin@verizonbusiness.com
08/09/2007 Re: [ServletExec] Debugging AS with Eclipse matt@newatlanta.com
08/09/2007 [ServletExec] Debugging AS with Eclipse danny.lin@verizonbusiness.com
<< Back to Search Results


   
company media information terms of use privacy policy contact us