Re: [rules-users] How to access Guvnor Rules based on versions from Java?

2012-10-16 Thread Ravikiran
Hi Jarvis,

Thanks for your reply. Looks like i have posted my intension unclearly. To
elaborate bit more, currently i am using Rest API to create KnowledgeBase
from my java client. I have changeset-loans.xml, where my guvnor package
with drl is defined. My java client will this to fire all rules of that
package. In such a case, when i have more one version created for the
package and the rule assets within it, how i can i call specific version
based package along with the drl file to fire all the rule assets belongs to
it? In the same passion, is there any way i can mentioned the rule asset
name in the changeset xml file to fire specific version of rule asset from
java?

I can only get the package or rule asset's metadata using the urls that you
have mentioned in your post. But i can't fire the rules...please suggest if
i am doing something wrong.

changeset-loans.xml
-
change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
   
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'

   add
  resource
 
source='http://localhost:9080/guvnor-5.2.0.Final-tomcat-6.0/org.drools.guvnor.Guvnor/package/loans/loans_demo.drl'
  type='DRL' basicAuthentication=enabled username=admin
password=admin /
   /add
/change-set

Thanks
Ravi



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-access-Guvnor-Rules-based-on-versions-from-Java-tp4020285p4020301.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] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-15 Thread Ravikiran
It may be not the corrent way of doing it.Let's do like this. If you are
using file based JCB for your repository, why can't you try copying the full
repository manually to your new location...It may work...but i am not sure.
It worked for me when i do it migrate the repository between two version of
guvnor. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260p4020284.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


[rules-users] How to access Guvnor Rules based on versions from Java?

2012-10-15 Thread Ravikiran
Hi,
I have got a business requirement to access specific version of a rule and
process them accordingly. My rules are stored in file based JCB based guvnor
repository. For example, i have a rule in a package created, having more
than one version varying with rule definition for each version.
How do i access those version specific rules from my java client? Please
help.


thanks
Ravi



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-access-Guvnor-Rules-based-on-versions-from-Java-tp4020285.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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-09-26 Thread Ravikiran
Drools Guvnor v5.3  5.4 onwards uses weld and seam frameworks causing this
error. Though i do not have any clue about the given exception, But Guvnor
v5.2.0 works perfectly in Websphere AS7 without any issues. But remember, it
works only in Firefox browser. You'll end up ing seeing blank screen after
login to Guvnor in IE browser.

cheers



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4019978.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] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-08-22 Thread Ravikiran
Hi All,

Drools Guvnor 5.2.0 Final successfully working on Websphere AS 7. As
described in my earlier posts, I was not getting blank screen displayed
after the new repository is created when i launch Guvnor for the first time.
I didn't have any clue about this behavior because it wasn't throwing any
exceptions too.

Root cause of this behaviour is browser version. It works successfully on
IE8, Firefox and Chrome. I was facing problem with IE6.Damm.

thanks...



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829p4019341.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] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-07-24 Thread Ravikiran
Hi Joffrey,

I was almost there to start using guvnor with Websphere 7, but i am struck
now with the situation explained earlier. That to, no exceptions have been
thrown on server logs as well. Just blank screen with header part displayed
after the repository is created

Appreciate any help or clue at this point of time...Also, please let me know
if you need more details

thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829p4018850.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] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-07-24 Thread Ravikiran
Hi,

Drools Guvnor 5.4.0 Final  - I came to know that this version may not work
successfully in Websphere because IBM Websphere uses OpenWebBeans as CDI
implementation. Where as JBoss uses weld and this seems to differ. Not very
sure about the implementation of two sides...is it?

Drools Guvnor 5.2.0 Final - This is deployed successfully deployed on
Websphere, and i got the blank page after the sample repository is created
during launching.

@Guvnor experts, do you suggest any other version of drools guvnor
distribution without weld that can resolve my above issues?

Thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829p4018886.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


[rules-users] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-07-23 Thread Ravikiran
Hi Drools gurus,

