I don't know if it can be that but your ejb-jar.xml doesn't begin with "<?xml ..."
I'm using JBoss 3.0Beta and my deployment files look like yours so I think it should work.
Thanks for replying.
I have tried but without results.
The deployment for the JBoss example interest works, but mine doesn't work.
Do I have to modify another file?
I think you are Deploying a ".jar"
So, you need ejb-jar.xml, jboss.xml and jbosscmp-jdbc.xml
You have these 3 files and they seem to be good.
Are you sure you are putting them in a "META-INF" directory ?
To verify, do a "jar tvf yourjarfile"
Another thing. If it doesn't work, send your server.log file please.
I have these files in the meta-inf directory.
Another strange thing is that if I make an error in one of the xml files (for example I dont't close a tag) any error appears at deployment.
Ow, Strange log ;)
There is something very strange. It is that you Bean are being deployed after the Message JBoss (MX MicroKernel)...
And I don't know where do the "Replicant Message" come from. I think it's a clustering problem. Try removing the "cluster-service.xml" from the "deploy" directory (backup this file before).
Thank's a lot for trying to help me. I've just began to work with JBoss.
I think the problem is that the jar is not treated by org.jboss.ejb.EJBDeployer, I don't know why.
For the interest example these are the two essential lines from the log file:
[org.jboss.deployment.MainDeployer] Deploying: file:/C:/jboss-3.0.0beta/deploy/interest.jar
[org.jboss.ejb.EJBDeployer] Deploying Interest
For my example there is only one line
[org.jboss.deployment.MainDeployer] Deploying: file:/C:/jboss-3.0.0beta/deploy/E.jar
I've tried without cluster-service.xml but no result.
The bean was deployed after the JBoss (MX MicroKernel) started because I have deployed the application after starting JBoss.
I have seen 2 things strange.
First, try putting a DOCTYPE at the beginning of each XML file (<!DOCTYPE jboss> for jboss.xml and <!DOCTYPE jbosscmp-jdbc> for jbosscmp-jdbc.xml)
If these DOCTYPE are not set, I don't know if he can verify the file
Second, in your jboss.xml, ejb-local-ref is not allowed. Your jboss.xml should only contains for each Bean the ejb-name and the jndi-name.
Are you sure the directory is META-INF and not meta-inf? meta-inf won't be recognized, and the wrong deployer will pick up the file.
Thank's a lot. With your help I have solved the problem.
The problem was that when I made the jar archive I wrote something like this:
jar cvf E.jar meta-inf\* util\* ejb\*
jar cvf E.jar META-INF\* util\* ejb\*
and even if I had the directory named META-INF, in the archive the directory was named meta-inf.
About the <ejb-local-ref> tag in jboss.xml it is allowed and it works fine. The doctype in jboss.xml and jbosscmp-jdbc.xml are not needed.
Thank's a lot again.