When application.xml exists in an application, the modules except the library JAR are determined from the contents of application.xml according to the Java EE specifications. However, if the application.xml version is 1.4 or earlier, the library JAR is determined according to the specifications unique to Application Server. The rules for determining the library JAR modules are different when the application.xml version is Java EE 5 or later and when the version is J2EE 1.4 or earlier. This subsection describes the rules for determining the library JAR modules separately for the cases when the application.xml version is Java EE 5 or later and when the version is J2EE 1.4 or earlier.
When the application.xml version is Java EE 5 or later, excluding the following files, the JAR files (files with extension .jar in lower case) directly beneath the library directory and those directly beneath the J2EE application root are considered as library JAR:
The following table lists the rules for determining the modules when the application.xml version is Java EE 5 or later.
Table 11-9 Rules for determining the modules when the application.xml version is Java EE 5 or later
Value of the <library-directory> tag | Library JAR# | |
---|---|---|
Existing directory | / | file-name.jar |
Other than / |
| |
Non-existent directory | file-name.jar | |
Existing file | KDJE42360-E is output during import and an error occurs. | |
Null | file-name.jar | |
Tag does not exist |
|
The JAR files (the files with extension .jar in lower case) other than the following files are considered as library JAR:
If library-directory/file-name.jar is written in the <module> tag of application.xml directly beneath the META-INF directory, that JAR file is not recognized as a library JAR. Also, hitachi-runtime.jar is also not recognized as a library JAR. The following table lists the examples of JAR files handled as a library JAR.
Table 11-10 Examples of JAR files handled as a library JAR
Path in the EAR file | application.xml version | |||
---|---|---|---|---|
J2EE1.4 | Java EE 5 or later | |||
<library-directory> value | ||||
lib | library | No tags | ||
lib1.jar | Library JAR | Library JAR | Library JAR | Library JAR |
lib/lib2.jar | Library JAR | Library JAR | -- | -- |
library/lib3.jar | Library JAR | -- | Library JAR | -- |