2018-02-20 17:57 GMT+03:00 Karen Goh <karenwo...@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.

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to