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


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> -->

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值