[rules-users] Exception when uploading JAR without POM in 6.0.0-Final

2013-11-22 Thread SrjTx
If you try to upload a JAR without a pom.xml, it requests GAV info and then
throws the exception included at the bottom of the list.

I'm thinking that at line 141 in FileServlet.java, gav is not null and
therefore fileData is not converted to a BufferedInputStream at line 146,
which cause line 174 to throw the exception.


This is on CentOS 6.4

Work-around is to make sure you always have pom.xml in META-INF/maven



09:29:27,273 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/guvnor].[M2RepoFileServlet]]
(http-localhost/127.0.0.1:8080-4) JBWEB000236: Servlet.service() for servlet
M2RepoFileServlet threw exception:
org.guvnor.common.services.shared.exceptions.GenericPortableException:
mark/reset not supported
at
org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:24)
[guvnor-services-api-6.0.0.Final.jar:6.0.0.Final]
at
org.guvnor.m2repo.backend.server.FileServlet.uploadFile(FileServlet.java:180)
[guvnor-m2repo-editor-backend-6.0.0.Final.jar:6.0.0.Final]
at
org.guvnor.m2repo.backend.server.FileServlet.processUpload(FileServlet.java:84)
[guvnor-m2repo-editor-backend-6.0.0.Final.jar:6.0.0.Final]
at
org.guvnor.m2repo.backend.server.FileServlet.doPost(FileServlet.java:70)
[guvnor-m2repo-editor-backend-6.0.0.Final.jar:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
[jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)
[uberfire-security-server-0.3.0.Final.jar:0.3.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:134)
[jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:99)
[jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:92)
[jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:64)
[jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
[jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_10]




--
View this message in context: 
http://drools.46999.n3.nabble.com/Exception-when-uploading-JAR-without-POM-in-6-0-0-Final-tp4026893.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] Exception when uploading JAR without POM in 6.0.0-Final

2013-11-25 Thread SrjTx
Unfortunately, can' upload that jar.

I tried making some other jars without POM and they worked.

I will try and get some more time this week to see if I can reproduce with
other jar.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Exception-when-uploading-JAR-without-POM-in-6-0-0-Final-tp4026893p4026918.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] What is URL for Guvnor REST API in 6.0.0-Final?

2013-11-25 Thread SrjTx
I've been trying URL's similar to

http://localhost:8080/guvnor-6.0.0.CR3/rest/packages

but can't find them.



--
View this message in context: 
http://drools.46999.n3.nabble.com/What-is-URL-for-Guvnor-REST-API-in-6-0-0-Final-tp4026926.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] What is URL for Guvnor REST API in 6.0.0-Final?

2013-11-25 Thread SrjTx
Thanks guys!

Here's our use-case/flow.

Could you please share your recommendations on our application integration
with Guvnor 6.0.0

We have SwitchYard 1.1 applications that are using the kie method to
interact with a Drools backend.  In this method you point what used to be a
5.5 CHANGE_SET backend and the middleware takes care of the typical sync of
change sets with the application so that it have visibility into the rule in
its runtime from the guvnor control point.  With 6.0.0, as you say, things
of change.  We would like to continue using the SwitchYard kie interface
with 6.0.0.

1. As per (Comment 8 at https://community.jboss.org/thread/234691), it looks
like kie integration is much more complex and not clear as to how I would
integrate.  Is there than an authoritative document that shows the
equivalent 6.0.0 flow, so that our application can get visibility into the
rules, etc. as it did with 5.5 

2. As per the comment about GIT, if git the access API for retrieving
packages, is there documentation about how to unmarshall data in git so that
we can write some middleware to insert into kie layer in SwitchYard to hit
the repo via git?

3. Assuming we are using the guvnor frontend to manage rules, deploy rules,
compile assets, etc.  We are not looking for APIs to manage functionality. 
We need the equivalent of REST to get the information about the assests
inside the packages/model.  For example, in 5.5 there were multiple REST
calls where you could specify an asset UUID and get its "source code" over
rest - In the case of BRL rules that source was XML.  That XML is what we
need.  Can you comment on approaches to getting the equivalent data in the
new git scenario?

Thanks!




--
View this message in context: 
http://drools.46999.n3.nabble.com/What-is-URL-for-Guvnor-REST-API-in-6-0-0-Final-tp4026926p4026931.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] What is URL for Guvnor REST API in 6.0.0-Final?

2013-11-26 Thread SrjTx
GREAT!  Thanks!



--
View this message in context: 
http://drools.46999.n3.nabble.com/What-is-URL-for-Guvnor-REST-API-in-6-0-0-Final-tp4026926p4026944.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] Need Help with Enumerations and Classpath

2013-12-04 Thread SrjTx
I am trying to create a enumeration that uses a class to populate it, per
*16.10. Data enumerations (drop down list configurations)*.

I have added the jar that contains my class to the drools repository and
added it as a dependency to the project.
When building a guided rule, that object can be selected and the editor will
add
import dbAccessProto.ListAccess;

But, if I create an enumeration in the gui with Fact="a", field="b", and
context = "(new dbAccessProto.ListAccess()).getListOfLists()"

I get the error below.

Is there some other place I need to put the jar flle or specify it?  

[Error: unable to resolve class: dbAccessProto.ListAccess from [Module
"deployment.guvnor.war:main" from Service Module Loader]] [Near : {... [
'a.b' : (new dbAccessProto.ListAccess()).ge }] ^ [Line: 1, Column: 16]

source:
1.  |   'a.b' : (new dbAccessProto.ListAccess()).getListOfLists()






--
View this message in context: 
http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091.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] Need Help with Enumerations and Classpath

2013-12-04 Thread SrjTx
6.0.0  I guess I should have said drools workbench.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091p4027094.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] Need Help with Enumerations and Classpath

2013-12-06 Thread SrjTx
It is in problem panel and will show up in a dropdown sub-window if you
validate.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091p4027133.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] 6.0.0: Is this the right way to access DB on LHS?

