Re: debugging servlets?

2002-10-24 Thread Cédric Viaud
I'm sorry but a French one did the job.

http://www.sysdeo.com/eclipse/tomcatPlugin.html

An information should be send to the Eclipse project ...

Regards,

   Cédric

- Original Message -
From: Jiann-Ming Su [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 8:51 PM
Subject: Re: debugging servlets?


 On Wed, 23 Oct 2002, Cédric Viaud wrote:

  Try using Eclipse with the Tomcat plug-in.
 
  You can run your web application and use the debugger at the same time.
 
  Very very convenient !!!
 

 http://eclipse.org/eclipse/faq/eclipse-faq.html#misc_3

 --
 Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
 Development Team Systems Administrator
 General Libraries Systems Division


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: debugging servlets?

2002-10-23 Thread Jacob Kjome

http://www.sysdeo.com/eclipse/tomcatPlugin.html

Jake

At 02:51 PM 10/23/2002 -0400, you wrote:

On Wed, 23 Oct 2002, Cédric Viaud wrote:

 Try using Eclipse with the Tomcat plug-in.

 You can run your web application and use the debugger at the same time.

 Very very convenient !!!


http://eclipse.org/eclipse/faq/eclipse-faq.html#misc_3

--
Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
Development Team Systems Administrator
General Libraries Systems Division


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: debugging servlets?

2002-10-23 Thread Cédric Viaud
Try using Eclipse with the Tomcat plug-in.

You can run your web application and use the debugger at the same time.

Very very convenient !!!

Regards,

Cédric

- Original Message -
From: Jiann-Ming Su [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 5:12 PM
Subject: debugging servlets?


 What's the best way to debug servlets?  Is there software or scripts that
can
 parse through the log files?  Catalina.out doesn't have timestamps.  And,
 there's all those other log files as well.  Seems a bit cumbersome.
Thanks
 for any tips.

 --
 Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
 Development Team Systems Administrator
 General Libraries Systems Division


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: debugging servlets?

2002-10-23 Thread Jiann-Ming Su
On Wed, 23 Oct 2002, Cédric Viaud wrote:

 Try using Eclipse with the Tomcat plug-in.
 
 You can run your web application and use the debugger at the same time.
 
 Very very convenient !!!
 

http://eclipse.org/eclipse/faq/eclipse-faq.html#misc_3

-- 
Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
Development Team Systems Administrator
General Libraries Systems Division


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Debugging servlets !!!

2002-09-30 Thread Jeff Sykes

Try here. These are directions for JBuilder 4, but I have seen this work
on 4, 5, 6 and 7, too.

http://community.borland.com/article/0,1410,27759,00.html

 Mohan,Gautam wrote:
 
 
 
 Hi ,
 
normally if any java program has to be debugged we use
 options java -Xdebug -Xnoagent
 -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=y
 HelloWorld
 
 
 
 and then if using JBuilder we can attach to the program at port 
 and start debugging or with jdb we use jdb -attach hostname:port .
 
 
 
 But for servlet debugging how to go about doing the same.
 
 
 
 
 
 Thanx and Rgds,
 
 Gautam
 
 
 
 
 
 Thanx and Rgds,
 
 Gautam
 
 
 
 The only way to discover the limits of the possible is to
 
 look beyond into the possible.
 
 
 
 *
 
 Gautam Mohan Srivastava
 
 System Engineer
 
 Wipro Technologies
 
 No. 26,Hosur Road
 
 Bommanahalli
 
 Bangalore-560068
 
 India
 
 Tel :- 91-080-5732293 Extn-2154
 
 Fax :- 91-080-5732696
 
 www.wipro.com
 
 
 
 *
 
 
 
Name: Wipro_Disclaimer.txt
Wipro_Disclaimer.txtType: Plain Text (text/plain)
Encoding: 7bit
 
 ---
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]

-- 
Jeff Sykes
home.email - [EMAIL PROTECTED] 
home.phone - 831-460-1977
home.fax   - 508-355-0506

This does remind me of a good 
 friend who used to taunt me 
 whenever i said, 'PIN Number.' 
 In a very silly voice he would 
 say, 'Yes! Give me my PIN Number 
 so that i can go to the ATM 
 Machine and get some Cash Money!'
  - Anon


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




Re: Debugging servlets !!!

2002-09-27 Thread Toni . Kielo


On 2002-09-27 Mohan,Gautam  wrote:
 Hi ,

    normally if any java program has to be debugged we use options
java -Xdebug -Xnoagent
 -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=y HelloWorld

 and then if using JBuilder we can attach to the program at port  and
start debugging or with
 jdb we use jdb -attach hostname:port .

 But for servlet debugging how to go about doing the same.

Hi.

I've never done this, so im not 100% sure, but this should work according
to docs.

Modify catalina.sh-script so that CATALINA_OPTS-parameters value is  the
options you use normally (-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=,server=y,suspend=y), except add
-Djava.compiler=NONE to it.

Debugging servlets is propably a little different then normal java apps.
Docs say that

   1.  Set one or more breakpoints in your servlet code.
   2.  From the Run menu, select Debug servletname.java.
   3.  Start the servlet running (for example, start your web browser
 and open a connection to the servlet).
   4.  Debug as normal.

If your using Oracle's JDeveloper you should propably use JDevelopers
servler.jar instead of tomcats. Don't know about JBuilder.

-
Toni Kielo
Ineo Oy
-


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




RE: Debugging servlets

2002-09-26 Thread gautam

Borland's JBuilder does a good job. Check it out.

Regards,

Satpathy
  -Original Message-
  From: Mohan,Gautam [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 1:39 PM
  To: [EMAIL PROTECTED]
  Subject: Debugging servlets


  Hi,

  I want to know is debugging servlets possible in Tomcat(version 4) .
If yes then how to go about it.











  Thanx and Rgds,

  Gautam



  The only way to discover the limits of the possible is to

  look beyond into the possible.



  *

  Gautam Mohan Srivastava

  System Engineer

  Wipro Technologies

  No. 26,Hosur Road

  Bommanahalli

  Bangalore-560068

  India

  Tel :- 91-080-5732293 Extn-2154

  Fax :- 91-080-5732696

  www.wipro.com



  *






RE: Debugging servlets

2002-09-26 Thread Collins, Jim

I use judicious use of log statements.

 -Original Message-
 From: gautam [mailto:[EMAIL PROTECTED]]
 Sent: 16 August 2002 09:24
 To: Tomcat Users List
 Subject: RE: Debugging servlets
 
 
 Borland's JBuilder does a good job. Check it out.
 
 Regards,
 
 Satpathy
   -Original Message-
   From: Mohan,Gautam [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 26, 2002 1:39 PM
   To: [EMAIL PROTECTED]
   Subject: Debugging servlets
 
 
   Hi,
 
   I want to know is debugging servlets possible in 
 Tomcat(version 4) .
 If yes then how to go about it.
 
 
 
 
 
 
 
 
 
 
 
   Thanx and Rgds,
 
   Gautam
 
 
 
   The only way to discover the limits of the possible is to
 
   look beyond into the possible.
 
 
 
   
 *
 
   Gautam Mohan Srivastava
 
   System Engineer
 
   Wipro Technologies
 
   No. 26,Hosur Road
 
   Bommanahalli
 
   Bangalore-560068
 
   India
 
   Tel :- 91-080-5732293 Extn-2154
 
   Fax :- 91-080-5732696
 
   www.wipro.com
 
 
 
   
 *
 
 
 
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




Re: Debugging servlets

2002-09-26 Thread Ben Walding

It sure is...
If you're using Eclipse as your development environment, check out the 
TomCat debug plugin http://www.sysdeo.com/eclipse/tomcatPlugin.html

Mohan,Gautam wrote:

 Hi,

 I want to know is debugging servlets possible in Tomcat(version 4) 
 . If yes then how to go about it.

  

  

  

  

  

 Thanx and Rgds,

 Gautam

  

 The only way to discover the limits of the possible is to

 look beyond into the possible.

  

 *

 Gautam Mohan Srivastava

 System Engineer

 Wipro Technologies

 No. 26,Hosur Road

 Bommanahalli

 Bangalore-560068

 India

 Tel :- 91-080-5732293 Extn-2154

 Fax :- 91-080-5732696

 www.wipro.com http://www.wipro.com

  

 *

  



**Disclaimer**

 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.



  



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





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




RE: Debugging servlets

2002-09-26 Thread Barney Hamish

Have a look at log4j

-Original Message-
From: Mohan,Gautam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:09 AM
To: [EMAIL PROTECTED]
Subject: Debugging servlets



Hi, 

I want to know is debugging servlets possible in Tomcat(version 4) . If
yes then how to go about it.

 

 

 

 

 

Thanx and Rgds,

Gautam

 

The only way to discover the limits of the possible is to 

look beyond into the possible.

 

*

Gautam Mohan Srivastava

System Engineer

Wipro Technologies

No. 26,Hosur Road

Bommanahalli

Bangalore-560068

India

Tel :- 91-080-5732293 Extn-2154

Fax :- 91-080-5732696

www.wipro.com http://www.wipro.com 

 

*

 




Re: Debugging servlets

2002-09-26 Thread Raphael Posmyk

gautam schrieb:

   I want to know is debugging servlets possible in Tomcat(version 4) .
 If yes then how to go about it.

Just user remote debuging with JPDA.

Ciao, Raphael




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




Re: Debugging Servlets

2002-07-12 Thread Jacob Kjome

I use bugseeker 1.0.2 for Java2:
http://www.karmira.com/products/bugseeker2/

I created a new environment variable:

JPDA_FLAGS = -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

Then I created a Tomcat Service which I use exclusively for debugging:

%CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina-JPDA 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar 
-Dcatalina.home=%CATALINA_HOME% %JPDA_FLAGS% %CATALINA_OPTS% -Xrs -start 
org.apache.catalina.startup.BootstrapService -params start -stop 
org.apache.catalina.startup.BootstrapService -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

I am able to attach to the socket using bugseeker's remote debugging.  You 
should be able to do the same in JSwat.

If you want to use bugseeker and want a project that is set up to work 
properly to debug Tomcat servlets, send me a personal email and I'll send 
you the project file.

Jake

At 10:09 AM 7/11/2002 +0200, you wrote:


Can somebody provide me a usable HOW-TO for
debugging servlets under TomCat?

I want to connect remotely TomCat using e.g.
JSwat or cqjd (JPDA), but without success.

I am using Tomcat 4.0.3 and 4.1.7beta, have
CATALINA_OPTS set (-Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,address=,
suspend=n) and still is does't work.

I must be doing something fundamentally wrong as
nobody else seems to have problems and in the documentations
(e.g. JSwat) there is written that this should be VERY
easy... :-)))

Help appreciated!

Thanks...


_
Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt: 
http://www.hotmail.com/de


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



RE: debugging servlets

2001-04-04 Thread Benoît Jacquemont

You have to use the -Djava.compiler=NONE command line option in your java
command line in the tomcat.bat/tomcat.sh

Benot

 -Message d'origine-
 De : Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Envoy : mercredi 4 avril 2001 17:38
  : [EMAIL PROTECTED]
 Objet : debugging servlets


 What was again the magic modification one has to make to
 allow a more descriptive line in backtrace rather than
 '(compiled code)'
 when one gets for example:

 java.lang.NullPointerException
 at java.util.Arrays.sort(Compiled Code)
 at Some.doGet(Compiled Code)
 at Some.doPost(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at
 org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
 at org.apac

 --
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]




RE: debugging servlets

2001-04-04 Thread William Kaufman

There's no magic: you need to re-compile your classes with the "-debug" flag
on.


-- Bill K.


 -Original Message-
 From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 04, 2001 8:38 AM
 To: [EMAIL PROTECTED]
 Subject: debugging servlets
 
 
 What was again the magic modification one has to make to
 allow a more descriptive line in backtrace rather than 
 '(compiled code)'
 when one gets for example:
 
 java.lang.NullPointerException
 at java.util.Arrays.sort(Compiled Code)
 at Some.doGet(Compiled Code)
 at Some.doPost(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at 
 org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
 at org.apac
 
 -- 
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
 



RE: debugging servlets

2001-04-04 Thread Duck-Jin Chun

I also find that defining an evironment var works too.

For windows try: set JAVA_COMPILER=NONE


 -Original Message-
 From: Benot Jacquemont [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 04, 2001 11:42 AM
 To: [EMAIL PROTECTED]
 Subject: RE: debugging servlets
 
 
 You have to use the -Djava.compiler=NONE command line option 
 in your java
 command line in the tomcat.bat/tomcat.sh
 
 Benot
 
  -Message d'origine-
  De : Christoph Kukulies [mailto:[EMAIL PROTECTED]]
  Envoy : mercredi 4 avril 2001 17:38
   : [EMAIL PROTECTED]
  Objet : debugging servlets
 
 
  What was again the magic modification one has to make to
  allow a more descriptive line in backtrace rather than
  '(compiled code)'
  when one gets for example:
 
  java.lang.NullPointerException
  at java.util.Arrays.sort(Compiled Code)
  at Some.doGet(Compiled Code)
  at Some.doPost(Compiled Code)
  at javax.servlet.http.HttpServlet.service(Compiled Code)
  at javax.servlet.http.HttpServlet.service(Compiled Code)
  at
  org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
  at org.apac
 
  --
  Chris Christoph P. U. Kukulies [EMAIL PROTECTED]