You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Karen Goh <ka...@yahoo.com.INVALID> on 2019/09/04 13:21:11 UTC

Tomcat doesn't refreshes and still gives me an old error again and again

Hi Expert,

I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes and it will give ma an error, even after I commented out a line.  But, after several cleaning - using Tomcat Directory clean, right-click on the project in Eclipse and do a run maven force update and project built, it will still give me an error that point out to a commented out line.

Can I know if the above indicate a corrupted Tomcat instance or what should I do in order not to have the above problem crop up again and again?

Eclipse
Maven Java EE, JSP, JSTL
OS : Windows10
Tomcat : 9.0.24

Thanks & regards,
Karen

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


Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Mark Thomas <ma...@apache.org>.
On 06/09/2019 15:36, Karen Goh wrote:
>  
> 
> 
> 
> 
> On Thursday, September 5, 2019, 9:47:40 PM GMT+8, Mark Thomas <ma...@apache.org> wrote:
> 
> 
> Personally, I gave up on using Tomcat and Eclipse in this way a long
> time ago. It is a little more work but I run a completely separate
> Tomcat instance and then use the "Export...", "WAR file" option to
> deploy the latest version of my webapp to the external Tomcat instance
> and then let Tomcat's auto-deploy take care of things.
> 
> Hi Mark,
> 
> This is completely new to me. When you said use the "Export" are you referrring to the Export inside Eclipse?

Yes. Eclipse will export a dynamic web project to a WAR file.

> How do you debug without Eclipse then ?

I still use Eclipse. I connect to the Tomcat process using remote
debugging and debug my way through Tomcat and/or the web application as
necessary.

Mark


> 
> Apart from those times where I've managed to export to the wrong Tomcat
> instance (entirely my own fault) I've never had an issue.
> 
> As an added bonus it makes it easy to debug into the Tomcat code when I
> need to but I accept that that is something a Tomcat developer is going
> to want to do rather more frequently than someone developing a web app.
> 
> Mark
> 
>> Karen,
>>
>> On 9/4/19 10:45, Karen Goh wrote:
>>> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
>>> <da...@fysh.org.INVALID> wrote:
>>
>>
>>> On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:
>>
>>
>>>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>>>> refreshes and it will give ma an error, even after I commented
>>>> out a line. But, after several cleaning - using Tomcat Directory
>>>> clean, right-click on the project in Eclipse and do a run maven
>>>> force update and project built, it will still give me an error
>>>> that point out to a commented out line.
>>
>>
>>> Do you have a tomcat/work directory? ISTR sometimes having to
>>
>>> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
>>
>>> Could you let me know how to do it Windows 10 way? Sorry for the
>>> trouble cos basically most of my stuff is still using Windows
>>> 10....
>>
>> C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}
>>
>> Or just navigate Windows Explorer to the "work" directory and press
>> the "DELETE" key on your keyboard.
>>
>> Hi Chris,
>>
>> Just to clarify, so instead of doing the clean, I will have to to to this place - C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete weappname ?
>>
>> I happened to read this https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse
>>
>> I checked the location when I right-clicked the Tomcat instance, it says meta data, so should I delete the metadata one ? My Tomcat configuration is take control of Tomcat installation.
>>
>> Kindly advise. And thanks for your help.
>>
>>
>>
>>
>> -chris
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
>   
> 


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


Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Karen Goh <ka...@yahoo.com.INVALID>.
 




On Thursday, September 5, 2019, 9:47:40 PM GMT+8, Mark Thomas <ma...@apache.org> wrote:


Personally, I gave up on using Tomcat and Eclipse in this way a long
time ago. It is a little more work but I run a completely separate
Tomcat instance and then use the "Export...", "WAR file" option to
deploy the latest version of my webapp to the external Tomcat instance
and then let Tomcat's auto-deploy take care of things.

Hi Mark,

This is completely new to me. When you said use the "Export" are you referrring to the Export inside Eclipse?
How do you debug without Eclipse then ?

Apart from those times where I've managed to export to the wrong Tomcat
instance (entirely my own fault) I've never had an issue.

As an added bonus it makes it easy to debug into the Tomcat code when I
need to but I accept that that is something a Tomcat developer is going
to want to do rather more frequently than someone developing a web app.

