[rules-users] Class not found Exception dynamically loadind DRLs

2011-07-11 Thread ukriegel
Hi there,
we try to load small rule packages containing java classes to be provided as
globals and drl-definitions from a webserver using an URLClassloader. the
globalsclasses could be read and their tests are ok, but as soon as a
drl-file is loded which references souch a dynamically loaded globals2
class, a class no found-Exception is fired.
That could be expaned with the differenz class loaders used - the
URLClassloader for loading the globals-Classes and the standard class
loader used to load the drl-files via   kbuilder.add(
resourceFactory.newUrlResource(url), ResourceType.DRL);

Is there any solution for this problem.
Thanks in advance
--Ulrich


--
View this message in context: 
http://drools.46999.n3.nabble.com/Class-not-found-Exception-dynamically-loadind-DRLs-tp3158496p3158496.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Class not found Exception dynamically loadind DRLs

2011-07-11 Thread ukriegel
Problem is soved by submitting the used URLClassLoader to both,
KnowledgeBuilderFactory and KnowledgeBase.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Class-not-found-Exception-dynamically-loadind-DRLs-tp3158496p3158965.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users