[CONF] Apache Tomcat > Developing

2019-11-23 Thread Konstantin Kolinko (Confluence)
Title: Message Title



 
 
 
There's 1 new edit on this page 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Developing 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
Konstantin Kolinko edited this page 
 
 
  
 
 

 
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
Here's the version comment 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
Konstantin Kolinko edited at 02:36 AM 
 
 
  
 
 

 
 
 
 
 
 
 
 
 Add a permalink. Fix formatting. Convert links to https.  
 
 
  
 
 
  
 
 

 
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Here's what changed: 
 
 
 
 
 
 
 
 
 
 
  Permalink to this page: https://cwiki.apache.org/confluence/x/8CklBg  About This section of the FAQ discusses common questions related to Tomcat development. ... A full explanation for Tomcat in Eclipse can be found here: 
 
Tomcat 89.0.x: httphttps://tomcat.apache.org/tomcat-89.0-doc/building.html#Building_with_Eclipse  
Tomcat 78.05.x: httphttps://tomcat.apache.org/tomcat-78.05-doc/building.html#Building_with_Eclipse  
Tomcat 67.0.x: httphttps://tomcat.apache.org/tomcat-67.0-doc/building.html#Building_with_Eclipse  
 Debugging  
 
 
 
 Anchor 
 
 
 
 
 
 
 
 
 
Q1 
 
 
 
Q1 
 
 
  
 
 
  How do I configure Tomcat to support remote debugging? The short answer is to add the following options when the JVM is started: 
 
 
 
 No Format 
 
 
 
 
 

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
  
 
 
 ... 
 
 If you are using shell scripts to start Tomcat, start it with the following command: 
 
 
 
 No Format 
 
 
 
 
  
 catalina jpda start  
  
 
 
 It will start Tomcat so that a remote debugger can be connected to port 8000. The above mentioned options can be provided by setting certain environment variables. See the comments at the top of catalina.sh or .bat file for details. For example, the port number and JPDA transport implementation can be set with JPDA_ADDRESS=8000 and JPDA_TRANSPORT=dt_socket.  
If you run Tomcat using service wrapper, add the above JVM options before any other JVM options. Check the documentation for the service wrapper to determine how to set JVM options. 
If you start Tomcat from within an IDE, check the documentation for the IDE to determine how to set the required JVM options. 
 ... This answer assumes that you have a project set up and have some idea of what you are doing in this respect. If not then that is really outside the scope of this topic and you need to go to eclipse.org and read up on how to use your IDE, and maybe practice a little bit before you come back to this. We are also going to assume that you have some idea of what a debugger is and how to use one. ... How do I remotely debug Tomcat using NetBeans? This answer assumes that you know how to work with a NetBeans Project, and also how to use the NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and read up on how to use NetBeans and its debugger. ... Monitoring interval for application reloading is controlled by the backgroundProcessorDelay property on Context element or on its parent containers: Host and Engine. See Tomcat Configuration Reference for details. By default there is a single background processing thread that is run by Engine. See its configuration for the default delay value. Interval that controls reloading of the changed JSP pages is set in the Jasper configuration in web.xml.  
 
 
 
 Anchor 
 
 
 
 
 
 
 
 
 
Q6 
 
 
 
Q6 
 
 
  
 
 
  Official Eclipse IDE Web Tools FAQ for Tomcat Eclipse IDE has support for development of Web applications and running them on Apache Tomcat. This support is provided by Eclipse Web Tools Platform Project. An easy way to get Web Tools is to download "for Java EE Developers" edition of Eclipse IDE. The Web Tools project has a FAQ page. 
 
 WTP Tomcat FAQ  
In Eclipse Help see "Web Tools Platform User Guide" > "Using the server tools" > "Testing and publishing on your server" 
 ...  
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Go to page history 
 
 
  
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
View page 
 
 
  
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
Stop watching space
• 
 
 
 
 
 
 
Manage notifications 
 
 
 
 
 
 
 
 
 
 
  
 
 
