[英]Class case exception in weblogic 12c
I deployed a web application to weblogic 12c. 我将Web应用程序部署到了weblogic 12c。 But I got the error in Oracle weblogic configuration shows as below: 但是我在Oracle weblogic配置中显示了如下错误:
**java.lang.ClassCastException: weblogic.j2ee.descriptor.wl.WeblogicApplicationBeanImpl cannot be cast to weblogic.j2ee.descriptor.wl.WeblogicWebAppBean**
I didn't experience the same issue with the older version of weblogic. 我没有遇到较旧版本的weblogic的相同问题。
Can anybody suggest how can I fix this issue. 有人可以建议我如何解决此问题。
Check your descriptors: do they have namespaces defined? 检查您的描述符:它们是否定义了名称空间?
For instance, if you use a weblogic-application.xml descriptor, the root element should be: 例如,如果您使用weblogic-application.xml描述符,则根元素应为:
<weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application” etc.
The older Weblogic (11) was not as strict about this. 较早的Weblogic(11)对此并不严格。
I hope this will help you. 我希望这能帮到您。
Descriptor error comes only when you use the old or wrong descriptor in the xml files. 仅当您在xml文件中使用旧的或错误的描述符时,描述符错误才会出现。 This issue comes either with weblogic-application.xml or weblogic.xml.. 这个问题与weblogic-application.xml或weblogic.xml一起出现。
Use the latest weblogic12c descriptor to get away from the issue. 使用最新的weblogic12c描述符可以解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.