java.lang.NoSuchFieldError: fAugmentations

3715 단어 error
오류 정보는 다음과 같습니다.
<Feb 22, 2012 2:42:28 AM EST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchFieldError: fAugmentations.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchFieldError: fAugmentations
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:403)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
        Truncated. see log file for complete stacktrace
java.lang.NoSuchFieldError: fAugmentations
        at org.apache.xerces.util.XMLAttributesMMImpl.addAttribute(XMLAttributesMMImpl.java:158)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerMMImpl.scanStartElement(XMLNSDocumentScannerMMImpl.java:316)
        Truncated. see log file for complete stacktrace
> 
<Feb 22, 2012 2:42:28 AM EST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'pnlWebApp'.
weblogic.application.ModuleException: 
        at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        Truncated. see log file for complete stacktrace
java.lang.NoSuchFieldError: fAugmentations
        at org.apache.xerces.util.XMLAttributesMMImpl.addAttribute(XMLAttributesMMImpl.java:158)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerMMImpl.scanStartElement(XMLNSDocumentScannerMMImpl.java:316)
        Truncated. see log file for complete stacktrace
>
 
해결 방법:
xercesImpl.jar와 xercesPatch.jar 패키지를 weblogic의classpath에 추가
 
분석:
초보적인 분석 원인은 웹logic 자체가 인용한 제3자jar 패키지에xercesjar 패키지가 포함되어 있어 웹app에xercesjar 패키지를 덮어씌웠기 때문이다.

좋은 웹페이지 즐겨찾기