[rules-users] Problem when deploying Guvnor to glassfish v2.1 cluster

2009-07-29 Thread Zhang Jing-A52198
Hi All,

 

I have encountered a problem when deploying the latest Guvnor to
glassfish v2.1 cluster.

 

Below is the return:

 

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;htmlheadtitleS
un GlassFish Enterprise Server v2.1 - Error report/titlestyle
type=text/css!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}A {color : black;}HR {color : #525D76;}--/style
/headbodyh1HTTP Status 404 - Servlet securityService is not
available/h1hr/pbtype/b Status
report/ppbmessage/bServlet securityService is not
available/ppbdescription/bThe requested resource (Servlet
securityService is not available) is not available./phr/h3Sun
GlassFish Enterprise Server v2.1/h3/body/html

 

Any ideas?

 

Thanks,

Jing

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Accessing drools rule file in a jar

2009-07-29 Thread Zhang Jing-A52198
Hi All,

 

I'm trying to load a pkg file by RuleAgent. I use the following in the
class DroolsRuleProcessor in the package com.example:

 


**

 

String packageFILE = com.example.rule1.pkg;

URL u = DroolsRuleProcessor.class.getResource(packageFILE);

 

Properties props = new Properties();

props.setProperty(file, u.getFile());

 

RuleAgent ag = RuleAgent.newRuleAgent(props);

 


**

 

 

The package file com.example.rule1.pkg is put under the same java
package as DroolsRuleProcessor (i.e., com.example).

 

The above code works fine when executing locally. However, error occurs
when I try to execute it remotely. I pack the class DroolsRuleProcessor
with the pkg file com.example.rule1.pkg into a jar, put the jar into an
ear file and deploy the ear to a server. The RuleAgent cannot find the
pkg file. I guess the reason might be that RuleAgent uses new File(...)
to access and read the file. However, new File(...) cannot get the file
that is contained a jar.

 

So how can I access the pkg file using RuleAgent in this case?

 

Thanks,

Jing

 

 

 

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] How to delete the rules in guvnor once they're modified and saved

2009-02-09 Thread Zhang Jing-A52198
 Hi All,

 

I import a drl file to the guvnor. Then I modify it and as soon as I
click save changes, the delete button would disappear. So my
question is how to delete the rules once they're modified and saved?

 

Thanks,

Jing

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Question about pulling data from external database

2009-01-28 Thread Zhang Jing-A52198
Hi All,

 

When I use the from keyword to pull data from external database, will
those data get inserted to the current working memory? Do I need to
retract them after the rules are fired?

 

Thanks,

Jing

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Rule package change listener

2009-01-27 Thread Zhang Jing-A52198
Hi All,

 

I'm using Guvnor to create the business rules and using RuleAgent to
retrieve the rule package from the URL generated by Guvnor. Is there a
way for the RuleAgent to get notified when the rule package is modified?
Basically what I'm looking for is a listener mechanism so that the
RuleAgent would only update or retrieve the package when the package is
changed.

 

Thanks,

Jing 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools 5.0.0.M3 Runtime problem in Eclipse 3.4.1

2008-12-03 Thread Zhang Jing-A52198
Dear All,

 

I'm trying to get the latest Drools 5.0.0.M3 work in Eclipse 3.4.1. I
downloaded the plugin (from
http://download.jboss.org/drools/release/5.0.0.24045.M3/drools-5.0.0.M3-
eclipse-all.zip) and put it into the eclipse plugins folder. When I try
to create a Drools Project, the wizard asks me to select a Drools
Runtime. What is that? How to configure it?

 

Thanks for your help.

 

Jing

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users