Error while launching tomcat server 8.5.9 with KIE Workbench after setup

1,093 views
Skip to first unread message

bhavana chadaga

unread,
Jan 19, 2017, 12:07:26 AM1/19/17
to Drools Setup
I am getting the following error when i start up tomcat server after the KIE setup as told in http://mswiderski.blogspot.in/2015/10/installing-kie-server-and-workbench-on.html
I have followed the steps given in the above mentioned article. Am not able to figure out what is wrong.
Any Help is appreciated. Thank you.

Here are the logs

19-Jan-2017 10:25:53.023 INFO [localhost-startStop-1] org.hibernate.Version.logVersion HHH000412: Hibernate Core {4.2.21.Final}
19-Jan-2017 10:25:53.023 INFO [localhost-startStop-1] org.hibernate.cfg.Environment.<clinit> HHH000206: hibernate.properties not found
19-Jan-2017 10:25:53.038 INFO [localhost-startStop-1] org.hibernate.cfg.Environment.buildBytecodeProvider HHH000021: Bytecode provider name
: javassist
19-Jan-2017 10:25:53.085 INFO [localhost-startStop-1] org.hibernate.ejb.Ejb3Configuration.configure HHH000204: Processing PersistenceUnitInf
o [
        name: org.jbpm.domain
        ...]
19-Jan-2017 10:25:53.674 SEVERE [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.<init> Error when initializing server ext
ension of type jBPM KIE Server extension
 java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build EntityManagerFa
ctory
        at org.kie.server.services.jbpm.JbpmKieServerExtension.build(JbpmKieServerExtension.java:564)
        at org.kie.server.services.jbpm.JbpmKieServerExtension.init(JbpmKieServerExtension.java:162)
        at org.kie.server.services.impl.KieServerImpl.<init>(KieServerImpl.java:111)
        at org.kie.server.services.impl.KieServerImpl.<init>(KieServerImpl.java:90)
        at org.kie.server.services.impl.KieServerLocator.<clinit>(KieServerLocator.java:20)
        at org.kie.server.services.Bootstrap.contextInitialized(Bootstrap.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        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)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.domain] Unable to build EntityManagerFactory
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:925)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:900)
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76)
        at org.kie.server.services.jbpm.JbpmKieServerExtension.build(JbpmKieServerExtension.java:562)
        ... 18 more
Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [java:jboss/datasources/ExampleDS]
        at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)
        at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:
116)
        at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:85)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:184)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:156)
        at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
        at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
        at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:85)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:184)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:156)
        at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1827)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1785)
        at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
        ... 21 more
Caused by: javax.naming.NameNotFoundException: Name [jboss/datasources/ExampleDS] is not bound in this Context. Unable to find [jboss].
        at org.apache.naming.NamingContext.lookup(NamingContext.java:816)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
        at org.apache.naming.SelectorContext.lookup(SelectorContext.java:140)
        at javax.naming.InitialContext.lookup(InitialContext.java:421)
        at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)
        ... 34 more

19-Jan-2017 10:25:53.690 WARNING [localhost-startStop-1] org.kie.server.services.jbpm.ui.JBPMUIKieServerExtension.init jBPM extension not fo
und, jBPM UI cannot work without jBPM extension, disabling itself
19-Jan-2017 10:25:53.690 INFO [localhost-startStop-1] org.kie.server.services.impl.KieServerImpl.<init> jBPM-UI KIE Server extension has bee
n successfully registered as server extension

Maciej Swiderski

unread,
Jan 19, 2017, 4:45:29 AM1/19/17
to drools...@googlegroups.com
this error means you didn't provide all system properties. In the linked article you have scetion that talks about COnfiguring system properties and for tomcat it's bit more than for WildFly so make sure you have this properly set so tomcat jvm does use them

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+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/6a9c45e2-7cac-44e3-8df7-d035bf64c5ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

antoniop...@ecabs.com.mt

unread,
Aug 14, 2018, 10:58:55 AM8/14/18
to Drools Setup
the same is happening here.
difference is that the kie version is 7.9.0.
the kie-server-distribution-7.9.0.Final.zip contains 2 flavour: ee7 and webc.
trying to deploy the last since we choose tomcat...

yes, the guide has been followed completely and all the settings are in place

14-Aug-2018 16:54:20.946 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 Unable to find jta data source under name java:jboss/datasources/ExampleDS
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.

Maciej Swiderski

unread,
Aug 14, 2018, 5:11:08 PM8/14/18
to drools...@googlegroups.com

antoniop...@ecabs.com.mt

unread,
Aug 22, 2018, 4:27:01 AM8/22/18
to Drools Setup
Reply all
Reply to author
Forward
0 new messages