[jboss-jira] [JBoss JIRA] (DROOLS-4399) KIE Server kie-server-7.24.0.Final-webc fails with ClassNotFoundException

Simon Dallaway (Jira) issues at jboss.org
Mon Aug 5 20:46:00 EDT 2019


    [ https://issues.jboss.org/browse/DROOLS-4399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13767171#comment-13767171 ] 

Simon Dallaway commented on DROOLS-4399:
----------------------------------------

Hi Maciej & contributors,

Thanks for the very prompt response

I added the extra 4 jar files mentioned in the updated README using versions from https://mvnrepository.com/artifact/org.kie.server/kie-server/7.24.0.Final
   narayana-jta-4.17.43.Final.jar
   narayana-tomcat-1.0.0.Final.jar
   jboss-transaction-api_1.2_spec-1.1.1.Final.jar
   jboss-transaction-spi-7.6.0.Final.jar

This resulted in a class not found for org.jboss.logging.Logger so I added jboss-logging-3.2.0.Final.jar

At this point I hit a no such method error com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.getRegisteredXARecoveryModule() so I replaced narayana-jta-4.17.43.Final.jar with narayana-jta-5.9.5.Final.jar

I updated my xa-recovery-properties.xml file to have the following so it matches the resource name xads in the context.xml
   <entry key="DB_1_DatabaseURL">java:comp/env/xads</entry>

I am now getting 
  ERROR [Periodic Recovery] com.arjuna.ats.internal.jdbc.IndirectRecoverableConnection.createDataSource javax.naming.NameNotFoundException: Name [comp/env/xads] is not bound in this Context. Unable to find [comp].

SEVERE [main] 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:comp/env/jdbc/jbpm

A simple JSP shows that xads is bound to the default InitialContext 
  <%
    InitialContext iCtx = new InitialContext();
   %>
  <p><%= iCtx.lookup("java:comp/env/xads") %></p>

Outputs
   ds1: url= user=sa


I've attached the latest log file for reference.

Regards,
    Simon

> KIE Server kie-server-7.24.0.Final-webc fails with ClassNotFoundException
> -------------------------------------------------------------------------
>
>                 Key: DROOLS-4399
>                 URL: https://issues.jboss.org/browse/DROOLS-4399
>             Project: Drools
>          Issue Type: Bug
>          Components: kie server
>    Affects Versions: 7.24.0.Final
>         Environment: Windows 8.1 x64
> Tomcat 9.0.16
>            Reporter: Simon Dallaway
>            Assignee: Maciej Swiderski
>            Priority: Major
>         Attachments: catalina.2019-08-05.log, catalina.2019-08-06.log, context.xml, libDir.txt, server.xml, setenv.bat, tomcat-users.xml, xa-recovery-properties.xml
>
>
> Attempting to deploy KIE Server on Tomcat 9 fails with a ClassNotFoundException org.jboss.narayana.tomcat.jta.NarayanaJtaServletContextListener when trying to setup application listener



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list