title: helloworld on Kie Workbench and Kie Server version 6.3.0
body: <p>I could setup KIE Execution Server (6.3.0.Final) and Workbench (6.3.0.Final) on Wildfly 8.1.0.Final using information available in blog: 
  <a href="http://mswiderski.blogspot.in/2015/10/installing-kie-server-and-workbench-on.html" rel="nofollow noreferrer">http://mswiderski.blogspot.in/2015/10/installing-kie-server-and-workbench-on.html</a>
  Both server and Workbench are working fine and Server is visible in Workbench under "Server Management Browser" tab.</p>
  
  <p>My next step is to deploy a simple container on server and test REST GET and POST calls, hence I followed steps mentioned in Question: <a href="https://stackoverflow.com/questions/32960098/helloworld-using-drools-workbench-kie-server">HelloWorld using Drools Workbench &amp; KIE Server</a></p>
  
  <p>The only change in Java and DRL code is with respect to package. Below is my Java code:</p>
  
  <pre><code>package test.myproject;
  
  /**
   * This class was automatically generated by the data modeler tool.
   */
  
  public class HelloWorld implements java.io.Serializable
  {
  
     static final long serialVersionUID = 1L;
  
     private java.lang.String message;
  
     public HelloWorld()
     {
     }
  
     public java.lang.String getMessage()
     {
        return this.message;
     }
  
     public void setMessage(java.lang.String message)
     {
        this.message = message;
     }
  
     public HelloWorld(java.lang.String message)
     {
        this.message = message;
     }
  
  }
  </code></pre>
  
  <p>DRL file code:</p>
  
  <pre><code>package test.myproject;
  
  import test.myproject.HelloWorld;
  
  rule "hello"
  
  when 
      HelloWorld(message == "Joe");
  then
      System.out.println("Hello Joe!");
  end
  </code></pre>
  
  <p>The code is built successfully and deployed as container on the server. A GET Query using RESTClient/PostMan/Advanced REST Client gives proper response.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;response type="SUCCESS" msg="Info for container myproject"&gt;
      &lt;kie-container container-id="myproject" status="STARTED"&gt;
          &lt;release-id&gt;
              &lt;artifact-id&gt;MyProject&lt;/artifact-id&gt;
              &lt;group-id&gt;test&lt;/group-id&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/release-id&gt;
          &lt;resolved-release-id&gt;
              &lt;artifact-id&gt;MyProject&lt;/artifact-id&gt;
              &lt;group-id&gt;test&lt;/group-id&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/resolved-release-id&gt;
          &lt;scanner status="DISPOSED"/&gt;
      &lt;/kie-container&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>However When I POST to container with below content:</p>
  
  <pre><code>&lt;batch-execution lookup="defaultKieSession"&gt;
  &lt;insert out-identifier="message" return-object="true" entrypoint="DEFAULT"&gt;
      &lt;test.myproject.HelloWorld&gt;
          &lt;message&gt;Joe&lt;/message&gt;
      &lt;/test.myproject.HelloWorld&gt;
  &lt;/insert&gt;
  </code></pre>
  
  <p>Note that I did make changes to XML as per change in code. I did try with different options like  etc, but I get response as :</p>
  
  <pre><code>Status Code: 405 Method Not Allowed
  Allow: HEAD, DELETE, GET, OPTIONS, PUT
  Cache-Control: no-cache, no-store, must-revalidate
  Connection: keep-alive
  Content-Length: 0
  Date: Thu, 10 Dec 2015 05:29:09 GMT
  Expires: 0
  Pragma: no-cache
  Server: WildFly/8
  X-Powered-By: Undertow/1
  </code></pre>
  
  <p>Looks like POST option is not allowed, Hence tried PUT but got response as:</p>
  
  <pre><code>Status Code: 415 Unsupported Media Type
  Cache-Control: no-cache, no-store, must-revalidate
  Connection: keep-alive
  Content-Length: 0
  Date: Thu, 10 Dec 2015 05:32:17 GMT
  Expires: 0
  Pragma: no-cache
  Server: WildFly/8
  X-Powered-By: Undertow/1
  </code></pre>
  
  <p>Can anyone tell me where I am going wrong. I also checked log file and see below error when POST is called:</p>
  
  <p>2015-12-10 10:59:09,208 WARN  [org.jboss.resteasy.core.ExceptionHandler] (default task-48) failed to execute: javax.ws.rs.NotAllowedException: No resource method found for POST, return 405 with Allow header
      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:375) [resteasy-jaxrs-3.0.8.Final.jar:]
      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:114) [resteasy-jaxrs-3.0.8.Final.jar:]</p>
  
  <p>and error when PUT is called:</p>
  
  <p>2015-12-10 11:02:17,127 WARN  [org.jboss.resteasy.core.ExceptionHandler] (default task-50) failed to execute: javax.ws.rs.NotSupportedException: Cannot consume content type
      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:380) [resteasy-jaxrs-3.0.8.Final.jar:]
      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:114) [resteasy-jaxrs-3.0.8.Final.jar:]</p>