This message was sent by Atlassian Confluence 6.15.8  
 
 
  
 
 
 
 
 
 
 
 
 




Re: [CONF] Apache Tomcat > Developing

2019-06-10 Thread Felix Schumacher


Am 10.06.19 um 20:17 schrieb Christopher Schultz:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Felix,
>
> How much is the information on cwiki expected to replace and/or mirror
> information available on the Tomcat web site?

Good question. My main motivation was to correct the information that is
available in that wiki, not to think about what should be placed where.

Felix

>
> A lot of this looks like information available elsewhere.
>
> Thanks,
> - -chris
>
> On 6/9/19 06:30, Felix Schumacher (Confluence) wrote:
>> There's *1 new edit* on this page
>>
>> page icon 
>>  l=confluence-server=1560076209171
> c.mail.notification=com.atlassian.confluence.plugins.confluence-notifica
> tions-batch-plugin%3Abatching-notification=8aa9809569
> d423cd016a0413306f00db=view>
>>
>>
>> Developing 
>>  l=confluence-server=1560076209171
> c.mail.notification=com.atlassian.confluence.plugins.confluence-notifica
> tions-batch-plugin%3Abatching-notification=8aa9809569
> d423cd016a0413306f00db=view>
>>
>>
>>  Felix Schumacher edited this page
>>
>>
>>
>> Here's the version comment
>>
>>  Felix Schumacher edited at 10:28 AM 
>>  98864>
>>
>>
>>  Use git instead of svn
>>
>>
>>
>> Here's what changed:
>>
>> ...
>>
>>
>> How do I start hacking Tomcat in Eclipse?
>>
>> Briefly:
>>
>> No Format
>>
>> $ svngit checkoutclone
>> httphttps://svngithub.com/apache.org/repos/asf/tomcat/trunktomcat.git
>>
>>
> (or whatever branch you want: clearly, this would be better
>> to do directly from within Eclipse but it's easier to describe as a
>> command)
>>
>> $ cd trunktomcat
>>
>> $ echo "base.path=/path/to/where/tomcat/can/put/its/3rd-party/libs"
>>> build.properties
>> $ ant ide-eclipse
>>
>> ...
>>
>>
>> How do I remotely debug Tomcat using NetBeans 
>>  ion=true=103098864>?
>>  This answer assumes that you know how to work with a NetBeans
>> Project, and also how to use the NetBeans debugger. If not, please
>> go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and
>> read up on how to use NetBeans and its debugger.
>>
>> ...
>>
>> Go to page history 
>>  ?pageId=103098864=mail=confluence-server
> imestamp=1560076209171=com.atlassian.confluence.pl
> ugins.confluence-notifications-batch-plugin%3Abatching-notification
> mail.recipient=8aa9809569d423cd016a0413306f00db>
>>
>>
>> View page 
>>  l=confluence-server=1560076209171
> c.mail.notification=com.atlassian.confluence.plugins.confluence-notifica
> tions-batch-plugin%3Abatching-notification=8aa9809569
> d423cd016a0413306f00db=view>
>>
>>
>>
>>
>> Stop watching space 
>>  ion?spaceKey=TOMCAT=mail=confluence-server
> .timestamp=1560076209171=com.atlassian.confluence.
> plugins.confluence-notifications-batch-plugin%3Abatching-notification
> c.mail.recipient=8aa9809569d423cd016a0413306f00db=stop-w
> atching=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhYTk
> 4MDk1NjlkNDIzY2QwMTZhMDQxMzMwNmYwMGRiIiwicXNoIjoiNTI4MGYyMzZlNDRkMGEzOGE
> zMTVmMTA2MGQwMjU0OWFhYWNkZjcyNGNiNmFiZjllZDUwZTg4ZmVmYTI1MTAzNCIsImlzcyI
> 6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0FSRUgtWFVEMS1QT1FHLUNTQU8iLCJleHAiOjE
> 1NjA2ODEwMDksImlhdCI6MTU2MDA3NjIwOX0.2bMiXSO3nQBuZzTYWgFZAOLmyODOfMwwBtM
> adlWflUw>
>>
> •
>> Manage notifications 
>>  src=mail=confluence-server=156007620
> 9171=com.atlassian.confluence.plugins.confluence-n
> otifications-batch-plugin%3Abatching-notification=8aa
> 9809569d423cd016a0413306f00db=manage>
>>
>>
>>  Confluence logo big
>>
>> This message was sent by Atlassian Confluence 6.15.2
>>
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlz+nqgACgkQHPApP6U8
> pFj7ow/+JwpE1CubHh/G/QVhuAcM+uCQq665aON32LVgotnBXwaXpLYSu2n4Zpun
> dAil4zfGbVPX9d2hjTvVtpmV5fDDpJDdPqm4PHb1sH+72H1sSdt2P9rTNlIZYJVz
> 3clxd1gY8SWKOcv5vA3mIdu7tLcd+Hm2CKGKNBnhH5V+SfxixB5kRkMCDP/nkQiY
> t80sRRQ2+/dg9PqpTo3ibQMWgDAMLKVB9gP5IvYySqPK85h+H513gqO+whBybl2f
> m2g5kkHb4E272groKWKAkcadWOczXYmK6rnTl9dKzEG6pgJE6cHrfaPG2XyEzy/m
> qlAlEDLpBq/aozAot+1kmb4himSDAonuim6+0JFrOXAbW6Ti+oSOnPub4KEnC0ce
> kvD5YwT4zLsBWC0/PDVNl9uljpYYWGBKqDGEG2R5lW0qGMpT0Fnxxy/BGfVYlZhW
> BMCYY0K4Xu0ssoRrOn7RIdisRb+vOD6EaIxMoHcMB64XM7kb5CLB77q1fb7MP2G0
> xyukzNmp0NK1OILQ4U9a9GI+GGKHbE2WT0Xu4mFdDvfMNIfWCf85HiYpV/b8Rhtx
> rx8amTapzFGxz7cigJbY0okaCzq8ZfBhr1WlHY+TOfzv+egnKGolw7wazx4HjDI0
> jCi01mXUFXwE6+8GRTk3APZu6SyFL6ZA6o2BM4Mmdy6MDmsXiGk=
> =xd49
> -END PGP SIGNATURE-
>
> -
> 

