When deploying my application to Weblogic 12.2.1, I get this error:
weblogic.application.ModuleException:
weblogic.utils.compiler.ToolFailureException: Neither prefer-application-packages
nor prefer-application-resources can be specified when prefer-web-inf-classes
is turned on in weblogic.xml
In weblogic.xml
, I have set prefer-web-inf-classes to true.
I use JDeveloper to deploy the application. Nowhere in my application's deployment descriptors (web.xml
and weblogic-application.xml
) do I use prefer-application-packages
or prefer-application-resources
. Why is Weblogic showing this error?
Regards, Jeroen
Check carefully, based on the documentation over here: Deployment Descriptor Elements, A value specified in the Administration Console will take precedence over a value set manually.
So it must have been set somewhere.