Hi Mauricio
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.
==========================
$url =
"http://192.168.56.101:8080/drools-server/kservice/rest/execute";
$post_data = file_get_contents("drools-request.xml");
$headers = array("Content-Type" => 'text/plain;
charset=utf-8',"Accept" => "text/plain; charset=utf-8");
$rta = http_post_data($url, $post_data,array('headers' =>
$headers ));
echo "Response : ".$rta;
==========================
drools-request.xml had this :
==========================
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution lookup="ksession1">
<insert out-identifier="message">
<org.test.Message>
<text>MYINPUTSTRING</text>
</org.test.Message>
</insert>
<fire-all-rules/>
</batch-execution>
==========================
________________________________________
From: [email protected] [[email protected]]
On Behalf Of Mauricio Salatino [[email protected]]
Sent: Friday, May 20, 2011 4:53 PM
To: Rules Users List
Subject: Re: [rules-users] drools-server
Why do you change this:
1. change the rsServer address from "/rest" to "/kservice/rest" in
camel-server.xml
2. change the route from "direct://kservice" to "direct://kservice/rest"
camel-client.xml
What error throw you when you don't change it?
Greetings.
On Fri, May 20, 2011 at 3:30 AM, Abhay B. Chaware
<[email protected]<mailto:[email protected]>> wrote:
I tried the latest one on tomcat.. drools-camel-server-5.2.0M2.war
To get things to work to some extent, I had to do this -
1. change the rsServer address from "/rest" to "/kservice/rest" in
camel-server.xml
2. change the route from "direct://kservice" to "direct://kservice/rest"
camel-client.xml
Then test.jsp gave me this reponse.
=====================
Sending Test Message
Sending Message: "Hello World"
Response: "org.apache.cxf.jaxrs.impl.ResponseImpl@169e486"
=====================
But on console, I am getting errors :
what could be wrong ?
=====================
May 20, 2011 11:55:59 AM org.apache.cxf.transport.servlet.ServletController
invoke
WARNING: Can't find the request for
http://localhost:8090/drools-server/kservice/rest/execute's<http://localhost:8090/drools-server/kservice/rest/execute%27s>
Observer
May 20, 2011 11:55:59 AM org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNING: Interceptor for
{http://localhost:8090/drools-server/kservice/rest}WebClient<http://localhost:8090/drools-server/kservice/rest%7DWebClient>
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
.
.
.
.
Caused by: java.io.IOException: IOException invoking
http://localhost:8090/drools-server/kservice/rest/execute: HTTP response '404:
Not Found'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
... 75 more
Caused by: java.io.IOException: HTTP response '404: Not Found'
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2194)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
... 78 more
=====================
_______________
_____
____________________
From:
[email protected]<mailto:[email protected]>
[mailto:[email protected]<mailto:[email protected]>]
On Behalf Of Mauricio Salatino
Sent: Wednesday, May 18, 2011 10:32 PM
To: Rules Users List
Subject: Re: [rules-users] drools-server
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?
Greetings.
2011/5/18 Abhay B. Chaware
<[email protected]<mailto:[email protected]>>
Hi
I am trying to get the default drools-server.war (drools-5.1.1-server.war to be
specific ) to work on tomcat.
When I access http://localhost:8090/drools-5.1.1-server/kservice/rest , I am
getting “No service found” in the browser and in the console,
=================================
May 18, 2011 3:43:44 PM org.apache.cxf.transport.servlet.ServletController
invoke
WARNING: Can't find the request for
http://localhost:8090/drools-5.1.1-server/kservice/soap's<http://localhost:8090/drools-5.1.1-server/kservice/soap%27s>
Observer
=================================
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 :
=================================
INFO: Deploying web application archive drools-5.1.1-server.war
INFO 18-05 15:42:36,280 (ContextLoader.java:initWebApplicationContext:189)
Root WebApplicationContext: initialization started
May 18, 2011 3:42:48 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /kservice/rest
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]
INFO 18-05 15:42:49,146 (ContextLoader.java:initWebApplicationContext:209)
Root WebApplicationContext: initialization completed in 12866 ms
May 18, 2011 3:42:49 PM org.apache.cxf.transport.servlet.CXFServlet
updateContext
INFO: Load the bus with application context
May 18, 2011 3:42:49 PM org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceDestinationFactory
INFO: Servlet transport factory already registered
=================================
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.
_______________________________________________
rules-users mailing list
[email protected]<mailto:[email protected]>
https://lists.jboss.org/mailman/listinfo/rules-users
--
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
_______________________________________________
rules-users mailing list
[email protected]<mailto:[email protected]>
https://lists.jboss.org/mailman/listinfo/rules-users
--
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users