I am back again. As most of you know that i had many 'weld' related issues
for deploying Drools Guvnor 5.4 in Webspere 7. After all my trails, i have
decided to go for Guvnor 5.2 (which doesn't have weld+seam dependancies)
deployment on Websphere As7.
This time, I was able to deploy Guvnor 5.2.0 Final on Websphere AS7
successfully without any errors. I have changed the repository to my own
file path. When i launch the guvnor for the first it had asked me to load
the sample packages, i have chosen YES. It was succeffully loaded all sample
packages into my given file path. That's it, after the loading, my browser
window was completely blank except Drools logo on top left and
guest[signout] on top right.

Any Idea what was wrong with my setup. What should i do to get the guvnor
web...Please help. 

http://localhost:9080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html
I saw view source,




link rel=stylesheet href=css/Guvnor.css
link rel=stylesheet href=css/Guvnor_DecoratedPopupPanel.css
link rel=stylesheet href=css/ruleflow.css
/head
body
iframe id=__gwt_historyFrame style=width: 0; height: 0; border:
0/iframe

div id=loading
div class=loading-indicator
 images/loading-icon.gif 
Please waitbr / 
  Loading application...
/div
/div


  
/body
/html
---

Is it something to do with 'org.drools.guvnor.Guvnor.nocache.js'?

thanks a lot in advance.





--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829.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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-20 Thread Ravikiran
Hi,

Still no resolotion found. Whatever the tweaking i do, getting the same
error...no change at all. To be more precise, My Websphere7 server was
started successfully, but i get the server 500 error dialog resulting to
below same error.

[20/07/12 20:12:02:063 SGT] 008d SystemOut O ERROR 20-07
20:12:02,047 (LoggingHelper.java:error:74)   Service method 'public abstract
org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
java.lang.IllegalStateException: CDI hasn't been properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)


---

Thanks




--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018798.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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-19 Thread Ravikiran
Hi Joffrey,

I have downloaded guvnor-5.4.0.Final-tomcat-6.0.war and deployed into
Websphere AS7. Still i am getting the same exception.

[19/07/12 17:23:36:125 SGT] 0025 webappI
com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
[guvnor-5_4_0_Final-tomcat-6_0_war#guvnor-5.4.0.Final-tomcat-6.0.war][/BRE][Servlet.LOG]:.Exception
while dispatching incoming RPC
call:.com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1663)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)
Caused by: java.lang.IllegalStateException: CDI hasn't been properly
started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
... 26 more

I am struck here since 2 days, please throw some light how i can resolve the
issue to successfully launch guvnor in Websphere.

thanks a lot!

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018770.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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-19 Thread Ravikiran
Hi Joffrey/Gurus,

Anybody can suggest how to resolve the below error.

Before i get the above exception, i found that there was another exception
during the server startup. Which is below,

[19/07/12 17:33:49:360 SGT] 0025 webappE
com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E:
Exception caught while initializing context: {0}

org.jboss.weld.exceptions.DeploymentException: Exception List with 4
exceptions:
Exception 0 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [ServiceImplementation] with qualifiers [@Default] at
injection point [[field] @Inject private
org.drools.guvnor.server.converters.decisiontable.DecisionTableXLSToDecisionTableGuidedConverter.serviceImplementation]
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:312)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:144)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:164)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:383)
at
org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:368)
at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)
at
org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:182)
at
org.drools.guvnor.server.repository.SafeWeldListener.contextInitialized(SafeWeldListener.java:54)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1681)
at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:374)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:609)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4520)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4698)
at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:653)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at

Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-18 Thread Ravikiran
Hi Geoffrey,

I couldn't find any weld related jar files available in
guvnor-5.3.0.Final-tomcat-6.0.war. Also i have tried wild card search like
weld*, but i couldn't find it.

Could you please check whether the below line from the error message might
give you some idea,

Service method 'public abstract
org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.

I am struck here without any success since yesterday, please help.

thanks.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018750.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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-18 Thread Ravikiran
Hi Geoffrey  Other Gurus

To throw more light on the above error message, please find below the
getCurrentUser() method snippet that i have taken from the source of
SecurityServiceServlet.java. Please tell me in what cases the
securityService comes as null for causing this exception.

public UserSecurityContext getCurrentUser() {
if (securityService == null) {
// This is the first method called by the client.
// If CDI hasn't kicked in (theoretically impossible...), throw
a readable exception
throw new IllegalStateException(CDI hasn't been properly
started.\n +
  Make sure your IDE classpath is in sync with the real
maven classpath.\n +
  The classpath should include weld-servlet.);
}
return securityService.getCurrentUser();
}

Thanks a lot

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018752.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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-18 Thread Ravikiran
Hi Joffrey,