2013-12-06 Thread SrjTx
Before I go down the path of fleshing the rest of this out, I want to know if
this is the right approach.

I have a database with LOTS of data entries.  I have a bean that provides
access to that data (ListAccess).  It has a method "iHaveOne" that returns
true if the argument is contained in the list.

Is the following how one should go about this?

Other/better ways?



package blah;

import dba.ListAccess; // bean which access database
import goodstuff.Thing; // fact in drools

  rule "qqq"
  when
$thing:Thing()
$listAccess:ListAccess()
eval( $listAccess.iHaveOne($thing.id) )
  then
do stuff
  end




--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-0-Is-this-the-right-way-to-access-DB-on-LHS-tp4027134.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 6.0.0: Please clarify: rdrl vs rdslr and what you can do with each

2013-12-11 Thread SrjTx
Drools 6.0.0

I have searched doc and google, but have not found what I am looking for -
if you have link that would be great too.

I am creating my first .dsl file and using them in a guided rule.  I notice
that when you select this, the file extension is rdslr versus rdrl.  Also, 
you can access any .dsl (that is in the project?  directory? - not clear
where all it searches)

I also notice that you can add "regular" rule parts just like a rdrl file,
but they are prefixed with a >

My question is, if you wanted, could you write only rdslr files and do
everything you could in a rdrl even if you didn't use any dsl?

Rephrased, is rdrl a subset of rdslr functionality? 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-6-0-0-Please-clarify-rdrl-vs-rdslr-and-what-you-can-do-with-each-tp4027228.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] Guvnor enumerations

2014-01-17 Thread SrjTx
I am seeing this behavior with 6.0.0 Final.

I can't say that mine used to work with 5.x as I start with the 6.x series.

Was this fixed, is there a work-around, etc?

The get method is public.


-
1.  |   'ListingGroupxxx.name' : ['a','b','c']
2.  |   'ListingGroup.name' : (new
com.xyz.mgmt.listing.ListingGroupBean()).getAllListingGroupNames()



Unable to load enumeration data.

[Error: unable to invoke method: getAllListingGroupNames] [Near : {...
ng.ListingGroupBean()).getAllListingGroupNames() ] }] ^ [Line: 2,
Column: 74]

Error type: org.mvel2.PropertyAccessException



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Guvnor-enumerations-tp4023057p4027743.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] Guvnor enumerations

2014-01-17 Thread SrjTx
Yes, that is a public method.

The jar file that contains that class is in .../WEB-INF/lib

The class is public with the annotation @Stateless

I get this error when I validate the enumeration file.

The Guided Rule editor sees  ListingGroupBean and allListingGroupNames as
one of its fields, but is that because I have it uploaded to the artifact
repository?  Do you need to upload jars that are already in .../WEB-INF/lib?

Also, how do you delete an entry from the artifact repository?

Thanks for the quick response!







--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Guvnor-enumerations-tp4023057p4027745.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] Guvnor enumerations

2014-01-17 Thread SrjTx
I submitted the JIRA.

I have googled around to figure this out, but I don't know maven.

I deleted the  directories I didn't want from /repositories/kie and also
from .m2

But, every time I start JBoss, the .m2 ones come back and I get errors like

17:13:24,345 INFO  [stdout] (http-/127.0.0.1:8080-4) [WARNING] The POM for
com.xxx.mgmt.listing:SuperListingGroupAccess:jar:1.0.0 is missing, no
dependency information available
 

Dependency artifact not found for:

Which mvn commands do I need to run and in which directory?





--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Guvnor-enumerations-tp4023057p4027747.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] Guvnor enumerations

2014-01-17 Thread SrjTx
Figured out.

This was because I had a project that had the jar I deleted as a dependency.





--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Guvnor-enumerations-tp4023057p4027748.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-17 Thread SrjTx
I've done a couple DSL/RDSLR rules in the past with success.  Been trying to
create one today but get "Unable to expand" errors on validation on every
line, even with not substitutions.

What am i missing?

Here is a NON-DSL/RDRL file that works just fine.

5.  |   rule "AAA"
6.  |   dialect "mvel"
7.  |   when
8.  |   $sep : DroolsSepBean( )
9.  |   then
10. |   System.out.println("HI");
11. |   end

Here is a DSL/RDSLR file that generates the errors below (note this is the
same code as above and nothing should substitute)  I even took out the $sep
assignment to make it more simple (it gives same errors if it's in there)

5.  |   rule "dsltest"
6.  |   dialect "mvel"
7.  |   when
8.  |   DroolsSepBean( )
9.  |   then
10. |   System.out.println("HI");
11. |   end


18:42:57,396 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule]
(http-/127.0.0.1:8080-2) Unable to build KieBaseModel:defaultKieBase
[8] Unable to expand: DroolsSepBean( )
[10] Unable to expand:  System.out.println("HI");





--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-17 Thread SrjTx
KIE WB 6.0.0 Final



--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027750.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
Must not be in 6.0.1.

I upgraded to 6.0.1

I even created a new repo

with the rule

7.  |   when
8.  |   Number( )
9.  |   then
10. |   end

and get 
[8] No mapping entries for expanding:   insert( new Number() );
[8] Unable to expand:   insert( new Number() );




--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027772.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
BTW, it would be nice if some where on the GUI you could see what version you
were running.



--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027773.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
Another data point.

I set this up on another machine and it works.

Something on my machine must be corrupted.

What would you recommend I delete?  .niogit?

(My .war is already all new)



--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027783.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
more data points

with jboss not running:
I deleted .niogit.
I deleted all my .jar files from the kie and .m2 repos
I deleted and re-installed the kie-wb.jar

started jboss.
.niogit came back
started kiewb

Tried to add a rule to mortgage demo project


I still get the errors.

I'm not sure what can still be different between this setup and the one I
set up from scratch on the other machine that works. (In case it's lost in
the chain, the install on this machine used to work)


As a DSL/RDSLR file

1.  |   import java.lang.Number;
2.  |   import org.mortgages.Applicant;
3.  |   
4.  |   rule "sss"
5.  |   dialect "mvel"
6.  |   when
7.  |   Applicant( )
8.  |   then
9.  |   end

16:56:36,143 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule]
(http-/127.0.0.1:8080-1) Unable to build KieBaseModel:defaultKieBase
[7] Unable to expand: Applicant( )





--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027785.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
Does any of this matter - I don't remember if it was there before the problem
or not

17:13:17,704 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry xercesImpl.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/xalan-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,704 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry xml-apis.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/xalan-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   


  
17:13:17,705 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry serializer.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/xalan-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,707 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb-api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


  
17:13:17,708 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry activation.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,708 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jsr173_1.0_api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


17:13:17,708 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb1-impl.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,709 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry xml-apis.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/serializer-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   


 
17:13:17,716 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb-api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


   
17:13:17,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb-impl.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


  
17:13:17,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jsr173_1.0_api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-dro

[rules-users] Can't get snmp/log4j to work with 6.0.1.F KIE-WB (this is a tough one!)

2014-01-26 Thread SrjTx
This is long, but please hang in there, this is driving me nuts.

Keep and eye out for the /javax/jms/JMSException/

Any idea, hints, or solutions would be greatly appreciated!


So I need to access to snmp4j-1.10.1.jar in kie-wb, but it doesn't have a
pom file, so I rebuilt it to have the one at 
http://repo1.maven.org/maven2/org/snmp4j/snmp4j/1.10.1/snmp4j-1.10.1.pom
  

So now it depends on a very old version of log4j:

log4jlog4j1.2.9


log4j 1.2.9 doesn't have a pom, so I created the following pom that depends
on jboss-jms-api_1.1_spec-1.0.1.Final.jar - which has
/javax/jms/MessageListener.class/ as shown by:

jar tf
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jboss-jms-api_1.1_spec-1.0.1.Final.jar
| grep MessageListener
/javax/jms/MessageListener.class/



pom.xml for log4j


http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";
   xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  4.0.0

  log4j
  log4j
  1.2.9

  

  guvnor-m2-repo
  Guvnor M2 Repo
  http://localhost:8080/kie-drools-wb/maven2/

  

  

  org.jboss.spec.javax.jms
  jboss-jms-api_1.1_spec
  1.0.1.Final

  


All of which results in the following errors in kie-wb


An error was found during external classes check. The external class
org.apache.log4j.net.JMSAppender did not pass the verification. Please check
the external .jar files configured as dependencies for this project. The low
level error is: : /javax/jms/JMSException/



An error was found during external classes check. The external class
org.apache.log4j.net.SMTPAppender did not pass the verification. Please
check the external .jar files configured as dependencies for this project.
The low level error is: : javax/mail/Address



An error was found during external classes check. The external class
com.securelogix.common.logging.NGPMailer did not pass the verification.
Please check the external .jar files configured as dependencies for this
project. The low level error is: : javax/mail/Address



An error was found during external classes check. The external class
org.jboss.logging.Log4jLogger did not pass the verification. Please check
the external .jar files configured as dependencies for this project. The low
level error is: : org/apache/log4j/Priority



An error was found during external classes check. The external class
org.jboss.logging.Slf4jLogger did not pass the verification. Please check
the external .jar files configured as dependencies for this project. The low
level error is: : org/slf4j/Logger



An error was found during external classes check. The external class
org.jboss.logging.Slf4jLocationAwareLogger did not pass the verification.
Please check the external .jar files configured as dependencies for this
project. The low level error is: : org/slf4j/spi/LocationAwareLogger



and the following on jboss startup

17:53:51,124 WARN  [org.jboss.modules] (http-/127.0.0.1:8080-4) Failed to
define class org.apache.log4j.net.JMSSink in Module
"org.jboss.log4j.logmanager:main" from local module loader @4f67c097
(finder: local module finder @2495223b (roots:
/opt/jboss-as-7.2.0.Final/modules,/opt/jboss-as-7.2.0.Final/modules/system/layers/brms,/opt/jboss-as-7.2.0.Final/modules/system/layers/soa,/opt/jboss-as-7.2.0.Final/modules/system/layers/base)):
java.lang.LinkageError: Failed to link org/apache/log4j/net/JMSSink (Module
"org.jboss.log4j.logmanager:main" from local module loader @4f67c097
(finder: local module finder @2495223b (roots:
/opt/jboss-as-7.2.0.Final/modules,/opt/jboss-as-7.2.0.Final/modules/system/layers/brms,/opt/jboss-as-7.2.0.Final/modules/system/layers/soa,/opt/jboss-as-7.2.0.Final/modules/system/layers/base)))
   
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:407)
[jboss-modules.jar:1.2.0.CR1]  
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:254)
[jboss-modules.jar:1.2.0.CR1]   
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
[jboss-modules.jar:1.2.0.CR1]  
at org.jboss.modules.Module.loadModuleClass(Module.java:518)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[jboss-modules.jar:1.2.0.CR1]   
   
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[jboss-modules.jar:1.2.0.CR1]   
 

