[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Can't save data in database

2005-08-31 Thread khoff999
I've been having the same problem for 2 weeks. Its so bad that my management told me to stop using Hibernate, but I keep playing with it hoping I can figure it out. The problem has to be something stupid, but its equally as stupid that you can execute session.save() and not get an

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Can't save data in database

2005-08-31 Thread khoff999
Here's a little more I found out: During a save Hibernate is executing a method in class AbstractSaveEventListener that is testing whether a variable useIdentityColumn is true or false. It's false in mine (I don't know why, I do have an indentity column defined). It looks to

[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow

2005-07-15 Thread khoff999
Thanks for responding. I'm using JBoss 4.0.2. Yes, the interfaces are in the war file, in a jar under WEB-INF/lib. This was the suggested way to do it in the JBossIDE tutorial. How would you suggest I package them? View the original post :

[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow

2005-07-15 Thread khoff999
Yes, everything was in an ear. I did as you suggested and it works fine. Thanks. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885023#3885023 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885023

[JBoss-user] [EJB/JBoss] - ClassCastException on EJB Remote Lookup/Narrow

2005-07-14 Thread khoff999
HI - I'm new to JBoss and just trying a simple servlet to remote session bean lookup. I keep getting a ClasscastExcepion on the narrow(). I have a simple EJB - MyBean.class, the remote is My.class, the home is MyHome.class. Here is the servlet lookup code (I try it with and w/o EJB