how to use existing git repository projects inside kie workbench

6,980 views
Skip to first unread message

Danish Ali

unread,
Apr 26, 2015, 12:53:28 PM4/26/15
to drools...@googlegroups.com
I have installed kie workbench 6.2.0.Final in JBOSS , I am able to clone a git repository inside kie workbench .I have few projects in that git repository but I am not getting those projects in my kie workbench and I am getting a message that repository not initialized, although I have no issue in eclipse to use git repository.

I would really appreciate if someone can give me some advice about how to get my existing git repository projects inside kie workbench.

Michael Anstis

unread,
Apr 26, 2015, 1:03:27 PM4/26/15
to drools...@googlegroups.com

Much as IDEs expect projects to adhere to a certain structure so does the Workbench; that supports authoring KIE projects: these must follow the standard Maven project structure and have a kmodule.xml file in project/META-INF.

Could you see the content of your imported repository in the File Explorer in the Administration perspective?

Sent on the move

On 26 Apr 2015 17:53, "Danish Ali" <danish...@gmail.com> wrote:
I have installed kie workbench 6.2.0.Final in JBOSS , I am able to clone a git repository inside kie workbench .I have few projects in that git repository but I am not getting those projects in my kie workbench and I am getting a message that repository not initialized, although I have no issue in eclipse to use git repository.

I would really appreciate if someone can give me some advice about how to get my existing git repository projects inside kie workbench.

--
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 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/0c1b2c5f-1266-48f3-acaa-fba1f3a9ba6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Danish Ali

unread,
Apr 27, 2015, 1:21:43 AM4/27/15
to drools...@googlegroups.com
Hi Michael,
Thanks a lot for you helpful reply , yes I can see content in imported repository in the File Explorer.
I have kmodule.xml file but yes that project is not a Maven project, I will convert project into Maven project structure.Please let me know if any other this is required.



--
You received this message because you are subscribed to a topic in the Google Groups "Drools Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-setup/m5cmkIXnpMc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-setup...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Danish Ali

unread,
Apr 28, 2015, 12:09:34 PM4/28/15
to drools...@googlegroups.com
HI Michael,
I am able to get project inside project explorer , but when I am trying to ope any data object or drl file I am getting below exception :
Error: "An error occurred during file loading". The server error is: "Editor model couldn't be loaded from path: 
and on cmd console I am getting exception unable to index, package could not be calculated. Is there any issue in check out from git hub.
Thanks

Michael Anstis

unread,
Apr 28, 2015, 1:32:46 PM4/28/15
to drools...@googlegroups.com

Can you share your repository (github URL) so I can clone to investigate? There are at least two issues: (1) the indexing of your .java files is failing (we index their content for impact analysis/future support for refactoring) (2) Editor Model could not be loaded.

I suspect you hava .java classes *not* in src/main/java inside your Project.

Sent on the move

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

Danish Ali

unread,
Apr 30, 2015, 12:50:25 PM4/30/15
to drools...@googlegroups.com
Thanks Michael,
please find below the url of my git repository:

https://github.com/syeddanishali/DatuFirst.git

Michael Anstis

unread,
Apr 30, 2015, 3:57:32 PM4/30/15
to drools...@googlegroups.com

Danish Ali

unread,
May 1, 2015, 12:22:42 AM5/1/15
to drools...@googlegroups.com
Thanks a lot Michael,
I will correct it and let you know.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-setup/m5cmkIXnpMc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-setup...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Liudmila Dobriakova

unread,
May 15, 2015, 8:59:07 AM5/15/15
to drools...@googlegroups.com
Hi Michael, Danish,
I have a Maven project in Eclipse which is running the jBPM 6.0.1.Final process and i would like to see it running and be able to modify it in kie-workbench, but i can't understand how to do this. Sorry for my ignorance, but i do not know how i can "clone the git project" to kie-workbench? what is it mean? i put my project on the git repository and how i have to proceed now?
Could u please explain me the steps? or send me the link where i can find it?
Thanks a lot in advance,
Liudmila

