Re: Sysdeo, Eclipse, Tomcat

2004-07-05 Thread Harry Mantheakis
Hello


 Should I be able to set a breakpoint normally in a servlet?


Yes, as long as you have started Tomcat using the Sysdeo plugin (from within
Eclipse).


 How do I set a breakpoint in JSP?


AFAIK that is not possible, at least not with the Sysdeo plugin. Something
like the 'MyEclipse' plugin might be able to help you there, though that is
a commercial plugin which you can test for a month or so.


 Where is my source (and binaries) supposed to be?


Source can be anywhere you like - as long as Eclipse knows where it is, and
can compile your project, the (servlet and object) debugging will work.

Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW.

I cannot help with the other two miscellaneous questions, though I do not
think you need be concerned with the Tomcat 'base' attribute if you have a
simple setup, and again, to begin with at least, I do not think you need be
concerned with JVM settings. (There are several JVM settings that you have
to consider on a production server, but that is another story.)

My solution to debugging JSPs is not to put any code in them at all (!)

I do everything with custom tags, which of course, are just objects that can
debugged in the usual way.

Good luck!

Harry Mantheakis
London, UK


 I am trying to figure out how to debug servlets and JSPs. I am running
 Windows ME,
 Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1.
 
 So, how should Sysdeo be set up?
 
 Should I be able to set a breakpoint normally in a servlet?
 
 How do I set a breakpoint in JSP?
 
 Where is my soruce (and binaries) supposed to be?
 
 Miscellaneous questions:
 
 1. What is Tomcat base? (Preferences/Tomcat)
 2. Any JVM settings needed? (Preferences/Tomcat/JVM settings)
 
 Thanks for your help. I have already tried to find a tutorial on the Web,
 but nothing has helped.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sysdeo, Eclipse, Tomcat

2004-07-05 Thread Dale, Matt

One slight way to debug jsp's but not perfect is to make the work directory for the 
context within the webapp so that eclipse can see it. That way you can place break 
points in the generated java code. Not ideal but better than nothing.

Ta
Matt

-Original Message-
From: Harry Mantheakis [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 09:21
To: Tomcat Users List
Subject: Re: Sysdeo, Eclipse, Tomcat


Hello


 Should I be able to set a breakpoint normally in a servlet?


Yes, as long as you have started Tomcat using the Sysdeo plugin (from within
Eclipse).


 How do I set a breakpoint in JSP?


AFAIK that is not possible, at least not with the Sysdeo plugin. Something
like the 'MyEclipse' plugin might be able to help you there, though that is
a commercial plugin which you can test for a month or so.


 Where is my source (and binaries) supposed to be?


Source can be anywhere you like - as long as Eclipse knows where it is, and
can compile your project, the (servlet and object) debugging will work.

Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW.

I cannot help with the other two miscellaneous questions, though I do not
think you need be concerned with the Tomcat 'base' attribute if you have a
be
concerned with JVM settings. (There are several JVM settings that you have
to consider on a production server, but that is another story.)

My solution to debugging JSPs is not to put any code in them at all (!)

I do everything with custom tags, which of course, are just objects that can
debugged in the usual way.

Good luck!

Harry Mantheakis
London, UK


 I am trying to figure out how to debug servlets and JSPs. I am running
 Windows ME,
 Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1.
 
 So, how should Sysdeo be set up?
 
 Should I be able to set a breakpoint normally in a servlet?
 
 How do I set a breakpoint in JSP?
 
 Where is my soruce (and binaries) supposed to be?
 
 Miscellaneous questions:
 
 1. What is Tomcat base? (Preferences/Tomcat)
 2. Any JVM settings needed? (Preferences/Tomcat/JVM settings)
 
 Thanks for your help. I have already tried to find a tutorial on the Web,
 but nothing has helped.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sysdeo, Eclipse, Tomcat

2004-07-05 Thread Kunthar
A better way to test JSP's at runtime is using Netbeans.
To do this, you should have total control over your server as root/admin.
1. Install Netbeans to server. www.netbeans.org
2. Installation of Tomcat + Ant (necessary jars + Apache httpd etc.) should be ready.
3. When you run Netbeans from your Linux client woila, you got Netbeans working on your 
local comp by strong Xserver abilities. If you sadly use Windoze try VNC Server-Client and do not call me :=)
4. Since Netbeans has its own HTTP Monitor you can see all passing parameters to Tomcat. This is quite good.
5. You can add break points, evaluate values and see whats up really at runtime as you do in other IDEs. 
6. Eclipse is good but as far as i compare Netbeans, Eclipse and IntelliJ, Netbeans hits.

Final Note: 90% percent of the compilation errors are arising from the ignorance of programmer.
Sometimes it is better to spend time for reading then spend time for trying to find a good debugger. 
I was using holly Homesite before i totally moved to Linux several days ago :=)

Take care all,
Gokhan

Harry Mantheakis wrote:
Hello
 

Should I be able to set a breakpoint normally in a servlet?
   


Yes, as long as you have started Tomcat using the Sysdeo plugin (from within
Eclipse).
 

How do I set a breakpoint in JSP?
   


AFAIK that is not possible, at least not with the Sysdeo plugin. Something
like the 'MyEclipse' plugin might be able to help you there, though that is
a commercial plugin which you can test for a month or so.
 

Where is my source (and binaries) supposed to be?
   


Source can be anywhere you like - as long as Eclipse knows where it is, and
can compile your project, the (servlet and object) debugging will work.
Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW.
I cannot help with the other two miscellaneous questions, though I do not
think you need be concerned with the Tomcat 'base' attribute if you have a
simple setup, and again, to begin with at least, I do not think you need be
concerned with JVM settings. (There are several JVM settings that you have
to consider on a production server, but that is another story.)
My solution to debugging JSPs is not to put any code in them at all (!)
I do everything with custom tags, which of course, are just objects that can
debugged in the usual way.
Good luck!
Harry Mantheakis
London, UK
 

I am trying to figure out how to debug servlets and JSPs. I am running
Windows ME,
Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1.
So, how should Sysdeo be set up?
Should I be able to set a breakpoint normally in a servlet?
How do I set a breakpoint in JSP?
Where is my soruce (and binaries) supposed to be?
Miscellaneous questions:
1. What is Tomcat base? (Preferences/Tomcat)
2. Any JVM settings needed? (Preferences/Tomcat/JVM settings)
Thanks for your help. I have already tried to find a tutorial on the Web,
but nothing has helped.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]