Drools/jBPM V7.7 - cannot get Kie server talk to kie-wb,

409 views
Skip to first unread message

narenmi...@gmail.com

unread,
Jun 14, 2018, 1:09:20 PM6/14/18
to Drools Setup
Hi 
I am a newbie to Drools/jBPM. I am using Version 7.7
I am able to install demo that comes with full installer..
My requirement is i have to use Tomcat no JBoss or WildFly. at this time. 
I am not finding much help on web for version 7.7 issues. 

I am able to install kie-wb and kie-server on Tomcat.. How ever I am not able to register 
the kie server with kie-wb..I am using all the right CATALINA_OPTS for some reason.
i still see that  kie server location says 8230 eventhough i am not using 8230 anywhere in the Config. 


<response type="SUCCESS" msg="Kie Server info">
<kie-server-info>
<capabilities>KieServer</capabilities>
<capabilities>BRM</capabilities>
<capabilities>CaseMgmt</capabilities>
<capabilities>BPM-UI</capabilities>
<capabilities>BRP</capabilities>
<capabilities>DMN</capabilities>
<capabilities>Swagger</capabilities>
<messages>
<content>
Error when initializing server extension of type jBPM KIE Server extension due to Unable to create EntityManagerFactory due to Unable to find jta data source under name java:jboss/datasources/ExampleDS
</content>
<severity>ERROR</severity>
<timestamp>2018-06-14T11:02:14.845-04:00</timestamp>
</messages>
<messages>
<content>
Server KieServerInfo{serverId='15ad5bfa-7532-3eea-940a-abbbbc89f1e8', version='7.7.0.Final', location='http://localhost:8230/kie-server/services/rest/server', capabilities=[KieServer, BRM, CaseMgmt, BPM-UI, BRP, DMN, Swagger]}started successfully at Thu Jun 14 11:02:15 EDT 2018
</content>
<severity>INFO</severity>
<timestamp>2018-06-14T11:02:15.213-04:00</timestamp>
</messages>
<name>KieServer@/kie-server</name>
<id>15ad5bfa-7532-3eea-940a-abbbbc89f1e8</id>
<version>7.7.0.Final</version>
</kie-server-info>
</response>

I am using following OPTS as suggested by another article.

set CATALINA_OPTS="-Dbtm.root=%CATALINA_HOME% -Dorg.jbpm.cdi.bm=java:comp/env/BeanManager -Dbitronix.tm.configuration=$CATALINA_HOME/conf/btm-config.properties -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry -Djava.security.auth.login.config=$CATALINA_HOME/webapps/kie-wb/WEB-INF/classes/login.config -Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpm -Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.BitronixJtaPlatform -Dorg.kie.server.id=first-kie-server -Dorg.kie.server.location=http://localhost:9080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:9080/kie-wb/rest/controller -Dorg.kie.server.user=kieserver -Dorg.kie.server.pwd=********** "

Any help is profusely appreciated.
 

Maciej Swiderski

unread,
Jun 15, 2018, 9:18:38 AM6/15/18
to drools...@googlegroups.com

On 14 Jun 2018, at 19:09, narenmi...@gmail.com wrote:

Hi 
I am a newbie to Drools/jBPM. I am using Version 7.7
I am able to install demo that comes with full installer..
My requirement is i have to use Tomcat no JBoss or WildFly. at this time. 
I am not finding much help on web for version 7.7 issues. 

I am able to install kie-wb and kie-server on Tomcat.. How ever I am not able to register 
the kie server with kie-wb..I am using all the right CATALINA_OPTS for some reason.
i still see that  kie server location says 8230 eventhough i am not using 8230 anywhere in the Config. 
it defaults to 8230 if there is no org.kie.server.location given. Though it looks like your CATALINA_OPTS are not really applied as it also failed as starting jBPM extension due to wrong JNDI data source. So double check your tomcat setup

Maciej 
--
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/f3c3b502-3feb-401e-8cd5-16ba37b9ada4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Naren Mistry

unread,
Jun 15, 2018, 1:35:31 PM6/15/18
to drools...@googlegroups.com
HI Maciej,
Thank you so much for your response. Yes, my CATALINA_OPTS was not getting applied because I had the '$' instead of "% %" as I am running it in Windows.. .Now i am able to see the KIE server register from Kie-wb console.. 
but I still have issue starting extension, Let me troubleshoot ...