Michael Anstis

unread,
May 15, 2015, 1:56:29 PM5/15/15
to drools...@googlegroups.com
If you go to the Administration Perspective in the workbench and select Repositories->Clone you can clone an existing git repository.

The URL, for example (for a git repository on your local file system): file:///path/to/your/folder/containing/your/.gitignore/folder.

*Provided* the repository contains a *maven* compliant project structure *and* a META-INF/kmodule.xml (as required for KJAR projects) you should be able maintain it within the workbench.

Liudmila Dobriakova

unread,
May 18, 2015, 5:16:59 AM5/18/15
to drools...@googlegroups.com
Hi Michael, thanks for your prompt reply.
May be i didn't understand, but my question was if it is possible at all to make the project developed in Eclipse try to run into kie workbench? Not how to push the repository from the local machine to the kie-workbench repository on git.

Thanks a lot,
Mila

Michael Anstis

unread,
May 18, 2015, 5:19:53 AM5/18/15
to drools...@googlegroups.com
Can you please explain what you mean "run into kie workbench"?

For example, does your Eclipse developed project have a jBPM process and you want to run the process in the workbench?

Or, do you want to run your project in KIE's Execution server? 

Liudmila Dobriakova

unread,
May 18, 2015, 5:36:48 AM5/18/15
to drools...@googlegroups.com
I have a Eclipse project with jBPM process  (actially i have 2 of them: one is a jbpm process created from the default jbpm maven project provided by Eclipse IDE, i modified it to made it more siutable for my goal, and another Web project (service) which is calling the jbpm process triggered by a message arrived to the service, the web prject have a jbpm project as a maven dependency, so at the end i can have a war to be deployed on jboss server and execute it with no problem). I made it run on Eclipse, but was wondering if this could be run also on web console of jBPM?

Maciej Swiderski

unread,
May 18, 2015, 1:11:10 PM5/18/15
to drools...@googlegroups.com
As long as it’s kjar (includes META-INF/kmodule.xml file) it can be deployed and executed on workbench - kie-wb (not in kie-drools-wb which does not include jBPM runtime).

There are multiple ways of getting things available in workbench and this article [1] explains most of them: 

Hope this helps
Maciej



Liudmila Dobriakova

unread,
May 21, 2015, 4:25:20 AM5/21/15
to drools...@googlegroups.com

Hi Miciej,
Thanks for your response,
i was trying to follow the steps described in the link u provided.  And i get sticked with the first step: "So you first start with cloning of an existing repository."
It was not very clear for me what repository i have to clone, i suppose one already existing in kie-workbench, for instance jbpm-playground? So i run the following command from Git Bash: git clone ssh://localhost:9418/jbpm-playground
but it get stacked in "Cloning into 'jbpm-playground'..."
probably i'm doing something wrong? Could u tell me what am i doing wrong?
Thanks a lot for your support!

Maciej Swiderski

unread,
May 21, 2015, 5:34:37 AM5/21/15
to drools...@googlegroups.com
You should clone there repository you’d like to modify which might be jbpm-playground if there are projects that you’d like to work with.

When it comes to cloning operation you should use 8001 port that is default for ssh git server.


and it should give you the content of the entire jbpm-playground repo in the current directory

Maciej

Michael Anstis

unread,
May 21, 2015, 5:44:02 AM5/21/15
to drools...@googlegroups.com
We've gone full circle almost ;)

The original problem was a malformed Maven project structure. This I believe was fixed.

As I understand it, the project is in a GIT repository *outside* of the workbench; and the OP would like to have this project "run" inside jBPM's runtime.

So, I'd recommend going to the Administration Perspective->Repositories->Clone->[Enter details of your external GIT repository - URL being file://something-or-other).

*IF* the GIT repository is correctly structured you should be able to build the project in the workbench (Authoring Perspective->Project Editor->Build & Deploy). This should then deploy the resulting KJAR to jBPM's runtime.
 
