Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9783

infinispan-embedded.jar 9.4.1 is failing the startup of Weblogic 12. due to missing classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.4.1.Final
    • Dependency
    • Hide

      I have try to remove from the embbed jar the com\zaxxer\hikari\ and the io.netty and the jcache packages, the applications seems to work but now new exceptions are on the startup of the weblogic due to missing classes.

      Show
      I have try to remove from the embbed jar the com\zaxxer\hikari\ and the io.netty and the jcache packages, the applications seems to work but now new exceptions are on the startup of the weblogic due to missing classes.

      We have EAR file with infinispan embedded 9.4.1 jar in the lib folder of the ear. We are using ISPN for local cache.
      AFAIU, the embedded jar should be able in order to start, however webloic won't startup due to various errors:

      o Issue
      weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
      at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
      at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      Truncated. see log file for complete stacktrace
      Caused By: java.lang.ClassNotFoundException: org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:357)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:318)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:186)
      Truncated. see log file for complete stacktrace

      Analysis:
      com.zaxxer.hikari.hibernate.HikariConnectionProvider is
      importing org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
      which is Hibernate 5 class. The embedded jar doesn't contains Hibernate5 classes and the application uses other hibernate version.
      Is there depenency on Hibernare5?

      Similiar issue:

      o Issue
      weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.conscrypt.AllocatedBuffer
      at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
      at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      Truncated. see log file for complete stacktrace
      Caused By: java.lang.ClassNotFoundException: org.conscrypt.AllocatedBuffer
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:357)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:318)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:186)
      Truncated. see log file for complete stacktrace

      Again. the org.conscrypt.AllocatedBuffer class is imported by one of the netty classes but it's not part of the embedded jar.

      Other issue:
      weblogic.ejb.container.compliance.ComplianceException: Interceptor class org.infinispan.jcache.annotation.CacheResultInterceptor must have a public no-arg constructor
      at weblogic.ejb.container.compliance.InterceptorChecker.checkDefaultConstructorInInterceptorClass(InterceptorChecker.java:86)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:100)
      at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:84)
      at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:172)
      at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:346)
      at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:314)
      at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:429)
      at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:355)
      at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:723)
      at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:439)
      at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:295)
      at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:285)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)

              Unassigned Unassigned
              ofer.baranes ofer baranes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: