| Summary: | cannot install by reference WTP project to a osgi based web container. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Dimitar Giormov <dimitar.giormov> | ||||||||
| Component: | Framework | Assignee: | Thomas Watson <tjwatson> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | aniefer, Curtis_Windatt, glyn.normington, stuart.donald, tjwatson | ||||||||
| Version: | 3.7 | ||||||||||
| Target Milestone: | 3.7.1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Dimitar Giormov
Created attachment 199046 [details]
added check if the framework is in development mode.
Just to add the entry in the dev.properties file for the project looks like this: web_project_name=../build/classes I would prefer to limit this fix to DevClassLoadingHook instead of introducing a wide security whole when in dev mode. My thought is org.eclipse.osgi.internal.baseadaptor.DevClassLoadingHook.addClassPathEntry method can be changed to find external, relative class path entries. Curtis (and others), is there some way the WTP project is telling PDE that the bundle root is something other than the project root folder? Created attachment 199135 [details]
possible patch (untested)
Here is a patch with what I am thinking. I still need to test the fix.
(In reply to comment #4) > Curtis (and others), is there some way the WTP project is telling PDE that the > bundle root is something other than the project root folder? PDE does support a "flexible root" where the manifest is somewhere other than the project root/META-INF. I found Bug 297895 and Bug 309572. (In reply to comment #0) > The scenario is described in details here: > http://wiki.eclipse.org/Gemini/Web > (create web project with OSGi facet installed) For others, the "OSGi Bundle Facet" can be installed from the Indigo main repository into the EPP Eclipse Java EE IDE for Web Developers. I am sorry to admit it took me quite a long time to figure out that this is what you were referring to ;-) With this installed I can reproduce the issue and confirm that the patch seems to fix the issue. thanks Thomas, You can mark my patch obsolete. That was the simplest way to workaround the situation. I have also tested your fix and it works for us. Created attachment 199210 [details]
patch + test
Here is the same patch + a test.
I released the patch to master: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=9cff86cd95fd7d47383fea06157a0a2663b0c386 Leaving open to release to 3.7.1. patch released to 3.7.1: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?h=R3_7_maintenance&id=95cacc4c220fa6a293749f0a66baf5b0d535caca *** Bug 352297 has been marked as a duplicate of this bug. *** |