There might be an alternative way to deploy a KJAR direct to jBPM's runtime (IDK, REST API).


Liudmila Dobriakova

unread,
May 21, 2015, 11:47:03 AM5/21/15
to drools...@googlegroups.com
Thanks!
Right!
i was able to clone it to the local folder, then i added my project folders there and then... i think i mess up something... now when i'm opening the KIE Workbench in browser i can't see anymore the list of projects and business processes as it was before...when i click on Build&Deploy button it build me successfully but the proccess couldn't be run, it give me an error Class not found.


In attachment is a screenshot of what i get.
I tryed to restart jbpm, but i can see always the same screen. i can't access to the business process design tool in common way, only doble clicking on sample.bpmn file on Respository explorer. But my doubts also is what i'm not sure what i'm deploing the same project i'm updating... :(

Any suggestion will be appreciated!
Thanks!
Liudmila
process.png

Maciej Swiderski

unread,
May 22, 2015, 6:07:16 AM5/22/15
to drools...@googlegroups.com
Liudmila,

since the project editor shows the project details it seems it was found properly. Though somehow UI is not complete. Have you closed the explorer manually by any chance? In 6.2 there is an option to restore all perspectives (a first aid kit icon next to logout button) which would help with this. You can try to logon with different user to see if the UI gets better.

You can go via administration perspective to see if all files were properly imported.

Looking at the screenshot it shows bunch of problems there so that project could not be built successfully due to this problems. The class not found means there are some classes expected by the project but not included in the project or its dependencies so double check the configuration there.

Maciej

For more options, visit https://groups.google.com/d/optout.
<process.png>

Liudmila Dobriakova

unread,
May 22, 2015, 10:59:26 AM5/22/15
to drools...@googlegroups.com
Thanks Maciej for your patience,
actually the bunch of error from the screen waere because i was trying to create the new business process to see if it change my screen and using admin access i removed the process created me the errors.

So following your suggestion i log out and login as admin to kie workbench console. And ... i get my usual screen! Thanks!
but before i did an error, i did Clone Repository from the kie-workbench and it clone me a wrong copy of what i was thinking to put on a workbench, so now i can see this instead of the correct one. :(

Another problem is what i followed your tutorial and opened in Eclipse the workspace where i cloned the repository using the following command: git clone git:localhost:9418/jbpm-playground (it copied me everythuing in the local folder), imported the project i wish to run in kie-workbench in eclipse, did Maven clean, maven install. Untill this point everything was fine. Then i did:
1. git add my_project
2. git commit my_project
3. git push origin master - and here i get an error
 ~/playground/jbpm-playground (master)
$ git push origin master
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

What i'm doing wrong? could it be because i used the wrong URL to clone the repository? but it was cloned...

Any suggestions?
Thanks a lot! I really appretiate your support!
Liudmila

Michael Anstis

unread,
May 22, 2015, 11:04:07 AM5/22/15
to drools...@googlegroups.com
To clone GIT repositories in the workbench (and to be able to push back to them) you need to use SSH:

For example : git clone ssh://admin@localhost:9418/jbpm-playground

You'll be prompted for your password.


Liudmila Dobriakova

unread,
May 22, 2015, 11:17:46 AM5/22/15
to drools...@googlegroups.com
Hi Michael, i'm getting the following error using your suggestion:
$ git clone ssh://admin@localhost:9418/jbpm-playground mila
Cloning into 'mila'...
ssh_exchange_identification: Connection closed by remote host

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

The only way i was able to clone repository is using :
$ git clone git://localhost:9418/jbpm-playground

Any thoughts?
Thanks,
Liudmila

Maciej Swiderski

unread,
May 22, 2015, 11:30:16 AM5/22/15
to drools...@googlegroups.com
for ssh use port 8001

Maciej

Michael Anstis

unread,
May 22, 2015, 11:32:07 AM5/22/15
to drools...@googlegroups.com
doh.. good catch Maciejs.. the evil of copy and paste!

Liudmila Dobriakova

unread,
May 22, 2015, 12:12:30 PM5/22/15
to drools...@googlegroups.com
Thanks! it works like a charm!
i can see now my process!


Liudmila Dobriakova

unread,
May 22, 2015, 12:19:28 PM5/22/15
to drools...@googlegroups.com
May be it's out of topic, but i will take a chance :) I managed to run the REST service which is calling jbpm process in Jboss 7 but when i'm deployng the same war on WildFly i'm getting persistence not found error. I checked the standlone-full.xml have the same setting for both serverse and in DB folder the jbpm-persistence-JPA2.xml are the same, so what could be wrong?
Any chance what u can give me a tips on this problem as well? :)
Thanks a lot for your support!
Liudmila

Maciej Swiderski

unread,
May 22, 2015, 12:38:25 PM5/22/15
to drools...@googlegroups.com
can you provide complete stack trace?

Maciej

Liudmila Dobriakova

unread,
May 22, 2015, 12:57:11 PM5/22/15
to drools...@googlegroups.com
Thanks,
not sure it is what u need, i attached the war.failed file, please let me know if u ned more details or anything else.


JAXRS-RESTEasy-0.0.1-SNAPSHOT.war.failed

Maciej Swiderski

unread,
May 22, 2015, 1:01:50 PM5/22/15
to drools...@googlegroups.com
try to include jboss-all.xml [1] file in your JAXRS-RESTEasy-0.0.1-SNAPSHOT.war/META-INF folder


Maciej

For more options, visit https://groups.google.com/d/optout.
<JAXRS-RESTEasy-0.0.1-SNAPSHOT.war.failed>

Liudmila Dobriakova

unread,
May 25, 2015, 6:13:36 AM5/25/15
to drools...@googlegroups.com
Thanks for the suggestion. I forget what i have found this but i was using the jboss-full.xml instead of jboss-all.xml. Anyway deployment is fine, but on runtime when i'm calling the service, which is calling the jbpm process i'm getting the error on browser page:
Context Path:
/JAXRS-RESTEasy-0.0.1-SNAPSHOT

Servlet Path:
/rest

Path Info:
/hello/temp

Query String:
queryParameter=25

Stack Trace
org.jboss.resteasy.spi.UnhandledException: javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:745)

