PSI fails with 'Cannot reinclude a file that's already been visited' error when applying CPS in Windchill
Applies To
- Windchill PDMLink 11.0 to 13.1
- Windchill Enterprise Systems Integration 11.0 to 13.1
- Windchill Bulk Migrator 4.0 to 13.1
Description
- Product solution installer (PSI) fails with
Exception: deploy failed for (wsp)error
- Installing Critical Patch Set (CPS) fails with the error
Cannot reinclude a file that's already been visited: file:/E:/PTC/Windchill/codebase/com/ptc/windchill/esi/conf/esi.SearchableTypes.properties.xconf
- Following errors thrown in C:\Users\XYZ\AppData\Local\Temp\PTCSOLNINSTALLER_PtcInstall.log
Build sequence for target(s) `erp.connector.auto.configuration' is [erp.connector.xconfmanager.propagate, erp.connector.auto.configuration]Complete build sequence is [erp.connector.xconfmanager.propagate, erp.connector.auto.configuration, inactivate.targets, esi.updateLdap, clean.declarations.esi.xconf, stop, start, switchto.erp.connector.configuration, load.info, load.esi.data, esi.load.data, esi.xconfmanager.propagate, esi.create.targets, erp.connector.auto.load.targets, copy.tibjms.jar, esi.auto.configuration, CommonImport.debug_props, esi.auto.load.targets, erp.connector.load.targets, load.data.unattended.noDemo, debug_props, erp.connector.create.targets, esi.properties.xconfmanager.propagate, load.data.unattended.demo, debug_props.help, CommonImport.debug_props.help, clean.declarations.erp.connector.xconf, help, esi.create.siteContainer.targets, erp.connector.configuration, CommonImport.help, esi.configuration, store.jms.inputs, switchto.esi.configuration, CommonImport.outputClasspath, esi.auto.create.siteContainer.targets, esi.load.targets, esi.create.otherContainer.targets, outputClasspath, , esi.auto.create.otherContainer.targets]
erp.connector.xconfmanager.propagate:[java] Executing 'E:\PTC\Java\jdk11.0.13_8\bin\java.exe' with arguments:[java] '-classpath'[java] 'E:\PTC\Windchill\codebase;E:\PTC\Windchill\srclib\install\InstallUtil.jar;E:\PTC\Windchill\srclib\wnc\CommonCore.jar;E:\PTC\Windchill\srclib\jmxcore\WtLogR.jar;E:\PTC\Windchill\srclib\log4j-core.jar;E:\PTC\Windchill\srclib\log4j-api.jar;E:\PTC\Windchill\srclib\gnu-getopt.jar;E:\PTC\Windchill\srclib\commons-lang3.jar;E:\PTC\Windchill\srclib\xmlParserAPIs.jar;E:\PTC\Windchill\srclib\xercesImpl.jar;E:\PTC\Windchill\srclib\saxon.jar'[java] 'com.ptc.windchill.structconf.StructConfManager'[java] '--productroot'[java] 'E:\PTC\Windchill'[java] '-p'[java] '-f'[java] '-i'[java] 'codebase/com/ptc/windchill/esi/erpConnector.xconf'[java] [java] The ' characters around the executable and arguments are[java] not part of the command.[java] Using input ""ERROR [main] com.ptc.windchill.structconf.StructConfManager - Unexpected error (stack trace below): com.ptc.windchill.structconf.StructConfManagerException: Error scanning xconf files to determine property-to-xconf dependencies...Caused by: org.xml.sax.SAXException: Cannot reinclude a file that's already been visited: file:/E:/PTC/Windchill/codebase/com/ptc/windchill/esi/conf/esi.SearchableTypes.properties.xconf...Caused by:com.ptc.windchill.structconf.xconf.XconfException: Error parsing file:/E:/PTC/Windchill/codebase/com/ptc/windchill/esi/erpConnector.xconf, line 7...Caused by: org.xml.sax.SAXException: Cannot reinclude a file that's already been visited: file:/E:/PTC/Windchill/codebase/com/ptc/windchill/esi/conf/esi.SearchableTypes.properties.xconfat com.ptc.windchill.structconf.xconf.XconfParser.parse_(XconfParser.java:642)...Caused by:org.xml.sax.SAXException: Cannot reinclude a file that's already been visited: file:/E:/PTC/Windchill/codebase/com/ptc/windchill/esi/conf/esi.SearchableTypes.properties.xconf...Exiting E:\PTC\Windchill\codebase\com\ptc\windchill\esi\build.xml.Exiting E:\PTC\Windchill\installer\esi\install_erpcon.xml.Exiting E:\PTC\Windchill\installer\esi\Esi\deploy.xml.
BUILD FAILEDE:\PTC\Windchill\bin\installModules.xml:744: The following error occurred while executing this line:E:\PTC\Windchill\bin\installModules.xml:753: The following error occurred while executing this line:E:\PTC\Windchill\bin\installModules.xml:772: The following error occurred while executing this line:E:\PTC\Windchill\installer\esi\Esi\deploy.xml:21: The following error occurred while executing this line:E:\PTC\Windchill\installer\esi\install_erpcon.xml:11: The following error occurred while executing this line:E:\PTC\Windchill\codebase\com\ptc\windchill\esi\build.xml:258: The following error occurred while executing this line:E:\PTC\Windchill\bin\commonImport.xml:379: The following error occurred while executing this line:E:\PTC\Windchill\bin\commonImport.xml:431: Java returned: 1at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:577)at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)........at org.apache.tools.ant.Main.runBuild(Main.java:827)at org.apache.tools.ant.Main.startAnt(Main.java:223)at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Total time: 9 minutes 3 secondsInstallation is Aborting. The installation cannot continue. Aborting installation.Installation is Aborting. The installation cannot continue. java.lang.Exception: deploy failed for (wsp) with return code = 1aborting: original exit_code = 2aborting: normalized exit_code = 2SHUTDOWN REQUESTED(X) commiting registry(X) shutting down service manager(X) cleaning up temporary directoriesExiting with exit code: 2cleanUp()calling cleanUpWin32()
- Installation of CPS patch fails with error
ERROR [wt.util.jmx.PropertiesManager$AddChildrenThread-1] wt.util.jmx.PropertiesManager - Error retrieving all property files.
com.ptc.windchill.structconf.StructConfManagerException: Error collecting target file contents from XCONF files.
...
Caused by: org.xml.sax.SAXException: Cannot reinclude a file that's already been visited: file:../Windchill/codebase/com/ptc/windchill/esi/conf/esi.LoaderConfiguration.properties.xconf
or
[java] Caused by: com.ptc.windchill.structconf.xconf.XconfException: Error parsing file
[java] at com.ptc.windchill.structconf.xconf.XconfParser.parse(XconfParser.java:352)
[java] at com.ptc.windchill.structconf.xconf.XconfParser.parse(XconfParser.java:304)
[java] at com.ptc.windchill.structconf.xconf.XconfUtil.processDeclarationXconfFiles
[java] at com.ptc.windchill.structconf.xconf.XconfUtil.processAllXconfFiles
[java] at com.ptc.windchill.structconf.TargetFileContentsCollector.collect
[java] ... 7 more
[java] Caused by: org.xml.sax.SAXException: Cannot reinclude a file
[java] at com.ptc.windchill.structconf.xconf.XconfParser.parse_(XconfParser.java:642)
[java] at com.ptc.windchill.structconf.xconf.XconfParser.recurseIntoHrefFor
[java] at com.ptc.windchill.structconf.xconf.XconfParser$Handler.startElement
[java] at org.apache.xerces.parsers.AbstractSAXParser.startElement
[java] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
[java] at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement