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 class="gmail_quote">On Fri, May 20, 2011 at 3:30 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;">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>
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> Observer<br>
May 20, 2011 11:55:59 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging<br>
WARNING: Interceptor for {<a href="http://localhost:8090/drools-server/kservice/rest%7DWebClient" target="_blank">http://localhost:8090/drools-server/kservice/rest}WebClient</a> has thrown exception, unwinding now<br>
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>
<div><div></div><div class="h5">____________________<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of Mauricio Salatino<br>

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>
2011/5/18 Abhay B. Chaware &lt;<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>&gt;<br>
<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>
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> Observer<br>
<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>
<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>
<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>
<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>