Bug 92117 - released org.eclipse.jst.server.tomcat.ui shows errors in dev. env.
Summary: released org.eclipse.jst.server.tomcat.ui shows errors in dev. env.
Status: RESOLVED DUPLICATE of bug 73957
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-20 13:21 EDT by David Williams CLA
Modified: 2006-03-16 08:07 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2005-04-20 13:21:32 EDT
When I "load map released map projects" in to a dev. environment, the 
subject project shows a compile problem as listed below. 
It appears to me this is because the project 
prereqs org.eclipse.debug.ui
but does not prereq org.eclipse.debug.core

Should it pre-req it (I think so) 
or shouod org.eclipse.debug.ui re-export org.eclipse.debug.core?
(probably not worth the bugzilla, even if it should :)

Adding 
org.eclipse.debug.core,
 
to plugin manifest.mf fixes the problem. 

This might be a problem at runtime given just the right sequence of 
loading classes, etc. 


Severity	Description	Resource	In Folder	Location	Creation Time
2	The project was not built since its build path is incomplete. Cannot find the
class file for org.eclipse.debug.core.ILaunch. Fix the build path then try
building this project	org.eclipse.jst.server.tomcat.ui			April 20, 2005 1:05:08 PM
2	The type org.eclipse.debug.core.ILaunch cannot be resolved. It is indirectly
referenced from required .class files	TomcatLaunchConfigurationTabGroup.java
org.eclipse.jst.server.tomcat.ui/tomcatui/org/eclipse/jst/server/tomcat/ui/internal
line 0	April 20, 2005 1:05:08 PM
Comment 1 David Williams CLA 2005-04-20 13:22:16 EDT
Similar problem with 
org.eclipse.jst.server.generic.ui
Comment 2 Tim deBoer CLA 2005-04-20 15:38:25 EDT
Hi,

This is on 3.1M6. I'm passing this defect on to the PDE team for the following
reasons:

* The org.eclipse.jst.server.tomcat.ui plugin has no direct dependance on
debug.core. It extends one class from debug.ui that contains references to
debug.core, but it does not extend or use any of these methods.
* If I do a straight extract from CVS instead of "load map released projects",
there are no errors.
* If you add debug.core to the manifest, the "Find unused dependancies" action
will report it as unused.

This could also be a problem with the "load map..." action or a JDT bug, but
this does not appear to be a problem in this plugin. FWIW, I have seen a similar
problem on 3.0 where we had to import a plugin at development time to compile,
even though there was no direct dependance and both build and runtime were ok
without the other plugin.
Comment 3 Wassim Melhem CLA 2005-04-26 01:51:26 EDT

*** This bug has been marked as a duplicate of 73957 ***
Comment 4 David Williams CLA 2005-07-06 18:17:20 EDT
Mind if I re-open this for clarification. Following the many ins and outs of the
'dups' and related bugs they seem only tangentially related. Especially, because
we see this difference in when we "load from map files" (a specific version) and
from when we load directly from HEAD. Only the former case shows the error, not
the latter. 

I did verify this still occus with 3.1 final version (with 3.1 as the "target"). 

I'm hoping sense it occurs in one case but not the other, perhaps there's a
recommended work around? I frequetnly "load released map projects" to sanity
check that out WTP I-build will go well ... and its quite a pain to go in and
have hand edit the manifest.mf files just to get this erroneous error to go away. 

thanks for any advice. 
Comment 5 Wassim Melhem CLA 2005-07-07 11:10:19 EDT
Adding debug.core to the dependency list of your plugin, albeit redundant, is 
the only workaround.

We plan to find a solution for this problem that will keep the compiler happy 
and not have you put extra dependencies on your classpath in 3.2 as part of 
bug 73957.

*** This bug has been marked as a duplicate of 73957 ***