Problems using functions in .drl file
by Keith Bennett
I am having problems using functions in my .drl file. When I add a
function, I get the following two errors:
ImportError: PackageName.Function.function
Syntax error, static imports are only available if source level is 5.0
Has anyone else seen this? I am using Eclipse 3.2.2, Eclipse Drools IDE
4.0.3, and JDK 1.4. It appears as though I can't use the IDE unless I'm at
JDK 5.0???
One interesting thing is that if I modify my 'Compiler compliance level',
'Generated .class files compatibility', and 'Source compatibility' settings
to 1.4, the .drl compile errors go away. But as soon as I close Eclipse and
reopen it, the errors show up again. I appreciate any help you can
provide! Thanks.
16 years, 3 months
repository documentation
by John Verhaeg
Can someone point me to some documentation that explains how to populate a
drools repository with packages, models, rules, DSLs, etc., programmatically
without using the BRMS? TIA
16 years, 3 months
Re: [rules-users] Problems deploying BRMS on Jboss 4.0.1 AS
by kissro@lidp.com
I followed the instructions on the wiki page below and copied the 2 jar
files to server/default/lib. I then tried both 4.0.3 and 4.0.1 BRMS
.war files but got different errors for each. They are below.
4.0.3
INFO [Contexts] starting up: repositoryConfiguration
ERROR [Engine] StandardContext[/drools-jbrms]Exception sending context
initialized event to listener instance of class
org.jboss.seam.servlet.SeamListener
java.lang.NoSuchMethodError:
javassist.bytecode.Bytecode.addPutfield(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
at
org.jboss.seam.util.ProxyFactory.makeConstructor(ProxyFactory.java:519)
at
org.jboss.seam.util.ProxyFactory.makeConstructors(ProxyFactory.java:414)
4.0.1
INFO [org.jboss.seam.contexts.Lifecycle] starting up:
repositoryConfiguration
DEBUG [org.jboss.seam.Component] instantiating Seam component:
repositoryConfiguration
ERROR [org.jboss.web.localhost.Engine]
StandardContext[/drools-jbrms]Exception sending context initialized
event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.NoSuchMethodError:
net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V
at
org.jboss.seam.Component.createProxyFactory(Component.java:1933)
at org.jboss.seam.Component.getProxyFactory(Component.java:1122)
I don't know if it makes a difference, so I didn't mention it before,
but I'm using JBossIDE 2.0 with eclipse.
On Fri, Jan 04, 2008 at 12:05:14PM -0200, Fernando Meyer wrote:
> http://wiki.jboss.org/wiki/Wiki.jsp?page=JBRMSjsfdependencies
>
> On Jan 4, 2008 12:01 PM, < kissro(a)lidp.com> wrote:
>
> I'm sorry, I'm just learning all this. Could you be more specific;
> which files do I need (and where do I get them) and in which directory
> should I put them?
>
> Thank you
> On Fri, Jan 04, 2008 at 11:54:31AM -0200, Fernando Meyer wrote:
> > Try to install jsf dependencies on your app server
> >
> > On Jan 4, 2008 11:45 AM, <kissro(a)lidp.com> wrote:
> >
> > I tried version 4.0.3 with Jboss 4.0.1 AS and these are the errors I
> get
> >
> > ERROR [Engine] StandardContext[/drools-jbrms]Exception sending
> context
> > initialized event to listener instance of class
> > org.jboss.seam.servlet.SeamListener
> > java.lang.RuntimeException: Could not create Component:
> > org.jboss.seam.security.identity
> > at
> > org.jboss.seam.init.Initialization.addComponent(Initialization.java
> :964)
> > at
> > org.jboss.seam.init.Initialization.installComponents
> > (Initialization.java :891)
> > at
> > org.jboss.seam.init.Initialization.init(Initialization.java:547)
> > at
> > org.jboss.seam.servlet.SeamListener.contextInitialized
> > (SeamListener.java :34)
> >
> > Caused by: java.lang.NoClassDefFoundError:
> > javax/faces/application/FacesMessage$Severity
> > at java.lang.Class.getDeclaredMethods0(Native Method)
> > at java.lang.Class.privateGetDeclaredMethods (Unknown Source)
> > at java.lang.Class.getDeclaredMethods(Unknown Source)
> >
> > ERROR [URLDeploymentScanner] Incomplete Deployment listing:
> > Incompletely deployed packages:
> > org.jboss.deployment.DeploymentInfo@cbf5aa95 {
> > url=file:/C:/apps/jboss-4.0.1sp1/server/default/deploy/
> drools-jbrms.war
> > }
> > deployer: org.jboss.web.tomcat.tc5.Tomcat5@15780d9
> > status: Deployment FAILED reason: URL
> > file:/C:/apps/jboss- 4.0.1sp1/server/default/tmp/deploy/
> > tmp56124drools-jbrms-exp.war/
> > deployment failed
> > state: FAILED
> > watch:
> > file:/C:/apps/jboss-4.0.1sp1/server/default/deploy/drools-jbrms.war
> > altDD: null
> > lastDeployed: 1199453750061
> > lastModified: 1199453749483
> > mbeans:
> >
> > Any other ideas why Drools 4.0.1 BRMS (or 4.0.3) won't work with
> Jboss
> > 4.0.1 AS?
> >
> > On Fri, Jan 04, 2008 at 09:03:32AM +0530, Rahul Upadhyay wrote:
> > > It seems that some class files are missing in your BRMS war.
> > > domload BRMS war version4.0.3 form
> > > http://labs.jboss.com/drools/downloads.html.
> > >
> > > This will work.
> > >
> > > cheers
> > > Rahul Upadhyay
> > >
> > > On Jan 3, 2008 10:37 PM, <kissro(a)lidp.com > wrote:
> > >
> > > Hello,
> > >
> > > I'm trying to deploy the Drools 4.0.1 JBRMS on the Jboss 4.0.1
> AS and
> > > these are the errors I'm getting. Can somone tell me why?
> > >
> > > INFO [Scanner] scanning:
> > > C:\apps\jboss-4.0.1sp1\server\default\tmp\deploy\
> > > tmp7104drools-jbrms-exp.war\WEB-INF\classes
> > > INFO [Initialization] reading /WEB-INF/components.xml
> > > ERROR [Engine] StandardContext[/drools-jbrms]Exception sending
> > context
> > > initialized event to listener instance of class
> > > org.jboss.seam.servlet.SeamListener
> > > java.lang.NoClassDefFoundError: javax/faces/context/
> FacesContext
> > > at org.jboss.seam.util.Resources.getResourceAsStream
> > (Resources.java:21)
> > >
> > > ERROR [Context] Error listenerStart
> > > ERROR [Context] Context startup failed due to previous errors
> > > ERROR [WebModule] Starting failed
> > > jboss.web.deployment:war=drools-jbrms.war ,id=-873092459
> > > org.jboss.deployment.DeploymentException: URL
> > > file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/
> > > tmp7104drools-jbrms-exp.war /
> > > deployment failed at
> > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal
> > > (TomcatDeployer.java:365)
> > > at
> > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy
> > > ( TomcatDeployer.java:92)
> > >
> > > WARN [ServiceController] Problem starting service
> > > jboss.web.deployment:war=drools-jbrms.war,id=-873092459
> > > org.jboss.deployment.DeploymentException : URL
> > > file:/C:/apps/jboss- 4.0.1sp1/server/default/tmp/deploy/
> > > tmp7104drools-jbrms-exp.war/
> > > deployment failed at
> > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal
> > > (TomcatDeployer.java:365)
> > > at
> > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy
> > > (TomcatDeployer.java:92)
> > >
> > > ERROR [MainDeployer] could not start deployment:
> > > file:/C:/apps/jboss-4.0.1sp1 /server/default/deploy/
> drools-jbrms.war
> > > org.jboss.deployment.DeploymentException: URL
> > > file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/
> > > tmp7104drools-jbrms-exp.war/
> > > deployment failed at
> > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal
> > > (TomcatDeployer.java:365)
> > > at
> > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy
> > > (TomcatDeployer.java :92)
> > >
> > >
> > > ERROR [URLDeploymentScanner] Incomplete Deployment listing:
> > > Incompletely deployed packages:
> > > org.jboss.deployment.DeploymentInfo@cbf5aa95 {
> > > url=file:/C:/apps/jboss- 4.0.1sp1/server/default/deploy/
> > drools-jbrms.war
> > > }
> > > deployer: org.jboss.web.tomcat.tc5.Tomcat5@1c45731
> > > status: Deployment FAILED reason: URL
> > > file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/
> > > tmp7104drools-jbrms-exp.war/
> > > deployment failed
> > > state: FAILED
> > > watch:
> > > file:/C:/apps/jboss-4.0.1sp1/server/default/deploy/drools-
> jbrms.war
> > > altDD: null
> > > lastDeployed: 1199378127367
> > > lastModified: 1199378127038
> > > mbeans:
> > >
> > > MBeans waiting for other MBeans:
> > > ObjectName: jboss.web.deployment:war=drools-jbrms.war ,id=
> -873092459
> > > state: FAILED
> > > I Depend On:
> > > Depends On Me: org.jboss.deployment.DeploymentException : URL
> > > file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/
> > > tmp7104drools-jbrms-exp.war/
> > > deployment failed
> > >
> > > MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
> > > ObjectName: jboss.web.deployment:war=drools-jbrms.war,id=
> -873092459
> > > state: FAILED
> > > I Depend On:
> > > Depends On Me: org.jboss.deployment.DeploymentException : URL
> > > file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/
> tmp7104drools-
> > > jbrms-exp.war/
> > > deployment failed
> > >
> > > Thanks,
> > > Rod
> > > _______________________________________________
> > > rules-users mailing list
> > > rules-users(a)lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/rules-users
> > >
> > >
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> >
> > --
> > Fernando Meyer http://fmeyer.org
> > JBoss Rules Core Developer
> > fernando(a)fmeyer.org
>
>
>
>
> --
> Fernando Meyer http://fmeyer.org
> JBoss Rules Core Developer
> fernando(a)fmeyer.org
16 years, 3 months
Can't run BRMS on Jboss 4.0.1 AS
by kissro@lidp.com
I'm trying to run the BRMS GUI on the Jboss 4.0.1sp1 AS but I'm getting
the following errors after I login and click 'Packages'. I'm working in
a Windows environment using eclipse 3.2 with the 2.0 Jboss IDE. I'm
using the 4.0.1 BRMS .war file. It looks like the problem is with Seam
but I don't know how to fix it. I've successfully run the BRMS GUI on
the Jboss 4.0.2GA server and I don't see any messages whatsoever about
Seam. Why is it running Seam for the 4.0.1 server but not 4.0.2. When
the 4.0.1 server starts I see the message 'Welcome to Seam 1.2.0.PATCH1'
then it displays a bunch of messages related to initializing Seam.
I need to get this running on the 4.0.1 server. Can someone help me?
INFO [Lifecycle] starting up: org.jboss.seam.security.identity
WARN [RuleBasedIdentity] no security rule base available - please
install a RuleBase with the name 'securityRules' if permission checks
are required.
INFO [SecurityServiceImpl] Logging in user []
INFO [DefaultAuthenticator] User logged in via default authentication
module (no security check).
INFO [RepositoryImpl] Starting repository...
INFO [LocalFileSystem] LocalFileSystem initialized at path
repository\repository
INFO [LocalFileSystem] LocalFileSystem initialized at path
repository\version
INFO [LocalFileSystem] LocalFileSystem initialized at path
repository\version\blobs
INFO [RepositoryImpl] initializing workspace 'default'...
INFO [LocalFileSystem] LocalFileSystem initialized at path
repository\workspaces\default
INFO [LocalFileSystem] LocalFileSystem initialized at path
repository\workspaces\default\blobs
INFO [RepositoryImpl] workspace 'default' initialized
INFO [LocalFileSystem] LocalFileSystem initialized at path
repository\repository\index
INFO [SearchIndex] Index initialized: repository/repository/index
INFO [LocalFileSystem] LocalFileSystem initialized at path
repository\workspaces\default\index
INFO [SearchIndex] Index initialized:
repository\workspaces\default/index
INFO [RepositoryImpl] Repository started
INFO [TransientRepository] Transient repository initialized
INFO [TransientRepository] Session opened
INFO [TransientRepository] Session opened
WARN [Contexts] Could not destroy component: repository
java.lang.IllegalArgumentException: method not found: close for
component: repository
at org.jboss.seam.Component.callComponentMethod(Component.java:1820)
at org.jboss.seam.Component.callDestroyMethod(Component.java:1733)
at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:230)
at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:426)
at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:344)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:59)
.
.
.
Caused by: java.lang.NoSuchMethodException:
org.drools.brms.server.repository.RulesRepositoryManager$$EnhancerByCGLIB$$61fa759b.close()
at java.lang.Class.getMethod(Unknown Source)
at
org.jboss.seam.Component.callComponentMethod(Component.java:1799)
... 38 more
Thank you.
16 years, 3 months
(no subject)
by heroshaojun
When I use 4.0.3 testing , more than 1000 drools' object was created ,these
can't be destroyed through GC,
So , I think memory leak is also exist in 4.0.3.
4.0.1 is normal and GC quickly excute.
----------------------------------------------------------------------
Message: 1
Date: Mon, 7 Jan 2008 08:31:57 -0200
From: "Edson Tirelli" <tirelli(a)post.com>
Subject: Re: [rules-users] Drools 4.02 or 4.03 memory leak?
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Message-ID:
<e6dd5ba30801070231u447794c0h15b8d3c9c5cc8a65(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Yes, and also 4.0.2 did had a memory leak that was fixed in 4.0.3, were
no leak was detected my profiling tools. So make sure you are using 4.0.3.
[]s
Edson
2008/1/7, Paul Smith <paul.t.smith(a)gmail.com>:
>
> Also make sure that you are either using Stateless Working Memory or if
> you are using a Stateful Working Memory then make sure you're
dereferencing
> objects. I had a similar issue and it turned out to be me using Stateful
WM
> when I didn't realy need it and not dereferencing the objects. There are a
> number of tools around to help to identify memory leaks. JRockit has a
> pretty good tool for helping to isolate issues. That's how I isolated my
> issues.
>
> http://e-docs.bea.com/jrockit/docs142/userguide/memleak.html
>
>
>
> On Jan 7, 2008 3:27 PM, Michael Rhoden < mrhoden(a)franklinamerican.com>
> wrote:
>
> > Try setting your JVM memory higher. Drools tends to use plenty of memory
> > as well as perm gen space.
> >
> > What I use:
> > -Xmx512m -XX:MaxPermSize=512m
> >
> > -----Original Message-----
> > From: rules-users-bounces(a)lists.jboss.org
> > [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of heroshaojun
> > Sent: Sunday, January 06, 2008 9:14 PM
> > To: rules-users(a)lists.jboss.org
> > Subject: [rules-users] Drools 4.02 or 4.03 memory leak?
> >
> > When I use profiler to test inserting object to WorkingMemory, outmemory
> > always occurs.
> >
> > Who can help me?
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
16 years, 3 months
Re: JUnit and classpath
by J Michael Dean
Thanks. I remain unable to use JUnit. I have the code and several
traces below and have attached them as files in case that is more
readable. The behavior, to summarize, is that if I add nothing to the
JUnit classpath OR if I add the full org.drools.eclipse_4.0.3.jar to
the classpath, I get an error instantiating the package builder, AFTER
successfully instantiating a configuration. If I use my own minimal
drools plugin, I get an error instantiating the configuration itself.
These lines are clearly marked in the code below, and the respective
traces are below the code.
The minimal plugin works completely in my RCP, which uses essentially
identical code to access Drools. It includes
* drools-core - the rule engine itself.
MVEL included just in case (because of the error I was
misinterpreting)
* optional packages:
o xpp3-1.1.3.4.O, xstream-1.2.2 - for audit feature
* drools-compiler - the rule compiler itself.
* antlr3-runtime-3.0
* eclipse-jdt-core-3.2.3.v_686_R32x - to compile with eclipse
I don't really need JUnit to work against this minimal plugin, and I
think when I add nothing to the JUnit classpath that JUnit already
sees org.drools.eclipse_4.0.3.jar.
In case the files are stripped, here are the contents. Code followed
by traces.
I appreciate Drools - it is terrific. Thank you for any assistance
you can provide to help me with this problem.
- Mike Dean
package droolsRules.tests;
import java.io.File;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.Reader;
import org.drools.RuleBase;
import org.drools.RuleBaseFactory;
import org.drools.compiler.PackageBuilder;
import org.drools.compiler.PackageBuilderConfiguration;
import org.drools.rule.Package;
import org.drools.rule.builder.dialect.java.JavaDialectConfiguration;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
/**
* This suite is the place to add Drools tests.
*
* @author J. Michael Dean, M.D., M.B.A. (University of Utah)
* Copyright 2005 - 2008. All Rights Reserved.
*
*/
@RunWith(Suite.class)
@SuiteClasses( { TestHypoglycemiaDetection.class })
public class AllDroolsRulesTests {
public static RuleBase ruleBase;
@BeforeClass
public static void setUp() throws Exception {
Reader source;
PackageBuilderConfiguration pkgConfig = new
PackageBuilderConfiguration(); //ERROR OCCURS HERE WHEN I USE MY
MINIMAL DROOLS PLUGIN JAR
JavaDialectConfiguration javaDialectConf =
(JavaDialectConfiguration) pkgConfig.getDialectConfiguration("java");
javaDialectConf.setCompiler(JavaDialectConfiguration.ECLIPSE);
if (pkgConfig == null) {
System.out.println("Error - null package configuration");
} else {
System.out.println("Package configuration is not null");
}
final PackageBuilder builder = new PackageBuilder(pkgConfig); //
ERROR OCCURS HERE WHEN I USE DROOLS.ORG.ECLIPSE_4.0.3.JAR
boolean exists = (new File("rules/GlucoseDroolRules00.drl")).exists();
if (exists) {
builder.addPackageFromDrl(new FileReader(
"rules/GlucoseDroolRules00.drl"));
System.out.println("Found the file!");
} else {
System.out.println("Cannot locate the file - will try as resource");
source = new InputStreamReader(AllDroolsRulesTests.class
.getResourceAsStream("GlucoseDroolRules00.drl"));
if (source == null){
System.out.println("Could not get input stream");
} else {
System.out.println("Opened the stream successfully");
}
builder.addPackageFromDrl(source);
}
if (builder.hasErrors()) {
System.out.println(builder.getErrors().toString());
}
Package pkg = builder.getPackage();
ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage(pkg);
}
@AfterClass
public static void tearDown() throws Exception {
}
public static RuleBase getRuleBase() {
return ruleBase;
}
}
Here are the respective traces (am sorry for the length of this post)
Here is the trace when I add nothing special to the JUnit classpath,
showing that the configuration was instantiated in lines 38 - 40, but
the crash occurs when instantiating the package builder in line 47.
This crash occurs before any effort is made to load a DRL, etc. I get
the same identical trace if I add org.drools.eclipse_4.0.3.jar to the
classpath, which makes sense to me because this jar is in my IDE
environment and should be visible to JUnit.
Package configuration is not null
java.lang.NullPointerException
at
org.mvel.optimizers.OptimizerFactory.<clinit>(OptimizerFactory.java:43)
at
org.drools.rule.builder.dialect.mvel.MVELDialect.init(MVELDialect.java:
142)
at org.drools.compiler.DialectRegistry.initAll(DialectRegistry.java:49)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:146)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:108)
at
droolsRules.tests.AllDroolsRulesTests.setUp(AllDroolsRulesTests.java:47)
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)
[MVEL] Notice: Possible incorrect version of ASM present (3.0
required). Disabling JIT compiler. Reflective Optimizer will be used.
If, on the other hand, I add the plugin that I use in my RCP, "minimal
Drools", I get a different trace. My plugin includes
* drools-core - the rule engine itself.
MVEL included just in case (because of the error I was
misinterpreting)
* optional packages:
o xpp3-1.1.3.4.O, xstream-1.2.2 - for audit feature
* drools-compiler - the rule compiler itself.
* antlr3-runtime-3.0
* eclipse-jdt-core-3.2.3.v_686_R32x - to compile with eclipse
Now the trace shows that the configuration file is not instantiated:
org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
at
org
.drools
.compiler
.PackageBuilderConfiguration
.addDialect(PackageBuilderConfiguration.java:152)
at
org
.drools
.compiler
.PackageBuilderConfiguration
.buildDialectConfigurationMap(PackageBuilderConfiguration.java:140)
at
org
.drools
.compiler
.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:117)
at
org
.drools
.compiler
.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:94)
at
droolsRules.tests.AllDroolsRulesTests.setUp(AllDroolsRulesTests.java:38)
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.NullPointerException
at
org
.drools
.compiler
.PackageBuilderConfiguration
.addDialect(PackageBuilderConfiguration.java:146)
... 18 more
On Jan 3, 2008, at 8:21 AM, rules-users-request(a)lists.jboss.org wrote:
>
>
> Message: 4
> Date: Thu, 03 Jan 2008 15:21:13 +0000
> From: Mark Proctor <mproctor(a)codehaus.org>
> Subject: Re: [rules-users] Re: JUnit and classpath
> To: Rules Users List <rules-users(a)lists.jboss.org>
> Message-ID: <477CFD69.4050301(a)codehaus.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> J Michael Dean wrote:
>> I noticed the absence of asm and tried to manually add version 3.1
>> and
>> this had no effect on the trace.
> It gets a null pointer and says it can't use ASM in MVEL, thus uses
> reflection mode. That's fine as reflection is the mode we put MVEL in
> anyway. It's more of am informational warning than an error.
>>
>> ...
>>
>> On Jan 2, 2008, at 10:00 AM, rules-users-request(a)lists.jboss.org
>> wrote:
>>
>>>
>>>
>>> Mike,
>>>
>>> So it seems you are missing the ASM jar in your classpath... did you
>>> tried
>>> adding it?
>>> BTW, what is this MinimalDroolCore_1.0.0.jar that you are adding to
>>> your
>>> classpath? Drools also includes an inlined ASM version inside it for
>>> its own
>>> use... are you stripping that?
>>>
>>> []s
>>> Edson
>>>
>>>>>> ...
>>>>>> Mike,
>>>>>>
>>>>>> This looks like a classpath problem indeed. Did you tried asking
>>>>>> the JVM
>>>>>> to dump its classpath so that you can know for sure what jars are
>>>>>> included
>>>>>> and if any of them embeds a non-compatible ASM version ?
>>>>>>
>>>>>> []s
>>>>>> Edson
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> rules-users mailing list
>>>>>> rules-users(a)lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>
>>>>>>
>>>>>
>>>>>
16 years, 3 months
Does BRMS run on Jboss 4.0.1sp1 AS
by kissro@lidp.com
Hi,
Does anyone know if any version of the Drools BRMS will work on the
Jboss 4.0.1sp1 AS? I have been trying unsucessfully to get it to work.
Fernando helped me some by suggesting I install the jsf dependencies on
my app server. That fixed one problem. Another problem was fixed by
removing 'cglib-full-2.0.1.jar' from the
server/default/deploy/jboss-hibernate.deployer directory.
Following those two changes, the BRMS now opens in the web browser but
when I go to 'Packages' and try to add a new rule or create and save a
new package, it dies again with these errors.
INFO [TransientRepository] Transient repository initialized
INFO [TransientRepository] Session opened
INFO [TransientRepository] Session opened
WARN [Contexts] Could not destroy component: repository
java.lang.IllegalArgumentException: method not found: close for
component: repository
at org.jboss.seam.Component.callComponentMethod(Component.java:1820)
at org.jboss.seam.Component.callDestroyMethod(Component.java:1733)
at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:230)
at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:426)
at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:344)
.
.
.
Caused by: java.lang.NoSuchMethodException:
org.drools.brms.server.repository.RulesRepositoryManager$$EnhancerByCGLIB$$bae301ae.close()
at java.lang.Class.getMethod(Unknown Source)
at org.jboss.seam.Component.callComponentMethod(Component.java:1799)
... 38 more
INFO [TransientRepository] Session opened
WARN [Contexts] Could not destroy component: repository
java.lang.IllegalArgumentException: method not found: close for
component: repository
at org.jboss.seam.Component.callComponentMethod(Component.java:1820)
at org.jboss.seam.Component.callDestroyMethod(Component.java:1733)
These are the errors I get when I use the 4.0.1 BRMS .war file. When
using the 4.0.3 .war file, I get completely different errors and it dies
before starting. Can you even use BRMS on anything earlier than 4.0.2
AS? If so, what else can I try to get around these errors?
Thanks,
Rod
16 years, 3 months
Problems deploying BRMS on Jboss 4.0.1 AS
by kissro@lidp.com
Hello,
I'm trying to deploy the Drools 4.0.1 JBRMS on the Jboss 4.0.1 AS and
these are the errors I'm getting. Can somone tell me why?
INFO [Scanner] scanning:
C:\apps\jboss-4.0.1sp1\server\default\tmp\deploy\tmp7104drools-jbrms-exp.war\WEB-INF\classes
INFO [Initialization] reading /WEB-INF/components.xml
ERROR [Engine] StandardContext[/drools-jbrms]Exception sending context
initialized event to listener instance of class
org.jboss.seam.servlet.SeamListener
java.lang.NoClassDefFoundError: javax/faces/context/FacesContext
at org.jboss.seam.util.Resources.getResourceAsStream(Resources.java:21)
ERROR [Context] Error listenerStart
ERROR [Context] Context startup failed due to previous errors
ERROR [WebModule] Starting failed
jboss.web.deployment:war=drools-jbrms.war,id=-873092459
org.jboss.deployment.DeploymentException: URL
file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/tmp7104drools-jbrms-exp.war/
deployment failed at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:365)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:92)
WARN [ServiceController] Problem starting service
jboss.web.deployment:war=drools-jbrms.war,id=-873092459
org.jboss.deployment.DeploymentException: URL
file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/tmp7104drools-jbrms-exp.war/
deployment failed at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:365)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:92)
ERROR [MainDeployer] could not start deployment:
file:/C:/apps/jboss-4.0.1sp1/server/default/deploy/drools-jbrms.war
org.jboss.deployment.DeploymentException: URL
file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/tmp7104drools-jbrms-exp.war/
deployment failed at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:365)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:92)
ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Incompletely deployed packages:
org.jboss.deployment.DeploymentInfo@cbf5aa95 {
url=file:/C:/apps/jboss-4.0.1sp1/server/default/deploy/drools-jbrms.war
}
deployer: org.jboss.web.tomcat.tc5.Tomcat5@1c45731
status: Deployment FAILED reason: URL
file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/tmp7104drools-jbrms-exp.war/
deployment failed
state: FAILED
watch:
file:/C:/apps/jboss-4.0.1sp1/server/default/deploy/drools-jbrms.war
altDD: null
lastDeployed: 1199378127367
lastModified: 1199378127038
mbeans:
MBeans waiting for other MBeans:
ObjectName: jboss.web.deployment:war=drools-jbrms.war,id=-873092459
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: URL
file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/tmp7104drools-jbrms-exp.war/
deployment failed
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.web.deployment:war=drools-jbrms.war,id=-873092459
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: URL
file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/tmp7104drools-jbrms-exp.war/
deployment failed
Thanks,
Rod
16 years, 3 months