When building CLM application or integrating with third party application there is always requirement to add custom jar files. I have been involved/assisted on couple of CLM projects and found issue deploying custom jar files using standard custom jar file deployment tool provided in CLM Installation and configuration guide. The jar file added had "Zero" size .
In this blog I would like to present couple of other options that can be used to deploy Custom Jar files.
1. CLM Installation and configuration Guide (Standard process to deploy custom jar files is available in attached link).
...............................................................................................................................................................................................................................................................................................................................................................................................................................................
2. Adding custom jar files to esourcing ear file manually using WinRaR or WinZip
esoserver.ear (CLM newer Version) or fcsourcing.ear (CLM older Version)
b. Modify the extension from .ear to .zip, and unzip the zip file or use WinRAR
The unzipped folder should look like one in the screen shot
c. Unzipped fcsourcing.war, the unzipped fcsourcing file should look like one in the screen shots
Delete the fcsourcing.war file after unzip.
d. Go to esoserver\fcsourcing\WEB-INF\lib (new CLM version) or fcsourcing\ fcsourcing \WEB-INF\lib (old CLM Version) folder
Add custom jar files required for your project.
e. Go back to fcssourcing folder (war file folder) and select all files as shown below in the screen shot
f. Select add archive.
g. After archive step , the folder should look like one in the screen shot
h. Rename fcssourcing.zip to fcssourcing.war.
Copy fcssourcing.war file and paste it in “esoserver” folder, the esoserver folder should look like one in the screen shot.
i. Delete fcssourcing folder
j. Select all files in esoserver folder and create archive
Rename esoserver.zip to esoserver.ear
K. Now esoserver.ear is ready for deployment with custom jar files. Undeploy existing ear file and deploy new ear file with custom jars when following "Manually Adding Custom Jar files Option".
...............................................................................................................................................................................................................................................................................................................................................................................................................................................
3. Adding Custom Jar files using ANT Script :
I have written an ANT script (attached) that can be used to add custom jar file.
http://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/index.html
b. Download ANT and set ANT Home
http://ant.apache.org/manual/install.html
c. Create two folders with below names
d. Download and copy attached build file
Your folder and file structure should look similar to below screen shot
e. Copy esoserver.ear to “esourcing_ear_file” folder
f. Copy all the custom jar files you require to “custom_jar_files” folder
g. Open command prompt and go to directory with build file
h. Execute ant command
i. new ear file generated should be found in “esourcing_ear_file” with custom jar file
j. undeploy existing ear file and deploy new ear file with custom jars
...............................................................................................................................................................................................................................................................................................................................................................................................................................................
*Note : if you are working with older version of esourcing, please edit the build file with older ear file name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 |