tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karen Goh <karenwo...@yahoo.com.INVALID>
Subject Re: Tomcat stopped and Debug can't be done in Eclipse
Date Sun, 25 Feb 2018 15:47:12 GMT

--------------------------------------------
On Wed, 2/21/18, Konstantin Kolinko <knst.kolinko@gmail.com> wrote:

 Subject: Re: Tomcat stopped and Debug can't be done in Eclipse
 To: "Karen Goh" <karenworld@yahoo.com>
 Cc: "Tomcat Users List" <users@tomcat.apache.org>
 Date: Wednesday, February 21, 2018, 5:43 AM
 
 2018-02-20 17:57 GMT+03:00 Karen
 Goh <karenworld@yahoo.com>:
 >
 > Hi Konstantin,
 >
 > Can you point me some
 useful resources where I can learn about setting the Tomcat
 launch configuration.
 
 1. On
 the topic of debugging, see the following page:
 https://wiki.apache.org/tomcat/FAQ/Developing
 
 The following two items on
 that page should be interesting for you:
 a)
 "Official Eclipse IDE Web Tools FAQ for Tomcat"
 
 with links to Eclipse
 documentation
 
 b) "How
 do I configure Tomcat to support remote debugging?"
 
 This is for the use case when
 you start Tomcat separately and attach a
 debugger to an already running Tomcat.
 
 
 2. On a topic
 of simply running Tomcat (not debugging), official
 documentation is "RUNNING.txt"
 file.
 
 There is also
 http://tomcat.apache.org/tomcat-8.5-doc/setup.html
 
 Environment variables used by
 launch scripts are documented in a
 comment
 at the top of those scripts (catalina.bat, catalina.sh).
 
 
 >
 Currently, I have the below inside my arguments :
 >
 >
 -Dcatalina.base="C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0"
 -Dcatalina.home="C:\Program
 Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
 -Dwtp.deploy="C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps"
 -Djava.endorsed.dirs="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.  Kindly highlight please.
 
 3. When Tomcat starts, its
 actual arguments are printed by
 VersionLoggerListener.
 
 You can see them in your previous e-mail,
 Search for "Command line argument"
 http://markmail.org/message/tgymk3r43ox5ggps
 
 > 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
 
 4. In your image I see that
 your Tomcat is not running
 
 (The "Console" view at the bottom
 says "<terminated>". The
 "Servers"
 view says
 "[Stopped, Synchronized]".)
 
 How did you start it?
 
 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.
 
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 EE 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 tutorRegister.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
 
 > Is there any other changes I need to make
 since I am also using a maven plug in as below :
 >
 > <dependency>
 >            
 <groupId>org.apache.maven.plugins</groupId>
 >            
 <artifactId>maven-war-plugin</artifactId>
 >            
 <version>3.2.0</version>
 > 
        </dependency>
 >
 > It used to be very easy for me to do
 debugging and now things are so much complicated now.
 >
 
 Best
 regards,
 Konstantin Kolinko
 
 ---------------------------------------------------------------------
 To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
 For additional commands, e-mail: users-help@tomcat.apache.org
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message