Great. I&#39;m used to use SOAP UI to test drools server. You can find more about testing the 5.2 version here:<br><a href="http://salaboy.wordpress.com/2011/04/05/drools-in-real-life-droolsjbpm5-server-first-steps/">http://salaboy.wordpress.com/2011/04/05/drools-in-real-life-droolsjbpm5-server-first-steps/</a><br>
<br><div class="gmail_quote">On Fri, May 20, 2011 at 8:33 AM, Abhay B. Chaware <span dir="ltr">&lt;<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Mauricio<br>
<br>
In desperate efforts to get something to work, was trying things out. But then I reverted everything, went with the out-of-the-box war file and was able to connect using PHP soap client .. with this code.<br>
<br>
==========================<br>
                $url = &quot;<a href="http://192.168.56.101:8080/drools-server/kservice/rest/execute" target="_blank">http://192.168.56.101:8080/drools-server/kservice/rest/execute</a>&quot;;<br>
                $post_data = file_get_contents(&quot;drools-request.xml&quot;);<br>
                $headers = array(&quot;Content-Type&quot; =&gt; &#39;text/plain; charset=utf-8&#39;,&quot;Accept&quot; =&gt; &quot;text/plain; charset=utf-8&quot;);<br>
                $rta = http_post_data($url, $post_data,array(&#39;headers&#39; =&gt; $headers ));<br>
                echo &quot;Response : &quot;.$rta;<br>
==========================<br>
<br>
drools-request.xml had this :<br>
==========================<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
        &lt;batch-execution lookup=&quot;ksession1&quot;&gt;<br>
         &lt;insert out-identifier=&quot;message&quot;&gt;<br>
             &lt;org.test.Message&gt;<br>
                &lt;text&gt;MYINPUTSTRING&lt;/text&gt;<br>
             &lt;/org.test.Message&gt;<br>
          &lt;/insert&gt;<br>
   &lt;fire-all-rules/&gt;<br>
 &lt;/batch-execution&gt;<br>
==========================<br>
<br>
<br>
<br>
________________________________________<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of Mauricio Salatino [<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>]<br>

Sent: Friday, May 20, 2011 4:53 PM<br>
<div class="im">To: Rules Users List<br>
Subject: Re: [rules-users] drools-server<br>
<br>
</div><div class="im">Why do you change this:<br>
1. change the rsServer address from &quot;/rest&quot; to &quot;/kservice/rest&quot; in camel-server.xml<br>
2. change the route from &quot;direct://kservice&quot; to &quot;direct://kservice/rest&quot; camel-client.xml<br>
<br>
What error throw you when you don&#39;t change it?<br>
Greetings.<br>
<br>
</div><div class="im">On Fri, May 20, 2011 at 3:30 AM, Abhay B. Chaware &lt;<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>&lt;mailto:<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>&gt;&gt; wrote:<br>

I tried the latest one on tomcat.. drools-camel-server-5.2.0M2.war<br>
<br>
To get things to work to some extent, I had to do this -<br>
1. change the rsServer address from &quot;/rest&quot; to &quot;/kservice/rest&quot; in camel-server.xml<br>
2. change the route from &quot;direct://kservice&quot; to &quot;direct://kservice/rest&quot; camel-client.xml<br>
<br>
Then test.jsp gave me this reponse.<br>
<br>
=====================<br>
Sending Test Message<br>
Sending Message: &quot;Hello World&quot;<br>
Response: &quot;org.apache.cxf.jaxrs.impl.ResponseImpl@169e486&quot;<br>
=====================<br>
<br>
But on console, I am getting errors :<br>
<br>
what could be wrong ?<br>
<br>
=====================<br>
May 20, 2011 11:55:59 AM org.apache.cxf.transport.servlet.ServletController invoke<br>
</div>WARNING: Can&#39;t find the request for <a href="http://localhost:8090/drools-server/kservice/rest/execute%27s" target="_blank">http://localhost:8090/drools-server/kservice/rest/execute&#39;s</a>&lt;<a href="http://localhost:8090/drools-server/kservice/rest/execute%27s" target="_blank">http://localhost:8090/drools-server/kservice/rest/execute%27s</a>&gt; Observer<br>

<div class="im">May 20, 2011 11:55:59 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging<br>
</div>WARNING: Interceptor for {<a href="http://localhost:8090/drools-server/kservice/rest%7DWebClient" target="_blank">http://localhost:8090/drools-server/kservice/rest}WebClient</a>&lt;<a href="http://localhost:8090/drools-server/kservice/rest%7DWebClient" target="_blank">http://localhost:8090/drools-server/kservice/rest%7DWebClient</a>&gt; has thrown exception, unwinding now<br>

<div class="im">org.apache.cxf.interceptor.Fault: Could not send Message.<br>
       at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)<br>
       at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)<br>
.<br>
.<br>
.<br>
.<br>
Caused by: java.io.IOException: IOException invoking <a href="http://localhost:8090/drools-server/kservice/rest/execute" target="_blank">http://localhost:8090/drools-server/kservice/rest/execute</a>: HTTP response &#39;404: Not Found&#39;<br>

       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)<br>
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)<br>
       at java.lang.reflect.Constructor.newInstance(Unknown Source)<br>
       ... 75 more<br>
