the weblogic8.1 the portable Bean weblogic9.2 already exists: "weblogic.j2ee.descriptor.ServletMappi

来源:互联网 发布:python post文件 编辑:程序博客网 时间:2024/05/21 06:29

Caused the by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists the: " )
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)

The reason: a servlet-mapping in the web.xml file configuration duplicate, delete it.

In the original jdk1.4 + weblogic8.1 environment, this error does not affect the start, but in jdk1.5 + weblogic9.2 environment, but an exception is thrown, causing the service did not start.


原来是web.xml其中一个<servlet-mapping>重复配置了,注释去掉就可以了

<!--  <servlet-mapping>
  <servlet-name>dispatcher</servlet-name>
  <url-pattern>/workspace/*</url-pattern>
 </servlet-mapping> -->

0 0
原创粉丝点击