Guvnor on weblogic
by konsouv
Hello guys,
A little help please.
I want to deploy guvnor on weblogic version 12.1.2.0.0. I downloaded
guvnor-distribution-wars-5.6.1-20140618.143413-14-weblogic-12c
from
http://snapshots.jboss.org/maven2/org/drools/guvnor-distribution-wars/5.6...
When I deploy it I get the following stack trace.
<Error> <Console> <Souvatzop-HP> <myserver> <[ACTIVE] ExecuteThread: '1' for
queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <>
<1403598617528> <BEA-240003> <Administration Console encountered the
following error: weblogic.application.ModuleException:
java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable
in client code! It cannot be called, for example, from server code. If you
are running a unit test, check that your test case extends GWTTestCase and
that GWT.create() is not called from within an initializer or constructor.
at
weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at
weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at
weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
at
weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
at
weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:80)
at weblogic.work.ContextWrap.run(ContextWrap.java:40)
at
weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is
only usable in client code! It cannot be called, for example, from server
code. If you are running a unit test, check that your test case extends
GWTTestCase and that GWT.create() is not called from within an initializer
or constructor.
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.google.gwt.user.client.ui.UIObject.<clinit>(UIObject.java:187)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at
com.oracle.injection.integration.CDIModuleExtension.addClassToSet(CDIModuleExtension.java:439)
at
com.oracle.injection.integration.CDIModuleExtension.getWebInfClassesManagedBeanClasses(CDIModuleExtension.java:381)
at
com.oracle.injection.integration.CDIModuleExtension.loadManagedBeanClassesFromWebArchive(CDIModuleExtension.java:338)
at
com.oracle.injection.integration.CDIModuleExtension.createWebModuleInjectionArchive(CDIModuleExtension.java:191)
at
com.oracle.injection.integration.CDIModuleExtension.createInjectionArchive(CDIModuleExtension.java:179)
at
com.oracle.injection.integration.CDIModuleExtension.postPrepare(CDIModuleExtension.java:85)
at
weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:297)
at
weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:285)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
at
weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)
After some research I think that the problem is that the beans.xml file in
WEB-INF folder is not read during deployment. It is not considered at all.
Is there any advice for me that could help me complete the deployment?
Thank you in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-on-weblogic-tp4030143.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
Size and contains methods of List in Drools
by Sumit Dhaniya
Is it possible write conditions on the basis of size of a list using guided
editors (either guided decision table or guided rule) and to check if any
element is present in the list?
For eg.
User {
List of badges;
}
now I want to apply condition on number of badges and if a specific badge is
in user's list of badges.
Also can I compare to objects. For eg. condition on count of badges of two
users?
I'm using KIE Drools Workbench
Here's how source code should look like :-
import com.demo.dto.User;
import com.demo.dto.Badge;
rule "Compare two variables"
when
$user: User(name == "Sam")
$badge: Badge() memberOf $user.getBadges()
then
$user.setImpact($user.getImpact + $user.getBadges().size())
--
View this message in context: http://drools.46999.n3.nabble.com/Size-and-contains-methods-of-List-in-Dr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
unsubscribed from the rules-users mailing list
by Wolfgang Laun
Friends,
this is to let you know that I have done as the subject says.
I'd like to thank all that have contributed for their continuing
efforts. As for myself: I think that this is a good moment to retire,
with my rapidly diminishing capability of understanding what's going
on in Guvnor, Optaplanner and other newfangled extensions. Hitting the
"delete" button on some incoming email has been the one thing I've
managed to do faithfully, and frequently.
Thanks again, and it's been *very* nice meeting you.
Wolfgang
11 years, 8 months
Getting Error while building the war from kie-wb-distributions-master source code
by LaKhI ReDdY!!!!!!!!!!!
Hi ,
I am trying to run mvn clean install on the kie-wb-distributions-master
source code, getting the below error.Please find the attachment for more
details on the error.
C:\Users\reddyl\RECOSYS\BRMS6\kie-wb\kie-wb-webapp\target\.
generated, *org.kie.workbench.FastCompiledKIEWebapp]: Error while executing
process. Cannot run program "C:\Program Files\Java\jdk1.6.0_27\jre\bin\java*
*": CreateProcess error=206, The filename or extension is too long*
could you please let me know any workaround on this issue?
Regards,
Lakshmi Reddy
11 years, 8 months
Optaplanner - Linking time windows of vendors and the depot
by alainb
Dear All,
I'm trying to model multiple time windows of the same vendor by multiplying
the vendors with different time windows and demand. This seems to work.
However, I can do the same with the depot but it doesn't represent what I
need.
I'm using salomon tw example, but i need certain demand to be there in one
time window of the depot, and other demand at the other time window of the
depot. In other words, I would need to link demand at a time window of a
vendor to a specific time window of the depot.
Does anyone know if there is any possibility to do this? Or can somebody
suggest me some further steps. I would be really thankful.
Thank you all in advance,
Kind Regards,
Alain
--
View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-Linking-time-windows-of-ven...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
SelectionFilter<ChangeMove> question
by dBijkoo
i have a class ChangeMoveFilter which implements
SelectionFilter<ChangeMoveSelector> to sort out moves that break hard
constraints.
In the config it looks like this
<constructionHeuristic>
<queuedEntityPlacer>
<entitySelector id="placerEntitySelector">
<cacheType>PHASE</cacheType>
</entitySelector>
<changeMoveSelector>
*<filterClass>solver.move.ChangeMoveFilter</filterClass>*
<entitySelector mimicSelectorRef="placerEntitySelector"/>
<valueSelector>
<cacheType>PHASE</cacheType>
</valueSelector>
</changeMoveSelector>
</queuedEntityPlacer>
</constructionHeuristic>
However I am getting the impression that the overridden accept function is
called before anything changed in the entity. Because the (only)
planningvariable of the entity is still null, which would never be able to
happen in my understanding.
Am i missing something or is the filter move called before anything changes
in the given entity?
--
View this message in context: http://drools.46999.n3.nabble.com/SelectionFilter-ChangeMove-question-tp4...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
Need help in build the war file from the guvnor-6.0.1.Final source code
by LaKhI ReDdY!!!!!!!!!!!
Hi,
Need help in build the war file from the guvnor-6.0.1.Final source code. I
downloaded the guvnor-6.0.1.Final.zip and extracted it, i see the following
folders in it.
guvnor-inbox
guvnor-m2repo-editor
guvnor-project
guvnor-services-api
guvnor-services-backend
guvnor-workset-api
guvnor-workingset-clent
src
I ran the maven command(mvn install -DskipTests=true) in the mail folder
guvnor-6.0.1.Final, it ran successfully and generate jar files.
I did not find the target to build war in any of the pom.xml files.
If anybody knows how to build war from the guvnor-6.0.1.Final source code,
please pass me the information.
If need to change the any pom.xml please let me know.
Regards,
Lakshmi Reddy
11 years, 8 months
Need BRMS migration tool download zip file location to download
by LaKhI ReDdY!!!!!!!!!!!
Hi ,
I need to migrate repository from BRMS 5.1.1 to BRMS 6.0.1.
In BRMS 6.0.1 Administration And Configuration Guide , i read we can do
migrating using data migration tool.
I could not able to find where this migration tool download zip available.
IF anybody knows, please provide me the path/location/url to download the
migration tool zip file?
Thanks,
Lakshmi Reddy
11 years, 8 months
accumulate function not registered
by rogerL
After upgrade to 6.1.0.CR1 rule compilation is generating a pluggable
accumulate function registration error.
Partial stack dump:
Caused by: java.lang.RuntimeException: Error while creating KieBase[Message
[id=1, level=ERROR,
path=com/s/c/manager/rules/campaign/priority/prioritize.drl, line=31,
column=0
text=Unknown accumulate function: 'topPriority' on rule 'Insert highest
priority campaign'. All accumulate functions must be registered before
building a resource.], Message [id=2, level=ERROR,
path=com/s/c/manager/rules/campaign/priority/prioritize.drl, line=31,
column=0
text=Rule Compilation error $tc cannot be resolved to a variable]]
The associated rule and accumulate import are:
import accumulate com.s.c.util.HighestPriorityCampaignAccumulateFunction
topPriority;
rule "Insert highest priority campaign"
when
not TopCampaign()
accumulate(TargetCampaigns($list : list, list.size >0), $tc :
topPriority( $list ) )
then
insert(new TopCampaign($tc));
end
Is this syntax no longer correct?
--
View this message in context: http://drools.46999.n3.nabble.com/accumulate-function-not-registered-tp40...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 9 months
Comparing Objects of same class.
by naresh.t
HI Team,
We came in situation where we need to compare our objects of same class.
For example, we have a class like SampleData.java. It has fields like 1) No
2) Student Name 3) DOJ(date of join)
Now, we want to write a Rule to get the Student Details like
1) if any 5 students joined in 2 days of span
This rule might changed dynamically like for now it is 2 days but in future
it may be 1 day or 3 days etc.,
Please provide any suggestions on this...
Thanks & Regards
Naresh
--
View this message in context: http://drools.46999.n3.nabble.com/Comparing-Objects-of-same-class-tp40300...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 9 months