ClassCastException occurred while deploying a domain folder directly in Oracle weblogic 12.1.2

What is the main difference: deploying a WAR file and deploying a domain folder directly in a web application?

I deployed the web application in weblogic 12.1.2 as a WAR file , it works fine. But when I try to deploy the same application as the domain folder directly , I get the following error.

java.lang.ClassCastException: weblogic.j2ee.descriptor.wl.WeblogicApplicationBeanImpl cannot be attributed to weblogic.j2ee.descriptor.wl.WeblogicWebAppBean

I even fixed the namespace problem in weblogic-application.xml, I also checked the duplicate element in weblogic-application.xml, I can not find the duplicate element in it. Can someone help me solve this problem? Many thanks.

+4
source share
1 answer

You must use Maven to create WAR and EAR files. From there, you should deploy the .ear file to Weblogic without any problems. Make sure the properties of your region are set correctly.

0
source

All Articles