Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 96824 - rapid stream of HTTP requests coming from Eclipse
Summary: rapid stream of HTTP requests coming from Eclipse
Status: CLOSED INVALID
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 88260
  Show dependency tree
 
Reported: 2005-05-26 12:37 EDT by Bill Greene CLA
Modified: 2005-08-26 05:56 EDT (History)
2 users (show)

See Also:


Attachments
web.xml file for our web application (6.21 KB, text/plain)
2005-06-27 08:40 EDT, Bill Greene CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Greene CLA 2005-05-26 12:37:22 EDT
I only suspect that this problem is due to a webtools plugin. Could be
somewhere else in Eclipse.

I am running 3.1M6 + the I20050519 build of WST and JST

What I am observing is a rapid, steady stream of HTTP requests
(I would estimate 3-5 per sec) from Eclipse to the main HTTP server
in my company's domain (i.e. www.ptc.com). The rate is so high that
the Eclipse GUI is very unresponsive. I don't observe this behavior
everytime I start Eclipse and I think there have been cases when
it eventually stopped. As I type this message, I've been monitoring the
problem for 10-15 minutes.
Comment 1 David Williams CLA 2005-06-12 23:18:18 EDT
Interesting report ... but not sure how to narrow down. 

What kind of work are you doing? 
Do you reference DTDs or Schema's on your companies site?
Exploring for web services?
Doing data base work?

Thanks, 
Comment 2 Bill Greene CLA 2005-06-14 13:24:20 EDT
(In reply to comment #1)
> What kind of work are you doing? 
> Do you reference DTDs or Schema's on your companies
> site?

The only thing I could find is this. Some JSP files
have tag library entries like this:

<%@ taglib
uri="http://www.ptc.com/windchill/taglib/util"
prefix="util" %>

where the URI references the main PTC web site. But
the web.xml for this application has this entry:

 <taglib>
      <taglib-uri>
http://www.ptc.com/windchill/taglib/util
</taglib-uri>
     
<taglib-location>/WEB-INF/util.tld</taglib-location>
   </taglib>

Could this be confusing Eclipse?

> Exploring for web services?
No.
> Doing data base work?
No.

Comment 3 David Williams CLA 2005-06-14 13:29:08 EDT
Thanks Bill ... we'll take a look. 
Comment 4 Nitin Dahyabhai CLA 2005-06-14 15:47:08 EDT
This definitely sounds like the taglib indexing at work.  Bill, is your web.xml
file within a folder named WEB-INF?
Comment 5 Bill Greene CLA 2005-06-14 16:28:06 EDT
(In reply to comment #4)
> This definitely sounds like the taglib indexing at work.  Bill, is your 
web.xml
> file within a folder named WEB-INF?

Yes, its in WEB-INF.
Comment 6 Nitin Dahyabhai CLA 2005-06-23 00:16:00 EDT
Taglib resolution currently falls back to the Common URI Resolver if a matching
URI can't be found in its index.  If the Internet Cache is enabled (bug 101398
mentions the lack of defaults on that page), it tries to download the URI if it
has an "ftp" or "http" protocol in it.

I won't mark this as blocking bug 101393, but it could make that a non-starter.
Comment 7 Nitin Dahyabhai CLA 2005-06-23 00:34:25 EDT
I forgot to ask, Bill, do you have the cache enabled in your Preferences (the
Internet/Cache preference page)?  Also, could you list the in-workspace paths
for a .jsp file that causes this and the web.xml file that you're using?  The
taglib indexing makes certain assumptions that rely on the respective locations
of those files.
Comment 8 Bill Greene CLA 2005-06-27 08:40:14 EDT
Created attachment 24027 [details]
web.xml file for our web application
Comment 9 Bill Greene CLA 2005-06-27 08:48:44 EDT
(In reply to comment #7)
> I forgot to ask, Bill, do you have the cache enabled in your Preferences (the
> Internet/Cache preference page)?  

The Disable Caching checkbox is *not* checked. There are no entries in the
Cache Entries list box.

Also, could you list the in-workspace paths
> for a .jsp file that causes this and the web.xml file that you're using?  

I'm not really sure which jsp file(s) causes the problem. Here is path info
for one file:

In workspace: Windchill/ProjectLink_src_web/netmarkets/jsp/document/view.jsp
ProjectLink_src_web is linked to S:\ProjectLink\NetMarkets\src_web

I've attached the web.xml file.
Comment 10 Nitin Dahyabhai CLA 2005-06-27 13:25:56 EDT
Bill, where was this web.xml file located?  We make certain assumptions right
now about the location of the web.xml in relation to a .jsp that's using taglibs
defined by it, and your layout may just fall outside of our assumptions.
Comment 11 Bill Greene CLA 2005-06-28 09:32:40 EDT
(In reply to comment #10)
> Bill, where was this web.xml file located?  We make certain assumptions right
> now about the location of the web.xml in relation to a .jsp that's using 
taglibs
> defined by it, and your layout may just fall outside of our assumptions.

web.xml is in:

S:\Windchill\codebase\WEB-INF

Its one thing not to support a particular directory layout but quite another
to fail in such a way that the whole IDE becomes unusable.
Comment 12 Nitin Dahyabhai CLA 2005-06-28 15:04:29 EDT
Lawrence, can you confirm if the cache is off by default?  Bill, you might just
need to disable the Internet Cache.
Comment 13 Lawrence Mandel CLA 2005-06-28 16:18:05 EDT
The cache is now (as of last week's I-build) off by default.
Comment 14 Nitin Dahyabhai CLA 2005-06-30 11:26:53 EDT
Resolving this as invalid, since this is what the design does when the cache is
enabled.

I'm blocking bug 88260 so that the Cache can be reworked.  It shouldn't hit the
firewall with the same request more than once and certainly not more than one at
a time for the same URL.
Comment 15 David Williams CLA 2005-07-25 12:15:32 EDT
Marking as verified to confirm this issue correctly categorized.
If, as originator, you disagree please re-open, or open a new bug. 

Thanks very much for reporting and helping make WTP better. 
Comment 16 David Williams CLA 2005-07-25 12:15:50 EDT
Marking as verified to confirm this issue correctly categorized.
If, as originator, you disagree please re-open, or open a new bug. 

Thanks very much for reporting and helping make WTP better. 
Comment 17 Nitin Dahyabhai CLA 2005-08-26 05:56:54 EDT
Closing