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: danny.lin@verizonbusiness.com
Subject: RE: [ServletExec] Debugging AS with Eclipse
Matt,



Do you know the exact steps "to run SE AS Instance inside Eclipse"?   
In
Eclipse, I have a project setup where I put my web-app code (Java code
as well as other assets). Do I need to create a project and point it to
SE so that I can "debug" SE?



You also mentioned about running behind its build-in webserver. If I
uninstall IIS adapter and install its build-in webserver, will I be able
to do Remote Java Application debug? Or I still need to launch SE AS
within Eclipse?



Thanks.

Danny





________________________________

From: servletexec-interest-owner@newatlanta.com
[mailto:servletexec-interest-owner@newatlanta.com] On Behalf Of
matt@newatlanta.com
Sent: Thursday, August 09, 2007 12:21 PM
To: servletexec-interest@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?faq
Id=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




<html xmlns:v="urn:schemas-microsoft-com:vml"                      
xmlns:o="urn:schemas-microsoft-com:office:office"                     
xmlns:w="urn:schemas-microsoft-com:office:word"                       
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"                
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html;                       
charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered               
medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"             
name="State"/>
<o:SmartTagType                                                              
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType                                                              
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType                                                              
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#606420;
text-decoration:underline;}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle18
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
 <o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink="#606420">

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'>Matt,<o:p></o:p></span></fo
nt></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'><o:p>&nbsp;</o:p></span>&l
t;/font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-family:Arial;color:navy'>Do you know the exact steps        
&#8220;to run
SE AS Instance inside Eclipse&#8221;? In Eclipse, I have a project setup    
where
I put my web-app code (Java code as well as other assets). Do I need to create
a project and point it to SE so that I can &#8220;debug&#8221;          
SE?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'><o:p>&nbsp;</o:p></span>&l
t;/font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-family:Arial;color:navy'>You also mentioned about running   
behind its
build-in webserver. If I uninstall IIS adapter and install its build-in
webserver, will I be able to do Remote Java Application debug? Or I still need
to launch <st1:place w:st="on"><st1:City                     
w:st="on">SE</st1:City> <st1:State
w:st="on">AS</st1:State></st1:place> within            
Eclipse?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'><o:p>&nbsp;</o:p></span>&l
t;/font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'>Thanks.<o:p></o:p></span></
font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'>Danny<o:p></o:p></span></fo
nt></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'><o:p>&nbsp;</o:p></span>&l
t;/font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span      
style='font-size:
10.0pt;font-f
amily:Arial;color:navy'><o:p>&nbsp;</o:p></span>&l
t;/font></p>

<div>

<div class=MsoNormal align=center                                            
style='text-align:center'><font size=3
color=black face="Times New Roman"><span                        
style='font-size:12.0pt;color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black                   
face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-w
eight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span                                      
style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> servletexec-interest-owner@newatlanta.com
[mailto:servletexec-interest-owner@newatlanta.com] <b><span            
style='font-weight:
bold'>On Behalf Of </span></b>matt@newatlanta.com<br>

<b><span                                                               
style='font-weight:bold'>Sent:</span></b> Thursday,    
August 09, 2007
12:21 PM<br>
<b><span                                                               
style='font-weight:bold'>To:</span></b>                
<st1:PersonName                                                              
w:st="on">servletexec-i
nterest@newatlanta.com</st1:PersonName><br>
<b><span                                                               
style='font-weight:bold'>Subject:</span></b> Re:       
[ServletExec]
Debugging AS with Eclipse</span></font><font                     
color=black><span
style='color:windowtext'><o:p></o:p></span></f
ont></p>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New       
Roman"><span
style='font-s
ize:12.0pt'><o:p>&nbsp;</o:p></span></font>&
lt;/p>

<p class=MsoNormal><font size=3 color=black face=Verdana><span
style='font-size:12.0pt;font-family: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
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 <st1:place                
w:st="on">SE AS</st1:place>
instance in its debugger. Then you can set breakpoints in your Servlet code,
make a request, and step debug your code.<br>
<br>
</span></font><o:p></o:p></p>

<pre><font size=2 color=black face="Courier New"><span 
style='font-size:10.0pt'>Matt                                      
McGinty<o:p></o:p></span></font></pre><pre>&
lt;font
size=2 color=black face="Courier New"><span                     
style='font-size:10.0pt'>Software                                  
Engineer<o:p></o:p></span></font></pre><pre>
<font
size=2 color=black face="Courier New"><span                     
style='font-size:10.0pt'>New <st1:City
w:st="on"><st1:place                                            
w:st="on">Atlanta</st1:place></st1:City>               
Communications,                                                                 
LLC<o:p></o:p></span></font></pre><pre><f
ont
size=2 color=black face="Courier New"><span                     
style='font-size:10.0pt'><a
href="http://www.newatlanta.com">http://www.newatlanta.com</a>
; <o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=3 color=black face="Times New       
Roman"><span
style='font-size:12.0pt'><br>
<br>
Lin, Danny wrote: <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span     
style='font-size:
10.0pt;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.<u1:p></u1:p></span></font><o:p></o:p
></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span     
style='font-size:
10.0pt;font-f
amily:Arial'><u1:p>&nbsp;</u1:p></span></font&g
t;<o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span     
style='font-size:
10.0pt;font-family:Arial'>Please                                        
help.<u1:p></u1:p></span></font><o:p></o:p>&
lt;/p>

<p class=MsoNormal><font size=2 color=black face=Arial><span     
style='font-size:
10.0pt;font-f
amily:Arial'><u1:p>&nbsp;</u1:p></span></font&g
t;<o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span     
style='font-size:
10.0pt;font-f
amily:Arial'>Thanks.<u1:p></u1:p></span></font>&
lt;o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span     
style='font-size:
10.0pt;font-f
amily:Arial'>Danny<u1:p></u1:p></span></font><
;o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span     
style='font-size:
10.0pt;font-f
amily:Arial'><u1:p>&nbsp;</u1:p></span></font&g
t;<o:p></o:p></p>

</div>

</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