tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat doesn't refreshes and still gives me an old error again and again
Date Tue, 10 Sep 2019 08:15:48 GMT
On 06/09/2019 15:36, Karen Goh wrote:
>  
> 
> 
> 
> 
> On Thursday, September 5, 2019, 9:47:40 PM GMT+8, Mark Thomas <markt@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
>>> <davet@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


Mime
View raw message