Re: [rules-users] Can't get snmp/log4j to work with 6.0.1.F KIE-WB (this is a tough one!)

2014-01-27 Thread SrjTx
Thanks for the reply!

When you say 
"Maven dependencies that are scope "provided" exhibit this behaviour. In
your case I would have to assume the missing classes would have normally
been provided by the (J2EE?) application server."

Yes, they are jboss.
What do I need to do to use them then?   That I have the jar file with that
class in it in maven repo doesn't count?
>>jar tf
>>/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jboss-jms-api_1.1_spec-1.0.1.Final.jar
| grep MessageListener
>>/javax/jms/MessageListener.class/



Regarding POMS, I've found uploading JARs without POMs and entering GAV to
be 50/50 on working.  So I tend to add the poms

When it doesn't work, you get errors like below (This is the error you get
trying to upload snmp4j-1.10.1.jar)
Upload failed:
JBWEB65: HTTP Status 500 - mark/reset not supported
JBWEB000309: type JBWEB66: Exception report

JBWEB68: message mark/reset not supported

JBWEB69: description JBWEB000145: The server encountered an internal
error that prevented it from fulfilling this request.

JBWEB70: exception

org.guvnor.common.services.shared.exceptions.GenericPortableException:
*mark/reset not supported*

org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:24)

org.guvnor.m2repo.backend.server.FileServlet.uploadFile(FileServlet.java:180)

org.guvnor.m2repo.backend.server.FileServlet.processUpload(FileServlet.java:84)
org.guvnor.m2repo.backend.server.FileServlet.doPost(FileServlet.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)

org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)

org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)
JBWEB72: note JBWEB73: The full stack trace of the root cause is
available in the JBoss Web/7.2.0.Final logs.

JBoss Web/7.2.0.Final
 Ok




--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027863.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] Can't get snmp/log4j to work with 6.0.1.F KIE-WB (this is a tough one!)

2014-01-27 Thread SrjTx
Ok, so I really simplified this.
I got rid of all my other junk and wanted to see if a modern log4j would
load.

I put in log4j 1.2.16 (Now more snmp, etc.)
I still get the same error.
So I put the the reference to
jboss-jms-api_1.1_spec-1.0.1.Final.jar
which is both m2 and kie repos back in and which does have
javax/jms/MessageListener
and I still get class not found.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027865.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] Can't get snmp/log4j to work with 6.0.1.F KIE-WB (this is a tough one!)

2014-01-27 Thread SrjTx
I should also point out that the missing class is in the local maven repo.

/opt/jboss-as-7.2.0.Final/bin/repositories/kie/org/jboss/spec/javax/jms/jboss-jms-api_1.1_spec/1.0.1.Final
(ROOT:1664 - 1.0.1.Final> jar tf jboss-jms-api_1.1_spec-1.0.1.Final.jar |
grep MessageL
javax/jms/MessageListener.class


I guess I am still somewhat confused on when something should go in the
maven repo (Upload through GUI) and when it just needs to be in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/

I know for sure that if I want to use an object in the of the editors, it
must be Uploaded.
I thought, that jar that supported uploaded jars went in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/?

Is that true?  If not, what is
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/
used for?

Thanks again!




--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027864.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] Can't get snmp/log4j to work with 6.0.1.F KIE-WB (this is a tough one!)

2014-01-27 Thread SrjTx
The only place I could find that class was
jboss-jms-api_1.1_spec-1.0.1.Final.jar .


You are saying there is another?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027868.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] Can't get snmp/log4j to work with 6.0.1.F KIE-WB (this is a tough one!)

2014-01-27 Thread SrjTx
Sorry, just wanted to make sure I wasn't missing a subtlety. :)

Yes, I have done that.

I also tried jms-api-1.1-rev-1.jar with same results.







--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027870.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] Can't get snmp/log4j to work with 6.0.1.F KIE-WB (this is a tough one!)

2014-01-27 Thread SrjTx
Thanks!



--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027873.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] Null pointer exception when using global in rdrl 6.0.1.F

2014-01-27 Thread SrjTx
I have a class that I declared final, has a private constructor, has only
static members and methods.
Some of its members are static instance of classes.
In KIE-WBI added a global of that type with name X

When I try to make a call on X.foo(), I get a null pointer exception.  (note
that x.foo() calls y.foo(), where y is a static member of X.

I've read some posts that a global has to be static, am I stretching, what
it means for a global to be static?

I am guessing I need to write some java code that will create an instance of
X and inject into working memory?  I was hoping to be able to create this
object within either the drools or SY framework.

I have googled and be reading on this for quite a bit now, but I think I
have succeeded only in confusing myself.

Any help greatly appreciated.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Null-pointer-exception-when-using-global-in-rdrl-6-0-1-F-tp4027876.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] Null pointer exception when using global in rdrl 6.0.1.F

2014-01-27 Thread SrjTx
That being said, I figured I could grab the knowledge base that I defined in
KIE and work with its working memory.
Much googling, cannot figure out how to get my knowledge base (or package)
by name.