Mark

> Karen,
>
> On 9/4/19 10:45, Karen Goh wrote:
>> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
>> <da...@fysh.org.INVALID> wrote:
>
>
>> On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:
>
>
>>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>>> refreshes and it will give ma an error, even after I commented
>>> out a line. But, after several cleaning - using Tomcat Directory
>>> clean, right-click on the project in Eclipse and do a run maven
>>> force update and project built, it will still give me an error
>>> that point out to a commented out line.
>
>
>> Do you have a tomcat/work directory? ISTR sometimes having to
>
>> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
>
>> Could you let me know how to do it Windows 10 way? Sorry for the
>> trouble cos basically most of my stuff is still using Windows
>> 10....
>
> C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}
>
> Or just navigate Windows Explorer to the "work" directory and press
> the "DELETE" key on your keyboard.
>
> Hi Chris,
>
> Just to clarify, so instead of doing the clean, I will have to to to this place - C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete weappname ?
>
> I happened to read this https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse
>
> I checked the location when I right-clicked the Tomcat instance, it says meta data, so should I delete the metadata one ? My Tomcat configuration is take control of Tomcat installation.
>
> Kindly advise. And thanks for your help.
>
>
>
>
> -chris
>
>
> ---------------------------------------------------------------------
> 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

  

Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Mark Thomas <ma...@apache.org>.
Personally, I gave up on using Tomcat and Eclipse in this way a long
time ago. It is a little more work but I run a completely separate
Tomcat instance and then use the "Export...", "WAR file" option to
deploy the latest version of my webapp to the external Tomcat instance
and then let Tomcat's auto-deploy take care of things.

Apart from those times where I've managed to export to the wrong Tomcat
instance (entirely my own fault) I've never had an issue.

As an added bonus it makes it easy to debug into the Tomcat code when I
need to but I accept that that is something a Tomcat developer is going
to want to do rather more frequently than someone developing a web app.

Mark

> Karen,
> 
> On 9/4/19 10:45, Karen Goh wrote:
>> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
>> <da...@fysh.org.INVALID> wrote:
> 
> 
>> On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:
> 
> 
>>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>>> refreshes and it will give ma an error, even after I commented
>>> out a line. But, after several cleaning - using Tomcat Directory
>>> clean, right-click on the project in Eclipse and do a run maven
>>> force update and project built, it will still give me an error
>>> that point out to a commented out line.
> 
> 
>> Do you have a tomcat/work directory? ISTR sometimes having to
> 
>> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
> 
>> Could you let me know how to do it Windows 10 way? Sorry for the
>> trouble cos basically most of my stuff is still using Windows
>> 10....
> 
> C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}
> 
> Or just navigate Windows Explorer to the "work" directory and press
> the "DELETE" key on your keyboard.
> 
> Hi Chris,
> 
> Just to clarify, so instead of doing the clean, I will have to to to this place - C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete weappname ?
> 
> I happened to read this https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse
> 
> I checked the location when I right-clicked the Tomcat instance, it says meta data, so should I delete the metadata one ? My Tomcat configuration is take control of Tomcat installation.
> 
> Kindly advise. And thanks for your help.
> 
> 
> 
> 
> -chris
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Усманов Азат Анварович <us...@ieml.ru>.
Hi Karen, I´m not sure if it's still valuable to you. But make sure to double click on your tomcat server in eclipse, and check the value od server location field. Should be something like [eclipse workspace location]\.metadata\.plugins\org.eclipse.wst.server.core\tmpX where X is any number starting from 0. Which is basically the path to tomcat work directory people  were talking about. From here navigate to wtpwebapps folder. You will see folders which correspond to your web apps[projects in eclipse]. You basically will find the copy content of your WebContent folder from Eclipse project. Eclipse usually copies files from your |Webcontent folder to here right after you make changes and save your project changes. Sometimes it doesn't do this and you end up with a situation like yours. Then you have to manualy copy the specific file you have problems with. I've had this happen to me a few times and the first time it happend it was so frustrating. Hope this helps you

С уважением,
Азат Усманов
Отдел разработки программного обеспечения
Институт экономики, управления и права (г. Казань)

