Anyone can help me on this.
Previously WTX Ver 10 can call Java classes without issue.
Map Rule: =VALID( JEXIT("JHelper", "getConfigProperty", "WTX_CONFIG_PATH"), FAIL("getConfigProperty: " + LASTERRORMSG()))
Config in dtx.ini:
[External Jar Files]
;
; Lists the names of the JAR files to be included in the CLASSPATH variable
; that is passed to the Java Virtual Machine. Each entry in this section specifies
; the full path of a single JAR file. Specify up to 128 JAR files.
;jar1=<JAR_file>
;jar2=<JAR_file>
;jarN=<JAR_file>
jar1=C:\WTX\EXT_JAR\WTXJHelper.jar
jar2=C:\WTX\EXT_JAR\log4j-1.2.17.jar
jar3=C:\WTX\EXT_JAR\ojdbc8.jar
jar4=C:\WTX\EXT_JAR\ibatis-core-3.0.jar
jar5=C:\WTX\EXT_JAR\commons-dbcp2-2.8.0.jar
jar6=C:\WTX\EXT_JAR\commons-pool2-2.9.0.jar
jar7=C:\WTX\EXT_JAR\commons-logging-1.2.jar
jar8=C:\WTX\EXT_JAR
;
Now in Ver 11:
Map rules no change.
in config.yaml
External Jar Files:
#
# Lists the names of the JAR files to be included in the CLASSPATH variable
# that is passed to the Java Virtual Machine. Each entry in this section specifies
# the full path of a single JAR file. Specify up to 128 JAR files.
jar1: C:\WTX\EXT_JAR\WTXJHelper.jar
jar2: C:\WTX\EXT_JAR\log4j-1.2.17.jar
jar3: C:\WTX\EXT_JAR\ojdbc8.jar
jar4: C:\WTX\EXT_JAR\ibatis-core-3.0.jar
jar5: C:\WTX\EXT_JAR\commons-dbcp2-2.8.0.jar
jar6: C:\WTX\EXT_JAR\commons-pool2-2.9.0.jar
jar7: C:\WTX\EXT_JAR\commons-logging-1.2.jar
# jarN: <JAR_file>
External Jar Directories:
#
# Lists the full directory paths of the jar files to be included in the
# CLASSPATH variable that is passed to the Java Virtual Machine.
# Specify up to 128 directories.
Dir1: C:\WTX\EXT_JAR
# DirN: <directory>
#
The map rules no longer work. What could be the reason?
------------------------------
NeverXP YANG
------------------------------