I must be missing something, seems like this should be straight forward.




--
View this message in context: 
http://drools.46999.n3.nabble.com/Null-pointer-exception-when-using-global-in-rdrl-6-0-1-F-tp4027876p4027879.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] Null pointer exception when using global in rdrl 6.0.1.F

2014-01-27 Thread SrjTx
Thanks for the reply.
I have read that section of the docs a multiple times.

Unfortunately, I do not have a handle to the ksession to call setGlobal on.

My knowledge session is created/owned by KIE-WB/Switchyard and we are
looking for an API so that I can get a handle to something on which I can
call setGlobal.

Ideally, I need something like
xxx.getKnowledgeBaseByName("mykb");
or maybe
xxx.getKnowledgePackageByName("mykb");
or maybe
xxx.getKnowledgeSessionByName("mykb");

which ever of those I can call setGlobal on.

FYI, our KIE stuff is container managed via maven integration with kie-wb -
we do not control the lifecycle of any KIE objects kb, package, session,
etc.

Thanks again



--
View this message in context: 
http://drools.46999.n3.nabble.com/Null-pointer-exception-when-using-global-in-rdrl-6-0-1-F-tp4027876p4027881.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] Null pointer exception when using global in rdrl 6.0.1.F

2014-01-28 Thread SrjTx
Thanks!



--
View this message in context: 
http://drools.46999.n3.nabble.com/Null-pointer-exception-when-using-global-in-rdrl-6-0-1-F-tp4027876p4027886.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] Null pointer exception when using global in rdrl 6.0.1.F - WHAT WE DID

2014-01-29 Thread SrjTx
So here's what we end up doing.

Updated the camel route coming into switchyard to have a bean in the middle.
This bean is basically a pass-through, but it has a static instance of the
"global" class we need.
As the java object passes thought the bean, we assigned our "global" class
to it, and then we can use it in "thens" by doing something like
ourObject.ourGlobal.foo();

Kind of a hack as your java objects need setter/getter for the "global", but
for now, it works.





--
View this message in context: 
http://drools.46999.n3.nabble.com/Null-pointer-exception-when-using-global-in-rdrl-6-0-1-F-tp4027876p4027910.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-29 Thread SrjTx
I am still seeing this most of the time, is there a JIRA I should update, or
create?




--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027919.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-30 Thread SrjTx
Yeah, I know the most of the time thing stinks.

I'm just not sure what to check next at this point.

Here's the history I have.

RDSLR worked initial on my machine and then stopped.
It worked on a clean install and then stopped.
Now I've tried 2 more clean installs and it has never worked.

I guess I can check grepcode and see if I can figure out what might be the
root cause.



--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027930.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] Project Explorer has dissappeared in KIE Workbench

2014-01-30 Thread SrjTx
I've been using kiewb for at least a month now and just yesterday the project
explorer disappeared.
Note that I have been using chrome the whole time and occasionally, I would
get a warning about "gecko", but everything seemed to work.

I tried with firefox and the Project Explorer is still MIA.

I did verify another issue with Firefox that I thought might be chrome
specific.  The paging does not work on the artifact repository.  You can
only ever see 11 items.  This is true both in the upload area and when
selecting for project dependencies.
Note the artifacts do get uploaded and you can add them manually with the
[Add] button instead of with the [Add From Repo] button.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767p4027931.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] Project Explorer has dissappeared in KIE Workbench

2014-01-30 Thread SrjTx
Forgot to mention.  I did reinstall kiewb and it was still missing.  I have
not tried replacing jboss.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767p4027932.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] 6.0.1.F Guided Rule makes all argument types strings

2014-02-06 Thread SrjTx
I have a global class foo with method bar(int x, int y, string s);

I added it to a globals file as alias x.

In a then in an rdrl, I can select call a method on x, so I choose
bar.  I get 3 text boxes 
   int[]
   int[]
   string[]

And I fill in 
   int[3   ]
   int[8   ]
   string[Hi  ]

The resulting source is x.bar("3", "8", "Hi") - which fails validation
because the first two are supposed to be ints.  Do you enter ints
differently?  Or, is this a bug?

Also note that a space is always a;ready in the text boxes so you have to
delete it first.  If you just start typeing hi, you will get the value " Hi"





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Guided-Rule-makes-all-argument-types-strings-tp4028010.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] 6.0.1.F Can this be done with enumerations?

2014-02-21 Thread SrjTx
I know that you can have one dropdown control the contents of another
dropdown, but can a dropdown control the whether another dropdown or other
{} field is displayed at all?

ie.  If you pick car, then the "bed length" dropdown would not be shown.





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Can-this-be-done-with-enumerations-tp4028233.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] 6.0.1.F Artifact Repository vs /lib dir

2014-02-21 Thread SrjTx
I am not 100% clear on the relationship between these two.

I want to have an enumeration that is populated from a DB.
It makes sense to me that I have to put the jar with the DB access class in
the repository.  I know that I have to also put it in the /lib dir, but I
don't understand the relationship and why I have to do it.

Also, once I add the db access class, there are my.com.tenancy classes and
org.hibernate classes that get flagged as class not found.

I can add them to the repo, but since I don't access them directly, I
guessed that I wouldn't have to put them there and only in the ./lib

Can anyone elaborate on this or share a good link?

Thanks!





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Artifact-Repository-vs-container-lib-dir-tp4028240.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] 6.0.1.F Defect(s) in DSL and Enumerations

2014-02-24 Thread SrjTx
The following works like you would think:

