From users-return-263908-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Sun Feb 25 16:47:25 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 636CA18064C for ; Sun, 25 Feb 2018 16:47:25 +0100 (CET) Received: (qmail 530 invoked by uid 500); 25 Feb 2018 15:47:23 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 519 invoked by uid 99); 25 Feb 2018 15:47:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Feb 2018 15:47:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E050EC00B8 for ; Sun, 25 Feb 2018 15:47:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.688 X-Spam-Level: X-Spam-Status: No, score=0.688 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nSGllCTo9m7P for ; Sun, 25 Feb 2018 15:47:19 +0000 (UTC) Received: from sonic312-20.consmr.mail.bf2.yahoo.com (sonic312-20.consmr.mail.bf2.yahoo.com [74.6.128.82]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9DE2D5F1B9 for ; Sun, 25 Feb 2018 15:47:19 +0000 (UTC) X-YMail-OSG: 1tlQvvEVM1mNGNlzCFd7zbw_llcU55jaFibMHXRQboLFXFGrU9x3YAXJ.wQM5dy gdyrhzPHhSgb.MKhUIO_ySiUp.onBTQUKSadY9TljK87IZO1pjV_3_Y7Ih2PYpIzhs.myLBt1LIr QeGU9JZ.jzWVK2kRxTSL1ypoZYeJlOEBWRZBwY7RkvYkudhO_jp9MAOBNE_tPiSzZUCu6OTtRm7k E_zCPE51mbTlxeEQqZNCftex3KvJq5pzNso9c.zdvt3zBGhScazxSlGUubMGdO8v_4Wvg_SzWEHx Dtx2V1NJtyrdM6m7C4cKc_NPHU7Jl2gSUBpUU._50NzNh1ozKZYXHa.p3fzM.sZMAyuLV3t_EYnM jJUK4P8jqWHewtRY.R3Roh4yyO3SYHuMB2FxCz0BO4rkpjbRR9R.FdmoqrJfJTw98qLSoscI0WYq srNhoBsYzFH2nsP1KvoupZr6jGdTEKQckianOBRTGwgk9SQdo5tAETX3hptji Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Sun, 25 Feb 2018 15:47:13 +0000 Date: Sun, 25 Feb 2018 15:47:12 +0000 (UTC) From: Karen Goh Reply-To: Karen Goh To: Cc: Tomcat Users List Message-ID: <618387807.5623384.1519573632854@mail.yahoo.com> Subject: Re: Tomcat stopped and Debug can't be done in Eclipse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <618387807.5623384.1519573632854.ref@mail.yahoo.com> X-Mailer: WebService/1.1.11419 YahooMailBasic Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 -------------------------------------------- On Wed, 2/21/18, Konstantin Kolinko wrote: Subject: Re: Tomcat stopped and Debug can't be done in Eclipse To: "Karen Goh" Cc: "Tomcat Users List" Date: Wednesday, February 21, 2018, 5:43 AM =20 2018-02-20 17:57 GMT+03:00 Karen Goh : > > Hi Konstantin, > > Can you point me some useful resources where I can learn about setting the Tomcat launch configuration. =20 1. On the topic of debugging, see the following page: https://wiki.apache.org/tomcat/FAQ/Developing =20 The following two items on that page should be interesting for you: a) "Official Eclipse IDE Web Tools FAQ for Tomcat" =20 with links to Eclipse documentation =20 b) "How do I configure Tomcat to support remote debugging?" =20 This is for the use case when you start Tomcat separately and attach a debugger to an already running Tomcat. =20 =20 2. On a topic of simply running Tomcat (not debugging), official documentation is "RUNNING.txt" file. =20 There is also http://tomcat.apache.org/tomcat-8.5-doc/setup.html =20 Environment variables used by launch scripts are documented in a comment at the top of those scripts (catalina.bat, catalina.sh). =20 =20 > Currently, I have the below inside my arguments : > > -Dcatalina.base=3D"C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.ec= lipse.wst.server.core\tmp0" -Dcatalina.home=3D"C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" -Dwtp.deploy=3D"C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.eclip= se.wst.server.core\tmp0\wtpwebapps" -Djava.endorsed.dirs=3D"C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed" > > Is this the part that is causing Tomcat to just hang ? Or I have missed out something I am not aware of.=C2=A0 Kindly highlight please. =20 3. When Tomcat starts, its actual arguments are printed by VersionLoggerListener. =20 You can see them in your previous e-mail, Search for "Command line argument" http://markmail.org/message/tgymk3r43ox5ggps =20 > Cos I can't proceed with any debugging at all as in run the green button : Please see this attachment at https://imgur.com/OQLyJFb =20 4. In your image I see that your Tomcat is not running =20 (The "Console" view at the bottom says "". The "Servers" view says "[Stopped, Synchronized]".) =20 How did you start it? =20 5. My recipe will be: - In the "Servers" view select the server and deploy you application onto it (right click -> context menu -> ...) - Then click the small green "bug" button in the toolbar of this view (in the small toolbar right above "Servers" view, not the one in the main toolbar). The server should launch in debug mode. =20 It is not working following your step above. If I started Tomcat and then = click the green 'debug' button I will have problem going back to the Java E= E view to click on the tutorRegister.jsp page for it to run in debug mode. Last time, when I did debug - it was so simple. I just click on tutorRegis= ter.jsp and Eclipse will prompt me for change to debug perspective. After = that, when I complete the form and hit submit, the IDE will then go to the = breakpoint and allows debugging from there. Can I know how to make this happen again ? HTH =20 > Is there any other changes I need to make since I am also using a maven plug in as below : > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 org.apache.maven.plugins >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 maven-war-plugin >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 3.2.0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 > > It used to be very easy for me to do debugging and now things are so much complicated now. > =20 Best regards, Konstantin Kolinko =20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org =20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org