Duplicate name in Manifest: Class-Path 问题处理方案
2007-04-10 11:11
381 查看
当jdk从 1.4.0更新到1.4.2时候,启动tomcat运行struts项目后, 后台会出现异常警告:
java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
这是 jdk 1.4.2的一个bug,我们可以通过修改 struts.jar中Manifest文件来处理.
用winrar打开jar包,然后将MANIFEST.MF拷贝出来,按下面方法修改. 再替换回jar文件中,就可以了. 直接手工操作就可以了,不需要命令行进行重新打包.
原来:
Class-Path: commons-beanutils.jar
Class-Path: commons-collections.jar
Class-Path:commons-dbcp.jar
Class-Path:commons-digester.jar
Class-Path:commons-logging.jar
Class-Path:commons-pool.jar
Class-Path:commons-validator.jar
Class-Path:jakarta-oro.jar
修改为
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
然后替换原来的MANIFEST.MF就可以了.
重新启动tomcat,异常就消失了
java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
这是 jdk 1.4.2的一个bug,我们可以通过修改 struts.jar中Manifest文件来处理.
用winrar打开jar包,然后将MANIFEST.MF拷贝出来,按下面方法修改. 再替换回jar文件中,就可以了. 直接手工操作就可以了,不需要命令行进行重新打包.
原来:
Class-Path: commons-beanutils.jar
Class-Path: commons-collections.jar
Class-Path:commons-dbcp.jar
Class-Path:commons-digester.jar
Class-Path:commons-logging.jar
Class-Path:commons-pool.jar
Class-Path:commons-validator.jar
Class-Path:jakarta-oro.jar
修改为
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
然后替换原来的MANIFEST.MF就可以了.
重新启动tomcat,异常就消失了
相关文章推荐
- Duplicate name in Manifest: Class-Path 问题处理方案
- Weblogic9.2 Duplicate name in Manifest: Class-Path错误
- 警告: Duplicate name in Manifest: Class-Path.解决办法
- JAVA:Duplicate name in Manifest: Class-Path
- Error creating bean with name ‘…’defined in class path resource[applicationContext2.xml]:问题及其解决方法
- Invalid bean definition with name ‘dataSource’ definition in class path resource [applicationContext
- 关于Android studio安装出现“ 'tools.jar' seems to be not in Android Studio classpath..."的问题
- FAQ(23):Error creating bean with name '***' defined in class path resource [applicationContex
- Meavn 搭建项目遇到Error creating bean with name 'sessionFactory' defined in class path resource
- Error registering bean with name 'dataSource' defined in class path resource
- Objects in this class cannot be updated outside an edit session问题解决方案(ArcEngine编辑)
- Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationC
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sqlSessionFactory' defined in class path resource
- creating bean with name 'dataSource' defined in class path resource错误的解决办法
- 项目检出JRE问题(Unbound classpath container: 'JRE System Library [JavaSE-1.7]' in project 'idweb')
- Spring 整合Hibernate报错:Error creating bean with name 'dataSource' defined in class path resource
- 项目检出JRE问题(Unbound classpath container: 'JRE System Library [JavaSE-1.7]' in project 'idweb')
- Failed to read Class-Path attribute from manifest of jar file:/XXX问题