Re: [rules-users] JBossRules and JAVA Servlet / JSP (part2)

2007-07-20 Thread Burr Sutter

I have a WAR with a working WS that uses Drools 3.0.1

Would that help?

If so, just let me know and I can ship it to you.

Burr

Mohammed JBossRules wrote:



2007/7/20, Mohammed JBossRules [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


Hi, 
an other question , when i'm trying to execute the same code in

the sample test java file provided  by the wizard, I get some
other errors :

java.lang.NoClassDefFoundError: org/drools/WorkingMemory
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0 (Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)
at org.apache.catalina.core.StandardWrapper.allocate (
StandardWrapper.java:806)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(Http11Protocol.java:581)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)


it works fine if i'm using a simple class, but when i try to use
my servlet, it falls; 


and finally, is it possible to contribute withe a tutorial showing
how to set up drools on eclipse and running a DroolsTest sample
file,(arabic, english and frensh version)  that's all i can
propose for the moment.

thank you.






2007/7/20, Mohammed JBossRules  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]:

hello,
Thank you all for your replays; as you've suggested, what i should
import into my build path was not the core and compiler but
all the set
contained in the drools library, maybe that would help someone
later!
here is the list of jars
antlr-runtime.jar
drools-compiler.jar
drools-core.jar
drools-decisiontables.jar
drools-documentation.jar
drools-jsr94.jar
jsr94.jar
junit.jar
jxl.jar
mvel14.jar
xercesImpl.jar
xml-apis.jar
xpp3.jar
xstream.jar
Thankyou Mark for the link
with kind regards,

ps: tried many times to post this mail yesterday but seems that it
doesn't work, sorry if you received it more than once!
Mohammed JBossRules wrote:
 Hello,

 I'm a new user for JBossRules, and I'm feeling like turning
around
 since a while, so i thought that sole body could help...
 I'm using JBossRules( V4.0.0.12865MR3) on eclipse (Version:
3.3.0 Build
 id: I20070621-1340) on MS-Windows XP and  Java(TM) SE Runtime
 Environment (build 1.6.0_01-b06)
 now the problem is how to use my rules (simple rules in a DRL
file) in
 a dynamic project based on JSP/Servlets...
 i've imported the compiler, the core, jsr94, decisiontable,
and also
 the core 3.2.3 jars to my build path , but when i try to
execute the
 same code i'm having errors like:
 The import org.drools cannot be resolved
 but i have imported the core!!
 what's wrong? help please

 regards
 ___
 rules-users mailing list
 rules-users@lists.jboss.org mailto: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] Web service deployment

2007-03-07 Thread Burr Sutter

I've done this for JBossWS (not Axis) running on the JBoss AS.

Let me know if you are interested in the example.

Burr


Michael Neale wrote:
sounds like the classes that are visible to axis are not visible to 
rules - depends how you are packaging up your application - war or ear?


On 3/7/07, *Jones, Alan R * [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi,
 
Is there a way to deploy JBoss Rules so that it's exposed as a web

service in Axis2? I keep getting server side errors where Drools
is not able to resolve/recognize the object passed into the rule.
How can I get the objects on the classpath properly for Drools to
find it?
 



aj



___
rules-users mailing list
rules-users@lists.jboss.org mailto: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