Problem: The library referenced on the classpath of this project can only be accessed at runtime if this project is part of an EAR and the EAR’s weblogic-application.xml deployment descriptor references this library.
Resolution 1: Remove the library from the project classpath. For instructions on how to do this, see Removing a library reference from the project classpath.
Resolution 2: Create a new EAR project (or use an existing one). In the EAR project’s Properties (right-click the EAR and select Properties) select the page labeled J2EE Module Dependencies. Locate the project in the list and place a checkmark next to it. Click Finish to associate the project with the EAR project.