java - Weblogic: No EJBs found in the ejb-jar file -


when try deploy java ee project weblogic 12c, following error

no ejbs found in ejb-jar file

however, happens when deploy ear source folder , let weblogic compile (split development directory). if build ear first ant , deploy it, deploys fine.

i think problem has fact, ejb module has both annotations , ejb-jar.xml descriptor present. else handled annotations, , ejb-jar.xml introduces ejb-client-jar such.

<?xml version="1.0" encoding="utf-8"?> <ejb-jar xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0">   <display-name>ejb</display-name>   <ejb-client-jar>ejbclient.jar</ejb-client-jar> </ejb-jar> 

also, weblogic-ejb-jar.xml used additional configuration.

but makes pre-built ear , source deployment behave differently in case , how solve problem? application using java ee 5 , ejb 3.0.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -