[rules-users] Uploading the fact model to the DRools BRMS

Jones, Alan R alan.r.jones at boeing.com
Mon Jan 21 15:04:51 EST 2008


Some results...
 
I should qualify: This problem is specific to using xmlbeans for
providing the data model (as a genned jar, in this case).
 
 
Got BRMS to work in Tomcat 6.x (not in JBoss app server). There is still
a problem with the wildcard imports when configuring/editing a package,
however if I upload the 4 or 5 jars that come with xmlbeans as separate
models into the package in the BRMS (and of course the jar containing
the genned class files representing the data model) and then in the pkg
configuration editor I explicitly import each class that the rule pkg
works with, it does validate and i can subsequently
build/validate/deploy a package.
 

Thanks, 

Alan J 


-------------------------------------------- 
Alan R Jones 
Boeing S&IS Mission Systems 
Denver Engineering Center (BDEC) 

 

________________________________

From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Jones, Alan R
Sent: Friday, January 18, 2008 9:59 AM
To: Rules Users List
Subject: RE: [rules-users] Uploading the fact model to the DRools BRMS


Actually I am having the same problem...
 
I create a jar from a schema containing all the classes that the rule
will work with. In the BRMS, I upload it as an asset in a model archive.
Then when I edit package config, I put import statements per the
following:
 
      import com.mycompany.model.vehicles.*;
      import org.apache.xmlbeans.*;
 
and when I do a vailidation, it throws error saying "No Such class for
import com.mycompany.model.vehicles.*" or something similar.
 
However, if I change it to a specific class:
 
       import com.mycompany.model.vehicles.Scooter;
       import org.apache.xmlbeans.XmlObject;
 
...it does validate/save successfully. So it looks like there is a
problem with the wildcard? I should mention this is in the context of
JBoss App Server 4.x...in Tomcat 6, it doesn't work even with explicit
class in the import -- is there something about BRMS running in Tomcat 6
and uploaded jar files (model archives)?
 
The wildcard could be a problem as I use xmlbeans to generate my data
model from an xsd (I pass xml docs via  SOAP messages). The result is a
jar with a LOT of classes that could be very painful to have to import
class by class.
 
 
 
 
 
________________________________

From: Rahul Upadhyay [mailto:email2upadhyay at gmail.com]
Sent: Fri 1/18/2008 1:54 AM
To: Rules Users List
Subject: Re: [rules-users] Uploading the fact model to the DRools BRMS


That I am Saying My Dear.. You Problem is Class Version No.

Find out somting about That.

 I am sure..  you are missing some class  that needs to import.
do one thing.. add all the classes that you have in you application.. If
you extend some class then add it also in jaar. 

that it




On Jan 18, 2008 12:37 PM, Akila Geethal <akilageethal at gmail.com> wrote:


	thats is not my problem..In the brms in the web interface im
having problems to get the facts. Iam not yet dealing with application.I
just want to create some rules in the web interface with the uploaded
jar. in here when i try to edit package configuration and put the import
statements im gettng that error.When try to create rules it does not
show me any facts  types to add conditions.. 
	
	
	On Jan 18, 2008 10:57 AM, Rahul Upadhyay <
email2upadhyay at gmail.com <mailto:email2upadhyay at gmail.com> > wrote:
	

		in this link 

	
http://downloads.jboss.com/drools/docs/4.0.3.15993.GA/html/index.html
		
		Read  Section 9.4.4 about property file.
		Place This file in your jar with yours Imported class. 
		Make changes accordingly in your program with rule
agent. 


		all the Best
		
		Rahul Upadhyay
		
		
		On Jan 18, 2008 10:41 AM, akilageethal <
akilageethal at gmail.com > wrote:
		


			can u tell me where does the file should be, in
which i have to mention the 
			full class names in order to identify the
classes by BRMS. What is the
			format of the file?? i don hav any idea about
that file.The documentation
			doesnot say any thing about such file.Im trying
to get the classes imported 
			but still couldnt get it. Thanx in advance
			




			Anstis, Michael (M.) wrote:
			>
			> I have a vague recollection that there is
another file in which you need
			> to
			> list your fully qualified class names before
they can be referenced by the
			> BRMS.
			>
			> I think Kris (or Edson) has provided a posting
to the group before about
			> this.
			>
			> Flame me if I am wrong. 
			>
			>
			>   _____
			>
			> From: rules-users-bounces at lists.jboss.org
			> [mailto: rules-users-bounces at lists.jboss.org
<mailto:rules-users-bounces at lists.jboss.org> ] On Behalf Of Mark Proctor
			> Sent: 10 January 2008 15:54
			> To: Rules Users List
			> Subject: Re: [rules-users] Uploading the fact
model to the DRools BRMS
			>
			>
			> Akila Geethal wrote: 
			>
			> When I upload a jar file to the DRools BRMS it
does not get uploaded. When
			> i
			> try to get the clsses by the import statements
it says the class cannot be
			> found. Are there any special way of making the
jar?Should that fact 
			> modelapplication include special libraries or
etc....
			>
			>
			> No it' just a standard jar, with standard
pojos.
			>
			>
			>
			>
			>   _____
			>
			>
			>
_______________________________________________ 
			>
			> rules-users mailing list
			>
			> rules-users at lists.jboss.org
			>
			>
https://lists.jboss.org/mailman/listinfo/rules-users
			>
			>
			>
			>
			>
			>
			>
_______________________________________________
			> rules-users mailing list
			> rules-users at lists.jboss.org
			>
https://lists.jboss.org/mailman/listinfo/rules-users
			>
			>
			
			
			--
			View this message in context:
http://www.nabble.com/Uploading-the-fact-model-to-the-DRools-BRMS-tp1473
1528p14946844.html 
			Sent from the drools - user mailing list archive
at Nabble.com <http://nabble.com/> .
			

			_______________________________________________
			rules-users mailing list
			rules-users at lists.jboss.org
	
https://lists.jboss.org/mailman/listinfo/rules-users 
			



		_______________________________________________ 

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



	_______________________________________________
	rules-users mailing list
	rules-users at lists.jboss.org
	https://lists.jboss.org/mailman/listinfo/rules-users
	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080121/6aa8f48e/attachment.html 


More information about the rules-users mailing list