OlliSee | 1 Feb 2011 17:33
Picon
Favicon

Re: Drools Server 5.1.1 - can't run test.jsp


HI Esteban,

thanks for your hint.. But it didn't work out.. startup was fine again, now
only without that "INFO". But still impossible to run the test.jsp. There's
still this single warning ("WARNUNG") in the log. Does that happen to be a
problem?

Anyone got ideas?
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2398395.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

JeffMax | 1 Feb 2011 17:54
Picon
Gravatar

Re: Drools Server 5.1.1 - can't run test.jsp


I found when I was setting up the server that the default url for posting
required two consecutive "kservice/"'s because of the way the web.xml is
setup. 

It looks like the root of the stack trace is a 404, so I would try posting
to http://localhost:8080/drools-server-app/kservice/kservice/rest/execute,
or since that is probably being done by the test.jsp, you could try the
following:

 In camel-server.xml, change the line that says "address="/kservice/rest" to
just "address="/rest".

A while ago I wrote a post that might be of some help, it is not exactly
what you are trying to do, but I believe if you were to follow it, it might
help with understanding the drools-server.

http://drools-java-rules-engine.46999.n3.nabble.com/Sending-requests-to-the-Drools-Execution-Server-from-an-external-source-td1776466.html

Jeff

--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2398620.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

(Continue reading)

OlliSee | 4 Feb 2011 12:00
Picon
Favicon

Re: Drools Server 5.1.1 - can't run test.jsp


Thank you. 
I found the main problem, though. 
In the camel-client.xml, the route points to
cxfrs://http://localhost:8080/drools-server-app/kservice/rest
but cxfrs://http://localhost:8080/drools-5.1.1-server/kservice/rest is
right. Then it works, if I also apply your little hint. Thanks.

Now another question: 

Since the instantiated KnowledgeSession is now hidden somewhere. How can I
access it from other classes directly (not through the REST interface)?
(Like: ksession.insert(event))
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2423270.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

IcedDante | 28 Jul 2011 19:21
Picon

Re: Drools Server 5.1.1 - can't run test.jsp

Hang on- I tried making this same change. I copied over the
drools-camel-server-5.2.0.Final.WAR file to my Tomcat-5 webapps directory. I
am using the droolsjbpm-integration-distribution-5.2.0.Final release here.

I too had the invalid url in my *camel-client.xml* file so I modified it for
my web app:

    <route>
       <from uri="direct://kservice"/>
       <policy ref="droolsPolicy">
         <to
uri="cxfrs://http://localhost:8080/drools-camel-server-5.2.0.Final/kservice/rest"/>
       </policy>
    </route>

But it is still not working for me. Here is a snippet of the stacktrace:

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: org.apache.camel.CamelExecutionException:
Exception occurred during execution on the exchange: Exchange[Message:
<batch-execution lookup="ksession1">
  <insert out-identifier="message">
(Continue reading)

marnold | 14 Dec 2011 10:16
Picon

Re: Drools Server 5.1.1 - can't run test.jsp

Mr/Ms. IcedDante,

I had the same problem as you.  I resolved it by changing the 'from uri' to
"direct://kservice*/rest*" in *camel-client.xml*, ie: 

It's a shame the Drools Server doesn't work as downloaded, and you must make
changes simply to have the test page work.

Regards

--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p3584909.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Mauricio Salatino | 14 Dec 2011 23:46
Picon
Gravatar

Re: Drools Server 5.1.1 - can't run test.jsp

We can fix that quickly if the community reports those problems..
If you find that kind of issues you can create a jira issue using the
jira jboss portal.

Cheers

On Wed, Dec 14, 2011 at 4:16 AM, marnold <malcolmarnold <at> gmail.com> wrote:
> Mr/Ms. IcedDante,
>
> I had the same problem as you.  I resolved it by changing the 'from uri' to
> "direct://kservice*/rest*" in *camel-client.xml*, ie:
>
>
>
> It's a shame the Drools Server doesn't work as downloaded, and you must make
> changes simply to have the test page work.
>
> Regards
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p3584909.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

--

-- 
 - CTO  <at>  http://www.plugtree.com
 - MyJourney  <at>  http://salaboy.wordpress.com
(Continue reading)


Gmane