-
1. Re: EJB-Jar ignored at EAR-deployment
jaikiran Dec 24, 2009 8:00 AM (in response to freiser)Is it EJB2.x or EJB3 in that jar? Does it have ejb-jar.xml? If not, then do it have any beans marked with annotations? What's the output of
jar -tf your-ejbjar.jar
-
2. Re: EJB-Jar ignored at EAR-deployment
freiser Dec 24, 2009 9:11 AM (in response to jaikiran)Hello Jaikiran,
there are annotated ejb3-beans in it.
It has an empty ejb-jar.xml in it.
The output of
jar -tf your-ejbjar.jar
is:
META-INF/
META-INF/persistence.xml
de/ - Classes are here
META-INF/conf/
META-INF/conf/application.properties
META-INF/ejb-jar.xml
META-INF/orm.xml
META-INF/MANIFEST.MF
META-INF/services/
META-INF/services/javax.xml.soap.MessageFactory
META-INF/services/javax.xml.soap.SOAPFactory
META-INF/services/javax.xml.ws.spi.provider -
3. Re: EJB-Jar ignored at EAR-deployment
jaikiran Dec 24, 2009 9:55 AM (in response to freiser)1 of 1 people found this helpfulfreiser wrote:
It has an empty ejb-jar.xml in it.
Empty? Any specific reason why you have that? Does it have an xsd declaration? If yes, then is the xsd declaration pointing to ejb-jar_3_0.xsd? If not, then it will not be considered a EJB3 jar and will be skipped from annotation scanning.
-
4. Re: EJB-Jar ignored at EAR-deployment
freiser Dec 24, 2009 10:20 AM (in response to jaikiran)Hello Jaikiran,
sorry, I've looked into it again. It has the following content:
<?xml version="1.0" encoding="ASCII"?>
<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>myApp</display-name>
<ejb-client-jar>myClient.jar</ejb-client-jar>
</ejb-jar> -
5. Re: EJB-Jar ignored at EAR-deployment
jaikiran Dec 26, 2009 10:55 AM (in response to freiser)1 of 1 people found this helpfulBased on the contents in that file, i don't see a reason why the deployment will be skipped. What happens if you remove that ejb-jar.xml altogether?
-
6. Re: EJB-Jar ignored at EAR-deployment
jaikiran Dec 26, 2009 10:56 AM (in response to freiser)freiser wrote:
Jboss 4.2.3.GA
Any chance of upgrading to the latest stable JBoss AS 5.1.0 which has better support for EJB3.
-
7. Re: EJB-Jar ignored at EAR-deployment
freiser Dec 27, 2009 8:59 AM (in response to jaikiran)Hello Jaikiran,
I'm sorry but an upgrade is no option (because of the production system).
In the meantime I've experimented a bit with inserting a blank <enterprise-beans /> - Tag into ejb-jar.xml.
I've inserted by accident to opening tags without a closing tag and jboss complained about it.
So I knew that the file was scanned at deployment time.
I then removed it and magically the ejb-jar gets deployed since that time.
I don't know why.
Thanks for your help.
With kind regards
freiser