| Summary: | Strange message in Query management: output location | ||
|---|---|---|---|
| Product: | [Modeling] MoDisco | Reporter: | Gabriel BARBIER <barbier.gabriel> |
| Component: | Infrastructure | Assignee: | Nicolas Bros <nicolas.bros> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | gdupe, hugo.bruneliere, modisco.web-inbox, nicolas.bros |
| Version: | 0.9.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Gabriel BARBIER
We added this message because the Bundle-ClassPath entry is necessary for the class to be found in the hot-loaded bundle. Otherwise, Bundle#loadClass fails with a ClassNotFoundException (I just tested and can confirm it still works this way). So, this message is here to help the user determine why her query cannot be loaded. This Bundle-ClassPath entry is automatically added when you create a new MoDisco project, so this shouldn't be much trouble in most cases. Note: Buckminster failed to build several projects that had this "Bundle-ClassPath " set, with only a message stating "The project cannot be built until build path errors are resolved". After a while, I discovered that when you add an entry to the "Classpath" section of the "Runtime" tab in the Manifest.MF form editor, and leave the checkbox "Update the build path" checked, then PDE adds the directory to the project's Java classpath as well. When you add the "bin" directory this way, this makes the project depends on its own binaries, which is wrong. And this is the reason why the Buckminster build failed. So, we must be careful to uncheck "Update the build path" when adding an entry to the Bundle-ClassPath using the form editor (the MoDisco project creation wizard already does it correctly). Not relevant |