0 Replies Latest reply on Aug 28, 2019 8:11 PM by Michael Pritt

    Wildfly migration tool trying to handle user-defined placeholders

    Michael Pritt Newbie

      I'm trying to run the wildfly migration tool to migrate my standalone XML files from wildfly.15.0.1 to wildfly-17.0.1.  The migration tool fails with an error saying that it "failed to resolve expression".  In this case the placeholder is to define the location for where the deployment scanner is to look.  First, I'm confused as to why the migration tool even needs to resolve this expression.  Second, how do I get around this problem.  I've tried specifying an environment properties file with that property defined and that doesn't work.  I'm using the following version of the migration tool:  1.6.0.Final

       

      The error the tool gives is shown below:

       

      ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: java.lang.IllegalStateException: Failed to resolve expression: ${workspace.loc}

              at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:174)

              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.core.task.component.CompositeSubtasksBuilder.lambda$subtask$2(CompositeSubtasksBuilder.java:33)

              at org.jboss.migration.core.task.component.CompositeSubtasks.run(CompositeSubtasks.java:42)

              at org.jboss.migration.core.task.component.ComponentTask$Builder.lambda$buildRunnable$0(ComponentTask.java:129)

              at org.jboss.migration.core.task.component.ComponentTask.run(ComponentTask.java:46)

              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:106)

              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:105)

              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.confirmTaskRun(UserConfirmationServerMigrationTask.java:50)

              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: Failed to resolve expression: ${workspace.loc}

              at org.jboss.dmr.ValueExpressionResolver.resolve(ValueExpressionResolver.java:128)

              at org.jboss.migration.core.jboss.JBossServer$ValueExpressionResolver.resolve(JBossServer.java:312)

              at org.jboss.migration.core.jboss.JBossServer.resolveExpression(JBossServer.java:257)

              at org.jboss.migration.core.jboss.JBossServer.resolvePath(JBossServer.java:275)

              at org.jboss.migration.core.jboss.JBossServerConfiguration.resolvePath(JBossServerConfiguration.java:69)

              at org.jboss.migration.core.jboss.AbsolutePathResolver.resolvePath(AbsolutePathResolver.java:35)

              at org.jboss.migration.wfly10.config.task.update.MigrateScannerDeployments.lambda$new$3(MigrateScannerDeployments.java:76)

              at org.jboss.migration.core.task.component.ComponentTask$Builder.lambda$buildRunnable$0(ComponentTask.java:129)

              at org.jboss.migration.core.task.component.ComponentTask.run(ComponentTask.java:46)

              at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)

              ... 38 more