Error deploy Guvnor - DEPLOYMENTS MISSING DEPENDENCIES
by andre.fonseca@mail.com
Hi all,
I am trying to deployed Guvnor (5.0 and 5.1) in Jboss 6.0 using Windows 7
I edited WEB-INF/components.xml to change the directory to uncoment the properties
<property name="homeDirectory">C:/my-path</property>
<property name="configurator">org.drools.repository.JackrabbitRepositoryConfigurator</property>
Then I created a folder in default/deploy in Jboss and copy all the content to there.
I am getting the exception below
Could someone please assist? There are something else I need to do except to edit components.xml?
I have also tested the deploy with the war file without sucess.
TIA
2010-04-23 10:17:44,761 INFO [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (Thread-2) Loading profile: ProfileKey@2c842c[domain=default, server=default, name=default]
2010-04-23 10:17:44,777 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (Thread-2) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "JBossTimerServiceFactory" is missing the following dependencies:
Dependency "jboss.ejb:service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")
Dependency "jboss.jdbc:datasource=DefaultDS,service=metadata" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **")
Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=JMSUserManager" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")
Deployment "jboss.messaging:service=PersistenceManager" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")
Deployment "jboss.messaging:service=PostOffice" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")
Deployment "jboss.messaging:service=ServerPeer" is missing the following dependencies:
Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PersistenceManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq:service=DestinationManager" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")
DEPLOYMENTS IN ERROR:
Deployment "vfsfile:/C:/jboss/server/default/deploy/messaging/jms-ds.xml" is in error due to the following reason(s): java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **
Deployment "jboss.web.deployment:war=/invoker" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss/server/default/deploy/http-invoker.sar/invoker.war/ deployment failed
Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **
Deployment "vfsfile:/C:/jboss/server/default/deploy/ROOT.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss/server/default/deploy/ROOT.war/ deployment failed
Deployment "vfsfile:/C:/jboss/server/default/deploy/guvnor.war/" is in error due to the following reason(s): java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) previously initiated loading for a different type with name "javax/el/ELContext"
Deployment "vfsfile:/C:/jboss/server/default/deploy/hsqldb-ds.xml" is in error due to the following reason(s): java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
Deployment "vfsfile:/C:/jboss/server/default/deploy/jboss-war.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss/server/default/deploy/jboss-war.war/ deployment failed
2010-04-23 10:17:44,808 INFO [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-127.0.0.1-8090
2010-04-23 10:17:44,823 INFO [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
2010-04-23 10:17:44,823 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)] Started in 2m:4s:760ms
14 years, 8 months
How to access process variables within a work-item (human task)
by Robert
Hi,
I have
...
StatefulKnowledgeSession
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
taskHandler);
...
Map<String, Object> processVariables = new HashMap<String, Object>();
processVariables.put("equipment", "OvenQP33");
ProcessInstance pi = ksession.startProcess(processName,
processVariables);
...
... within the taskHandler.executeWorkItem(WorkItem workItem,
WorkItemManager workItemManager):
I am setting a break-point, and I am getting there, but how am I able to
access my processVariables or even set specific data for this particular
work-item ?
I tried using as described in the doc "9.1 Human tasks inside processes":
- Parameter mapping: Allows copying the value of process variables to
parameters of the human task. Upon creation of the human tasks, the
values will be copied.
But without any success. I just not getting to the "equipment" variable,
which I need at this point of processing the work-item.
The mapping I did: "equipment" -> "equipment". With the hope to find them
within workItem.getParameters(), but they are not there and nowhere-else
too.
Any ideas ?
Generally there are even many more settings possible for the human task,
see doc (here the list:
Id,Name,TaskName,Priority,Comment,ActorId,Skippable,Content,Swimlane,On-entry
and on-exit actions,Parameter mapping,Result mapping,Timers,ParentId), but
only a few are accessible through workItem.getParameters(). The others ?
Also, no idea to get this data.
Cheers, Rob.
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
14 years, 8 months
Multiple timers in a single ruleflow
by nanic23
Hi guys,
I am trying to implement multiple timers in a single ruleflow.
I am trying to achieve:
1. Multiple timers running at the same time.
2. Multiple timers running consecutively.
It seems to me that the current implementation will not allow for this kind
of behavior out of the box.
ksession.fireAllRules() and ksession.halt() are very wide spread (as they
act on the session and apply to “AllRules”) and don’t leave room to indicate
what timer you want to start and which one to stop.
This might work OK if you have only one timer, but if you have more than
one:
ksession.halt(); will stop all timers. And this is no good if you want to
stop only a “specific” one and have others keep running.
ksession.fireAllRules() will start all timers including timers you already
stopped.
E.g. a flow with 2 timers, you want to run first timer to send an email
periodically while your flow is suspended on Human Task. Once the flow is
resumed you’ll want run a second timer, down further on the flow, which
waits in a second Human Task node.
This works OK to the point where you do kesession.fireAllRules() to start
the second timer and get the first timer running again as a bonus :)
Has anybody implemented multiple timers? Any idea how to approach this?
I appreciate any comments,
Thanks,
Nick.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Multiple-timers-in-a-...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 8 months
Multithreading work items
by Pedro Maria Buitrago Mantilla
In general, I meet that for resolve the topic of multithreading it's
required to implement another thread over a work item.
How does the asynchronic task can modified a variable of Knowledgebase?
Can you give me an example?
Pedro Buitrago
14 years, 8 months
Can I use not and from in same condition?
by Ryan Fitzgerald
Hi,
I get an error with the following rule that appears only when I use the not keyword. If I remove the not keyword, it seems ok:
rule "WCDMA->GSM Bidirectional Relations Evaluation Rule - Version 4"
salience 10
dialect "java"
when
$extgsmcell : ExternalGsmCell()
$utrancell : UtranCell() from $extgsmcell.getIncomingUtranCells($extgsmcell.fdn)
$extutrancell : ExternalUtranCell ( rncid==$utrancell.rncid, cellid==$utrancell.cellid )
not GsmCell( lac==$extgsmcell.lac, cellid==$extgsmcell.cellid) from $extutrancell.getIncomingGsmCells($extutrancell.fdn)
then
System.out.println("Version 3: Missing Cell Relation from " + $utrancell.getFdn() + " to " + $extgsmcell.getFdn());
End
Any suggestions?
Thanks,
Ryan.
14 years, 8 months
How to access loggued username in a class
by fmetral
Hi all,
I face a very blocking problem and I require help to solve it quickly.
Is it possible to access the loggued username in a class. I mean, I have
created a class that connect to an other application (EAR) to get values
from enumerations.
But in this class, the retrieve the data, I need to have to the username of
the loggued user.
I have disabled the BRMS JAAS connector to delegate the authentication to my
application server.
Is their any class or mechanism to get the username of the loggued user?
Thanks in advance
Florent
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-to-access-loggued...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 8 months
Re: [rules-users] Integration issue : Guvnor with Openldap
by Gayatri Chandak
Hello All,
An update from my side.
We tried modifying the login-config.xml file as below:
<authentication>
<login-module
code="org.jboss.security.auth.spi.LdapAuthenticatorLoginModule"
flag="optional">
<module-option
name="java.naming.provider.url">ldap://test.kalyani.com:389/</module-option>
<module-option name="java.naming.security.protocol">ssl</module-option>
<module-option
name="java.naming.security.principal">cn=DirManager</module-option>
<module-option
name="java.naming.security.credentials">secret</module-option>
<module-option name="searchBase">dc=kijanowski,dc=eu</module-option>
</login-module>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule"
flag="required" >
<module-option name="java.naming.factory.initial">
com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option
name="java.naming.provider.url">ldap://test.kalyani.com:389/</module-option>
<module-option
name="java.naming.security.authentication">simple</module-option>
<module-option name="bindDN">cn=DirManager,dc=kijanowski,dc=eu
</module-option>
<module-option name="bindCredential">secret</module-option>
<module-option
name="baseCtxDN">ou=People,o=guvnor,dc=kijanowski,dc=eu </module-option>
<module-option name="baseFilter">(uid={0})</module-option>
<module-option
name="rolesCtxDN">ou=Roles,o=guvnor,dc=kijanowski,dc=eu </module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeID">member</module-option>
<module-option name="roleRecursion">-1</module-option>
<module-option name="roleNameAttributeID">cn</module-option>
<module-option name="roleAttributeIsDN">true</module-option>
<module-option name="searchTimeLimit">5000</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
</login-module>
</ authentication>
</application-policy>
But, still we are not able to connect to the LDAP server
through the login page. We are getting the follwoing error :
[STDOUT] ERROR 15-04 11:59:15,597
(SecurityServiceImpl.java:login:73)
javax.security.auth.login.LoginException: No LoginModules
configured for guvnor
Please let me know if we are missing anything or anything
needs to be changed.
Thanks in advance.
Regards,
Gayatri Chandak
Member-BPM/BRE/BAM Sub Focus Area
TEG-Open Source
Tata Consultancy Services
Yantra Park -(STPI)
2nd Pokharan Road,
Opp HRD Voltas Center,Subash Nagar
Mumbai - 400 601,Maharashtra
India
Ph:- 022-67782556
Mailto: gayatri.chandak(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
From: Gayatri Chandak/MUM/TCS
To: rules-users(a)lists.jboss.org
Date: 04/15/2010 11:02 AM
Subject: Integration issue : Guvnor with Openldap
Sent by: Gayatri Chandak
Hello All,
I am trying to integrate the Guvnor with Openldap, for which I am following
the below link.
http://magazine.redhat.com/2008/08/14/jboss-drools-how-to-tuning-guvnor-p...
The Server starts properly, but it does not recognize the user.
Issue faced:
I have to replace the file based authentication part with the Openldap
code, which is given below.
ldaps://localhost:16636
ssl
cn=DirManager,dc=kijanowski,dc=eu
admin123
ou=People,o=guvnor,dc=kijanowski,dc=eu
(uid={0})
ou=Roles,o=guvnor,dc=kijanowski,dc=eu
(member={1})
cn
-1
ONELEVEL_SCOPE
I have no idea how to write the above code in the xml file.
Can anyone please help me on this?
Attaching the login-config.xml file, please find.
[attachment "login-config.xml" deleted by Gayatri Chandak/TVM/TCS]
Thanks and regards,
Gayatri Chandak
Member-BPM/BRE/BAM Sub Focus Area
TEG-Open Source
Tata Consultancy Services
Yantra Park -(STPI)
2nd Pokharan Road,
Opp HRD Voltas Center,Subash Nagar
Mumbai - 400 601,Maharashtra
India
Ph:- 022-67782556
Mailto: gayatri.chandak(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
14 years, 8 months
Interact with Drools API over RMI
by Vandewilly
Hello,
Does anyone have any sample of how to interact with Drools API over RMI,
using the jackrabbit framework or similar technology ?
--
Vandewilly Oliveira
14 years, 8 months
Re: [rules-users] Very basic running of drools 5, basic setup and quickstart
by Greg Barton
You don't have to, that was just a suggestion for making an initial project. Just put the source in the typical maven directory structure (java code in src/main/java and rules under src/main/rules) and you'll be good to go. A sample project is attached.
--- On Sun, 4/25/10, Berlin Brown <berlin.brown(a)gmail.com> wrote:
From: Berlin Brown <berlin.brown(a)gmail.com>
Subject: Re: [rules-users] Very basic running of drools 5, basic setup and quickstart
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Date: Sunday, April 25, 2010, 6:26 PM
I am not using Eclipse.
2010/4/25 Greg Barton <greg_barton(a)yahoo.com>
The best documentation to read would be the maven docs:
http://maven.apache.org/
But if you drop the attached pom.xml into a project created by drools' eclipse plugin it'll work fine. type "mvn clean install" from the project home directory and it'll build. (After downloading half the known universe...)
--- On Thu, 4/22/10, Berlin Brown <berlin.brown(a)gmail.com> wrote:
From: Berlin Brown <berlin.brown(a)gmail.com>
Subject: Re: [rules-users] Very basic running of drools 5, basic setup and quickstart
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Date: Thursday, April 22, 2010, 5:11 PM
Is there documentation on how to do this, including a full example.
I saw the pom file, but still don't know the run/compile targets?
2010/4/22 Greg Barton <greg_barton(a)yahoo.com>
Have you ever thought of using maven? Your problem is no doubt with including the transitive dependencies of the drools libraries, which maven would do for you automatically. Here are the jars that were included automatically in a project I compiled with drools-core, drools-compiler, drools-api, all 5.0.1:
antlr-runtime-3.1.1.jar
core-3.4.2.v_883_R34x.jar
drools-api-5.0.1.jar
drools-compiler-5.0.1.jar
drools-core-5.0.1.jar
janino-2.5.15.jar
joda-time-1.6.jar
jsap-2.1.jar
mvel2-2.0.10.jar
This resulted from a dependencies section in the maven pom that had just this in it:
<dependencies>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
<version>5.0.1</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<version>5.0.1</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-api</artifactId>
<version>5.0.1</version>
</dependency>
</dependencies>
So I suggest you give maven a try. It makes this easy. :)
--- On Wed, 4/21/10,
Berlin Brown <berlin.brown(a)gmail.com> wrote:
From: Berlin Brown <berlin.brown(a)gmail.com>
Subject: [rules-users] Very basic running of drools 5, basic setup and quickstart
To: rules-users(a)lists.jboss.org
Date: Wednesday, April 21, 2010, 12:54 AM
Is there a more comprehensive quick start for drools 5. I was attempting to run the simple Hello World .drl rule but I wanted to do it through an ant script, possibly with just javac/java:
I get the following error: Note: I don't am running completely without Eclipse or any other IDE:
test:
[java] Exception in thread "main" org.drools.RuntimeDroolsException: Unable to load d
ialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule
.builder.dialect.java.JavaDialectConfiguration'
[java] at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuild
erConfiguration.java:274)
[java] at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurati
onMap(PackageBuilderConfiguration.java:259)
[java] at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConf
iguration.java:176)
[java] at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderCo
nfiguration.java:153)
[java] at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:242)
[java] at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:142)
[java] at org.drools.builder.impl.KnowledgeBuilderProviderImpl.newKnowledgeBuilde
r(KnowledgeBuilderProviderImpl.java:29)
[java] at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(Knowledg
eBuilderFactory.java:29)
[java] at org.berlin.rpg.rules.Rules.rules(Rules.java:33)
[java] at org.berlin.rpg.rules.Rules.main(Rules.java:73)
[java] Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the
classpath
[java] at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompil
er(JavaDialectConfiguration.java:94)
[java] at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(Java
DialectConfiguration.java:55)
[java] at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuild
erConfiguration.java:270)
[java] ... 9 more
[java] Java Result: 1
...
...
I do include the following libraries with my javac and java target:
<path id="classpath">
<pathelement location="${lib.dir}" />
<pathelement location="${lib.dir}/drools-api-5.0.1.jar" />
<pathelement location="${lib.dir}/drools-compiler-5.0.1.jar" />
<pathelement location="${lib.dir}/drools-core-5.0.1.jar" />
<pathelement location="${lib.dir}/janino-2.5.15.jar" />
</path>
Here is the Java code that is throwing the error. I commented out the java.compiler code, that didn't work either.
public void rules() {
/*
final Properties properties = new Properties();
properties.setProperty( "drools.dialect.java.compiler", "JANINO" );
PackageBuilderConfiguration cfg = new PackageBuilderConfiguration( properties );
JavaDialectConfiguration javaConf = (JavaDialectConfiguration)
cfg.getDialectConfiguration( "java" );
*/
final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
// this will parse and compile in one step
kbuilder.add(ResourceFactory.newClassPathResource("HelloWorld.drl", Rules.class), ResourceType.DRL);
// Check the builder for errors
if (kbuilder.hasErrors()) {
System.out.println(kbuilder.getErrors().toString());
throw new RuntimeException("Unable to compile \"HelloWorld.drl\".");
}
// Get the compiled packages (which are serializable)
final Collection<KnowledgePackage> pkgs = kbuilder.getKnowledgePackages();
// Add the packages to a knowledgebase (deploy the knowledge packages).
final KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages(pkgs);
final StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.setGlobal("list", new ArrayList<Object>());
ksession.addEventListener(new DebugAgendaEventListener());
ksession.addEventListener(new DebugWorkingMemoryEventListener());
// Setup the audit logging
KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "log/helloworld");
final Message message = new Message();
message.setMessage("Hello World");
message.setStatus(Message.HELLO);
ksession.insert(message);
ksession.fireAllRules();
logger.close();
ksession.dispose();
}
...
Here I don't think Ant is relevant because I have fork set to true:
<target name="test" depends="compile">
<java classname="org.berlin.rpg.rules.Rules" fork="true">
<classpath refid="classpath.rt" />
<classpath>
<pathelement location="${basedir}" />
<pathelement location="${build.classes.dir}" />
</classpath>
</java>
</target>
The error is thrown at line 1.
Basically, I haven't done anything except call
final KnowledgeBuilder kbuilder =
KnowledgeBuilderFactory.newKnowledgeBuilder();
I am running with Windows XP, Java6, and within Ant.1.7.
--
Berlin Brown (berlin dot brown at gmail.com)
http://botnode.com
http://berlinbrowndev.blogspot.com/
-----Inline Attachment Follows-----
_______________________________________________
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
--
Berlin Brown (berlin dot brown at gmail.com)
http://botnode.com
http://berlinbrowndev.blogspot.com/
-----Inline Attachment Follows-----
_______________________________________________
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
--
Berlin Brown (berlin dot brown at gmail.com)
http://botnode.com
http://berlinbrowndev.blogspot.com/
-----Inline Attachment Follows-----
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
14 years, 8 months