[when]xxx {l:ENUM:MyBean.l} {x:ENUM:MyBean.x}
{y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))

Defect 1? 
If you remove the spaces between the "} {"
[when]xxx
{l:ENUM:MyBean.l}{x:ENUM:MyBean.x}{y:ENUM:MyBean.y}=eval($sep.foo("any",
"any", "{l}", "{x}", "{y}", "", ""))

l = ""
x = ""
y = l + x + y

Defect 2?
Even in the first case, if the Enumeration returns a value that has space(s)
in it (which maybe should not be allowed?) it will make for odd
substitutions as well.







--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Defect-s-in-DSL-and-Enumerations-tp4028283.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] 6.0.1.F Defect(s) in DSL and Enumerations

2014-02-24 Thread SrjTx
Let me add that I hope spaces should be allowed. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Defect-s-in-DSL-and-Enumerations-tp4028283p4028284.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] 6.0.1.F Do dependent enumerations work as in docs 16.10.1?

2014-02-25 Thread SrjTx
I am trying to do the dependent enumerations as covered in 16.10.1. Advanced
enumeration concepts

I set this up just like the example, and have tried a number of things to
get it to work, but now luck.

This works fine:

'MyBean.listType' : ['List', 'Regex']
'MyBean.val' : ['a','b']


This results in the val dropdown being grayed out.
This seems to follow the example in 16.10.1, but I must be missing something
subtle

'MyBean.listType' : ['List', 'Regex']
'MyBean.val[listType = List]' : ['a','b']
'MyBean.val[listType = Regex]' : ['c','d']

No errors, validation warnings, etc. are produced on the gui or in the jboss
log.



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Do-dependent-enumerations-work-as-in-docs-16-10-1-tp4028305.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] 6.0.1.F Regex validation in DSL causes errors

2014-02-25 Thread SrjTx
I have tried the following regexes.
{startTime:[01]?[0-9]|2[0-3]:[0-5][0-9]}
{startTime:[0-9]+}  -- not a time of course, but thought I would give it
something easy
{startTime:"[0-9]+"}

just {startTime} works

When a regex is present , I get errors like:


[9] Unable to expand: Beer *List* Unknown BLone BLone 25-Feb-2014 startTime
25-Feb-2014 endTime

[ERR 102] Line 9:8 mismatched input '*List*' in rule "a"

DSL lookes like

[when]Beer *List* {x} {y} ... {startTime[0-9]+} ... =eval($foo.doThis("{x}",
"{y}", ..., "{startTime}, ..."))





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Regex-validation-in-DSL-causes-errors-tp4028319.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] master - [BZ-1069337] fix incremental compilation when multiple KieContainers use the same ReleaseId

2014-02-25 Thread SrjTx
I stumbled on this commit today hoping it would fix the behaviour we have
been chasing for quite some time to no avail.

In our setup we have tow containers pointing to the same releaseID via
LATEST. The version is static at 1.0 using KIE. We have two drl rules. One
rule contains logic will fire from container1 and the other from container 2
- they use two independent entry-points and objects unique to the respective
entry-point.

The test is simple, we send objects into both entry-points that should fire
both rules - they do. We make changes to the rules via KIE wb, deploy the
project, the containers pickup the changes however at runtime only changes
to rule 1 seem to b "loaded". More specifically container 1 pickups up the
new deltas while container 2 never does.

We are running inside a JBoss container env. The workaround is to restart
jboss and then the latest are used. I have verified that the jar that is
produced in .m2 is correct. I even saw the changes in the kbase.cache file
inside our jar.

Any ideas? Is LATEST not handled even with the above fix?

Are we experiencing https://issues.jboss.org/browse/SWITCHYARD-1840???

Thanks
-J
-



--
View this message in context: 
http://drools.46999.n3.nabble.com/master-BZ-1069337-fix-incremental-compilation-when-multiple-KieContainers-use-the-same-ReleaseId-tp4028324.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] master - [BZ-1069337] fix incremental compilation when multiple KieContainers use the same ReleaseId

2014-02-25 Thread SrjTx
I verified it. I believe it is a static thing within a container? 

I reran the above test but i created container 2 first follow by container
1. Now rules related to container 2 objects pickup delta's while container1
does not. 

Basically it looks like the only container that has its "class" data updated
is the first one pointing to that releaseID.

Other things to try?

-J



--
View this message in context: 
http://drools.46999.n3.nabble.com/master-BZ-1069337-fix-incremental-compilation-when-multiple-KieContainers-use-the-same-ReleaseId-tp4028324p4028325.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] master - [BZ-1069337] fix incremental compilation when multiple KieContainers use the same ReleaseId

2014-02-26 Thread SrjTx
I am running master.



--
View this message in context: 
http://drools.46999.n3.nabble.com/master-BZ-1069337-fix-incremental-compilation-when-multiple-KieContainers-use-the-same-ReleaseId-tp4028324p4028338.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] 6.0.1.F EXTENDS in Guided Rule Editor does not work

2014-03-04 Thread SrjTx
Any time I have tried to create a new RDSLR and select an [Extends] class I
get:

Unable to resolve parent rule, please check that both rules are in the
same package

The are both certainly in the same package.

I am trying to extend from a DRL, should that matter?





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506.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] 6.0.1.F How to use @role and @expires with DSL

2014-03-04 Thread SrjTx
I searched the forum and found some stuff from 2010 related to this - but no
final answer, but was wondering if this has been added to 6.0.1.F

I want to put 

declare Foo
@role(event)
@expires( 5m )
end

