-
Bug
-
Resolution: Done
-
Major
-
1.3.0.Final
Description:
When migrating a server configuration that is using the Multi-JSF feature, the migration stops with the error below:
13:34:25,238 ERROR [logger] Migration failed: org.jboss.migration.core.ServerMigrationFailureException: java.lang.IllegalStateException: Migration of module mojarra-1.2:main required, but module not found in source server. at org.jboss.migration.wfly10.config.task.module.ConfigurationModulesMigrationTaskFactory$Task.migrateModules(ConfigurationModulesMigrationTaskFactory.java:90) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.jboss.ModulesMigrationTask.run(ModulesMigrationTask.java:67) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.ServerConfigurationMigration$1.run(ServerConfigurationMigration.java:88) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateConfig(ServerConfigurationsMigration.java:151) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task$1.onYes(ServerConfigurationsMigration.java:137) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.console.UserConfirmation.execute(UserConfirmation.java:76) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.confirmConfig(ServerConfigurationsMigration.java:146) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.confirmAllConfigs(ServerConfigurationsMigration.java:126) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.run(ServerConfigurationsMigration.java:102) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.StandaloneServerMigration$1.run(StandaloneServerMigration.java:61) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.runTask(UserConfirmationServerMigrationTask.java:58) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.confirmTaskRun(UserConfirmationServerMigrationTask.java:50) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.run(UserConfirmationServerMigrationTask.java:63) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.ServerMigration.run(ServerMigration.java:45) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.WildFlyServer10.migrate(WildFlyServer10.java:40) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.ServerMigration$1.run(ServerMigration.java:153) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.ServerMigration.run(ServerMigration.java:160) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.cli.CommandLineServerMigration.main(CommandLineServerMigration.java:131) [jboss-server-migration-cli-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.modules.Module.run(Module.java:352) [jboss-modules.jar:1.8.6.Final-redhat-00001] at org.jboss.modules.Module.run(Module.java:320) [jboss-modules.jar:1.8.6.Final-redhat-00001] at org.jboss.modules.Main.main(Main.java:593) [jboss-modules.jar:1.8.6.Final-redhat-00001] Caused by: java.lang.IllegalStateException: Migration of module mojarra-1.2:main required, but module not found in source server. at org.jboss.migration.core.jboss.ModulesMigrationTask$ModuleMigrator.migrateModule(ModulesMigrationTask.java:116) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.core.jboss.ModulesMigrationTask$ModuleMigrator.migrateModule(ModulesMigrationTask.java:106) [jboss-server-migration-core-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.module.DefaultJsfImplModulesFinder.processElement(DefaultJsfImplModulesFinder.java:44) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.module.ConfigurationModulesMigrationTaskFactory$Task.processElement(ConfigurationModulesMigrationTaskFactory.java:101) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] at org.jboss.migration.wfly10.config.task.module.ConfigurationModulesMigrationTaskFactory$Task.migrateModules(ConfigurationModulesMigrationTaskFactory.java:86) [jboss-server-migration-wildfly10.0-1.3.0.Final-redhat-00003.jar:1.3.0.Final-redhat-00003] ... 39 more
Reproduce:
- Install a vanilla JBoss EAP 7.1.6 and a vanilla JBoss EAP 7.2
- On both servers install the JSF 1.2 module from the attached jsf-1.2-module.zip
- On JBoss EAP 7.1.6 configure JSF 1.2 using the CLI /subsystem=jsf/:write-attribute(name=default-jsf-impl-slot,value=mojarra-1.2)
- Run the migration $JBOSS_72_HOME/bin/jboss-server-migration.sh -s $JBOSS_71_HOME -t $JBOSS_72_HOME
Workaround:
- Add the slot mojarra-1.2 to the list of excluded modules in $JBOSS_72_HOME/migration/configuration/environment.properties
... # a list with module names to not migrate modules.excludes=mojarra-1.2 ...
prior to calling the migration script.
- is incorporated by
-
JBEAP-16484 [GSS](7.2.z) CMTOOL-242 - Unable to migrate EAP 7.1 configuration using the Multi-JSF feature
- Closed