15-Jun-2018 13:31:17.106 SEVERE [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.init Error when initializing server extension of type jBPM KIE Server extension
 java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactor

Thanks a lot once again. 
NM

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/f3c3b502-3feb-401e-8cd5-16ba37b9ada4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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.

Naren Mistry

unread,
Jun 18, 2018, 4:07:02 PM6/18/18
to drools...@googlegroups.com
Hi Maciej

l not able to fix the  following issue

15-Jun-2018 13:31:17.106 SEVERE [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.init Error when initializing server extension of type jBPM KIE Server extension
 java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactor

I checked the btm-properties and resources.properties they are okay( as described in the Docs) persistence.xml is missing inthe kie-server war  in 7.7.0 is that by design.?
if so where else should I look to fix this error.. help in this regard is appreciated. 
thanks
NM

Maciej Swiderski

unread,
Jun 18, 2018, 5:50:34 PM6/18/18
to drools...@googlegroups.com
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.

Naren Mistry

unread,
Jun 26, 2018, 11:33:01 AM6/26/18
to drools...@googlegroups.com
Maciej ,
Your instructions were superb it worked...right away.. on Tomcat 9.
just a minor suggestion to modify instruction,
 
Step 8. Congifure XA Recovery  
"Create xa-recovery-properties.xml file  under $CATALINA_HOME/conf  with the 
following content "

I have one question though to clarify, 
 when deploying kie-wb.war I see ejb errors being thrown and falling back some default mode. is that okay??
do I have to fix that before I go any further.

 WARNING [main] org.guvnor.common.services.builder.IncrementalBuilderExecutorManagerFactoryImpl.getExecutorManager Unable to instantiate EJB Asynchronous Bean. Falling back to Executors' CachedThreadPool....................

Thanks a lot for your help, 
NM

On Mon, Jun 18, 2018 at 5:50 PM, Maciej Swiderski <swidersk...@gmail.com> wrote:
Maciej

On 18 Jun 2018, at 22:07, Naren Mistry <narenmi...@gmail.com> wrote:

Hi Maciej

l not able to fix the  following issue

15-Jun-2018 13:31:17.106 SEVERE [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.init Error when initializing server extension of type jBPM KIE Server extension
 java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactor

I checked the btm-properties and resources.properties they are okay( as described in the Docs) persistence.xml is missing inthe kie-server war  in 7.7.0 is that by design.?
if so where else should I look to fix this error.. help in this regard is appreciated. 
thanks
NM
On Fri, Jun 15, 2018 at 1:35 PM, Naren Mistry <narenmistry123@gmail.com> wrote:
HI Maciej,
Thank you so much for your response. Yes, my CATALINA_OPTS was not getting applied because I had the '$' instead of "% %" as I am running it in Windows.. .Now i am able to see the KIE server register from Kie-wb console.. 
but I still have issue starting extension, Let me troubleshoot ...

15-Jun-2018 13:31:17.106 SEVERE [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.init Error when initializing server extension of type jBPM KIE Server extension
 java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactor

Thanks a lot once again. 
NM

On Fri, Jun 15, 2018 at 9:18 AM, Maciej Swiderski <swiderski.maciej@gmail.com> wrote:
To post to this group, send email to drools-setup@googlegroups.com.

-- 
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-setup@googlegroups.com.

-- 
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-setup@googlegroups.com.

--
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.

Maciej Swiderski

unread,
Jul 9, 2018, 2:29:47 AM7/9/18
to drools...@googlegroups.com

On 26 Jun 2018, at 17:32, Naren Mistry <narenmi...@gmail.com> wrote:

Maciej ,
Your instructions were superb it worked...right away.. on Tomcat 9.
glad it helped

just a minor suggestion to modify instruction,
 
Step 8. Congifure XA Recovery  
"Create xa-recovery-properties.xml file  under $CATALINA_HOME/conf  with the 
following content "

I have one question though to clarify, 
 when deploying kie-wb.war I see ejb errors being thrown and falling back some default mode. is that okay??
yes, they are harmless and simply inform that there are no ejb container to be used for async executon so it falls back to Java SE version.

Maciej
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.

Pradeep G

unread,
Jul 9, 2018, 3:07:00 PM7/9/18
to Drools Setup
HI Naren,

I am having the same issue as yours.(installed kie-wb and kie server but the same error message as in your previous post.
<messages>
<content>
Error when initializing server extension of type jBPM KIE Server extension due to Unable to create EntityManagerFactory due to Unable to find jta data source under name java:jboss/datasources/ExampleDS
</content>
<severity>ERROR</severity>

Can you please guide me how did u fix this problem.im using on windows.
I dint not understand about  the $ and %% in the CATALINA_OPTS.( should i remove the $ before the CATALINA_HOME and replace it with %% ? )
This is my setenv.bat file 

 set 
 "CATALINA_OPTS=-Xmx2G -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry 
  -Djava.security.auth.login.config=$CATALINA_HOME/webapps/kie-wb/WEB-INF/classes/login.config \
 -Dorg.jboss.logging.provider=jdk"
 -Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpm -Djbpm.tm.jndi.lookup=java:comp/env/TransactionManager 
 -Dorg.kie.server.persistence.tm=JBossTS -Dhibernate.connection.release_mode=after_transaction 
 -Dorg.kie.server.id=tomcat-kieserver 
 -Dorg.kie.server.controller=http://localhost:9090/kie-wb/rest/controller"
 
 -Dcom.arjuna.ats.jta.recovery.XAResourceRecovery1=com.arjuna.ats.internal.jdbc.recovery.BasicXARecovery;abs://$CATALINA_HOME/conf/xa-recovery-properties.xml" ";1
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/f3c3b502-3feb-401e-8cd5-16ba37b9ada4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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.

Pradeep Gollapudi

unread,
Jul 9, 2018, 8:18:01 PM7/9/18
to Drools Setup


Hi maciej/Naren,

Please guide me on this below issue.
Not able to see server details in the workbench.


Thanks,
Pradeep


Pradeep Gollapudi

unread,
Jul 10, 2018, 6:02:33 PM7/10/18
to Drools Setup
Hello Naren/Maciej,

Am i sending to the correct group/ emails ?
Please assist me .
Thanks in advance.

Thanks,
Pradeep

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.

Mark Proctor

unread,
Jul 10, 2018, 6:39:50 PM7/10/18
to drools...@googlegroups.com
On Tue, Jul 10, 2018 at 11:02 PM, Pradeep Gollapudi <meetpr...@gmail.com> wrote:
Hello Naren/Maciej,

Am i sending to the correct group/ emails ?
You are, but chasing people (without waiting several days) tends to get you ignored.

Mark 

Pradeep Gollapudi

unread,
Jul 10, 2018, 6:46:19 PM7/10/18
to drools...@googlegroups.com
Oh ok.sorry for that

Thanks,
Pradeep

--
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.

--
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.

Nguyen Thom

unread,
Feb 20, 2020, 4:25:50 AM2/20/20
to Drools Setup
I work with Tomcat 9. I got error 

Unable to find jta data source under name java:comp/env/jdbc/jbpm

I do all steps in 
https://raw.githubusercontent.com/kiegroup/droolsjbpm-integration/master/kie-server-parent/kie-server-wars/kie-server/src/main/webc-resources/README.md

Please note me how to you configuration success. Thank.


On Tuesday, June 26, 2018 at 10:33:01 PM UTC+7, Naren Mistry wrote:
Maciej ,
Your instructions were superb it worked...right away.. on Tomcat 9.
just a minor suggestion to modify instruction,
 
Step 8. Congifure XA Recovery  
"Create xa-recovery-properties.xml file  under $CATALINA_HOME/conf  with the 
following content "

I have one question though to clarify, 
 when deploying kie-wb.war I see ejb errors being thrown and falling back some default mode. is that okay??
do I have to fix that before I go any further.

 WARNING [main] org.guvnor.common.services.builder.IncrementalBuilderExecutorManagerFactoryImpl.getExecutorManager Unable to instantiate EJB Asynchronous Bean. Falling back to Executors' CachedThreadPool....................

Thanks a lot for your help, 
NM
On Mon, Jun 18, 2018 at 5:50 PM, Maciej Swiderski <swiders...@gmail.com> wrote:
Maciej

On 18 Jun 2018, at 22:07, Naren Mistry <narenmi...@gmail.com> wrote:

Hi Maciej

l not able to fix the  following issue

15-Jun-2018 13:31:17.106 SEVERE [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.init Error when initializing server extension of type jBPM KIE Server extension
 java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactor

I checked the btm-properties and resources.properties they are okay( as described in the Docs) persistence.xml is missing inthe kie-server war  in 7.7.0 is that by design.?
if so where else should I look to fix this error.. help in this regard is appreciated. 
thanks
NM
On Fri, Jun 15, 2018 at 1:35 PM, Naren Mistry <narenmi...@gmail.com> wrote:
HI Maciej,
Thank you so much for your response. Yes, my CATALINA_OPTS was not getting applied because I had the '$' instead of "% %" as I am running it in Windows.. .Now i am able to see the KIE server register from Kie-wb console.. 
but I still have issue starting extension, Let me troubleshoot ...

15-Jun-2018 13:31:17.106 SEVERE [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.init Error when initializing server extension of type jBPM KIE Server extension
 java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactor

Thanks a lot once again. 
NM

On Fri, Jun 15, 2018 at 9:18 AM, Maciej Swiderski <swiders...@gmail.com> wrote:
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.

-- 
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...@googlegroups.com.

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

-- 
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...@googlegroups.com.

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

--
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...@googlegroups.com.

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