Caused by: java.io.IOException: HTTP response &#39;404: Not Found&#39;<br>
       at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2194)<br>
       at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)<br>
       at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)<br>
       ... 78 more<br>
=====================<br>
<br>
<br>
<br>
_______________<br>
_____<br>
____________________<br>
</div>From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>&lt;mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>&gt; [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>&lt;mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>&gt;] On Behalf Of Mauricio Salatino<br>

<div class="im">Sent: Wednesday, May 18, 2011 10:32 PM<br>
To: Rules Users List<br>
Subject: Re: [rules-users] drools-server<br>
<br>
Hi, I was refactoring and fixing some issues with Drools Server. The 5.2 version can be deployed out of the box into jboss/tomcat/jetty without any modification as far as I know. Can you try this new version?<br>
Greetings.<br>
<br>
<br>
</div>2011/5/18 Abhay B. Chaware &lt;<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>&lt;mailto:<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>&gt;&gt;<br>

<div class="im"><br>
Hi<br>
<br>
I am trying to get the default drools-server.war (drools-5.1.1-server.war to be specific ) to work on tomcat.<br>
<br>
When I access <a href="http://localhost:8090/drools-5.1.1-server/kservice/rest" target="_blank">http://localhost:8090/drools-5.1.1-server/kservice/rest</a>  ,  I am getting “No service found” in the browser and  in the console,<br>

<br>
=================================<br>
<br>
May 18, 2011 3:43:44 PM org.apache.cxf.transport.servlet.ServletController invoke<br>
<br>
</div>WARNING: Can&#39;t find the request for <a href="http://localhost:8090/drools-5.1.1-server/kservice/soap%27s" target="_blank">http://localhost:8090/drools-5.1.1-server/kservice/soap&#39;s</a>&lt;<a href="http://localhost:8090/drools-5.1.1-server/kservice/soap%27s" target="_blank">http://localhost:8090/drools-5.1.1-server/kservice/soap%27s</a>&gt; Observer<br>

<div class="im"><br>
=================================<br>
<br>
<br>
<br>
I am able to pass the deployment of the war file and tomcat starts fine. No errors related to Spring context etc, and I also see the line in the log :<br>
<br>
=================================<br>
<br>
INFO: Deploying web application archive drools-5.1.1-server.war<br>
<br>
INFO  18-05 15:42:36,280 (ContextLoader.java:initWebApplicationContext:189)      Root WebApplicationContext: initialization started<br>
<br>
May 18, 2011 3:42:48 PM org.apache.cxf.endpoint.ServerImpl initDestination<br>
<br>
INFO: Setting the server&#39;s publish address to be /kservice/rest<br>
<br>
DEBUG 18-05 15:42:49,146 (ContextLoader.java:initWebApplicationContext:204)      Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]<br>

<br>
INFO  18-05 15:42:49,146 (ContextLoader.java:initWebApplicationContext:209)      Root WebApplicationContext: initialization completed in 12866 ms<br>
<br>
May 18, 2011 3:42:49 PM org.apache.cxf.transport.servlet.CXFServlet updateContext<br>
<br>
INFO: Load the bus with application context<br>
<br>
May 18, 2011 3:42:49 PM org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory<br>
<br>
INFO: Servlet transport factory already registered<br>
<br>
=================================<br>
<br>
<br>
<br>
<br>
This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability for virus infected mails.<br>

<br>
_______________________________________________<br>
rules-users mailing list<br>
</div><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&lt;mailto:<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
<div class="im"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
 - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
 - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
 - Salatino &quot;Salaboy&quot; Mauricio -<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
</div><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&lt;mailto:<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
<div><div></div><div class="h5"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<br>
--<br>
 - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
 - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
 - Salatino &quot;Salaboy&quot; Mauricio -<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>