Hi Fang,
From the error you’ve shown, it looks like there’s issue in the loading of the classes. Have you edited the classpath in server.bat?
Have you tried to reload the package? If yes and if you’ve seen an error which reads “The class that has an instance of the shared library has already been loaded and the package cannot be reloaded.”, please move classes which load native libraries up the heirarchy, to be either in a parent package or to be loaded in the server class loader (lib/jars).
Also, class changes made inside a package class loader will take effect by just reloading the package. Thus, server restarts are not need needed unless If a package class loader contains native JNI code, then the server will need to be restarted because a package containing native JNI code can not be reloaded.
Class loaders load from the following (in order):
(package_name)/code/classes.zip
If this file exists
(package_name)/code/jars
All .jar and .zip from this directory of each package if it exists.
(package_name)/code/classes
Includes files in this directory if it exists
(package_name)/resources
Includes files in this directory if it exists
During runtime, the precedence when searching for a class is:
Resources (eg. .properties files)
jars
classes
Thanks,
WM
#Adapters-and-E-Standards#webMethods#Integration-Server-and-ESB