2.12.7 remove-library
Removes one or more library JAR files from Java EE Server.
Synopsis
asadmin [asadmin-options] remove-library [--help] [--type={common|ext|app}] library-name [library-name ...]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The remove-library subcommand of asadmin removes one or more library JAR files from Java EE Server. You can specify whether the libraries are removed from the Common class loader directory, the Java optional package directory, or the application-specific class loader directory. This subcommand is supported in remote mode only.
The library archive file is removed from the DAS. For common and extension libraries, you must restart the DAS so the library removals are picked up by the server runtime. To remove the libraries from other server instances, synchronize the instances with the DAS by restarting them.
Precondition
-
Domain Administration Server (DAS) is running.
-
A library must already be added to Java EE Server.
Files
-
For type -common,
Removes the library files from the Common class loader directory, domain-dir/lib.
-
For type -ext,
Removes the library files from the Java optional package directory, domain-dir/lib/ext.
-
For type -app,
Removes the library files from the application-specific class loader directory, domain-dir/lib/applibs. From the above directories Space separated list of library JAR file name which will be deleted from the DAS.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --type={common|ext|app}
-
Specifies the library type and Java EE Server directory from which the library is to be removed.
Type: String
The following values can be specified:
-
common
Removes the library files from the Common class loader directory: domain-dir/lib. This is the default value.
-
ext
Removes the library files from the Java optional package directory, domain-dir/lib/ext.
-
app
Removes the library files from the application-specific class loader directory, domain-dir/lib/applibs.
Default value: common
-
- library_name
-
Specifies the names of the JAR files that contain the libraries that are to be removed.
Type: String
The following values can be specified:
-
Name of the archive
Default value: N/A
-
Examples
The following example removes the library in the archive file mylib.jar from the application-specific class loader directory on the default server instance.
asadmin remove-library --type app mylib.jar
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |