How to deploy Guvnor on Weblogic 9.x / 10.x
by Pegram, Macon
I was asked how I deployed Guvnor on Weblogic 10.x. I believe the
procedure will be the same for both 9.x and 10.x...
You will have to make some changes to the WAR file.
1. Create a weblogic.xml file like the one below and put it in WEB-INF\
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app
xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
2. Added the following JARS in WEB-INF\lib
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-digester-1.8.jar
commons-discovery-0.4.jar
concurrent-1.3.4.jar
hibernate-annotations-3.4.0.GA.jar
hibernate-commons-annotations-3.1.0.GA.jar
hibernate-core-3.3.0.SP1.jar
hibernate-entitymanager-3.4.0.GA.jar
myfaces-api-1.2.6.jar
myfaces-impl-1.2.6.jar
Now don't ask me how I came up with this list. I honestly don't
remember. I believe it was largely trial an error. Basically
starting/restarting the app server and see which
"NoClassDefinitionFound" error came up next.
I think the Drools builds process lists a few things as "provided" in
the Maven setup for Guvnor assuming they're present in the app server
itself. In JBoss they likely are, but in other vendors they are not.
Macon
15 years, 1 month
Returned mail: Data format error
by Bounced mail
The original message was received at Fri, 16 Oct 2009 13:37:14 +0700 from lists.jboss.org [176.107.47.11]
----- The following addresses had permanent fatal errors -----
<rules-users(a)lists.jboss.org>
----- Transcript of the session follows -----
... while talking to host lists.jboss.org.:
>>> MAIL FROM:"Bounced mail" <postmaster(a)lists.jboss.org>
<<< 503 Refused
15 years, 1 month
Does anyone can share the steps to configure drools-guvnor on Weblogic 10
by Wesley Akio Imamura
Hi,
I'm trying to configure drools-guvnor to run on Weblogic 10.
I changed seam jar to use the wls compatible version, put the hibernate
jars, ....
The drools-guvnor deployment is Ok, but when I hit the drools-guvnor URL,
the following error occurs:
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
roleBasedPermissionManager
It seems Seam is not able to instantiate the components. Maybe I have to put
additional configuration on components.xml ?
Thanks,
Wesley
<Oct 15, 2009 6:57:19 PM BRT> <Warning> <netuix> <BEA-423420> <Redirect is
executed in begin or refresh action. Redirect url is
/console/console.portal?_nfpb=true&_pageLabel=AppDeploymentsControlPage.>
INFO 15-10 18:58:30,880 (NilAuthenticator.java:authenticate:34) All
users are guests.
ERROR 15-10 18:58:31,393
(SecurityServiceServlet.java:doUnexpectedFailure:43)
org.jboss.seam.InstantiationException: Could not instantiate Seam
component: roleBasedPermissionManager
<Oct 15, 2009 6:58:31 PM BRT> <Error> <ServletContext-/drools-guvnor>
<BEA-000000> <Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract org.drools.guvnor.client.security.Capabilities
org.drools.guvnor.client.rpc.SecurityService.getUserCapabilities()' threw an
unexpected exception: org.jboss.seam.InstantiationException: Could not
instantiate Seam component: roleBasedPermissionManager
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
Truncated. see log file for complete stacktrace
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
roleBasedPermissionManager
at org.jboss.seam.Component.newInstance(Component.java:2144)
at org.jboss.seam.Component.getInstance(Component.java:2021)
at org.jboss.seam.Component.getInstance(Component.java:1983)
at org.jboss.seam.Component.getInstance(Component.java:1977)
at org.jboss.seam.Component.getInstance(Component.java:1972)
Truncated. see log file for complete stacktrace
java.lang.NullPointerException
at
org.drools.repository.security.PermissionManager.isValideUserName(PermissionManager.java:188)
at
org.drools.repository.security.PermissionManager.retrieveUserPermissions(PermissionManager.java:79)
at
org.drools.guvnor.server.security.RoleBasedPermissionStore.getRoleBasedPermissionsByUserName(RoleBasedPermissionStore.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Truncated. see log file for complete stacktrace
--
Wesley Akio Imamura
São Paulo - SP - Brazil
15 years, 1 month
Null pointer when inserting into working memory
by Scott Burrows
Hi all,
Using 4.0.7.
I am getting this null pointer when doing an Insert into working memory.
I know the object I am inserting is not null.
java.lang.NullPointerException
at
org.drools.util.PrimitiveLongStack$Page.remove(PrimitiveLongStack.java:137)
at org.drools.util.PrimitiveLongStack.pop(PrimitiveLongStack.java:69)
at
org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:44)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:785)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:684)
Any idea what might be causing this?
Scott
15 years, 1 month
How complex can be an expression in given rule...
by Madhav Bhamidipati
Hi,
Are the expressions in a rule can be as complex as a regular language support.
For example can the expression be as complex as (a == b || (a <= d && a > e )?
Where can I find the info. about what sort of expressions supported?
Madhav
15 years, 1 month
[droolsflow] Flow is Stoped
by Anderson vasconcelos
Hi
I Have a flow as folow: Start -> First_HumanTask -> Split -> [Join ->
Second_HumanTask] or [End].
When i Create one instance of my flow, this runs fine. But when i have many
instances of my flow (Size of StatefulKnowledgeSession > 1), and finish the
First_HumanTask the flow stoped. (Not Create de Second_HumanTask, and not
throws error)
In my split node i check a fact passed to flow as: TicketBean( status ==
TicketStatus.IN_PROGRESS)
Whats wrong?
Thanks
15 years, 1 month
2.0 era projects
by Peter Williams
Does anyone have links to "model" projects built with the 2.x era drools system?
I want to discover what was "high end" and "advanced" at that time (or... how did folks manage to extend the framework of that day to build more "advanced" uses of the engine)?
15 years, 1 month
setting globals in rule file
by Chris Richmond
Shouldn't it be possible to set a global variable value within the rule file
itself at the top. Something like?
global String deviceName = "myDevice";
I thought you could do that, but consistently get an error saying illegal
character '=' expected "("
Or something along those lines.
This is possible and that syntax should work, shouldn't it?
Thanks,
Chris
15 years, 1 month
ways to specify encoding for .drl files
by RD
Hi Drool users,
I'm a total noob in drools, so please forgive me if my questions are
answered before (By the way I did search the mailing listing but didn't get
anything suitable).
The Q I have is "Is there a way to specify the encoding for .drl files"???.
I'm using drools 5.0.1 and all my drl files are loaded from changeset.xml.
The problem I'm facing is that I have some utf-8 chars in my drl files,
which are not interpreted correctly while we compile those files.
I was wondering whether there was a way to specify the encoding in the
changeset.xml itself something like this ....
<resource source='classpath:manipulation/abc.drl' type='DRL'
encoding='UTF-8' />
Thanks!
RD
15 years, 1 month
retrieving streams/entry points from java api
by Chris Richmond
Hello,
I am trying to determine, iterate the working memory streams within my rule
by doing the following:
for(WorkingMemoryEntryPoint entry :
session.getWorkingMemoryEntryPoints()){
System.err.println("entry point stream:
" + entry.toString());
}
But I can find no method/way to finid the actual text name of the entry
point(what is written in the rule as from entry-point "xxxx").
Is there a way to do this? To list the readable names of the entry points
from your session? I would like to list those entry points in a drop down
as application profiles, so if they have one selected, one entry point of
rules will be inserted to and so on..
Thanks,
Chris
15 years, 1 month