Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Project/Workspace Caching?
Project/Workspace Caching? [message #198364] Wed, 15 August 2007 14:24 Go to next message
Eclipse User
Originally posted by: scott.mycellularsessions.com

[sorry for the repost, thought this subject might describe the issue better...]

WST 2.0 on Mac OS X
Tomcat 5.5, Java 1.5

I created a simple Dynamic Web Project, and to get started I created a
fairly simple servlet, with an index.html file in the WebContents
directory. This all works fine, and when I "Run on Server" it starts
tomcat, starts my servlet, and displays my index.html page in the
internal browser.

Subsequently, I added an index.jsp file, and deleted the index.html.
However, when I "Run on Server", the old index.html file still gets
displayed.

I searched the disk, and found a cached copy in the temp webapps
directory. I found some tips on the web that say if you delete the
server, then re-create it, it will purge all the temp files. Sure,
enough, now when I search the disk, I can't find index.html anywhere.
I looked in my workspace directory, and also in the tomcat install
directory. I exported a .war file, and index.html is not in it. Yet,
if I "Run on Server", index.html is still displayed.

I spent several hours searching the disk for cached locations, and
searching the web for hints, but still no luck. I finally created a
brand new project (with a different name), and copied the java source,
web.xml, and index.jsp into it. If I "Run on Server" with this
project, it displays my index.jsp as I would expect. Hooray, problem
solved...

So I deleted the original project, and deleted its disk contents.
Original project is no more. New project still behaves as expected.
Great.

So I renamed the new project with the name of the original project
(Refactor->Rename). Argh! If I "Run on Server", the old index.html is
now shown again! Where is it coming from? It must be associated with
the project name somewhere in some cache, but for the life of me I
can't find it.

Can anyone shed some light on where this is being cached? And suggest
how to clear that cache?

thanks
Scott
Re: Project/Workspace Caching? [message #198382 is a reply to message #198364] Wed, 15 August 2007 15:54 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
Is the URL being displayed pointing to index.jsp or index.html? If
index.html, maybe it's your browser's file cache that needs clearing.

Cheers,
Larry

Scott Harper wrote:
> [sorry for the repost, thought this subject might describe the issue
> better...]
>
> WST 2.0 on Mac OS X
> Tomcat 5.5, Java 1.5
>
> I created a simple Dynamic Web Project, and to get started I created a
> fairly simple servlet, with an index.html file in the WebContents
> directory. This all works fine, and when I "Run on Server" it starts
> tomcat, starts my servlet, and displays my index.html page in the
> internal browser.
>
> Subsequently, I added an index.jsp file, and deleted the index.html.
> However, when I "Run on Server", the old index.html file still gets
> displayed.
>
> I searched the disk, and found a cached copy in the temp webapps
> directory. I found some tips on the web that say if you delete the
> server, then re-create it, it will purge all the temp files. Sure,
> enough, now when I search the disk, I can't find index.html anywhere. I
> looked in my workspace directory, and also in the tomcat install
> directory. I exported a .war file, and index.html is not in it. Yet,
> if I "Run on Server", index.html is still displayed.
>
> I spent several hours searching the disk for cached locations, and
> searching the web for hints, but still no luck. I finally created a
> brand new project (with a different name), and copied the java source,
> web.xml, and index.jsp into it. If I "Run on Server" with this project,
> it displays my index.jsp as I would expect. Hooray, problem solved...
>
> So I deleted the original project, and deleted its disk contents.
> Original project is no more. New project still behaves as expected.
> Great.
>
> So I renamed the new project with the name of the original project
> (Refactor->Rename). Argh! If I "Run on Server", the old index.html is
> now shown again! Where is it coming from? It must be associated with
> the project name somewhere in some cache, but for the life of me I can't
> find it.
>
> Can anyone shed some light on where this is being cached? And suggest
> how to clear that cache?
>
> thanks
> Scott
>
Re: Project/Workspace Caching? [message #198455 is a reply to message #198382] Thu, 16 August 2007 16:44 Go to previous message
Eclipse User
Originally posted by: scott.mycellularsessions.com

The URL is http://localhost:8080/MyProject/ -- no index file past that.
And this is using the built-in browser... is there a way to clear
it's cache?

Do you think it's related to some kind of "DirectoryIndex" directive
that needs to be tweaked for Tomcat? Again, this is launching the
Tomcat instance inside of Eclipse...

scott

On 2007-08-15 10:54:36 -0500, Larry Isaacs <Larry.Isaacs@sas.com> said:

> Is the URL being displayed pointing to index.jsp or index.html? If
> index.html, maybe it's your browser's file cache that needs clearing.
>
> Cheers,
> Larry
>
> Scott Harper wrote:
>> [sorry for the repost, thought this subject might describe the issue better...]
>>
>> WST 2.0 on Mac OS X
>> Tomcat 5.5, Java 1.5
>>
>> I created a simple Dynamic Web Project, and to get started I created a
>> fairly simple servlet, with an index.html file in the WebContents
>> directory. This all works fine, and when I "Run on Server" it starts
>> tomcat, starts my servlet, and displays my index.html page in the
>> internal browser.
>>
>> Subsequently, I added an index.jsp file, and deleted the index.html.
>> However, when I "Run on Server", the old index.html file still gets
>> displayed.
>>
>> I searched the disk, and found a cached copy in the temp webapps
>> directory. I found some tips on the web that say if you delete the
>> server, then re-create it, it will purge all the temp files. Sure,
>> enough, now when I search the disk, I can't find index.html anywhere.
>> I looked in my workspace directory, and also in the tomcat install
>> directory. I exported a .war file, and index.html is not in it. Yet,
>> if I "Run on Server", index.html is still displayed.
>>
>> I spent several hours searching the disk for cached locations, and
>> searching the web for hints, but still no luck. I finally created a
>> brand new project (with a different name), and copied the java source,
>> web.xml, and index.jsp into it. If I "Run on Server" with this
>> project, it displays my index.jsp as I would expect. Hooray, problem
>> solved...
>>
>> So I deleted the original project, and deleted its disk contents.
>> Original project is no more. New project still behaves as expected.
>> Great.
>>
>> So I renamed the new project with the name of the original project
>> (Refactor->Rename). Argh! If I "Run on Server", the old index.html is
>> now shown again! Where is it coming from? It must be associated with
>> the project name somewhere in some cache, but for the life of me I
>> can't find it.
>>
>> Can anyone shed some light on where this is being cached? And suggest
>> how to clear that cache?
>>
>> thanks
>> Scott
Previous Topic:get webapp root folder
Next Topic:Eclipse Web Tools Platform
Goto Forum:
  


Current Time: Tue Sep 23 20:30:19 GMT 2014

Powered by FUDForum. Page generated in 0.10587 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software