into a Guided Rule - what is the proper way to do this?







--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-use-role-and-expires-with-DSL-tp4028510.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] 6.0.1.F How to use @role and @expires with DSL

2014-03-06 Thread SrjTx
We ended up doing something based on this post
http://drools.46999.n3.nabble.com/setting-the-expires-in-java-td4025574.html
  




--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-use-role-and-expires-with-DSL-tp4028510p4028562.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] 6.0.1.F Enumeration Reloading Weirdness

2014-03-06 Thread SrjTx
I have an enum along the lines of

Bean.x : (new com.xyz.MyClass()).getNames()

Which works fine and getNames() is called when JBoss first starts up and the
first time that a rule using this enum is created.

But, getNames() is never called again.  Either when a new rule is created or
if you do the close/reopen the editor thing.  Which means that the enum gets
out of date with the DB it is pulling from.

I did find a work-around, if you also edit the .enumeration file, I just add
a blank entry at the bottom of table - then getNames() is called with a new
rule is created of you do the close/reopen the editor thing.

Is there a fix in head for this?



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Enumeration-Reloading-Weirdness-tp4028568.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] 6.0.1.F EXTENDS in Guided Rule Editor does not work

2014-03-06 Thread SrjTx
BaseRule DRL is

package com.xyz.cep;

import com.xyz.model.Flow;

declare Flow
@role(event)
end

rule "BaseRule"
dialect "java"
when
then
end


-
Child.rdslr freshly created and empty other than selecting to extend from
BaseRule


1.  |   package com.securelogix.policy.cep;
2.  |   
3.  |   import java.lang.Number;
4.  |   
5.  |   rule "Child" extends "BaseRule"
6.  |   dialect "mvel"
7.  |   when
8.  |   then
9.  |   end



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506p4028571.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] 6.0.1.F EXTENDS in Guided Rule Editor does not work

2014-03-06 Thread SrjTx
Child is extending BaseRule, which imports and uses Flow.

So the extends is within the same package.



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506p4028575.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] 6.0.1.F EXTENDS in Guided Rule Editor does not work

2014-03-06 Thread SrjTx
sorry, I just forgot to change package name in the one place for posting.

If you don't mind could you edit your reply and replace?  Sorry - thanks!



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506p4028577.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] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-03-10 Thread SrjTx
Ok, this should make it happen

1) Add new Guided Rule
2) Tick "Use DSL"
3) Click OK
4) Add a DSL sentence
5) Validated rule - OK
6) Viewed Source - OK
7) Saved - OK
8) Re-opened - OK
*9) Add a "raw DRL" to the "then" clause
10) Save and publish.  You should see error in server.log*

restarting jboss fixes it.



--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4028612.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-19 Thread SrjTx
I am doing the following, but no rules ever fire.  I suspect the maven repo
location is not right -and that no rules are getting loaded - how do I set
it?

I am using /root/.m2/repository

It would be the programmatic equivalent of
-Dorg.guvnor.m2repo.dir=/root/.m2/repository"


Also, how do you list the rules that are in the base?  I see there is a
getRule(...), but no getRules.



kieServices = KieServices.Factory.get();

releaseId = kieServices.newReleaseId("com.xyz.policy", "cep",
"LATEST");

kieContainer = kieServices.newKieContainer(releaseId);
kieBase = kieContainer.newKieBase(config);
kieSession = kieBase.newKieSession();

kieSession.addEventListener((RuleRuntimeEventListener) this);

kieScanner = kieServices.newKieScanner(kieContainer);
kieScanner.start(1L);



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-19 Thread SrjTx
I just tried both, neither worked.


Do you know how I can check where it thinks the repo is?





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028808.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-19 Thread SrjTx
Nope.

Is there any other implementation of KieScanner than InternalKieScanner?

KieRepositoryImpl returns the internal scanner, but returns a dummy if there
is not one in there, but I can't find who adds it and where it sets the
location it is going to scan.



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028811.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-19 Thread SrjTx
actually, if I use the version number I do see the following (missed it last
time I looked), but no rules fire.
16:04:08,127 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl]
(http-/10.1.1.161:8443-2) KieModule was added:MemoryKieModule[
ReleaseId=com.xxx.policy:cep:1.0]

We had been doing this with switchyard and had to use "latest" so that it
would pick up changes made in kie-wb.




--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028812.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-20 Thread SrjTx
I don't know what is different today, but "LATEST" is working.  I think I had
too many changes going on at once, back to a good state.

(FYI, We've been cherry picking fixes from the master branch)

So, I'm getting close.
Now, I even see the message
The following artifacts have been updated: {..blah blah..}

But, what I am not seeing now is the changes in the "then" sections I made
in the rules (just printlns at this point).  I have to restart jboss to see
the changes.

The scanner is running and according to the example shown at

http://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesession/22208775?noredirect=1#22208775

  



it seems like the sessions should automatically update.  Is that true?  Or,
do I have to create a new session after the contain is updated with the new
rules?





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028833.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-20 Thread SrjTx
Is there a callback or something from the scanner that I can register for
that will let me know that there are deltas and I should create a new
session?



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028835.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-21 Thread SrjTx
Ok, so I am doing the following.

In my init, i create a container and a scanner

kieContainer = kieServices.newKieContainer(releaseId);
kieScanner = kieServices.newKieScanner(kieContainer);

Then later ,when my timer fires, call the scanner - which I know has updated
the module,
 kieContainer.newKieSession("DroolsSession")
does NOT pick up the changes.

I also tried kieContainer.updateToVersion(releaseId);
 kieContainer.newKieSession("DroolsSession")
does NOT pick up the changes.

Doing 
remove setting up the container and the scanner in init and do the
following when my timer fires

 kieContainer = kieServices.newKieContainer(releaseId);
 kieScanner = kieServices.newKieScanner(kieContainer);
 kieContainer.newKieSession("DroolsSession")
DOES PICKUP the changes.

Is this right, it seems like I shouldn't have to recreate the container?




--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028906.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] 6.0.1.F Need help in getting recanned rules into new session

