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

Migration of modules fails when they are not configured within modules/system/...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.CR2
    • None
    • None
    • None

      I configured a PostgreSQL module for the JBoss EAP 6.4 server as follows:

      1. I extracted the attached zip file and placed it in the modules directory with the following structure:

          ├── modules
          │   ├── org
          │   │   └── postgresql
          │   │       └── main
          │   │           ├── module.xml
          │   │           └── postgresql-9.4.1212.jar
          │   └── system
          │       └── layers
          │           └── base
          │               ├── ...
      

      2. I ran the 'configure-postgresql.cli' script that ships with the JBoss EAP 6.4 quickstarts to configure the PostgreSQL datasource.

      3. I ran the migration tool using this command: ./server-migration.sh --source ../jboss-eap-6.4 --target ../jboss-eap-7.0

      4. I got this error:

      15:32:13,454 INFO  [org.jboss.migration.core.task.ServerMigrationTask#75] (main) Removed the following unsupported subsystems: [urn:jboss:domain:jaxr:1.1, urn:jboss:domain:cmp:1.1, urn:jboss:domain:threads:1.1]
      15:32:13,457 ERROR [org.jboss.migration.core.logger] (main) Migration failed: org.jboss.migration.core.ServerMigrationFailureException: java.lang.IllegalStateException: Migration of module org.postgresql:main required, but module not found in source server.
              at org.jboss.migration.wfly10.config.task.module.ConfigurationModulesMigrationTaskFactory$Task.migrateModules(ConfigurationModulesMigrationTaskFactory.java:91) [jboss-server-migration-wildfly10-1.0.0.CR1.jar:1.0.0.CR1]
              at org.jboss.migration.core.jboss.ModulesMigrationTask.run(ModulesMigrationTask.java:68) [jboss-server-migration-core-1.0.0.CR1.jar:1.0.0.CR1]
              at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47) [jboss-server-migration-core-1.0.0.CR1.jar:1.0.0.CR1]
              at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core-1.0.0.CR1.jar:1.0.0.CR1]
              at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core-1.0.0.CR1.jar:1.0.0.CR1]
      

      Is it because I put added it to the base modules instead of under system/layers/base?

      This is the script I ran to configure it (configure-postgresql.cli):

      # Batch script to add the PostgreSQL driver to the JBoss server configuration
      
      # Start batching commands
      batch
      
      # Add the  datasources subsystem
      /subsystem=datasources/jdbc-driver=postgresql:add(driver-name=postgresql,driver-module-name=org.postgresql,driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)
      
      # Run the batch commands
      run-batch
      
      # Reload the server configuration
      reload
      

      I have also attached the zip of the module.

        1. configure-postgresql.cli
          0.4 kB
          Sande Gilda

            emartins@redhat.com Eduardo Martins
            sgilda_jira Sande Gilda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: