Re: What commands to run in the Tomcat Debug Mode on Linux
Wendy Smoak wrote: I'm also unsure of the difference between 'run' and 'start'. If you just type 'catalina.bat' with no parameters, it prints out a usage statement that lists 'jpda start' but not 'run jpda'. Since it lists both 'run -security' and 'start -security' separately I have to wonder if 'run jpda' is even a valid option. "run jpda" does not work. But "jpda run" works fine , I use it all the time. Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What commands to run in the Tomcat Debug Mode on Linux
From: "Jyothi Palvai" <[EMAIL PROTECTED]> > But I am on a linux box and I am unable to get it to start by using the socket. > I set the socket to 8000 but it does not seem to work, JPDA_ADDRESS=8000 > and JPDA_TRANSPORT=dt_socket is already set in catalina.sh, > so I just run using catalina run jpda. And when I run tomcat it starts > and after that nothing happens. You're going to have to be more specific than "it does not seem to work." What did it do, and what did you think would happen? I'm not sure if you're expecting Tomcat to "do something" when you start it in debug mode. It doesn't. It acts normally until you connect to it with the debugger you've chosen to use. (Which one is that?) I'm also unsure of the difference between 'run' and 'start'. If you just type 'catalina.bat' with no parameters, it prints out a usage statement that lists 'jpda start' but not 'run jpda'. Since it lists both 'run -security' and 'start -security' separately I have to wonder if 'run jpda' is even a valid option. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What commands to run in the Tomcat Debug Mode on Linux
But I am on a linux box and I am unable to get it to start by using the socket. I set the socket to 8000 but it does not seem to work, JPDA_ADDRESS=8000 and JPDA_TRANSPORT=dt_socket is already set in catalina.sh, so I just run using catalina run jpda. And when I run tomcat it starts and after that nothing happens. Wendy Smoak <[EMAIL PROTECTED]> wrote:From: "Jyothi Palvai" > I think I have tomcat running in debug mode on a linux, I did this by running the > "catalina run debug" command but I don't know the debug commands to run to > get to start Tomcat, watch the variables, put debug points etc. You appear to be asking how to use your debugger, which we can't answer unless you tell us what you're using. I use JSwat with the Tomcat, Struts and Commons source code available. All I do is start Tomcat with 'catalina.bat jpda start'. On Windows, it defaults to shared memory, and I see the following in the console: Listening for transport dt_shmem at address: jdbconn (IIRC, on Linux it defaults to the other option, involving a socket.) There is some info here: http://jakarta.apache.org/tomcat/faq/development.html#rd HTH -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
Re: What commands to run in the Tomcat Debug Mode on Linux
From: "Jyothi Palvai" <[EMAIL PROTECTED]> > I think I have tomcat running in debug mode on a linux, I did this by running the > "catalina run debug" command but I don't know the debug commands to run to > get to start Tomcat, watch the variables, put debug points etc. You appear to be asking how to use your debugger, which we can't answer unless you tell us what you're using. I use JSwat with the Tomcat, Struts and Commons source code available. All I do is start Tomcat with 'catalina.bat jpda start'. On Windows, it defaults to shared memory, and I see the following in the console: Listening for transport dt_shmem at address: jdbconn (IIRC, on Linux it defaults to the other option, involving a socket.) There is some info here: http://jakarta.apache.org/tomcat/faq/development.html#rd HTH -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What commands to run in the Tomcat Debug Mode on Linux
Can anyone help, I need this info badly. Thanks in advance. -Jyothi Jyothi Palvai <[EMAIL PROTECTED]> wrote: Hi All, I think I have tomcat running in debug mode on a linux, I did this by running the "catalina run debug" command but I don't know the debug commands to run to get to start Tomcat, watch the variables, put debug points etc. Thanks in advance for providing this info. Thanks, Jyothi - Start your day with Yahoo! - make it your home page __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
What commands to run in the Tomcat Debug Mode on Linux
Hi All, I think I have tomcat running in debug mode on a linux, I did this by running the "catalina run debug" command but I don't know the debug commands to run to get to start Tomcat, watch the variables, put debug points etc. Thanks in advance for providing this info. Thanks, Jyothi - Start your day with Yahoo! - make it your home page
Re: Tomcat DEBUG log4j and 5.5.4?
Getting log4j logging running in Tomcat-5.5.x is pretty simple. Here's what you need... 1. Put log4j.jar in common/lib 2. Put commons-logging.jar (not commons-logging-api.jar!) in common/lib 3. Put log4j.xml or log4j.properties in common/classes You'll want to look at the new naming scheme for Host and Context loggers in the 5.5 docs. Note that if you are using log4j-1.2.x, you can't use log4j.xml because of the way the Host and Context loggers are named. They use characters that conflict with what the XML spec defines as allowed characters for an attribute of type "ID". What I mean is the "name" attribute, which is of type "ID" when using the DOMConfigurator. Log4j-1.3 deprecates the DOMConfigurator in favor of the JoranConfigurator which doesn't validate against a DTD, so there is no conflict there. For now, just use the properties format. Here's a sample log4j.properties... log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-5p[%-8.8t]: %39.39c %-6r - %m%n #log4j.appender.A2=org.apache.log4j.FileAppender #log4j.appender.A2.File=${catalina.home}/logs/stdout.log #log4j.appender.A2.Append=false #log4j.appender.A2.layout=org.apache.log4j.PatternLayout #log4j.appender.A2.layout.ConversionPattern=%-5p[%-8.8t]: %39.39c %-6r - %m%n log4j.appender.LOCALHOST=org.apache.log4j.RollingFileAppender log4j.appender.LOCALHOST.File=${catalina.home}/logs/localhost.log log4j.appender.LOCALHOST.MaxFileSize=1000KB log4j.appender.LOCALHOST.MaxBackupIndex=1 log4j.appender.LOCALHOST.layout=org.apache.log4j.PatternLayout log4j.appender.LOCALHOST.layout.ConversionPattern=%-5p[%-8.8t]: %39.39c %-6r - %m%n log4j.appender.SOMEAPP=org.apache.log4j.DailyRollingFileAppender log4j.appender.SOMEAPP.File=${catalina.home}/logs/localhost_someapp.log log4j.appender.SOMEAPP.DatePattern='.'-MM-dd log4j.appender.SOMEAPP.layout=org.apache.log4j.PatternLayout log4j.appender.SOMEAPP.layout.ConversionPattern=%c{1} %-6r - %m%n log4j.appender.ANOTHERAPP=org.apache.log4j.DailyRollingFileAppender log4j.appender.ANOTHERAPP.File=${catalina.home}/logs/localhost_anotherapp.log log4j.appender.ANOTHERAPP.DatePattern='.'-MM-dd log4j.appender.ANOTHERAPP.layout=org.apache.log4j.PatternLayout log4j.appender.ANOTHERAPP.layout.ConversionPattern=%c{1} %-6r - %m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/someapp]=DEBUG, SOMEAPP log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/someapp]=false log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/anotherapp]=INFO, ANOTHERAPP log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/anotherapp]=false log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INFO, LOCALHOST log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=false log4j.rootLogger=INFO, A1 Jake Quoting "Kevin A. Burton" <[EMAIL PROTECTED]>: > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html > > Does this actually work? I followed the steps for log4j and it won't > work at all. I still get the standard logging. Are there any properties > settings I can use to get more info on the bootstrap process? > > Kevin > > -- > > Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an > invite! Also see irc.freenode.net #rojo if you want to chat. > > Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html > > If you're interested in RSS, Weblogs, Social Networking, etc... then you > should work for Rojo! If you recommend someone and we hire them you'll > get a free iPod! > > Kevin A. Burton, Location - San Francisco, CA >AIM/YIM - sfburtonator, Web - http://peerfear.org/ > GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 > > > - > 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]
Tomcat DEBUG log4j and 5.5.4?
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html Does this actually work? I followed the steps for log4j and it won't work at all. I still get the standard logging. Are there any properties settings I can use to get more info on the bootstrap process? Kevin -- Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: Please introduce a good Tomcat debug tool
Deepak, and All, I have JBuilder 9 developer edition. But the version of the embeded Tomcat is 4.1. We want to use Tomcat 5.1.9. Do you have some detail instruction for adding Tomcat 5 to the server configuration in Jbuilder 9 (I am preparing doing it)? Thanks a lot. Also thanks for all the other replies. -Original Message- From: deepak shripat mane [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 9:26 PM To: Tomcat Users List Subject: Re: RE: Please introduce a good Tomcat debug tool Hii.. You can use Eclipse or JBuilder with tomcat server for debugging and Tracing servlet and JSP Page or u can use third party tool for program Deepak On Wed, 16 Jun 2004 Michael Cardon wrote : >I use eclipse with the 'myeclipse' plug-in. > >see www.eclipse.org > >and www.myeclipseide.com > > >-Original Message- > From: Daxin Zuo [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 15, 2004 12:13 PM >To: Tomcat Users List >Subject: Please introduce a good Tomcat debug tool > > >I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to >debug JSP and Servelt in TOMCAT? >Thanks. > > >- >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]
Re: Please introduce a good Tomcat debug tool
> == > Date: Tue, 15 Jun 2004 12:12:41 -0700 > From: "Daxin Zuo" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Subject: Please introduce a good Tomcat debug tool > == > > I currently run Tomcat 4.1.9 (without apache) to run JSP and > ervlet. How to debug JSP and Servelt in TOMCAT? > Thanks. NetBeans. It is available with a Tomcat embedded too. G -- Giuseppe Briotti [EMAIL PROTECTED] "Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius." (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: Please introduce a good Tomcat debug tool
NetBeans is also a good IDE for Tomcat 5.0.x development Regards. Mariano López -Mensaje original- De: deepak shripat mane [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 16 de junio de 2004 6:26 Para: Tomcat Users List Asunto: Re: RE: Please introduce a good Tomcat debug tool Hii.. You can use Eclipse or JBuilder with tomcat server for debugging and Tracing servlet and JSP Page or u can use third party tool for program Deepak On Wed, 16 Jun 2004 Michael Cardon wrote : >I use eclipse with the 'myeclipse' plug-in. > >see www.eclipse.org > >and www.myeclipseide.com > > >-Original Message- > From: Daxin Zuo [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 15, 2004 12:13 PM >To: Tomcat Users List >Subject: Please introduce a good Tomcat debug tool > > >I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to >debug JSP and Servelt in TOMCAT? >Thanks. > > >- >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]
Re: RE: Please introduce a good Tomcat debug tool
Hii.. You can use Eclipse or JBuilder with tomcat server for debugging and Tracing servlet and JSP Page or u can use third party tool for program Deepak On Wed, 16 Jun 2004 Michael Cardon wrote : >I use eclipse with the 'myeclipse' plug-in. > >see www.eclipse.org > >and www.myeclipseide.com > > >-Original Message- > From: Daxin Zuo [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 15, 2004 12:13 PM >To: Tomcat Users List >Subject: Please introduce a good Tomcat debug tool > > >I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to >debug JSP and Servelt in TOMCAT? >Thanks. > > >- >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: Please introduce a good Tomcat debug tool
Please, let's not start a IDE flame war again... []s Emerson Randy wrote: I really like intellij by jetbrains RP -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 2:13 PM To: Tomcat Users List Subject: Please introduce a good Tomcat debug tool I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to debug JSP and Servelt in TOMCAT? Thanks. - 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] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please introduce a good Tomcat debug tool
I really like intellij by jetbrains RP -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 2:13 PM To: Tomcat Users List Subject: Please introduce a good Tomcat debug tool I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to debug JSP and Servelt in TOMCAT? Thanks. - 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: Please introduce a good Tomcat debug tool
I use eclipse with the 'myeclipse' plug-in. see www.eclipse.org and www.myeclipseide.com -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 12:13 PM To: Tomcat Users List Subject: Please introduce a good Tomcat debug tool I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to debug JSP and Servelt in TOMCAT? Thanks. - 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: Please introduce a good Tomcat debug tool
--- Daxin Zuo <[EMAIL PROTECTED]> wrote: > I currently run Tomcat 4.1.9 (without apache) to run > JSP and ervlet. How to > debug JSP and Servelt in TOMCAT? > Thanks. > i use the eclipse IDE available at: http://www.eclipse.org it's great and it's FREE!!! __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please introduce a good Tomcat debug tool
I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to debug JSP and Servelt in TOMCAT? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Debug Level
When I set a Context's debug=99, it prints all jsp's that are mapped to that Context. Is there a way to make Tomcat report what Bean/Class and JSP it is currently executing ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Debug.
The Java VM doesn't really support that. Why not let them each run their own instance of Tomcat? -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 > -Original Message- > From: João Augusto Charnet [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 10:33 AM > To: Tomcat Users List > Subject: Re: Tomcat Debug. > > > I'm not sure what the logger is used for. What I want is to have > diferent developers debugging the application on the same > Tomcat. For this to happen I wanted to tell Tomcat to listen > to serveral ports > in Debugging mode. So that each developer has it's own debug > port from > Tomcat. > > Thanks. > > John. > > Ben Ricker wrote: > > >On Thu, 2003-02-13 at 05:28, João Augusto Charnet wrote: > > > > > > > >>Is it possible to set Tomcat to listen to diferent ports when > >>debugging ? > >> > >> > > > >What I do with roughly 12 developers is that I add a logger for each > >user that logs to each developers web app directory. They > use the admin > >interface to restart/redeploy their own context. > > > >Not sure if this is exactly what you want... > > > >Ben Ricker > > > > > > > >>Here's the problem. We have a group of developers, who > acesses tomcat > >>remotely in one machine. Each developer accesses one > context of Tomcat. > >>However to Debug, since Tomcat uses one port, when somebody is > >>debugging, the execution of the entire group is going to be > in debug > >>mode. This is not interesting. What we want is to each > developer have > >>it's own debug port. > >>Did I make myself clear ? > >>If not please let me know. > >>Thanks a lot... > >>Sincerely, > >>John. > >> > >> > >> > - > >>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: Tomcat Debug.
I'm not sure what the logger is used for. What I want is to have diferent developers debugging the application on the same Tomcat. For this to happen I wanted to tell Tomcat to listen to serveral ports in Debugging mode. So that each developer has it's own debug port from Tomcat. Thanks. John. Ben Ricker wrote: On Thu, 2003-02-13 at 05:28, João Augusto Charnet wrote: Is it possible to set Tomcat to listen to diferent ports when debugging ? What I do with roughly 12 developers is that I add a logger for each user that logs to each developers web app directory. They use the admin interface to restart/redeploy their own context. Not sure if this is exactly what you want... Ben Ricker Here's the problem. We have a group of developers, who acesses tomcat remotely in one machine. Each developer accesses one context of Tomcat. However to Debug, since Tomcat uses one port, when somebody is debugging, the execution of the entire group is going to be in debug mode. This is not interesting. What we want is to each developer have it's own debug port. Did I make myself clear ? If not please let me know. Thanks a lot... Sincerely, John. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Debug.
On Thu, 2003-02-13 at 05:28, João Augusto Charnet wrote: > Is it possible to set Tomcat to listen to diferent ports when debugging ? What I do with roughly 12 developers is that I add a logger for each user that logs to each developers web app directory. They use the admin interface to restart/redeploy their own context. Not sure if this is exactly what you want... Ben Ricker > Here's the problem. We have a group of developers, who acesses tomcat > remotely in one machine. Each developer accesses one context of Tomcat. > However to Debug, since Tomcat uses one port, when somebody is > debugging, the execution of the entire group is going to be in debug > mode. This is not interesting. What we want is to each developer have > it's own debug port. > Did I make myself clear ? > If not please let me know. > Thanks a lot... > Sincerely, > John. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Debug.
First of all I'd like to thank everyone who helped me in configuring the ADMIN in Tomcat 4.1.18. It worked fine. Now I have another question. Is it possible to set Tomcat to listen to diferent ports when debugging ? Here's the problem. We have a group of developers, who acesses tomcat remotely in one machine. Each developer accesses one context of Tomcat. However to Debug, since Tomcat uses one port, when somebody is debugging, the execution of the entire group is going to be in debug mode. This is not interesting. What we want is to each developer have it's own debug port. Did I make myself clear ? If not please let me know. Thanks a lot... Sincerely, John. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]