Java: duplicate name in manifest: Class-Path
If your web is based on the struts model, this error may occur,
Java. util. Jar. Attributes read
Duplicate name in manifest: Class-Path
Although this does not affect the Web operationProgramPersonnel, it should be done.
I checked it on Google and found that the following webpage (in English) has a good explanation of this problem ,:
Http://www.deftcode.com/archives/duplicate_class_path_entries.html
I just want to focus on it.
1. The problem is in the Struts. jar file. We need to decompress it with WinRAR first, and we 'd better decompress it to the struts folder.
2, modify struts/META-INF/manifest. MF
Only one class-path is retained.
Class-path: commons-beanutils.jar commons-collections.jar commons-dbcp.jar commons-digester.jar commons-logging.jar commons-pool.jar commons-validator.jar jakarta-oro.jar
Each jar is separated by spaces.
3. Save manifest. MF to the struts folder,
Run cmd to enter the struts folder.
Command jar CMF ../manifest. MF struts. Jar
Now, the new struts. jar is available! Use this new struts. jar to replace the original one. Just restart tomcat.