Bug 218445 - org.apache.commons.httpclient 3.0.1 points at a J2SE-1.2 JRE when CDC/Foundation-1.0 is first in the MANIFEST.MF file
Summary: org.apache.commons.httpclient 3.0.1 points at a J2SE-1.2 JRE when CDC/Foundat...
Status: RESOLVED FIXED
Alias: None
Product: Orbit
Classification: Tools
Component: bundles (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Orbit Bundles CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 08:36 EST by Remy Suen CLA
Modified: 2008-04-17 07:46 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2008-02-10 08:36:38 EST
We have...

Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0,
 J2SE-1.2

...in the MANIFEST.MF file, but we have...

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.2"/>

...in the project's .classpath file. Isn't the .classpath entry supposed to point at the first entry of the BREE?
Comment 1 Jeff McAffer CLA 2008-02-10 10:16:22 EST
Are you seeing a particular problem?  In the case of Orbit bundles, most do not have actual source that we are compiling so the .classpath setting is not really used.  You might be seeing a warning about an exact match JRE not being available.  Unless something else is going on you should be able to "Update classpath" and resolve the situation.
Comment 2 Remy Suen CLA 2008-02-10 10:30:21 EST
(In reply to comment #1)
> You might be seeing a warning about an exact match JRE not being
> available.

The warning in question is...

The JRE container on the classpath is not a perfect match to the 'CDC-1.0/Foundation-1.0' execution environment

...but I do have a perfect match for CDC-1.0/Foundation-1.0 in my workspace settings, it's just that the .classpath wants J2SE-1.2, which is why I filed this bug. If both the .classpath and BREE wanted J2SE-1.2, I wouldn't have a problem with this. All I'm asking is for the .classpath file to point at one EE and the BREE's first entry to be the same.

I know I can correct it locally and I understand that this is not a real problem since Orbit is usually holding binaries but I'd just like to feel more at ease by not seeing "any" warnings on libraries I have no control over when I do a CVS checkout. :)
Comment 3 Jeff McAffer CLA 2008-02-10 13:06:27 EST
Unless someone sees a problem, updating the classpath seems to make sense here.

I do recall seeing a related PDE bug report talking about how when you change the BREE the classpath is not always updated. Seems related here.
Comment 4 DJ Houghton CLA 2008-02-28 14:34:12 EST
+1. Jeff, are you running an older build and able to release this change? Unfortunately I am running the latest and am running into bug 220811.

Note that the map file doesn't have to be updated since the .classpath file isn't included in the builds.

Thanks.
Comment 5 DJ Houghton CLA 2008-04-16 20:09:53 EDT
I have updated the classpath for both v3.0.1 and v3.1.0.
Closing.
Comment 6 Steffen Pingel CLA 2008-04-16 23:53:08 EDT
I noticed that after updating the 3.1.0 plugin it no longer exports its classes. It seems that this line got accidentally lost from the .classpath file?

	<classpathentry exported="true" kind="lib" path="" sourcepath="source-bundle"/>
Comment 7 DJ Houghton CLA 2008-04-17 07:46:08 EDT
Fixed. Thanks.