Complete server log is in attachment.

Another tricky stuff what i have to do everytime deploing the project is what i have to remove the dom4j.jar and jbpm-test.jar from the war otherwise they creating a conflict. I was trying to find the work around removing the dependence on jbpm-test.jar from the project pom.xml and adding the JBPMHelper.java and adding all the missing  dependencies to the project pom.xml. But i was not able to run it:
Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:59)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at com.sample.ProcessMainCopy.createRuntimeManager(ProcessMainCopy.java:108)
    at com.sample.ProcessMainCopy.<init>(ProcessMainCopy.java:65)
    at com.sample.ProcessMainCopy.startProcessInit(ProcessMainCopy.java:52)
    at com.sample.ProcessMainCopy.main(ProcessMainCopy.java:81)
Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [jdbc/jbpm-ds]

Thanks for your continuos support!
Liudmila

server.log

Maciej Swiderski

unread,
May 26, 2015, 5:25:15 AM5/26/15
to drools...@googlegroups.com
looks like you’re using bitronix as transaction manager on wildfly which is not the way to go. Check you persistence.xml and make sure you use JBoss platform for transaction management instead of bitornix. Moreover remove bitronix from your class path. 

for jbpm-test and dom4j, if you use maven simply excluded these artifacts as they should not be for deployment on wildfly

Maciej

For more options, visit https://groups.google.com/d/optout.
<server.log>

Liudmila Dobriakova

unread,
May 26, 2015, 7:25:51 AM5/26/15
to drools...@googlegroups.com
ic, but i havn't use the persistence.xml file for my project. I know what the jbpm-test-6.1.0.Final.jar do have persistence.xml and it use the
<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.BitronixJtaPlatform" />
    but i thought what removing it from the war it will not affect in anyway the project runtime.