I have downloaded the distribution shows Drools-guvnor 5.3.0, but when i see
the Guvnor version from web UI (Adminstration--About) it shows the version
as SNAPSOT 5.4.0. Now i too suspect that my Guvnor is of version 5.4.0 only,
that's why all those errors were coming.

I feel that you have understood the problem now, please tell me what should
i do to resolve this. If i required to add any new jar files, please also
let me know the location to download them as well. Because i didn't get any
related information on internet for this issue so far...you are the only
hope!

Thanks a lot...

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018756.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


[rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-17 Thread Ravikiran
Hi,
I am deploying drools-guvnor.war (version 5.3.0) into Websphere AS 7. The
war file was working perfectly fine in JBoss AS 7. But i am getting below
exception when launching the guvnor from browser...


[18/07/12 12:09:02:101 SGT] 0032 SystemOut O ERROR 18-07
12:09:02,101 (LoggingHelper.java:error:74)   Service method 'public abstract
org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
java.lang.IllegalStateException: CDI hasn't been properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1663)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)
[18/07/12 12:09:02:101 SGT] 0032 webappI
com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
[drools-guvnor_war#drools-guvnor.war][/drools-guvnor][Servlet.LOG]:.Exception
while dispatching incoming RPC
call:.com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at 

[rules-users] Drools Guvnor 5.4.0 - Rules integration with database (Oracle)

2012-07-16 Thread Ravikiran
Hi,
I working on creating a POC by creating set of web based rules within a
package using drools Guvnor and accessing them from my Java client.
Currently, my drools uses Jackrabbit repository (2 foldersrepository and
scripts and 1 file repository.xml) which is created within bin folder of
my JBoss AS.
I have gone through the steps given in user guide for database integration,
I am using Oracle as my database and i generated oracle based repository.xml
using the administration in Drools Guvnor and placed it under my bin folder.
I have stopped the server and deleted exsting 2 folders and one xml file. I
have restarted my server with the deployment of drools-guvnor.war. When i
start the guvnor web, it has asked me whether to load the sample packages
for the fisrt time, i said yes.
Now when i go and see in bin directory, i could still see one respository
folder. Also, i could see there were 6-7 tables have been created in oracle
database which were belongs to jboss drools only.

I would need some experts suggestion here, 
is it the right way to do the rule integration with the database?
What is right way to promote the same changes to SIT or UAT?

Thanks in advance...



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-4-0-Rules-integration-with-database-Oracle-tp4018696.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


[rules-users] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran
Hi,
I'm using default Guvnor package mortgages decision table as example for
my POC. Below is the rules from the decision table. No rule is being fired
from my JAVA client out of 3 rules given below.

//from row number: 1
rule Row 3 Pricing loans
dialect mvel
when
 application : LoanApplication( amount  131000 , amount 
=
20 , lengthYears == 30 , deposit  2 )
income : IncomeSource( type == Asset )
then
application.setApproved( true );
application.setInsuranceCost( 0 );
application.setApprovedRate( 2 );
end

//from row number: 2
rule Row 1 Pricing loans
dialect mvel
when
application : LoanApplication( amount  1 , amount = 
10 ,
lengthYears == 20 , deposit  2000 )
income : IncomeSource( type == Job )
then
application.setApproved( true );
application.setInsuranceCost( 0 );
application.setApprovedRate( 4 );
end

//from row number: 3
rule Row 2 Pricing loans
dialect mvel
when
application : LoanApplication( amount  11 , amount = 
13 ,
lengthYears == 20 , deposit  3000 )
income : IncomeSource( type == Job )
then
application.setApproved( true );
application.setInsuranceCost( 10 );
application.setApprovedRate( 6 );
end

== My Java client follows
KnowledgeBase knowledgeBase = createKnowledgeBase(); //Successfully creates
knowledgebase
StatefulKnowledgeSession session =
knowledgeBase.newStatefulKnowledgeSession();

FactType appType = knowledgeBase.getFactType( mortgages,
LoanApplication );
FactType incomeType = knowledgeBase.getFactType( mortgages,
IncomeSource );

Object application = appType.newInstance();
Object income = incomeType.newInstance();

appType.set(application, amount, 10);
appType.set(application, deposit, 1500);
appType.set(application, lengthYears, 20);

incomeType.set(income, type, Job);
incomeType.set(income, amount, 65000);

session.insert(appType);
session.insert(incomeType);

assertTrue(session.getFactCount() == 2);
session.fireAllRules();
assertTrue(session.getFactCount() == 3);

Question: I hope the way i pass the input satisfies Row 2 Pricing loans
above. But My assertion is getting failed after calling
fireAllRules()...because the factcount was still 2. Please help what could
be the wrong in above scenario.

thanks a lot.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701.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] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran kakarla
ooops. I'll try tomorrow in office and will reply...thanks a lot

On Mon, Jul 16, 2012 at 9:59 PM, Esteban Aliverti 
esteban.alive...@gmail.com wrote:

 The problem is that you are inserting the fact type definition instead of
 the facts themselves.

 instead of insert *appType* and *incomeType* you should insert *
 application* and *income*.

 Best Regards,

 

 Esteban Aliverti
 - Blog @ http://ilesteban.wordpress.com


 On Mon, Jul 16, 2012 at 3:20 PM, Wolfgang Laun wolfgang.l...@gmail.comwrote:

 Why do you think that you should have a third fact when there are no
 insert() calls except the two in your Java code?
 -W

 On 16/07/2012, Ravikiran ravikiran.kaka...@gmail.com wrote:
  Hi,
  I'm using default Guvnor package mortgages decision table as example
 for
  my POC. Below is the rules from the decision table. No rule is being
 fired
  from my JAVA client out of 3 rules given below.
 
  //from row number: 1
  rule Row 3 Pricing loans
dialect mvel
when
 application : LoanApplication( amount  131000 ,
 amount =
  20 , lengthYears == 30 , deposit  2 )
income : IncomeSource( type == Asset )
then
application.setApproved( true );
application.setInsuranceCost( 0 );
application.setApprovedRate( 2 );
  end
 
  //from row number: 2
  rule Row 1 Pricing loans
dialect mvel
when
application : LoanApplication( amount  1 , amount
 = 10 ,
  lengthYears == 20 , deposit  2000 )
income : IncomeSource( type == Job )
then
application.setApproved( true );
application.setInsuranceCost( 0 );
application.setApprovedRate( 4 );
  end
 
  //from row number: 3
  rule Row 2 Pricing loans
dialect mvel
when
application : LoanApplication( amount  11 , amount
 = 13 ,
  lengthYears == 20 , deposit  3000 )
income : IncomeSource( type == Job )
then
application.setApproved( true );
application.setInsuranceCost( 10 );
application.setApprovedRate( 6 );
  end
 
  == My Java client follows
  KnowledgeBase knowledgeBase = createKnowledgeBase(); //Successfully
 creates
  knowledgebase
  StatefulKnowledgeSession session =
  knowledgeBase.newStatefulKnowledgeSession();
 
  FactType appType = knowledgeBase.getFactType( mortgages,
  LoanApplication );
  FactType incomeType = knowledgeBase.getFactType( mortgages,
  IncomeSource );
 
  Object application = appType.newInstance();
  Object income = incomeType.newInstance();
 
  appType.set(application, amount, 10);
  appType.set(application, deposit, 1500);
  appType.set(application, lengthYears, 20);
 
  incomeType.set(income, type, Job);
  incomeType.set(income, amount, 65000);
 
  session.insert(appType);
  session.insert(incomeType);
 
  assertTrue(session.getFactCount() == 2);
  session.fireAllRules();
  assertTrue(session.getFactCount() == 3);
 
  Question: I hope the way i pass the input satisfies Row 2 Pricing
 loans
  above. But My assertion is getting failed after calling
  fireAllRules()...because the factcount was still 2. Please help what
 could
  be the wrong in above scenario.
 
  thanks a lot.
 
  --
  View this message in context:
 
 http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701.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
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



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


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


Re: [rules-users] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran
Thanks Esteban. It works fine after inserting the Fact instead of
FactType...!!!

But still i have one basic question in mind...if there are many rules
defined in my package, How would i know that which is rule has got fired
when i call fireAllRules() method whithout passing AgendaFilter. Also i know
that fireAllRules() gives me how many rules have got fired like int x =
session.fireAllRules()

I have defined specific set of rules defined in a package for one biz. logic
and deployed drools war seperately. From the Application integration
perspective, I should be able to know whether my rules is fired or not.
Based on the success or failure i'll have to do some biz. processing

Little confusing here...i know that i am almost there...but i need some
light here to understand better for the integration purpose.

Please help!!!

Thanks a lot in Advance...

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701p4018723.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] Drools Guvnor 5.4.0 - Rules integration with database (Oracle)

