I have found my problems. Basicaly while testing and developing this little EJB the Hypesonic DB had originaly created my Roles table with just the primary key. So each time the Jboss started up it said that the table already existed therefore it did not recreate the table. Although I had the remove-table flag set to true. Which the remove-table says "Should the persistence manager attempt to remove tables during shutdown?" I guess the key word is "ATTEMPT" since it did not successfully remove the table.
So I found the db scripts in a directory under jboss and deleted any reference to my Roles table. Restarted jboss and Waaaalaaaa it works. Oh well live and learn as they say. I'm happy I at least have a some-what working bean at this time. Thanks for the help , i'm sure I will have more questions later.



From: "Kevin Norton" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] Newbie, Help with basic CMP Entity Bean using Jboss
Date: Thu, 25 Sep 2003 10:49:59 -0700


Ok, I took you suggestion and found that it now complains on the comments column.
So I took it one step further and removed the comments attribute and low and behold it creates the entity bean correctly with only the name column.
So it is creating a table with one column, I think.
So I guess I need to figure how to tell it what columns to create in the table. Maybee a Jboss tag?
Thanks for help David,


can anyone assist with what is required to ensure that jboss knows how to create my table with all of my attributes?


> I am using the DefaultDS
>          <jboss
>             version="3.0"
>             xmlencoding="UTF-8"
>             destdir="${ejb.dd.dir}"
>             validatexml="false"
>             typemapping="Hypersonic SQL"
>          />
>
> This is not my ultimate goal but I am trying to keep it simple and not
> connect to my Oracle instance yet.
> So as far as table creation ect.. I believe that Hypersonic is
> creating my table based off of my column desciptors?

It would seem so, otherwise I'd expect it to complain first that the
table doesn't exist. Perhaps it's not creating that particular column?
As a quick test, try removing the description attribute from your bean
entirely and see if it handles the name and comments columns. If so,
then something's amiss with that attribute. If you get the same error
for a different column, then the problem is higher up.

Unfortunately I have never used JBoss, so I won't be so helpful if it's
not a bean issue. :(

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756

_________________________________________________________________
High-speed Internet access as low as $29.95/month (depending on the local service providers in your area). Click here. https://broadband.msn.com




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

_________________________________________________________________
Share your photos without swamping your Inbox. Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to