________________________________
От: Karen Goh <ka...@yahoo.com.INVALID>
Отправлено: 4 сентября 2019 г. 18:28:39
Кому: users@tomcat.apache.org <us...@tomcat.apache.org>
Тема: Re: Tomcat doesn't refreshes and still gives me an old error again and again






On Wednesday, September 4, 2019, 10:50:17 PM GMT+8, Christopher Schultz <ch...@christopherschultz.net> wrote:


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Karen,

On 9/4/19 10:45, Karen Goh wrote:
> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
> <da...@fysh.org.INVALID> wrote:
>
>
> On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:
>
>
>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>> refreshes and it will give ma an error, even after I commented
>> out a line. But, after several cleaning - using Tomcat Directory
>> clean, right-click on the project in Eclipse and do a run maven
>> force update and project built, it will still give me an error
>> that point out to a commented out line.
>
>
> Do you have a tomcat/work directory? ISTR sometimes having to
>
> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
>
> Could you let me know how to do it Windows 10 way? Sorry for the
> trouble cos basically most of my stuff is still using Windows
> 10....

C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}

Or just navigate Windows Explorer to the "work" directory and press
the "DELETE" key on your keyboard.

Hi Chris,

Just to clarify, so instead of doing the clean, I will have to to to this place - C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete weappname ?

I happened to read this https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse

I checked the location when I right-clicked the Tomcat instance, it says meta data, so should I delete the metadata one ? My Tomcat configuration is take control of Tomcat installation.

Kindly advise. And thanks for your help.




- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1vzyQACgkQHPApP6U8
pFilXw//d6+V8jCdk7rsimcTHB7khA5G0ERSXISHZCbGRA+PHxa4wE2U6Z1HFZtv
7hoxx46PSNkcWr+wgIjWCcj87MRdZsOJOAOqByRH1fSPLmZzdJyUxafPPNjA0wxU
zT+T4CicFbBehjCi9rMbNI8tt/UOjQDcNJPuEIEXoLj2L4ybDSMcrTGjjDfhUuf8
+Z/1XefU7lBMiBDBGVGTmePm58P8cjLj8rq7nuXEbs3fcmA6udoHpWmoP7A4u+tx
bmF1L6UEL0V3DIAUPJrV+WONGUw6te4sRF4PmKCPLyWBqfClU6lRt0U3CFN/T2u8
RqjX/rsCio4oImLSbgzRQnYLdWwb5tvuZzhlRGTnJcrSHj8D8ECWq8GdL0ppOnZo
WoNf03NlaHniFUo6zW/LeMQUDjETH6/2qyvXC8fpjDDOn74yy6Zwk1ZMCwSmGS3e
D7Sdek0ZlzonaCRcOu0f+iHNU/2ZuGdwKrgIltPuRwG50Tkhjad780/Xt55v/vOL
kyqppaONZypXqNTkmDnIibzd1TyknRk7Y9UnCQIkgnBzhNuuG4MxzFh+2/BK8Qiy
fOVZUCEvm5DbFIMRE4QSc7b8edrrC3YDRuQecZnii5Lk7c9By3xLiGu1SfH673Jz
/is7giTMejiUzs2sb6JUYJN6RPyHPDFgI15ZRhgekt+OpN5jDXQ=
=EtCR
-----END PGP SIGNATURE-----


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



Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Karen,

> On 9/4/19 10:45, Karen Goh wrote:
>> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn 
>> <da...@fysh.org.INVALID> wrote:
> 
> 
>> On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:
> 
> 
>>> I am facing this problem - that Tomcat - 9.0.24 doesn't 
>>> refreshes and it will give ma an error, even after I commented 
>>> out a line. But, after several cleaning - using Tomcat
>>> Directory clean, right-click on the project in Eclipse and do a
>>> run maven force update and project built, it will still give me
>>> an error that point out to a commented out line.
> 
> 
>> Do you have a tomcat/work directory? ISTR sometimes having to
> 
>> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
> 
>> Could you let me know how to do it Windows 10 way? Sorry for the 
>> trouble cos basically most of my stuff is still using Windows 
>> 10....
> 
> C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}
> 
> Or just navigate Windows Explorer to the "work" directory and
> press the "DELETE" key on your keyboard.
> 
> Hi Chris,
> 
> Just to clarify, so instead of doing the clean, I will have to to
> to this place - C:\Program
> Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete
> weappname ?