2012-07-16 Thread Ravikiran
Hi Drools gurus,

Further to my earlier post in the same thread, 

1) please clarify whether the respository folder still exists after the
database integration?
2) If the repository folder still exists even after database integration,
then there is something wrong with my process.
3) After the development is completed in my DEV. environment, How do i
promote my changes to SIT or different environment (means repository)?

Please let me know if you need more details...

thanks a lot.


--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-4-0-Rules-integration-with-database-Oracle-tp4018696p4018724.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] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran
Hi Davide,

I can write the listener to know what is happening underneath that will be
printed in a log, but when it comes to my biz. scenario i should have a
simple way that i can derive it from my java code. Because i have multiple
biz.flows based on certain biz.policies...those policies have to be derived
from the execution of specific rules within my package...

Can you please thorow little more light on this

thanks

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701p4018726.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


[rules-users] How to Access Rule RHS (THEN Part) from JAVA?

2012-07-13 Thread Ravikiran
Hi Drools Gurus,

One more newbie here for Drools Guvnor. I have chosen
guvnor-distribution-5.3.0.Final (I could see version as SNAPSHOT 5.4.0
within Guvnor--Administration--About) to start with. After reading through
the complete user manual, I was able to setup and deploy Drools Guvnor war
in JBoss AS 7.

