The prefer-application-packages element you see above sets up WebLogic's Filtering Classloader
.
Each class whose package matches one of the package-name elements
listed will be searched for first within the EAR before relying on the
WebLogic system classloader's version. If a package for a particular
class is not listed here, WebLogic will try to load its own (possibly
older) version first, so if you are getting deployment errors due to
any particular class you might wish to add its package here.
Also note you can, and may need to, specify other options in the
weblogic-application.xml file such as XML processing factories as shown
here
. See the WebLogic guide
for more information.
Run "jar cvf ..." command to create the ear and then deploy it. Alternatively, this blog entry
provides a Mavenized method of building the EAR.