weblogic8.1向weblogic9.2移植的Bean already exists: "weblogic.j2ee.descriptor.ServletMappingBeanImpl问题!

Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ServletMappingBeanImpl@8c7ef1f5(/ServletMappings[weblogic.descriptor.internal.CompoundKey@8c4f6960])"
 at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
 at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:483)
 at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRuntimeProperty.fillCollection(AttributeRuntimeBindingType.java:385)
 at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)
 at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:145)
 at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:185)
 at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:154)
 at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
 at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:136)
 at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)

 

原因是:web.xml文件中有一个servlet-mapping配置重复了,删除即可。

在原来的jdk1.4+weblogic8.1环境下,这个错误不会影响启动,但在jdk1.5+weblogic9.2环境下,但抛出异常,引起无法启动服务。

你可能感兴趣的:(技术天地)