My intension is to access all the rules that i have created using Guvnor
web. I have written a java test case to access my Rules which are resided in
a drools Package using REST API. I was successful to access them using
standard Authentication mechanism with charset*.xml. Even though i was able
to call fireAllRules with specific rule using AgendaFilter provided. But i
was not able to access the values at RHS after a specific rule got fired.
For Example, i want to access percent value as 2.5 after the below sample
rule is successfully executed,
I have uploaded my model jar to Guvnor containing Person  LoanFormula
classes.

---Rule 1 (please do not see the syntax errors)
WHEN
 Person age  25
 
THEN
 LoanFormula percent = 2.5
 
 

JAVA Code follows
-
KnowledgeBase kbase = ...
FactType personType = kbase.getFactType( org.drools.examples,Person );
Object bob = personType.newInstance();
personType.set( bob, name,Bob );
personType.set( bob,age,42 );
StatefulKnowledgeSession ksession = ...
ksession.insert( bob );
AgendaFilter filter = new ..(Rule1);
int count = ksession.fireAllRules(filter);
String name = personType.get( bob, name );
int age = personType.get( bob, age );

It would be great help if some one can show me the sample code for accessing
RHS part of the Rule. Please let me know if you need more details.

thanks
Kiru

--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-Access-Rule-RHS-THEN-Part-from-JAVA-tp4018651.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


[rules-users] Drools Guvnor - question on mortgages package in guvnor-distribution-5.4.0.Final

2012-07-13 Thread Ravikiran
Hi,
I have deployed drools-guvnor.war version 5.4.0 in Jboss AS 7. When i launch
the guvnor for the first time, it also loads the defalult packages, one
package is called mortgages is also loaded. Mortgages package contans
totally 7 diff. rules, but when i go see the model of the mortgages i do not
see any classes displayed over there. But, i was able to build  create
deployment SNAPSHOT successfully. Even the rule DSL source contains all
classes like LoanApplication etc.,.

How is it possible? Do you mean, some kind of related drl file is uploaded
as a Model? please clarify?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-question-on-mortgages-package-in-guvnor-distribution-5-4-0-Final-tp4018653.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] How to Access Rule RHS (THEN Part) from JAVA?

2012-07-13 Thread Ravikiran
Thanks Lane.

Since i am new to this Area, could you please help me with some sample code
how to query the objects that are involved in a rule. Please consider above
my example, on successful execution of Rule 1, i want to access the value of
Percent from Class LoanFormula.

Thanks a lot.

--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-Access-Rule-RHS-THEN-Part-from-JAVA-tp4018651p4018654.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] Drools Guvnor - question on mortgages package in guvnor-distribution-5.4.0.Final

2012-07-13 Thread Ravikiran
It's very clear now. Thanks a lot Mike.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-question-on-mortgages-package-in-guvnor-distribution-5-4-0-Final-tp4018653p4018658.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