-
1. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
feuxeu77 Apr 8, 2002 5:52 AM (in response to miriam)Hi,
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.
Regards
FX -
2. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
miriam Apr 8, 2002 6:50 AM (in response to miriam)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? -
3. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
feuxeu77 Apr 8, 2002 7:12 AM (in response to miriam)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"
----
FX -
4. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
feuxeu77 Apr 8, 2002 7:18 AM (in response to miriam)Another thing. If it doesn't work, send your server.log file please.
-
5. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
miriam Apr 8, 2002 7:31 AM (in response to miriam)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. -
6. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
feuxeu77 Apr 8, 2002 7:38 AM (in response to miriam)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). -
7. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
miriam Apr 8, 2002 8:03 AM (in response to miriam)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. -
8. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
miriam Apr 8, 2002 8:05 AM (in response to miriam)The bean was deployed after the JBoss (MX MicroKernel) started because I have deployed the application after starting JBoss.
-
9. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
feuxeu77 Apr 8, 2002 8:58 AM (in response to miriam)OK,
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.
----
FX -
10. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
davidjencks Apr 8, 2002 10:36 AM (in response to miriam)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.
-
11. Re: Nothing happens at deployment from cmp with JBoss3.0 bet
miriam Apr 9, 2002 3:26 AM (in response to miriam)Hello!
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\*
instead of
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.