Re: [CONF] Apache Tomcat > Developing

2019-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Felix,

How much is the information on cwiki expected to replace and/or mirror
information available on the Tomcat web site?

A lot of this looks like information available elsewhere.

Thanks,
- -chris

On 6/9/19 06:30, Felix Schumacher (Confluence) wrote:
> There's *1 new edit* on this page
> 
> page icon 
> 
>
> 
> 
> Developing 
> 
>
> 
> 
>  Felix Schumacher edited this page
> 
> 
> 
> Here's the version comment
> 
>  Felix Schumacher edited at 10:28 AM 
> 
>
> 
> 
>  Use git instead of svn
> 
> 
> 
> Here's what changed:
> 
> ...
> 
> 
> How do I start hacking Tomcat in Eclipse?
> 
> Briefly:
> 
> No Format
> 
> $ svngit checkoutclone
> httphttps://svngithub.com/apache.org/repos/asf/tomcat/trunktomcat.git
>
> 
(or whatever branch you want: clearly, this would be better
> to do directly from within Eclipse but it's easier to describe as a
> command)
> 
> $ cd trunktomcat
> 
> $ echo "base.path=/path/to/where/tomcat/can/put/its/3rd-party/libs"
> > build.properties
> 
> $ ant ide-eclipse
> 
> ...
> 
> 
> How do I remotely debug Tomcat using NetBeans 
> ?
>
>  This answer assumes that you know how to work with a NetBeans
> Project, and also how to use the NetBeans debugger. If not, please
> go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and
> read up on how to use NetBeans and its debugger.
> 
> ...
> 
> Go to page history 
> 
>
> 
> 
> View page 
> 
>
> 
> 
> 
> 
> Stop watching space 
> 
>
> 
•
> 
> Manage notifications 
> 
>
> 
> 
>  Confluence logo big
> 
> This message was sent by Atlassian Confluence 6.15.2
> 
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlz+nqgACgkQHPApP6U8
pFj7ow/+JwpE1CubHh/G/QVhuAcM+uCQq665aON32LVgotnBXwaXpLYSu2n4Zpun
dAil4zfGbVPX9d2hjTvVtpmV5fDDpJDdPqm4PHb1sH+72H1sSdt2P9rTNlIZYJVz
3clxd1gY8SWKOcv5vA3mIdu7tLcd+Hm2CKGKNBnhH5V+SfxixB5kRkMCDP/nkQiY
t80sRRQ2+/dg9PqpTo3ibQMWgDAMLKVB9gP5IvYySqPK85h+H513gqO+whBybl2f
m2g5kkHb4E272groKWKAkcadWOczXYmK6rnTl9dKzEG6pgJE6cHrfaPG2XyEzy/m
qlAlEDLpBq/aozAot+1kmb4himSDAonuim6+0JFrOXAbW6Ti+oSOnPub4KEnC0ce
kvD5YwT4zLsBWC0/PDVNl9uljpYYWGBKqDGEG2R5lW0qGMpT0Fnxxy/BGfVYlZhW
BMCYY0K4Xu0ssoRrOn7RIdisRb+vOD6EaIxMoHcMB64XM7kb5CLB77q1fb7MP2G0
xyukzNmp0NK1OILQ4U9a9GI+GGKHbE2WT0Xu4mFdDvfMNIfWCf85HiYpV/b8Rhtx
rx8amTapzFGxz7cigJbY0okaCzq8ZfBhr1WlHY+TOfzv+egnKGolw7wazx4HjDI0
jCi01mXUFXwE6+8GRTk3APZu6SyFL6ZA6o2BM4Mmdy6MDmsXiGk=
=xd49
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[CONF] Apache Tomcat > Developing

