Bundle cannot be resolved [message #1426217] |
Thu, 18 September 2014 12:17 |
|
Hi all,
I have a problem with my Eclipse Kepler that report an error on the bundle for the jdbc Oracle connection.
The error is "Bundle 'com.bsiag.scout.rt.server.jdbc.oracle11g2' cannot be resolved" and it's showed on the MANIFEST.MF of server side
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.mo.scout.Controller.server
Bundle-SymbolicName: org.mo.scout.Controller.server;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Activator: org.mo.scout.Controller.server.Activator
Export-Package: org.mo.scout.Controller.server,
org.mo.scout.Controller.server.services,
org.mo.scout.Controller.server.services.common.security,
org.mo.scout.Controller.server.services.common.sql,
org.mo.scout.Controller.server.services.custom.reporting,
org.mo.scout.Controller.server.services.custom.security,
org.mo.scout.Controller.server.services.lookup,
org.mo.scout.Controller.server.services.process
Require-Bundle: org.eclipse.core.runtime,
org.zeiss.mo.scout.Controller.shared,
org.eclipse.scout.rt.server,
org.eclipse.scout.http.servletfilter,
org.eclipse.equinox.http.registry,
org.eclipse.scout.jaxws216;bundle-version="2.1.6",
org.mo.scout.Controller.itk,
org.mo.scout.Controller.jasperlibs,
com.bsiag.scout.rt.server.jdbc.oracle11g2
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0"
Bundle-ActivationPolicy: lazy
In the tecnology section of my project I already checked the Oracle jdbc, as you can see in the image below
When I search com.bsiag.scout.rt.server.jdbc.oracle11g2 in the IDE (CTRL + SHIFT + T), I don't find nothing. Is this a valid test?
I accept suggestions on how to solve the problem.
Thanks in advance for any help and explanation
-
Attachment: TechSec.PNG
(Size: 22.99KB, Downloaded 11015 times)
[Updated on: Thu, 18 September 2014 12:22] Report message to a moderator
|
|
|
|
|
|
Re: Bundle cannot be resolved [message #1426407 is a reply to message #1426279] |
Thu, 18 September 2014 18:02 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
Hi Marco,
This is again a problem of target platform. This has nothing to do with Kepler or Luna.
Some info to help you to understand:
Target Platform:
It contains the list of plug-ins that can be used in the current workspace (for example as dependencies for your plug-ins - defined in the manifest)
By default, you use "Running Platform". This is the list of plug-ins started by the IDE.
You can see the available target platforms in the preference page: Plug-in Development > Target Platform
Target Platform definition:
This is a XLM file with the extension: ".target"
It contains:
* A list of locations
* For each location: a list of Plug-ins or Features that should be loaded from this location.
Location can be a directory on the hard drive, an eclipse installation, a feature (group of plug-ins) or a p2 update site.
Product file:
Defines and manages all aspect of an Application:
- List of plug-ins (that are started).
- Location of the configuration file (config.ini)
- Launching parameters (JRE, arguments...)
- ...
=> In the list of plug-ins you have only plug-ins available in the current target platform of your workspace.
If you add a plug-in that is not available (if you edit the xml content of the product file manually or if you change your target platform), you will have an error marker in the list of plug-in.
When you validate (*) your product file, only the plug-ins available in the target platform are considered. This explains the error you see:
(*) Product validation:
In the list of plug-ins you have defined in your product file, the dependencies (defined in the Manifest of each plug-in) are checked.
If a dependency is missing an error is displayed.
You can ignore the error and start the application. You will se something like this:
!ENTRY org.eclipse.scout.svg.ui.swt 4 0
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.scout.svg.ui.swt [46]
Unresolved requirement: Require-Bundle: org.eclipse.scout.rt.client; bundle-version="[3.7.0,4.1.0)"
-> Bundle-SymbolicName: org.eclipse.scout.rt.client; bundle-version="4.0.0.20140605-0911"; singleton:="true"
org.eclipse.scout.rt.client [77]
Unresolved requirement: Require-Bundle: org.eclipse.scout.rt.shared; bundle-version="[3.10.0,4.1.0)"; visibility:="reexport"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
If the missing dependency is crucial, the application will crash. If the depencency is only used for some functionnalities only the part of the application using the dependency will not be available.
---------
In order to be able to help you, we need to see your target platform. Can you share more information?
---------
You can not move jars from one eclipse installation into an other (eclipse IDE keeps a lot of additional metadata for each installed jar)
The best way to install this jar is to use the market place: JDBC Drivers for Eclipse Scout. (This is more or less what the IDE does when you check a Technology checkbox in the Scout Perspective).
If manipulation of checkboxes does nothing, you should see some errors in the error logs.
.
[Updated on: Thu, 18 September 2014 20:46] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04200 seconds