-
1. Re: JBossCMP 3.0 - Wrong table mapping
dsundstrom Jul 3, 2002 4:55 PM (in response to ukkm)This is weird. Does the server.log file say that it loaded your jbosscmp-jdbc.xml file? If not, run "jar -tf your_jar_file.jar" and make sure there is an entry for "META-INF/jbosscmp-jdbc.xml" capitalization counts.
-
2. Re: JBossCMP 3.0 - Wrong table mapping
ukkm Jul 4, 2002 4:59 AM (in response to ukkm)Thanks for your quick reply. Here are the two lines from the server log saying something about the jbosscmp-jdbc.xml file
2002-07-03 20:32:37,776 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CustomerEJB] Loading standardjbosscmp-jdbc.xml : file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/conf/standardjbosscmp-jdbc.xml
2002-07-03 20:32:38,227 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CustomerEJB] jar:njar:file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/CoCoEJB.ear/79.CoCoEJB.ear^/CoCoEJB.jar!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults
And here a snip of the content from my jar file.
META-INF/
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/jboss.xml
META-INF/jbosscmp-jdbc.xml
coco/
coco/base/
coco/base/CocoAppException.class
coco/base/CocoSysException.class
... -
3. Re: JBossCMP 3.0 - Wrong table mapping
ukkm Jul 4, 2002 6:18 AM (in response to ukkm)Hi Dain,
thanks for your quick reply. This is my second try to post this reply. I hope it won't be redundant. Here are the two lines from the server.log file saying somthing about the jbosscmp-jdbc.xml file:
2002-07-03 20:32:37,776 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CustomerEJB] Loading standardjbosscmp-jdbc.xml : file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/conf/standardjbosscmp-jdbc.xml
2002-07-03 20:32:38,227 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CustomerEJB] jar:njar:file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/CoCoEJB.ear/79.CoCoEJB.ear^/CoCoEJB.jar!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults
And here is a snip from the CoCoEJB.jar listing:
META-INF/
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/jboss.xml
META-INF/jbosscmp-jdbc.xml
coco/
coco/base/
coco/base/CocoAppException.class
coco/base/CocoSysException.class
...
I can't see any specials.
Regards
Udo
Regards
Udo -
4. Re: JBossCMP 3.0 - Wrong table mapping
dsundstrom Jul 4, 2002 11:57 AM (in response to ukkm)It all looks correct to me. Can you post a bug report at source forge a long with a small testcase that reproduced the problem?
-
5. Re: JBossCMP 3.0 - Wrong table mapping
zeeshanarif Jul 4, 2002 3:38 PM (in response to ukkm)I am having the same problem.. so if any body finds the solution, please update.
Thanks,
Zeeshan -
6. Re: JBossCMP 3.0 - Wrong table mapping
zeeshanarif Jul 4, 2002 7:29 PM (in response to ukkm)Found the solution to this problem.
The configuration depends on which CMP version you are using. It also depends on the version of Jboss you are using. I have used CMP1.0 and Jboss3.0.0 with jaws.
For CMP2.0, you need to have the doctype definitions set properly. I was not able to do it. I think I need a lot more documentation to set it properly + CMP2.0 EJB concepts.
I hope it helps. -
7. Re: JBossCMP 3.0 - Wrong table mapping
dsundstrom Jul 5, 2002 12:57 PM (in response to ukkm)You can buy the JBossCMP documentation at FlashLine for $10. Just search for JBoss at www.flashline.com
-
8. Re: JBossCMP 3.0 - Wrong table mapping
ukkm Jul 9, 2002 5:53 AM (in response to ukkm)Hi there,
thanks for your reply. I'm using JBoss 3.0 with CMP 2.0. This is accordingly specified in my ejb-jar.xml following the DTD for EJB 2.0
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
Every tag has a subtag <cmp-version>2.x</cmp-version>. So I think that an application server should be able to properly interprete my deployment descriptors.
I believe that is a problem for a JBoss developer and how I know Dain Sundstrom is already working on it. I hope to get a solution from him very soon.
Best regards
Udo