Hi Flavius,
This is just a guess...
com.springsource.org.drools.compiler is attempting to use an 'internal'
package from the JDT, which is not exported. Other OSGi containers (like
Spring) may choose to expose not-exported packages in the class loader but
Equinox (as of version 3.3) does not.
When running in Spring, com.springsource.org.apache.jasper.org.eclipse.jdt
provides the JDT packages, which may or may not export the internal ones.
Normally, for Eclipse, org.eclipse.jdt provides these packages and it
definitely does not export the internal packages. When more than one bundle
exports the same package, OSGi selects one bundle to supply the package and
ignores all other bundles. Which bundle the OSGi container selects is not
specified (i.e., there is no priority) and OSGi does not merge the contents
of all bundles into a single, logical package.
It appears that Equinox is selecting org.eclipse.jdt and ignoring
com.springsource.org.apache.jasper.org.eclipse.jdt. I seem to remember that
you can instruct Eclipse to revert to the pre-v3.3 behavior with a
command-line parameter (add it to your eclipse.ini file) but I do not
remember the details.
Hope this helps,
Faron.
BTW, this question would be more appropriate for the Equinox user list.
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
bounces(a)lists.jboss.org] On Behalf Of Flavius Vespasianus
Sent: Thursday, July 02, 2009 6:07 PM
To: Rules Users List
Subject: [rules-users] Drools 4.0.7 OSGi version not working
Hi,
I am still trying to setup Drools as OSGi classes. I have downloaded
and
installed following plugins:
com.springsource.com.thoughtworks.xstream-1.3.0.jar
com.springsource.javax.rules-1.1.0.jar
com.springsource.javax.xml.stream-1.0.1.jar
com.springsource.jxl-2.6.6.jar
com.springsource.org.apache.jasper.org.eclipse.jdt-6.0.16.jar
com.springsource.org.codehaus.janino-2.5.15.jar
com.springsource.org.drools.compiler-4.0.7.jar
com.springsource.org.drools.decisiontable-4.0.7.jar
com.springsource.org.drools.jsr94-4.0.7.jar
com.springsource.org.drools-4.0.7.jar
com.springsource.org.mvel-1.3.5.jar
com.springsource.org.xmlpull-1.1.3.4-O.jar
com.springsource.org.xmlpull-1.1.4.jar
But when I try to run it, it still says:
Bundle update(a)plugins/com.springsource.org.drools.compiler-4.0.7.jar
was
not resolved.
Missing imported package
org.eclipse.jdt.internal.compiler.classfmt_[3.2.3,4.0.0).
Missing imported package org.eclipse.jdt.core.compiler_[3.2.3,4.0.0).
Missing imported package
org.eclipse.jdt.internal.compiler.problem_[3.2.3,4.0.0).
Missing imported package
org.eclipse.jdt.internal.compiler.env_[3.2.3,4.0.0).
Missing imported package
org.eclipse.jdt.internal.compiler_[3.2.3,4.0.0).
That's weird - the packages are in org.eclipse.jdt.core plugin and I
have the version 3.3.3, so it should find it. I have tried it also with
version 3.2.3 and 3.4.2 but no success. The target platform should be
configured correctly even when I try to use two versions at the same
moment it complains.
Can anybody help me, please? I am running out of time for my thesis...
Flavius
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
No virus found in this incoming message.
Checked by AVG -
www.avg.com
Version: 8.5.375 / Virus Database: 270.12.94/2208 - Release Date:
07/02/09 05:54:00