re:JBoss 5.0 and Guvnor
by J Michael Dean
The errors encountered when deploying Guvnor are different:
07:39:25,722 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA
(build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 16s:344ms
07:40:24,329 INFO [PersistenceUnitDeployment] Starting persistence
unit persistence.unit:unitName=#ACL
07:40:24,333 ERROR [AbstractKernelController] Error installing to
Start: name=persistence.unit:unitName=#ACL state=Create
java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2]
- You have not defined a non-jta-data-source for a RESOURCE_LOCAL
enabled persistence context named: ACL
at
org
.jboss
.jpa
.deployment
.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:124)
at
org
.jboss
.jpa
.deployment
.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:285)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
....
07:40:30,673 ERROR [AbstractKernelController] Error installing to
Configured: name=jboss.web.deployment:war=/drools-guvnor
state=Instantiated mode=Manual requiredState=Configured
java.lang.RuntimeException: Exception setting attribute
SecurityManagement on mbean jboss.web.deployment:war=/drools-guvnor
at
org
.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:
170)
at
org
.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:
114)
at
org
.jboss
.system
.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
at
org
.jboss
.system
.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
...
Caused by: javax.management.InvalidAttributeValueException: Set
attribute has class class
org.jboss.security.integration.JNDIBasedSecurityManagement loaded from
BaseClassLoader@84b82e{vfsfile:/Users/mdean/Documents/Development/
jboss-5.0.0.GA/server/default/conf/jboss-service.xml} that is not
assignable to attribute class interface
org.jboss.security.ISecurityManagement loaded from
BaseClassLoader@bc3053{vfszip:/Users/mdean/Documents/Development/
jboss-5.0.0.GA/server/default/deploy/drools-guvnor.war}
at
org
.jboss
.mx
.interceptor
.ModelMBeanAttributeInterceptor
.checkAssignable(ModelMBeanAttributeInterceptor.java:229)
at
org
.jboss
.mx
.interceptor
.ModelMBeanAttributeInterceptor
.invoke(ModelMBeanAttributeInterceptor.java:88)
at
org
.jboss
.mx
.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:
76)
...
07:40:31,643 ERROR [AbstractKernelController] Error installing to
Real: name=vfszip:/Users/mdean/Documents/Development/jboss-5.0.0.GA/
server/default/deploy/drools-guvnor.war state=PreReal mode=Manual
requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying:
jboss.web.deployment:war=/drools-guvnor
at
org
.jboss
.deployers
.spi
.DeploymentException
.rethrowAsDeploymentException(DeploymentException.java:49)
at
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:
123)
at
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:
45)
...
Caused by: java.lang.RuntimeException: Exception setting attribute
SecurityManagement on mbean jboss.web.deployment:war=/drools-guvnor
at
org
.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:
170)
at
org
.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:
114)
at
org
.jboss
.system
.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
at
org
.jboss
.system
.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
...
Caused by: javax.management.InvalidAttributeValueException: Set
attribute has class class
org.jboss.security.integration.JNDIBasedSecurityManagement loaded from
BaseClassLoader@84b82e{vfsfile:/Users/mdean/Documents/Development/
jboss-5.0.0.GA/server/default/conf/jboss-service.xml} that is not
assignable to attribute class interface
org.jboss.security.ISecurityManagement loaded from
BaseClassLoader@bc3053{vfszip:/Users/mdean/Documents/Development/
jboss-5.0.0.GA/server/default/deploy/drools-guvnor.war}
at
org
.jboss
.mx
.interceptor
.ModelMBeanAttributeInterceptor
.checkAssignable(ModelMBeanAttributeInterceptor.java:229)
at
org
.jboss
.mx
.interceptor
.ModelMBeanAttributeInterceptor
.invoke(ModelMBeanAttributeInterceptor.java:88)
at
org
.jboss
.mx
.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:
76)
...
07:40:31,653 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary
of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** CONTEXTS IN ERROR: Name -> Error
vfszip:/Users/mdean/Documents/Development/jboss-5.0.0.GA/server/
default/deploy/drools-guvnor.war ->
javax.management.InvalidAttributeValueException: Set attribute has
class class org.jboss.security.integration.JNDIBasedSecurityManagement
loaded from BaseClassLoader@84b82e{vfsfile:/Users/mdean/Documents/
Development/jboss-5.0.0.GA/server/default/conf/jboss-service.xml} that
is not assignable to attribute class interface
org.jboss.security.ISecurityManagement loaded from
BaseClassLoader@bc3053{vfszip:/Users/mdean/Documents/Development/
jboss-5.0.0.GA/server/default/deploy/drools-guvnor.war}
15 years, 11 months
re:JBoss 5.0 and Guvnor
by J Michael Dean
When I drag either application into the deploy folder, deployment
fails. Here is the initial console output when I try to install brms.
07:31:18,921 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA
(build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 23s:344ms
07:33:35,527 INFO [TomcatDeployment] deploy, ctxPath=/drools-jbrms,
vfsUrl=drools-jbrms.war
07:33:35,618 ERROR [JBossContextConfig] XML error parsing: context.xml
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new
SAX parser
at org.jboss.xb.binding.UnmarshallerFactory
$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig
(JBossContextConfig.java:552)
at
org
.jboss
.web
.tomcat
.service.deployers.JBossContextConfig.init(JBossContextConfig.java:538)
......
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a
new SAX parser
at
org
.jboss
.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:
56)
at org.jboss.xb.binding.UnmarshallerFactory
$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
... 67 more
Caused by: java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown
Source)
....
07:33:35,642 ERROR [JBossContextConfig] XML error parsing: jboss.web/
localhost/context.xml.default
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new
SAX parser
at org.jboss.xb.binding.UnmarshallerFactory
$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig
(JBossContextConfig.java:552)
at
org
.jboss
.web
.tomcat
.service.deployers.JBossContextConfig.init(JBossContextConfig.java:539)
at
org
.apache
.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
at
org
.apache
.catalina
.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
This continues for pages with failure to parse any xml files because
of this apparent SAX parser issue.
- Mike
15 years, 11 months
JBoss 5.0 and Guvnor (Newbie)
by J Michael Dean
Have not been able to deploy Guvnor nor 4.07 BRMS in JBoss 5 - both
easily deployed in JBoss 4.2.3 or earlier. Anyone using JBoss 5 with
Drools presently?
- Mike
15 years, 11 months
Joins in Guided Decision tables
by David Sinclair
I have been trying to join conditions in the guvnor guided decision table
editor, but it "appears" that it is not possible. Is this correct?
thanks
dave
15 years, 11 months
Better way to write a constrained collect?
by David Sinclair
I have the when part of a rule
Cluster($ipAddressCollection : ipAddressCollection != null)
$ipAddressUsage : IPAddressUsage(guid in
(IPAddressUsage.CUSTOMER_MANAGEMENT,
IPAddressUsage.CUSTOMER_BACKUP,
IPAddressUsage.CUSTOMER_PRODUCTION,
IPAddressUsage.CUSTOMER_HEARTBEAT))
java.util.LinkedList(size == 0) from collect( IPAddress(ipAddressUsage ==
$ipAddressUsage) from $ipAddressCollection.ipAddresses)
This works fine, but I would like to constrain the IPAddress's usage within
the collect, as opposed to joining.
Anyone know if this is possible?
thanks
dave
15 years, 11 months
Web Awareness Barometer 2008
by paschke@mi.fu-berlin.de
Will the Semantic Web ever hit the market?
What is missing to make it a reality?
Tell us what you think in our current survey, the Web Awareness
Barometer 2008.
Please participate!
This year, which is already beginning to draw to a close, has seen
many exciting developments on the Semantic Web.
But, as past technological evolutions have shown: many innovations
that researchers and experts get excited about today, won't even have
entered the market the day after tomorrow.
This is why we would like to know how you feel about the state of the
Semantic Web in 2008: Please participate in our survey:
Web Awareness Barometer 2008
http://corporate-semantic-web.de/reader/items/web-awareness-barometer-200...
This is not only an excellent opportunity to give feedback to science
and development, but also your chance to win a set of two tickets for
the i-Know / i-Semantics conference which is going to take place in
Graz in September 2009 (value: about ? 700).
The survey is conducted by the Semantic Web Company, Corporate
Semantic Web <www.corporate-semantic-web.de>, and the Know-Center Graz.
- your participation contributes to gaining a better understanding of
the potentials and barriers for the application of new web technologies.
Thanks,
Adrian Paschke
----------------------
Prof. Dr. Adrian Paschke
AG-Corporate Semantic Web
Free University Berlin
www.corporate-semantic-web.de
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
15 years, 11 months
Re: DSL: Problem of having 2 DSL statements that endsdiffer
by Matt Geis
>>Actually Drools processes DSL a similar way it process rules, doesn't it ?
Not quite. DSL matching is a brute-force process. The engine will iterate across all appropriate entries in the DSL mapping file for each
line of custom rule "code." Changes to the state of the code line do not cause a reset/restart of the matching. At the end, you should have a line of drl code.
Rule execution and matching is different. For one, the consequence of a matched rule can modify and then update a fact, and as a result cause all rules to be tested again against the modified state of working memory. In theory, you could do this infinitely. Secondly, if you look at a RETE tree, you'll see that not every node is reached (it's not an exhaustive graph traversal). Indexing of the data before firing the rules allows the algorithm to eliminate entire branches of tests during evaluation.
>>I couldn't find any documentation about Drools 5 (I downloaded it but it looks like it it the same as 4.0.7). Where could I find it ?
The info on the latest docs are at...
http://blog.athico.com/2008/11/drools-live-documentation.html
DSL's haven't changed much and Drools 5 is backward compatible. The only changes are that we now use a lexer and parser instead of doing regex pattern matching, and you can be uber-restrictive in your matching by using regular expressions for your bound variables.
Example:
There is a person with a social security number of {ssn:\d{3}-\d{2}-\d{4}} = Person(socialSecurityNumber=='{ssn}')
This feature, while of not so much value in longer sentences, is powerful in creating a chain of transforming mapping entries, and allows you to build the kind of rule transformation engine I was referring to in my earlier emails.
As Drools 5 is not yet final, and efforts are more on bug fixes than on documentation at the moment, my advice (for this feature and others) is to go back through the archives of the drools blog (blog.athico.com) and this listserv.
Matt
15 years, 11 months
Checking if elements in one collection exist in another collection
by Nick Heudecker
I have two objects with nested collections in my working memory. I need to
determine if elements from one collection exist in the other collection.
Here's an idea of what my objects look like:
Class Foo:
List<Token> tokens
Class Bar:
List<Token> tokens
I'm putting instances of Foo and Bar into the working memory.
A few days ago I got this generic suggestion but I'm not sure what it's
actually doing:
A( $colA : collection )
B( $colB : collection )
exists( Object( this memberOf $collectionB ) from $colA )
Can someone expand on that and explain what's happening? Any help is
appreciated.
Regards,
Nick
15 years, 11 months