2014-03-26 Thread SrjTx
I've have been unable to figure out how to get drools to rescan and then use
the updated rules in a new session.  I currently have to restart jboss to
pick up the changes.  The scanning seems to happen, but I don't see the
changes that should be included.


I have looked at lots of example code on the web and also at the Switchyard
source.  When I do this in tandem with SY, I can get it to work, but I
need/want to have it work on its own.

I have tried some different combinations with no luck.

In addition to the "why doesn't it work", I would like to clearly
understand:


Do I need a KieBase, or should I just be creating sessions off of the
container?

What do I need to have in Envinonment?.
What do I need to have in ksessionConfiguration?
Related, what is the proper mechanism to pass in the Session Name?



GAD is: com.xyz.policy, cep, 1.0
Drools session is stateful and named "DroolsSession", stream processing
mode, realtime




I initialized KIE with the following.

kieServices = KieServices.Factory.get();

releaseId = kieServices.newReleaseId("com.xyz.policy", "cep",
"LATEST");

kieFileSystem = 
kieServices.newKieFileSystem().generateAndWritePomXML(
releaseId);

kieBuilder = kieServices.newKieBuilder(kieFileSystem);

kieBuilder.buildAll();

Results results = kieBuilder.getResults();
if (results.hasMessages(Message.Level.ERROR)) {
StringBuilder sb = new StringBuilder();
for (Message message : 
results.getMessages(Message.Level.ERROR)) {
if (sb.length() != 0) {
sb.append(" -- ");
}
sb.append(message.toString().trim());
}
log("Unable to initialize KIE " + sb.toString());

} else {
env = kieServices.newEnvironment();

kieContainer = kieServices.newKieContainer(releaseId);
kieScanner = kieServices.newKieScanner(kieContainer);

kieBaseConfiguration = 
kieServices.newKieBaseConfiguration();
kieBase = kieContainer.newKieBase(kieBaseConfiguration);

kieSessionConfiguration = 
kieServices.newKieSessionConfiguration();
kieSessionConfiguration.setProperty("sessionName", 
"DroolsSession");
kieSessionConfiguration.setProperty("drools.clockType", 
"realtime");

kieSessionConfiguration.setProperty("drools.evenProcessingMode",
"stream");


Later when I determine it is time to rescan, I do the following:

kieScanner.scanNow();

System.err.println("Scanning...");

currentKieSessionThread = new 
KieSessionThread(

kieBase.newKieSession(kieSessionConfiguration, env));


executorBean.execute(currentKieSessionThread);




--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Need-help-in-getting-recanned-rules-into-new-session-tp4028975.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] 6.0.1.F Need help in getting recanned rules into new session

2014-03-26 Thread SrjTx
Could you please give me an example of the ranges?

I tried the following based on a couple google searches, but they result in
NullPointerExceptions.

releaseId = kieServices.newReleaseId("com.xyz.policy",
"cep", 
"[1.0,"); 
releaseId = kieServices.newReleaseId("com.xyz.policy",
"cep", 
"[1.0-10.0"); 



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Need-help-in-getting-recanned-rules-into-new-session-tp4028975p4028981.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] 6.0.1.F Duplicate rule error when I rename or copy a guided rule

2014-06-06 Thread SrjTx
The renamed rule or the copy has the original rule name in the source - which
you can't change.

Is there a fix for this already in git hub?





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Duplicate-rule-error-when-I-rename-or-copy-a-guided-rule-tp4029910.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] 6.0.1.F Enumerations that hit class that access DB don't update as expected

2014-06-06 Thread SrjTx
I have a class xyz that accesses a DB to populate the dropdown:

'mybean.q1' : (new QueryThins()).getList("FOO", "BAR")

This works, except that when the backing store changes, the dropdown don't
update even if you leave and re-enter the editor.  I have a workaround
below.

I there a fix for this on github?

I have been searching github checkins by cloning and doing "git search"
within eclipse, but didn't find anything.  Are there any other ways to
search commits that might be a better approach?


workaround
1. Edit the Integration.enumeration file. 
   - Click the [Add enum] to create a blank entry at the bottom of the
list 
   - Click [-] to delete that enum 
   - Save 
2. Close Any Rules that are open. 
3. Reopen a Rule. The Dropdown will be refreshed. 

Next time through, delete the blank entry so the .enumeration is dirty. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-Enumerations-that-hit-class-that-access-DB-don-t-update-as-expected-tp4029913.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] 6.0.1.F How to find mapping between GIT checkin and JIRA issue?

2014-06-12 Thread SrjTx
If I am looking at the checkin from drools-wb
dacd7fb8: BZ1047761 - No way to rename a guided rule using the UI

How do I find the description of the defect in the JIRA database?

I did a search on the JIRA page
https://issues.jboss.org/issues/?jql=text%20~%20%22now%20way%20to%20rename%20a%20guided%20rule%22

But I could not find it.

Am I looking in the right place?




--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-find-mapping-between-GIT-checkin-and-JIRA-issue-tp4030022.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