I tryed now to add the persistence.xml to the project war but still getting the exception, in attachment there is a part of the log with the exception.
i attached also the persistence.xml. I get it from the jbpm-test-6.1.0.Final.jar and modify just the 
<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
      this is what u mean with "make sure you use JBoss platform for transaction management instead of bitornix."? right?
 "Moreover remove bitronix from your class path. " for this i'm not sure what to do i removed from the war the btm.jar file there is no other reference to bitronix i can find...
Sorry for bothering u! and thanks a lot for your help!
Mila

log.txt
persistence.xml

Maciej Swiderski

unread,
May 26, 2015, 8:01:40 AM5/26/15
to drools...@googlegroups.com
change the data source that is actually defined in app server:
 <jta-data-source>jdbc/jbpm-ds</jta-data-source>   —— this is not defined in wildfly
 <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> — this is defined in wildfly - use this one instead in persistence.xml
On 26 maj 2015, at 13:25, Liudmila Dobriakova <ldobri...@gmail.com> wrote:

ic, but i havn't use the persistence.xml file for my project. I know what the jbpm-test-6.1.0.Final.jar do have persistence.xml and it use the
<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.BitronixJtaPlatform" />
    but i thought what removing it from the war it will not affect in anyway the project runtime.

I tryed now to add the persistence.xml to the project war but still getting the exception, in attachment there is a part of the log with the exception.
i attached also the persistence.xml. I get it from the jbpm-test-6.1.0.Final.jar and modify just the 
<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
      this is what u mean with "make sure you use JBoss platform for transaction management instead of bitornix."? right?
yes, that’s what I meant

For more options, visit https://groups.google.com/d/optout.
<log.txt><persistence.xml>

Liudmila Dobriakova

unread,
May 26, 2015, 11:44:31 AM5/26/15
to drools...@googlegroups.com
Thanks it helps!! wow! So the persistence.xml is essential for the jbpm projects!

Is there any chance you can explain me why on jboss 7 everything was working without persistence.xml and for wildfly is become necessary.
I will understand if you will not reply me, but i would like to ask if i'm using the jbpm process as an Java application only from Eclipse IDE is it going to use the server settings, and what server it will pick up, should i add some settings for the project?

When i'm running the process with jbpm-test.jar included i do not have any problem, removing jbpm-test from dependencies, as u suggested i need to add all the dependencies jbpm project need  in general and JBPMHelper class to start DB and setup datasources, if i don't do this i'm getting an error like DB is not started. If i do this i'm getting the error
[PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:59)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
    at com.sample.ProcessMainCopy.createRuntimeManager(ProcessMainCopy.java:79)
    at com.sample.ProcessMainCopy.<init>(ProcessMainCopy.java:54)
    at com.sample.ProcessMainCopy.startProcessInit(ProcessMainCopy.java:41)
    at com.sample.ProcessMainCopy.main(ProcessMainCopy.java:70)
Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [java:jboss/datasources/ExampleDS]
This is so wierd...isn't it...

Thanks again!
Mila



Maciej Swiderski

unread,
May 28, 2015, 5:14:43 AM5/28/15
to drools...@googlegroups.com
Liudmila,
On 26 maj 2015, at 17:44, Liudmila Dobriakova <ldobri...@gmail.com> wrote:

Thanks it helps!! wow! So the persistence.xml is essential for the jbpm projects!
depends on what you mean by projects - if you refer to projects as in workbench - kjars - then there is no need for persistence.xml in them as the will make use of persistence of runtime environment - workbench for instance. But if you refer to projects as custom application that embed jBPM then you must provide valid persistence.xml file.


Is there any chance you can explain me why on jboss 7 everything was working without persistence.xml and for wildfly is become necessary.
wildfly is more restrictive than jboss 7 regarding included libraries and might make a difference

I will understand if you will not reply me, but i would like to ask if i'm using the jbpm process as an Java application only from Eclipse IDE is it going to use the server settings, and what server it will pick up, should i add some settings for the project?
no, when jbpm runs in standalone mode it requires bit more configuration - transaction manager (bitronix), persistence, data sources etc that should be provided by application server instead.

When i'm running the process with jbpm-test.jar included i do not have any problem, removing jbpm-test from dependencies, as u suggested i need to add all the dependencies jbpm project need  in general and JBPMHelper class to start DB and setup datasources, if i don't do this i'm getting an error like DB is not started. If i do this i'm getting the error
[PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:59)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
    at com.sample.ProcessMainCopy.createRuntimeManager(ProcessMainCopy.java:79)
    at com.sample.ProcessMainCopy.<init>(ProcessMainCopy.java:54)
    at com.sample.ProcessMainCopy.startProcessInit(ProcessMainCopy.java:41)
    at com.sample.ProcessMainCopy.main(ProcessMainCopy.java:70)
Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [java:jboss/datasources/ExampleDS]
This is so wierd...isn't it…
not really, running unit tests and running in production like environment is different. Usually depends on what runtime environment you have (application server etc). jbpm-test aims at simplifying use of jBPM in unit test scenario mean reconfigures quite few components like in memory db, bitronix transaction manager, data source. Though jbpm-test should never be included in real application that is being deployed to application server. Nor it should be defined as dependency of kjar. In both cases it will cause troubles - from one side duplicated or conflicting dependencies from the other side incorrect persistence configuration (wrong data source JNDI name, wrong db dialect, wrong transaction platform etc)

Hope this helps
Maciej

Liudmila Dobriakova

unread,
May 28, 2015, 8:00:55 AM5/28/15
to drools...@googlegroups.com
Yes, thank, this is much more clear now.
Is there any good tutorial (let's say for dummy :) ) of how to create a Eclipse project with a simple jbpm process from the scratch without using the test sample. And junit tests.. are they necessary, i never worked with them before...if so, i need to find out also how to use them as well.

Thanks again!  You was really-really helpful!

Liudmila

Sarvesh Jain

unread,
Jun 14, 2016, 12:01:10 PM6/14/16
to Drools Setup
Hi Michael,

I am also facing the same issue. I've made sure the maven structure is correct. I've noticed I have these issues when I update my maven dependecies. Here is the stacktrace of the error.

09:47:05,343 ERROR [org.guvnor.common.services.backend.exceptions.ExceptionUtilities] (default task-107) - Exception thrown: Editor model couldn't be loaded from path: default://master@KI/Dummy/s
rc/main/java/foo/bar/model/Study.java.: org.kie.workbench.common.screens.datamodeller.service.ServiceException: Editor model couldn't be loaded from path: default://master@KI/Dummy/src/
main/java/foo/bar/model/Study.java.
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceImpl.constructContent(DataModelerServiceImpl.java:300) [kie-wb-common-data-modeller-backend-6.3.0.Final.jar:6.
3.0.Final]
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceImpl.constructContent(DataModelerServiceImpl.java:117) [kie-wb-common-data-modeller-backend-6.3.0.Final.jar:6.
3.0.Final]
        at org.kie.workbench.common.services.backend.service.KieService.loadContent(KieService.java:75) [kie-wb-common-services-backend-6.3.0.Final.jar:6.3.0.Final]
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceImpl.loadContent(DataModelerServiceImpl.java:188) [kie-wb-common-data-modeller-backend-6.3.0.Final.jar:6.3.0.F
inal]
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceImpl$Proxy$_$$_WeldClientProxy.loadContent(Unknown Source) [kie-wb-common-data-modeller-backend-6.3.0.Final.ja
r:6.3.0.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_60]
        at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_60]
        at org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:48) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.io.ValueReplyRPCEndpointCallback.callback(ValueReplyRPCEndpointCallback.java:22) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.cdi.server.CDIExtensionPoints$2.callback(CDIExtensionPoints.java:410) [errai-weld-integration-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:296) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:142) [errai-bus-3.2.0.Final.jar:3.2.0.Final]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:53) [uberfire-servlet-security-0.7.3.Final.jar:0.7.3.Final]
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:45) [uberfire-servlet-security-0.7.3.Final.jar:0.7.3.Final]
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:248) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:77) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:167) [undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:761) [undertow-core-1.1.8.Final.jar:1.1.8.Final]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: org.kie.workbench.common.screens.datamodeller.service.ServiceException: Data model couldn't be loaded, path: PathImpl{uri='default://master@KI/Dummy', fileName='BstRequestDummy', attrs={}},
 projectPath: PathImpl{uri='default://masterKI/Dummy', fileName='Dummy', attrs={}}.
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceImpl.loadModel(DataModelerServiceImpl.java:347) [kie-wb-common-data-modeller-backend-6.3.0.Final.jar:6.3.0.Fin
al]
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceImpl.constructContent(DataModelerServiceImpl.java:266) [kie-wb-common-data-modeller-backend-6.3.0.Final.jar:6.
3.0.Final]
        ... 57 more