2019-06-09 Thread Felix Schumacher (Confluence)
Title: Message Title



 
 
 
There's 1 new edit on this page 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Developing 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
Felix Schumacher edited this page 
 
 
  
 
 

 
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
Here's the version comment 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
Felix Schumacher edited at 10:28 AM 
 
 
  
 
 

 
 
 
 
 
 
 
 
 Use git instead of svn  
 
 
  
 
 
  
 
 

 
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Here's what changed: 
 
 
 
 
 
 
 
 
 
 
 ... How do I start hacking Tomcat in Eclipse? Briefly: 
 
 
 
 No Format 
 
 
 
 
 
$ svngit checkoutclone httphttps://svngithub.com/apache.org/repos/asf/tomcat/trunktomcat.git
  (or whatever branch you want: clearly, this would be better
  to do directly from within Eclipse but it's easier to describe
  as a command)

$ cd trunktomcat

$ echo "base.path=/path/to/where/tomcat/can/put/its/3rd-party/libs" > build.properties

$ ant ide-eclipse
  
 
 
 ... How do I remotely debug Tomcat using NetBeans? This answer assumes that you know how to work with a NetBeans Project, and also how to use the NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and read up on how to use NetBeans and its debugger. ...  
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Go to page history 
 
 
  
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
View page 
 
 
  
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
Stop watching space
• 
 
 
 
 
 
 
Manage notifications 
 
 
 
 
 
 
 
 
 
 
  
 
 
This message was sent by Atlassian Confluence 6.15.2