Hello,
I have a problem using execution server. It sends a NoClassDefFoundError.
I search for hours, but find nothing...
Why I have done, in guvnor:
I have created :
-- a package "com.myorg.myapp"
---- a declarative model "Model1"
------ with a fact "Fact1"
-------- with a text field "field1"
-------- with an integer field "field2"
---- a Business Rule "rule1"
------ which test for the "field1" value, and set the "field2" to a
dummy
value.
I then created a snapshot called 'release'
I created a myappAgent.properties with the following values:
name=mrgAgent
newInstance=true
url=
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com....
poll=60
I put the file in drools-server classes directory
I then tried to call execution server using CURL:
curl --data "<knowledgebase-request><
inOutFacts><named-fact><id>Fact1</id><fact
class='com.myorg.myapp.Fact1'><field1>Any
response?</field1></fact></named-fact></inOutFacts></knowledgebase-request>"
http://localhost:8080/drools-server/knowledgebase/myappAgent
And the server (drools-server I assume, not guvnor ?), send me this
response:
...
ling this request.</u></p><p><b>exception</b>
<pre>javax.servlet.ServletException: Servlet execution threw an exception
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
</pre></p><p><b>root cause</b>
<pre>java.lang.NoClassDefFoundError:
com/myorg/myapp/Fact1
ASMAccessorImpl_87013581264610722640.getValue(Unknown Source)
org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:66)
org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:99)
org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:107)
org.mvel2.MVEL.executeExpression(MVEL.java:978)
org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:87)
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:934)
org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:885)
org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1086)
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:660)
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:637)
org.drools.reteoo.ReteooStatelessSession.execute(ReteooStatelessSession.java:203)
org.drools.server.KnowledgeStatelessServlet.doService(KnowledgeStatelessServlet.java:152)
org.drools.server.KnowledgeStatelessServlet.doPost(KnowledgeStatelessServlet.java:82)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
What have I done wrong ???
Please ,help me !!!
Regards,
Régis Ramillien