You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/04/09 17:53:21 UTC

DO NOT REPLY [Bug 18864] New: - duplicate Class-Path entries in Manifest causes warnings

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18864>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18864

duplicate Class-Path entries in Manifest causes warnings

           Summary: duplicate Class-Path entries in Manifest causes warnings
           Product: Struts
           Version: 1.1 RC1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: chuck@myrealbox.com


When running a struts app under Resin, I get numerous warnings of this sort from 
resin.




[08:23:07.102] Duplicate name in Manifest: Class-Path


[08:23:07.102] Duplicate name in Manifest: Class-Path


[08:23:07.102] Duplicate name in Manifest: Class-Path


[08:23:07.102] Duplicate name in Manifest: Class-Path


[08:23:07.102] Duplicate name in Manifest: Class-Path


[08:23:07.112] Duplicate name in Manifest: Class-Path


[08:23:07.112] Duplicate name in Manifest: Class-Path




jboss warns fewer times, but it's logging it as an outright error.  This happens 
because struts.jar!META-INF/MANIFEST.MF has classpath entries like this:




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




The jar spec at http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#JAR 
Manifest says Class-Path may contain multiple entries separated by spaces.  I 
changed the Class-Path in struts.jar to read as follows, and it worked out fine.




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




Using multiple attributes *should* be perfectly legal according to the jar 
specification, but it generates these warnings nonetheless. It's not critical, 
just really annoying.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org