Unable to find jta data source under name java:jboss/datasources/ExampleDS

1,103 views
Skip to first unread message

Madhura Oak

unread,
Mar 21, 2017, 8:43:58 AM3/21/17
to Drools Setup
I'm deploying Kie Execution Server 6.5.0.Final on Weblogic 12.2.1. I have used the following switches and also created a datasource with name "jdbc/jbpm". 

-Dorg.jbpm.server.ext.disabled=true -Dorg.drools.server.ext.disabled=true -Dorg.kie.server.persistence.ds=jdbc/jbpm -Dorg.kie.server.persistence.dialect=org.hibernate.dialect.H2Dialect 

I've also changed the name of datasource in persistence.xml to jdbc/jbpm in kie-server-services-jbpm-6.5.0.Final.jar in the war file. Still I'm getting following exception

Caused By: java.lang.RuntimeException: Unable to find jta data source under name java:jboss/datasources/ExampleDS
at org.kie.server.services.jbpm.jpa.PersistenceUnitInfoImpl.getJtaDataSource(PersistenceUnitInfoImpl.java:87)
at org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:38)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:529)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75)
at org.kie.server.services.jbpm.JbpmKieServerExtension.build(JbpmKieServerExtension.java:562)
Truncated. see log file for complete stacktrace

No idea from where it is taking ExampleDS. Please let me know how to resolve this error.

Maciej Swiderski

unread,
Mar 21, 2017, 10:17:16 AM3/21/17
to drools...@googlegroups.com
Clearly you jvm system properties are not visible to weblogic. Please make sure you pass them properly for example by setting environment variable like it is defined here:https://github.com/kiegroup/kie-wb-distributions/blob/6.5.x/kie-wb/kie-wb-distribution-wars/src/main/assembly/weblogic12/README.md

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/aa9cc0bf-280a-48af-b621-2ed5621f634f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

prest...@prestonlee.com

unread,
Jan 22, 2018, 4:23:08 PM1/22/18
to Drools Setup
I have this same issue with Tomcat 8 and the 7.5.0.Final .war. What is this talking about?

Dejan Janković

unread,
Mar 20, 2019, 7:42:52 AM3/20/19
to Drools Setup
Have you maybe resolved this? 

I have the same configuration and the same issue present...

Thanks,
Dejan
Reply all
Reply to author
Forward
0 new messages