Caused by: java.lang.NullPointerException
        at org.kie.scanner.KieModuleMetaDataImpl.init(KieModuleMetaDataImpl.java:147) [kie-ci-6.3.0.Final.jar:6.3.0.Final]
        at org.kie.scanner.KieModuleMetaDataImpl.<init>(KieModuleMetaDataImpl.java:87) [kie-ci-6.3.0.Final.jar:6.3.0.Final]
        at org.kie.scanner.KieModuleMetaData$Factory.newKieModuleMetaData(KieModuleMetaData.java:45) [kie-ci-6.3.0.Final.jar:6.3.0.Final]
        at org.kie.workbench.common.services.backend.builder.LRUProjectDependenciesClassLoaderCache.buildClassLoader(LRUProjectDependenciesClassLoaderCache.java:51) [kie-wb-common-services-backend-6.3
.0.Final.jar:6.3.0.Final]
        at org.kie.workbench.common.services.backend.builder.LRUProjectDependenciesClassLoaderCache.assertDependenciesClassLoader(LRUProjectDependenciesClassLoaderCache.java:39) [kie-wb-common-service
s-backend-6.3.0.Final.jar:6.3.0.Final]
        at org.kie.workbench.common.services.backend.builder.LRUProjectDependenciesClassLoaderCache$Proxy$_$$_WeldClientProxy.assertDependenciesClassLoader(Unknown Source) [kie-wb-common-services-back
end-6.3.0.Final.jar:6.3.0.Final]
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceHelper.getProjectClassLoader(DataModelerServiceHelper.java:198) [kie-wb-common-data-modeller-backend-6.3.0.Fin
al.jar:6.3.0.Final]
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceHelper$Proxy$_$$_WeldClientProxy.getProjectClassLoader(Unknown Source) [kie-wb-common-data-modeller-backend-6.
3.0.Final.jar:6.3.0.Final]
        at org.kie.workbench.common.screens.datamodeller.backend.server.DataModelerServiceImpl.loadModel(DataModelerServiceImpl.java:324) [kie-wb-common-data-modeller-backend-6.3.0.Final.jar:6.3.0.Fin
al]
        ... 58 more


Thanks in advance.

Michael Anstis

unread,
Jun 14, 2016, 3:15:41 PM6/14/16
to drools...@googlegroups.com
This looks to be something quite different.

First, please try 6.4.0.Final (bugs are always fixed with each release; but I can't be certain anything specific to what you report has definitely been included). 

If the issue remains in 6.4.0.Final can you create a GUVNOR JIRA and include *complete* steps to reproduce and any required support files .

Thanks.

ahmed noorbasha

unread,
Jun 30, 2020, 4:09:27 AM6/30/20
to Drools Setup
Hi All,

i want to use drools workbench only for UI purpose, i have my own runner service implemented.

i want to access java data objects files created in workbench and also want to access drl files created outside drools workbench, please help me n this.
To unsubscribe from this group and stop receiving emails from it, send an email to drools...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages