[rules-users] dependency issue after upgrading to 4.0.0 from MR3 with maven2?

Eric Miles eric.miles at kronos.com
Thu Jul 26 09:11:48 EDT 2007


I am attempting to ween our project off of MR3 and on to the 4.0.0 GA
and am having a lot of difficulty.  First off, I had compile issues with
the PackageBuilderConfiguration class (attempting to set the compliance
level to 1.5).  I figured that was no longer necessary so I removed that
(I hope that's correct although I haven't seen this mentioned anywhere).
Now when I attempt to run a unit test, I get the following error:

org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
	at
org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(PackageBuilderConfiguration.java:138)
	at
org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:114)
	at
org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:87)
	at
com.kronos.webta.service.key.rules.AccountKeyLookupTest.setUpBeforeClass(AccountKeyLookupTest.java:49)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
	at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
	at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
	at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not
in the classpath
	at
org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:98)
	at
org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:56)
	at
org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(PackageBuilderConfiguration.java:134)
	... 17 more


I am using Maven2, so I would assume my dependencies would be taken care
of?  I'm only using 2 dependencies in my project for Drools:

		<dependency>
			<groupId>org.drools</groupId>
			<artifactId>drools-compiler</artifactId>
			<version>4.0.0</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.drools</groupId>
			<artifactId>drools-core</artifactId>
			<version>4.0.0</version>
			<scope>compile</scope>
		</dependency>

>From the following repo:

		<repository>
			<id>jboss</id>
			<name>JBoss maven repository</name>
			<url>http://repository.jboss.com/maven2</url>
		</repository>

Am I missing something?  I completely blew away my org.drools directory
in my local repository to allow maven2 to download the dependencies, I
see it's downloading the drools-compiler and drools-core 4.0.0 versions
(although they do not have associated poms or checksums which I find
odd).  Thanks!

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070726/51ef8d13/attachment.html 


More information about the rules-users mailing list