glassfish中两个web应用包冲突问题

sailKing 2009-02-06
今天把我的web应用冲tomcat迁移到了glassfish,包括两个应用,但是第二个应用报了Caused by:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)
(Caused by org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
(Caused by org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.))
的错误,如果把那个jar包删除,又出现java.lang.NoClassDefFoundError: org/apache/commons/
logging/LogFactory,这个jar包在应用WEB-INF/lib下,按理说classloader属于Web级不应该冲突,请问有人
遇到过吗?
xzs603 2010-07-26
http://forum.springsource.org/showthread.php?t=44210
Global site tag (gtag.js) - Google Analytics