Not at all. You are deleting the "work" directory for the application.
Only do this when Tomcat is not running, otherwise it will probably
get very upset. You probably don't need to do this. I was just helping
you translate *NIX-speak into Windows-speak.

> I happened to read this 
> https://stackoverflow.com/questions/763693/where-is-the-work-directory
- -located-for-a-tomcat-instance-running-in-eclipse
>
>  I checked the location when I right-clicked the Tomcat instance,
> it says meta data, so should I delete the metadata one ? My Tomcat 
> configuration is take control of Tomcat installation.
> 
> Kindly advise. And thanks for your help.>

You've reached the limit of my knowledge when it comes to Eclipse. I
mostly use Eclipse as a text editor with auto-complete and syntax
checking. I do builds and deployments separately.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1v6OUACgkQHPApP6U8
pFhyNQ//ZYdfKCkKBp1uLqUzxrhxqxyb8KyrgUDAwl9hPUar8BINzK3Wp+tz8esX
6EGYuMiNbqgKvF8QLV6PllIkqo/tV/qlmzgSkiGPhXtn6O3FIBy1iCIScCaFyUnE
kWoI8Ct7qwQsQtfn2fR6FqLR/om1dHGYr86zCBow65vxS04wXVD6X8i0N3gdPkKh
Q7MQYsG5pzdI+CtiXGnXaFGhZP58guCZd1EAlbH9xEVxHY5RFh8XDBlf4VmOFrXD
jrgkmo1Lzkr2lCmWRgi1CCaqma3daMbKnND/CVjACPzgfMIMu3Vyj1oEO4rvFqBX
ph7cXM+B6XMDqMKa9PVg0+S5LUKjZIPptm9jvupGp9JzBeoxPXwR2k7UO6K873/c
ndone4WrWoB/3J829Kk6nrZ39ukEG2O2tpfN8h3WRuz49exUnGlh+F14QG1D6f9h
8i7T5vHkIONUnw7L3dS4jpGwoxJXM0QmlKc3Aj/t6P4QzFSnIK3peEEUGR7WqC1S
w1OIMumpMocOtyJRym4nSUByyk5NLUxjJS0Z6Iilg/BlbAPqFpSAfNzwf4h/C4Ue
fidAWIFyubp4RNrNDMSap7hOE+6cIukAYNDpH9h+GgWjFhB7dHKE9gZdcHcsOzOG
YXGYXN0j3Uz9HZEKEpOm23eykBG7Yj2tbNUWUR2d4NtScLeLsaY=
=7zeG
-----END PGP SIGNATURE-----

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


Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Karen Goh <ka...@yahoo.com.INVALID>.
 




On Wednesday, September 4, 2019, 10:50:17 PM GMT+8, Christopher Schultz <ch...@christopherschultz.net> wrote:


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Karen,

On 9/4/19 10:45, Karen Goh wrote:
> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
> <da...@fysh.org.INVALID> wrote:
>
>
> On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:
>
>
>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>> refreshes and it will give ma an error, even after I commented
>> out a line. But, after several cleaning - using Tomcat Directory
>> clean, right-click on the project in Eclipse and do a run maven
>> force update and project built, it will still give me an error
>> that point out to a commented out line.
>
>
> Do you have a tomcat/work directory? ISTR sometimes having to
>
> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
>
> Could you let me know how to do it Windows 10 way? Sorry for the
> trouble cos basically most of my stuff is still using Windows
> 10....

C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}

Or just navigate Windows Explorer to the "work" directory and press
the "DELETE" key on your keyboard.

Hi Chris,

Just to clarify, so instead of doing the clean, I will have to to to this place - C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete weappname ?

I happened to read this https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse

I checked the location when I right-clicked the Tomcat instance, it says meta data, so should I delete the metadata one ? My Tomcat configuration is take control of Tomcat installation.

Kindly advise. And thanks for your help.




- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1vzyQACgkQHPApP6U8
pFilXw//d6+V8jCdk7rsimcTHB7khA5G0ERSXISHZCbGRA+PHxa4wE2U6Z1HFZtv
7hoxx46PSNkcWr+wgIjWCcj87MRdZsOJOAOqByRH1fSPLmZzdJyUxafPPNjA0wxU
zT+T4CicFbBehjCi9rMbNI8tt/UOjQDcNJPuEIEXoLj2L4ybDSMcrTGjjDfhUuf8
+Z/1XefU7lBMiBDBGVGTmePm58P8cjLj8rq7nuXEbs3fcmA6udoHpWmoP7A4u+tx
bmF1L6UEL0V3DIAUPJrV+WONGUw6te4sRF4PmKCPLyWBqfClU6lRt0U3CFN/T2u8
RqjX/rsCio4oImLSbgzRQnYLdWwb5tvuZzhlRGTnJcrSHj8D8ECWq8GdL0ppOnZo
WoNf03NlaHniFUo6zW/LeMQUDjETH6/2qyvXC8fpjDDOn74yy6Zwk1ZMCwSmGS3e
D7Sdek0ZlzonaCRcOu0f+iHNU/2ZuGdwKrgIltPuRwG50Tkhjad780/Xt55v/vOL
kyqppaONZypXqNTkmDnIibzd1TyknRk7Y9UnCQIkgnBzhNuuG4MxzFh+2/BK8Qiy
fOVZUCEvm5DbFIMRE4QSc7b8edrrC3YDRuQecZnii5Lk7c9By3xLiGu1SfH673Jz
/is7giTMejiUzs2sb6JUYJN6RPyHPDFgI15ZRhgekt+OpN5jDXQ=
=EtCR
-----END PGP SIGNATURE-----


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

  

Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Karen,

On 9/4/19 10:45, Karen Goh wrote:
> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
> <da...@fysh.org.INVALID> wrote:
> 
> 
> On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:
> 
> 
>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>> refreshes and it will give ma an error, even after I commented
>> out a line. But, after several cleaning - using Tomcat Directory
>> clean, right-click on the project in Eclipse and do a run maven
>> force update and project built, it will still give me an error
>> that point out to a commented out line.
> 
> 
> Do you have a tomcat/work directory? ISTR sometimes having to
> 
> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
> 
> Could you let me know how to do it Windows 10 way? Sorry for the
> trouble cos basically most of my stuff is still using Windows
> 10....

C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}

Or just navigate Windows Explorer to the "work" directory and press
the "DELETE" key on your keyboard.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1vzyQACgkQHPApP6U8
pFilXw//d6+V8jCdk7rsimcTHB7khA5G0ERSXISHZCbGRA+PHxa4wE2U6Z1HFZtv
7hoxx46PSNkcWr+wgIjWCcj87MRdZsOJOAOqByRH1fSPLmZzdJyUxafPPNjA0wxU
zT+T4CicFbBehjCi9rMbNI8tt/UOjQDcNJPuEIEXoLj2L4ybDSMcrTGjjDfhUuf8
+Z/1XefU7lBMiBDBGVGTmePm58P8cjLj8rq7nuXEbs3fcmA6udoHpWmoP7A4u+tx
bmF1L6UEL0V3DIAUPJrV+WONGUw6te4sRF4PmKCPLyWBqfClU6lRt0U3CFN/T2u8
RqjX/rsCio4oImLSbgzRQnYLdWwb5tvuZzhlRGTnJcrSHj8D8ECWq8GdL0ppOnZo
WoNf03NlaHniFUo6zW/LeMQUDjETH6/2qyvXC8fpjDDOn74yy6Zwk1ZMCwSmGS3e
D7Sdek0ZlzonaCRcOu0f+iHNU/2ZuGdwKrgIltPuRwG50Tkhjad780/Xt55v/vOL
kyqppaONZypXqNTkmDnIibzd1TyknRk7Y9UnCQIkgnBzhNuuG4MxzFh+2/BK8Qiy
fOVZUCEvm5DbFIMRE4QSc7b8edrrC3YDRuQecZnii5Lk7c9By3xLiGu1SfH673Jz
/is7giTMejiUzs2sb6JUYJN6RPyHPDFgI15ZRhgekt+OpN5jDXQ=
=EtCR
-----END PGP SIGNATURE-----

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


Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Karen Goh <ka...@yahoo.com.INVALID>.
 




On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn <da...@fysh.org.INVALID> wrote:


On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:


> I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes
> and it will give ma an error, even after I commented out a line.
> But, after several cleaning - using Tomcat Directory clean,
> right-click on the project in Eclipse and do a run maven force
> update and project built, it will still give me an error that point
> out to a commented out line.


Do you have a tomcat/work directory? ISTR sometimes having to

rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}

Could you let me know how to do it Windows 10 way? Sorry for the trouble cos basically most of my stuff is still using Windows 10....

although it was never obvious why I sometimes had to, but generally
didn't.

-- 
dave thorn

Would you like green eggs and the fundamental condition of yearning
for meaning in a world devoid of it?

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


  

Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Dave Thorn <da...@fysh.org.INVALID>.
On Wed, Sep 04, 2019 at 01:21:11PM +0000, Karen Goh wrote:

> I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes
> and it will give ma an error, even after I commented out a line.
> But, after several cleaning - using Tomcat Directory clean,
> right-click on the project in Eclipse and do a run maven force
> update and project built, it will still give me an error that point
> out to a commented out line.

Do you have a tomcat/work directory?  ISTR sometimes having to

rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}

although it was never obvious why I sometimes had to, but generally
didn't.

-- 
dave thorn

Would you like green eggs and the fundamental condition of yearning
for meaning in a world devoid of it?

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


Re: Tomcat doesn't refreshes and still gives me an old error again and again

Posted by Greg Huber <gr...@gmail.com>.
Eclipse works the way it works, but what you can use is
https://marketplace.eclipse.org/content/eclipse-tomcat-plugin which is
basically an update of the mighty
http://www.eclipsetotale.com/tomcatPlugin.html

I use a blank dynamic web project, with a standard plugin setup, ie default
output folder ../../WEB-INF/classes.  I then fudge the WEB-INF/lib folder
by using a maven task to copy the jars from my war build process.  The
devloader is good but I could not find a way to play nicely with maven.

You then use the debugging as part of the plugin.

<!-- Copy jars to /WEB-INF/lib -->
        <!-- mvn -P copy-dependency-jars package -->
        <profile>
            <id>copy-webapp-jars</id>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <version>3.8.0</version>
                        <configuration>
                            <source>1.8</source>
                            <target>1.8</target>
                            <!-- Ignore Errors -->
                            <failOnError>false</failOnError>
                        </configuration>
                        <executions>
                            <!-- Stop execution here as compile is not
required  -->
                            <execution>
                                <id>default-compile</id>
                                <phase>none</phase>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <version>3.1.1</version>
                        <executions>
                            <execution>
                                <id>copy-dependencies</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>copy-dependencies</goal>
                                </goals>
                                <configuration>

<outputDirectory>${project.basedir}/src/main/webapp/WEB-INF/lib</outputDirectory>

<overWriteReleases>false</overWriteReleases>

<overWriteSnapshots>false</overWriteSnapshots>

<overWriteIfNewer>true</overWriteIfNewer>
                                    <excludeScope>provided</excludeScope>

<excludeGroupIds>junit,org.hamcrest</excludeGroupIds>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>1.8</version>
                        <executions>
                            <execution>
                                <id>clear-jars</id>
                                <!-- Make sure we build ok before deleting
old jars -->
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target
name="deleting-jars-src/main/webapp/WEB-INF/lib">
                                        <delete failonerror="false">
                                            <fileset
dir="${project.basedir}/src/main/webapp/WEB-INF/lib"
                                                includes="*.jar" />
                                        </delete>
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>



On Wed, 4 Sep 2019 at 14:21, Karen Goh <ka...@yahoo.com.invalid> wrote:

> Hi Expert,
>
> I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes and it
> will give ma an error, even after I commented out a line.  But, after
> several cleaning - using Tomcat Directory clean, right-click on the project
> in Eclipse and do a run maven force update and project built, it will still
> give me an error that point out to a commented out line.
>
> Can I know if the above indicate a corrupted Tomcat instance or what
> should I do in order not to have the above problem crop up again and again?
>
> Eclipse
> Maven Java EE, JSP, JSTL
> OS : Windows10
> Tomcat : 9.0.24
>
> Thanks & regards,
> Karen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>