Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6277

wildflyee.api module missing dependency to module java.se

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 20.0.0.Final
    • None
    • Modules
    • None

      After WFCORE-6237, we got the following error on the TCK:

      2023-03-28 14:25:19,655 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."2177edf3-d406-4a35-8f97-7d32f191ba39.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."2177edf3-d406-4a35-8f97-7d32f191ba39.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "2177edf3-d406-4a35-8f97-7d32f191ba39.war"
      	at org.jboss.as.server@20.0.0.Beta8//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
      	at org.jboss.msc@1.5.0.CR1//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1590)
      	at org.jboss.msc@1.5.0.CR1//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1553)
      	at org.jboss.msc@1.5.0.CR1//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1411)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.NoClassDefFoundError: Failed to link org/apache/derby/jdbc/EmbeddedDataSource (Module "deployment.external.global-directory.tck-lib" from Service Module Loader): Failed to link org/apache/derby/jdbc/ReferenceableDataSource (Module "deployment.external.global-directory.tck-lib" from Service Module Loader): javax/naming/spi/ObjectFactory
      	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:350)
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482)
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:276)
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:79)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:765)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:192)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:350)
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482)
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:276)
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:79)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:765)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:192)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	at org.jboss.as.connector@28.0.0.Beta1-SNAPSHOT//org.jboss.as.connector.deployers.datasource.DataSourceDefinitionInjectionSource.getResourceValue(DataSourceDefinitionInjectionSource.java:142)
      	at org.jboss.as.ee@28.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:271)
      	at org.jboss.as.ee@28.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.handle(ModuleJndiBindingProcessor.java:242)
      	at org.jboss.as.ee@28.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:54)
      	at org.jboss.as.ee@28.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.processClassConfigurations(ModuleJndiBindingProcessor.java:246)
      	at org.jboss.as.ee@28.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:160)
      	at org.jboss.as.server@20.0.0.Beta8//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
      	... 8 more 

      WFCORE-6237 removed the javax.api dependency from several module.xml, which removes the basic support for java.se from the Deployment module. However, java.se is still added as a dependency to Deployment modules via ServerDependenciesProcessor

       
      Please note that this error involves also global modules as defined on EE subsystem, not just deployments, and we guess that module that we are changing in the PR (wildflyee.api) is involved in that.
       
      The tck runner creates a global module with the tck server side dependencies, which includes Derby DS used by tck deployments.

              emartins@redhat.com Eduardo Martins
              emartins@redhat.com Eduardo Martins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: