ejb-jar.xml is a file which if it is deployed inside EAR it should be at META-INF of every JAR file. EAR file should be dropped in apps directory not webapps.
But if your EJBs are in a WAR file as a JAR file (WEB-INF/lib), although you putting a jar with an EJB structure, Java EE spec says that this JAR will be treat as any other JAR in classpath (not like EJB-JAR) and the ejb-jar.xml of all jars which contains EJBs should be extracted and stored at WEB-INF directory. I have not read the full mail list but has it sense to your case? 2014-07-23 23:46 GMT+02:00 Romain Manni-Bucau <[email protected]>: > without testing locally no real idea. > > Maybe the jar name is filtered. Debug level can surely help > > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-07-23 23:20 GMT+02:00 jar <[email protected]>: > > > Can you think of any mistakes that would keep tomee from reading my > > ejb-jar.xml file? > > > > I'm running with an otherwise exploded .ear file in my webapps directory, > > and when I corrupt the xml element naming in ejb-jar.xml, I don't get any > > startup complaints in catalina.out > > > > Here is the catalina.out log when I deploy my application exploded > > directory manuall into the webapps dir .... using the following as sthe > > beginning of the ejb-jar.xml file ... (notice no complaints in the log > > ....) > > > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > > <xxxejb-jar xmlns="http://java.sun.com/xml/ns/javaee"> > > > > > > > > Jul 23, 2014 2:18:56 PM org.apache.catalina.startup.HostConfig > > deployDirectory > > INFO: Deploying web application directory > > /usr/local/Tideworks/gatekeeper-2.0/apache-tomee-plus-1.6.0.1/webapps/GMS > > Jul 23, 2014 2:18:56 PM org.apache.tomee.catalina.TomcatWebAppBuilder > init > > INFO: ------------------------- localhost -> /GMS > > Jul 23, 2014 2:18:56 PM org.apache.tomcat.util.digester.Digester > endElement > > WARNING: No rules found matching 'Context/env-entry/env-entry-name'. > > Jul 23, 2014 2:18:56 PM org.apache.tomcat.util.digester.Digester > endElement > > WARNING: No rules found matching 'Context/env-entry/env-entry-type'. > > Jul 23, 2014 2:18:56 PM org.apache.tomcat.util.digester.Digester > endElement > > WARNING: No rules found matching 'Context/env-entry/env-entry-value'. > > Jul 23, 2014 2:18:56 PM org.apache.tomcat.util.digester.Digester > endElement > > WARNING: No rules found matching 'Context/env-entry'. > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using 'openejb.deployments.classpath.filter.systemapps=false' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.config.DeploymentsResolver > > loadFromClasspath > > INFO: Inspecting classpath for applications: 28 urls. Consider adjusting > > your exclude/include. Current settings: > > openejb.deployments.classpath.exclude='', > > openejb.deployments.classpath.include='.*' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.config.DeploymentsResolver > > processUrls > > INFO: Found PersistenceModule in classpath: > > > > > /usr/local/Tideworks/gatekeeper-2.0/apache-tomee-plus-1.6.0.1/webapps/GMS/GMSStore-minus-beans.jar > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > Jul 23, 2014 2:18:56 PM org.apache.openejb.util.OptionsLog info > > INFO: Using > > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > > > > > > > > > > -- > > View this message in context: > > > http://tomee-openejb.979440.n4.nabble.com/java-comp-env-ejb-BeanFactoryPath-tp4670687p4670697.html > > Sent from the TomEE Users mailing list archive at Nabble.com. > > > -- +----------------------------------------------------------+ Alex Soto Bueno - Computer Engineer www.lordofthejars.com +----------------------------------------------------------+
