How to use kie-workbench with eclipse.

701 views
Skip to first unread message

Domengie Jean

unread,
Nov 10, 2016, 9:06:48 AM11/10/16
to Drools Setup
Hi,

I installed Drools 6.4.0.Final drools on my workstation (kie-wb and kie-server on wildfly 9) and create sample project that run.

Now I want to recover my project on Eclipse to add functionalities, and share data objects with external application, but I don't understande how to do.

I have found on web a sample with use 'git' but if i can pull project to eclispe i don't push modification on kie-wb.

Can you explaine me what is the best way and her steps.

Thank you for your help

Michael Anstis

unread,
Nov 10, 2016, 11:55:08 AM11/10/16
to drools...@googlegroups.com
If you "git clone" your repository with the SSH protocol you can pull from the workbench and push back to the workbench.

For example: git clone ssh://admin@host:8001/repository

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/548f1a1d-9f3e-4cdd-83e3-4e55236ebcdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Domengie Jean

unread,
Nov 10, 2016, 12:59:55 PM11/10/16
to Drools Setup
Michael

Thank you for your reply.

I tried the ssh protocol and have the following error in Eclipse

And I find in log file from the server the following lines:

2016-11-10 18:48:42,831 INFO  [org.uberfire.ext.metadata.io.BatchIndex] (EJB default - 1) Starting indexing of default://master@test/ ...
2016-11-10 18:48:46,807 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (default task-34) KieModule was added: MemoryKieModule[releaseId=mortgages:mortgages:0.0.1]
2016-11-10 18:49:00,419 INFO  [org.uberfire.ext.metadata.io.BatchIndex] (EJB default - 1) Completed indexing of default://master@test/
2016-11-10 18:49:10,456 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-1) Server session created from /127.0.0.1:60532
2016-11-10 18:49:10,459 INFO  [org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider] (sshd-SshServer[14e67d8d]-nio2-thread-1) Generating host key...
2016-11-10 18:49:10,597 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-5) Kex: server->client aes128-ctr hmac-md5 none
2016-11-10 18:49:10,598 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-5) Kex: client->server aes128-ctr hmac-md5 none
2016-11-10 18:49:20,174 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-2) Server session created from /127.0.0.1:60541
2016-11-10 18:49:20,283 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-1) Kex: server->client aes128-ctr hmac-md5 none
2016-11-10 18:49:20,283 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-1) Kex: client->server aes128-ctr hmac-md5 none
2016-11-10 18:49:24,396 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-3) Server session created from /127.0.0.1:60543
2016-11-10 18:49:24,432 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-2) Kex: server->client aes128-ctr hmac-md5 none
2016-11-10 18:49:24,432 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[14e67d8d]-nio2-thread-2) Kex: client->server aes128-ctr hmac-md5 none

I am newbie and I do not understand where is the problem. I looking on the internet but I found nothing.

Can you help me solve this problem or tell me a direction where seek.


2016-11-10 18_49_39-Transport Error.png

Michael Anstis

unread,
Nov 10, 2016, 2:47:38 PM11/10/16
to drools...@googlegroups.com
Let's make things more simple.

Can you use "git clone ssh://admin@localhost:8001/test" from the command line?

I assume you have a "admin" user and a repository called "test".

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Domengie Jean

unread,
Nov 10, 2016, 5:42:43 PM11/10/16
to Drools Setup
Hi,

I don't know if it's important but my workstation is under Windows 8.

Test repository it is a clone of uf-playground (see screenshot).

Command line git clone ssh://admin@localhost:8001/test return the message 

"Unable to negotiate with 127.0.0.1: no matching host key type found. their offer:ssh-dss
fatal : Could not read remote repository.
Please make sure you have the correct access rights and the repository exists."

And i found in log to wildfly after use the command line

2016-11-10 21:48:22,685 INFO  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[213265d7]-nio2-thread-3) Server session created from /127.0.0.1:50439
2016-11-10 21:48:22,685 WARN  [org.apache.sshd.server.session.ServerSession] (sshd-SshServer[213265d7]-nio2-thread-5) Exception caught: java.lang.IllegalStateException: Unable to negotiate key exchange for server host key algorithms (client: ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ssh-ed2551...@openssh.com,ssh-rsa-...@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-rsa / server: ssh-dss)
    at org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1109)
    at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:357)
    at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
    at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)
    at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
    at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
    at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)
    at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
    at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
    at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
    at sun.nio.ch.Invoker$2.run(Invoker.java:218)
    at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

It's security problem ? Problem on public/private key ?

Thank
2016-11-10 21_14_46-KIE Drools Workbench.png
2016-11-10 21_42_23-Invite de commandes.png
Message has been deleted

Domengie Jean

unread,
Nov 11, 2016, 9:59:01 AM11/11/16
to Drools Setup
After search on web I add config file in c:/users/jdo/.ssh with

Host 127.0.0.1
    HostKeyAlgorithms +ssh-dss

Host localhost
    HostKeyAlgorithms +ssh-dss

And now when I use command line git clone ssh://admin@localhost:8001/test I have this message :

Cloning into 'test'...
Password authentication
Password:
Password authentication
Password:
Password authentication
Password:
admin@localhost's password:
Permission denied, please try again.
admin@localhost's password:
Permission denied, please try again.
admin@localhost's password:
Permission denied (password,keyboard-interactive).
fatal: Could not read from remote repository.

Michael Anstis

unread,
Nov 11, 2016, 1:28:57 PM11/11/16
to drools...@googlegroups.com
The (Workbench SSH) server defaults to DSA algorithm for keys etc.

I looks like Windows is preferring a set of alternatives (I'm not security expert, but DSA is considered "weak").. You can set System Property "org.uberfire.nio.git.ssh.algorithm" to an alternative algorithm

I guess (I'm no expert here) that you could specify one listed in the original error message; e.g. RSA.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Domengie Jean

unread,
Nov 13, 2016, 5:40:14 AM11/13/16
to Drools Setup
Hi Michael,

I have found the problem. It's not ssh but me, I have confused the admin login for wildfly, the account created when clone the repository in kie-wb and the admin account of kie-wb.

For use ssh it's admin kie-wb account.

Thank for your help.
Reply all
Reply to author
Forward
0 new messages