Uploaded image for project: 'JBoss Server Migration Tool'
  1. JBoss Server Migration Tool
  2. CMTOOL-372

Force exclude migration of internal modules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 33.0.0.Final
    • None
    • None
    • None

      Some server modules are internal and are not in the filesystem (/modules), and there is a chance that the config requires migration of a module which depends on those, something that then leads to:

      ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: java.lang.IllegalStateException: Migration of module java.desktop:main required, but module not found in source server.
      	at org.jboss.migration.wfly10.config.task.module.ConfigurationModulesMigrationTaskFactory$Task.migrateModules(ConfigurationModulesMigrationTaskFactory.java:90)
      	at org.jboss.migration.core.jboss.ModulesMigrationTask.run(ModulesMigrationTask.java:67)
      	at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationMigration$1.run(ServerConfigurationMigration.java:88)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateConfig(ServerConfigurationsMigration.java:151)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateAllConfigs(ServerConfigurationsMigration.java:120)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.run(ServerConfigurationsMigration.java:113)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.StandaloneServerMigration$1.run(StandaloneServerMigration.java:61)
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.runTask(UserConfirmationServerMigrationTask.java:58)
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.run(UserConfirmationServerMigrationTask.java:63)
      	at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.ServerMigration.run(ServerMigration.java:45)
      	at org.jboss.migration.wfly10.WildFlyServer10.migrate(WildFlyServer10.java:40)
      	at org.jboss.migration.core.ServerMigration$1.run(ServerMigration.java:153)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.ServerMigration.run(ServerMigration.java:160)
      	at org.jboss.migration.cli.CommandLineServerMigration.main(CommandLineServerMigration.java:131)
      Caused by: java.lang.IllegalStateException: Migration of module java.desktop:main required, but module not found in source server.
      	at org.jboss.migration.core.jboss.ModulesMigrationTask$ModuleMigrator.migrateModule(ModulesMigrationTask.java:129)
      	at org.jboss.migration.core.jboss.ModulesMigrationTask$ModuleMigrator.migrateModule(ModulesMigrationTask.java:154)
      	at org.jboss.migration.core.jboss.ModulesMigrationTask$ModuleMigrator.migrateModule(ModulesMigrationTask.java:154)
      	at org.jboss.migration.core.jboss.ModulesMigrationTask$ModuleMigrator.migrateModule(ModulesMigrationTask.java:154)
      	at org.jboss.migration.wfly10.config.task.module.EEGlobalModulesFinder.processElement(EEGlobalModulesFinder.java:48)
      	at org.jboss.migration.wfly10.config.task.module.ConfigurationModulesMigrationTaskFactory$Task.processElement(ConfigurationModulesMigrationTaskFactory.java:101)
      	at org.jboss.migration.wfly10.config.task.module.ConfigurationModulesMigrationTaskFactory$Task.migrateModules(ConfigurationModulesMigrationTaskFactory.java:86)
      	... 32 more
      

      The following are the list of internal modules that the tool should not attempt migration: java.desktop, java.logging, java.xml, java.sql, org.jboss.modules

              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: