Question
Unable to Update Upper Limit of NAME Attribute on WTPart – Error During Ant Script Execution
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.0
We are trying to update the upper length limit of the NAME attribute on WTPart, following the steps described in article CS155068. When we run the Ant script (ant -f bin\tools.xml custom_column -Dgen.input=wt.part), we receive the following error in the Shell: java.lang.NoClassDefFoundError: org/apache/commons/lang3/exception/ExceptionUtils
Here are the errors that I faced
ava] Processing single class: wnc/Foundation:wt.part.WTPartMaster
[java] DataStore = SQLServer
[java] wt.generation.sql.useDatastore = false
[java] wt.generation.sql.loadIntrospectionFromClasspath= true
[java] wt.db.maxBytesPerChar = 1
[java] InsternalUsage = false
[java] Begin sql generation for wt.part.WTPartMaster
[java] 15:23:16.508 [main] ERROR wt.util.AppStarter - ERROR: details below
[java] ERROR: java.lang.NoClassDefFoundError: org/apache/commons/lang3/exception/ExceptionUtils (check log for details: D:\ptc\Windchill_13.0\Windchill\buildlogs\tools-CustomizeColumnLength.log)
[java] 15:23:16.521 [main] ERROR wt.util.AppStarter -
[java] java.lang.NoClassDefFoundError: org/apache/commons/lang3/exception/ExceptionUtils
[java] at com.ptc.commons.lang.util.exception.ExceptionUtils.getStackTrace(ExceptionUtils.java:21) ~[codebase/:?]
[java] at wt.tools.SqlGenerator.processModuleQualifiedTarget(SqlGenerator.java:152) ~[SystemGeneration.jar:?]
[java] at wt.tools.SqlGenerator.processClass(SqlGenerator.java:101) ~[SystemGeneration.jar:?]
[java] at wt.tools.generation.ModelProcessor.execute(ModelProcessor.java:89) ~[SystemGeneration.jar:?]
[java] at wt.tools.SqlGenerator.execute(SqlGenerator.java:57) ~[SystemGeneration.jar:?]
[java] at wt.tools.CustomizeColumnLength.sqlGen(CustomizeColumnLength.java:218) ~[SystemGeneration.jar:?]
[java] at wt.tools.CustomizeColumnLength.execute(CustomizeColumnLength.java:83) ~[SystemGeneration.jar:?]
[java] at wt.util.AppStarter.startAppWithCurrentClassLoader(AppStarter.java:287) ~[codebase/:?]
[java] at wt.util.AppStarter.startApp(AppStarter.java:150) [codebase/:?]
[java] at wt.util.AppStarter.main(AppStarter.java:479) [codebase/:?]
[java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.exception.ExceptionUtils
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
[java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[?:?]
[java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
[java] ... 10 more
!+! ERROR OCCURRED @ D:\ptc\Windchill_13.0\Windchill\bin\tools.xml:1478: !!!
We are trying to update the upper length limit of the NAME attribute on WTPart, following the steps described in article CS155068. When we run the Ant script (ant -f bin\tools.xml custom_column -Dgen.input=wt.part), we receive the following error in the Shell: java.lang.NoClassDefFoundError: org/apache/commons/lang3/exception/ExceptionUtils
Here are the errors that I faced
ava] Processing single class: wnc/Foundation:wt.part.WTPartMaster
[java] DataStore = SQLServer
[java] wt.generation.sql.useDatastore = false
[java] wt.generation.sql.loadIntrospectionFromClasspath= true
[java] wt.db.maxBytesPerChar = 1
[java] InsternalUsage = false
[java] Begin sql generation for wt.part.WTPartMaster
[java] 15:23:16.508 [main] ERROR wt.util.AppStarter - ERROR: details below
[java] ERROR: java.lang.NoClassDefFoundError: org/apache/commons/lang3/exception/ExceptionUtils (check log for details: D:\ptc\Windchill_13.0\Windchill\buildlogs\tools-CustomizeColumnLength.log)
[java] 15:23:16.521 [main] ERROR wt.util.AppStarter -
[java] java.lang.NoClassDefFoundError: org/apache/commons/lang3/exception/ExceptionUtils
[java] at com.ptc.commons.lang.util.exception.ExceptionUtils.getStackTrace(ExceptionUtils.java:21) ~[codebase/:?]
[java] at wt.tools.SqlGenerator.processModuleQualifiedTarget(SqlGenerator.java:152) ~[SystemGeneration.jar:?]
[java] at wt.tools.SqlGenerator.processClass(SqlGenerator.java:101) ~[SystemGeneration.jar:?]
[java] at wt.tools.generation.ModelProcessor.execute(ModelProcessor.java:89) ~[SystemGeneration.jar:?]
[java] at wt.tools.SqlGenerator.execute(SqlGenerator.java:57) ~[SystemGeneration.jar:?]
[java] at wt.tools.CustomizeColumnLength.sqlGen(CustomizeColumnLength.java:218) ~[SystemGeneration.jar:?]
[java] at wt.tools.CustomizeColumnLength.execute(CustomizeColumnLength.java:83) ~[SystemGeneration.jar:?]
[java] at wt.util.AppStarter.startAppWithCurrentClassLoader(AppStarter.java:287) ~[codebase/:?]
[java] at wt.util.AppStarter.startApp(AppStarter.java:150) [codebase/:?]
[java] at wt.util.AppStarter.main(AppStarter.java:479) [codebase/:?]
[java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.exception.ExceptionUtils
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
[java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[?:?]
[java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
[java] ... 10 more
!+! ERROR OCCURRED @ D:\ptc\Windchill_13.0\Windchill\bin\tools.xml:1478: !!!

