Error while sending PUT request to http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver response

748 views
Skip to first unread message

Vishnu Chalil

unread,
Jan 27, 2021, 3:06:22 AM1/27/21
to Drools Setup
I have tried setting up drools workbench and kie server in standalone mode.I tried setting this up with drools 6.5 Final and 7.48 Final. But both are throwing up the same error. Both the workbench and kie server has been deployed. The only error that throws up is

 Exception encountered while syncing with controller at http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver error Error while sending PUT request to http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver response code 405

Iam able to get the login window of business manager but cant move forward. Does anyone have any idea whats happening?

I followed the tutorial in the link below.

Luca Molteni

unread,
Jan 27, 2021, 3:44:26 AM1/27/21
to drools...@googlegroups.com
Hi Vishnu

To investigate the problem we need something more than the HTTP status code. Can you provide us some log or stacktrace?

HTTP 405 means that the PUT verb is not supported, so your request is invalid.

What kind of request are you creating?

L.M.

Vishnu Chalil

unread,
Jan 27, 2021, 4:02:04 AM1/27/21
to drools...@googlegroups.com
Hi Luca,

I havent send any request manually by postman or other tools. This is something showing in server log. I am getting the workbench window. But as soon as I try login with username and password the browser window gives a loading page as below.

 
loading.PNG

I added users via following commands

./add-user.bat -a -u kieserver -p kieserver1! -g kie-server
./add-user.bat -a -u workbench -p workbench! -g admin,kie-server

and ran the server with following command.

./standalone.bat --server-config=standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller

When I ran the above command the only suspicious thing I could find in the log is this


 [org.kie.server.services.impl.controller.DefaultRestControllerImpl] (KieServer-ControllerConnect) Exception encountered while syncing with controller at http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver error Error while sending PUT request to http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver response code 405


Best Regards,
Vishnu Chalil
Associate Engineer
INDIA | USA | UK | ISRAEL


--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/7FC20F38-B9FC-46FE-86AE-7167D6DE5483%40redhat.com.



DISCLAIMER: The information in this e-mail is confidential and may be legally privileged. Any opinions, advice or communication whatsoever contained herein are subject to the terms and conditions of the written and executed Agreement/Contract with Litmus7 by the intended recipient. In case of absence of such a written and executed Agreement/Contract, this communication shall not be legally binding and any responds/reactions resulting from this communication shall not be endorsed by Litmus7. Litmus7 do not guarantee that e-mail communications are secure or error-free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses.

Vishnu Chalil

unread,
Jan 27, 2021, 4:32:42 AM1/27/21
to drools...@googlegroups.com
The log is given below

ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-66) RESTEASY002010: Failed to execute: javax.ws.rs.NotAllowedException: RESTEASY003650: No resource method found for POST, return 405 with Allow header
        at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:382)
        at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:121)
        at org.jboss.resteasy.core.registry.RootNode.match(RootNode.java:43)
        at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:48)
        at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:445)
        at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:264)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:201)
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
        at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
        at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
        at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
        at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:835)

Best Regards,
Vishnu Chalil
Associate Engineer
INDIA | USA | UK | ISRAEL

Luca Molteni

unread,
Jan 28, 2021, 4:01:39 AM1/28/21
to drools...@googlegroups.com


> On 27 Jan 2021, at 10:32, Vishnu Chalil <vishnu...@litmus7.com> wrote:
>
> The log is given below
>
> ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-66) RESTEASY002010: Failed to execute: javax.ws.rs.NotAllowedException: RESTEASY003650: No resource method found for POST, return 405 with Allow header

It seems like there is some misconfiguration with security.

Can you try this distribution instead?

https://download.jboss.org/jbpm/release/7.48.0.Final/jbpm-server-7.48.0.Final-dist.zip

It has business central already installed and it should be easier for you to start

L.M.

Vishnu Chalil

unread,
Jan 28, 2021, 7:17:48 AM1/28/21
to drools...@googlegroups.com
Still no luck for me Luca. the same error comes in this too!

Best Regards,
Vishnu Chalil
Associate Engineer
INDIA | USA | UK | ISRAEL

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages