[rules-users] Uploading the fact model to the DRools BRMS
Felbecker, Tobias
t.felbecker at sap.com
Wed Mar 19 05:18:35 EDT 2008
Hi, I fixed the Problem.
First I got rid of the Error
[STDOUT] ERROR 16-01 11:42:25,609 (Contexts.java:flushAndDest
royContexts:335) could not discover transaction status ...
by editing the web.xml of drools-jbrms ear. I found that earlier in this
list.
After that my exception changed into
java.lang.UnsupportedClassVersionError: Bad version number in .class
file ....
So I created my jars with some different Java versions and with jdk 1.6
the exception was gone. I don't why this is, cause drools and JBoss
should work with 1.5.
Cheers Tobi
Message: 2
Date: Tue, 18 Mar 2008 18:11:31 +0100
From: "Felbecker, Tobias" <t.felbecker at sap.com>
Subject:
To: <rules-users at lists.jboss.org>
Message-ID:
<72C6F8BBBED23343950D2C03D78E1BF84D3978 at dewdfe1g.wdf.sap.corp>
Content-Type: text/plain; charset="us-ascii"
Hi ,
I got the same problem and wonder if there is a solution for that yet.
I'am using
JBOSS: AS 4.2.2 GA
DBMR: 4.0.4
JAVA: 1.5.0_15
After uploading the jar, editing the import in the package configuration
and finally validating the package I get the following exception:
java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at
org.jboss.seam.util.Reflections.invoke(Reflections.java:21) at.....
The import statement should and the packaging of the jar file seems to
be correct. Otherwise there would be a Class not found error but no
exception.
I tried all kinds of packaging: binaries, source and binaries, creating
the jar through eclipse and from cmd.
This is my very simple java class:
package test;
public class MyBean{
public MyBean(){
}
private int number;
public int getNumber() {
return number;
}
public void setNumber(int number) {
this.number = number;
}
}
Cheers Tobi
More information about the rules-users
mailing list