Wildfly migration script for 15.0.0 to higher version: ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: XML file filtering failed
search cancel

Wildfly migration script for 15.0.0 to higher version: ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: XML file filtering failed

book

Article ID: 263573

calendar_today

Updated On:

Products

CA Identity Manager

Issue/Introduction

I have a Environment, with Wildfly 15.0.1 and when trying to migrate to Wildfly 23.x, noticing an error

 

 INFO  Migrating standalone configuration standalone-full.xml...
 INFO  Referenced paths migrated.
 INFO  Subsystem health added.
 INFO  Subsystem metrics added.
 INFO  Subsystem microprofile-jwt-smallrye added.
 INFO  Security realms migrated.

 INFO  Migrating standalone configuration standalone-full_qa4.xml...
 ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: XML file filtering failed
        at org.jboss.migration.core.util.xml.XMLFiles.filter(XMLFiles.java:167) [jboss-server-migration-core-1.11.0.Final.jar:1.11.0.Final]
        at org.jboss.migration.core.util.xml.XMLFiles.filter(XMLFiles.java:119) [jboss-server-migration-core-1.11.0.Final.jar:1.11.0.Final]
        at org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions.removeExtensions(RemoveUnsupportedExtensions.java:119) [jboss-server-migration-wildfly10.0-1.11.0.Final.jar:1.11.0.Final]
        at org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions.lambda$getTask$0(RemoveUnsupportedExtensions.java:72) [jboss-server-migration-wildfly10.0-1.11.0.Final.jar:1.11.0.Final]
        at org.jboss.migration.core.task.component.SimpleComponentTask$BaseBuilder.lambda$buildRunnable$0(SimpleComponentTask.java:119) [jboss-server-migration-core-1.11.0.Final.jar:1.11.0.Final]
        ...

        at org.jboss.migration.cli.CommandLineServerMigration.main(CommandLineServerMigration.java:131) [jboss-server-migration-cli-1.11.0.Final.jar:1.11.0.Final]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[848,1]
Message: XML document structures must start and end within the same entity.
        at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) [rt.jar:1.8.0_362]
        at com.sun.xml.internal.stream.XMLEventReaderImpl.nextEvent(XMLEventReaderImpl.java:83) [rt.jar:1.8.0_362]
        at org.jboss.migration.core.util.xml.XMLFiles.filter(XMLFiles.java:134) [jboss-server-migration-core-1.11.0.Final.jar:1.11.0.Final]
        ... 35 more

 INFO
------------------------------------------------------------------------------------------------------
 Task Summary
------------------------------------------------------------------------------------------------------

 server ...................................................................................... FAIL
  modules.migrate-modules-requested-by-user .................................................. SUCCESS
   modules.migrate-modules-requested-by-user.migrate-module(id=com.ca.iam.crypto:main) ....... SUCCESS
   modules.migrate-modules-requested-by-user.migrate-module(id=com.ca.iam.bouncy:main) ....... SUCCESS
   modules.migrate-modules-requested-by-user.migrate-module(id=com.ca.iam.idmutils:main) ..... SUCCESS
   modules.migrate-modules-requested-by-user.migrate-module(id=com.ca.iam.log4j2.core:main) .. SUCCESS
   modules.migrate-modules-requested-by-user.migrate-module(id=com.ca.iam.log4j2.api:main) ... SUCCESS
   modules.migrate-modules-requested-by-user.migrate-module(id=com.ca.iam.nim:main) .......... SUCCESS
   modules.migrate-modules-requested-by-user.migrate-module(id=com.ca.iam.cajasper:main) ..... SUCCESS
  standalone ................................................................................. FAIL
   standalone-configurations ................................................................. FAIL
    standalone-configuration(source=iam_im-reference-standalone-full.xml) .................... SUCCESS
    standalone-configuration(source=standalone-full-ha.xml) .................................. SUCCESS
    standalone-configuration(source=standalone-full.xml) ..................................... SUCCESS
    standalone-configuration(source=standalone-full_qa4.xml) ................................. FAIL

------------------------------------------------------------------------------------------------------
 Migration Result: FAIL
------------------------------------------------------------------------------------------------------

 

Environment

Release : 14.4

Resolution

The error indicates a problem with the standalone-full.xml file:

ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: XML file filtering failed...

...

Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[848,1]
Message: XML document structures must start and end within the same entity.

Check the format and syntax at row 848 column 1 and fix as needed.

I would also suggest you engage your JBOSS admin as the migration utility is a rebranded Migration tool directly from the JBOSS folks with very minor software specific adjustments and your Jboss admin maybe able to help you past this quickly.