Skip to main content

Persistence in glassfish 9.0-b41

15 replies [Last post]
geldouches
Offline
Joined: 2006-02-20

I've some persistence pb since i change my classfish version ( from preview5 to b41 ) :

In the http admin console, i can't see the persistence menu entry in the ressources tree menu.

My entities tables are notre automatiquely created in my database at deployment, the table SEQUENCE is not created too.

Do i have a conf problem ? Do i miss something ?

Thanks for any help.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
geldouches
Offline
Joined: 2006-02-20

ok, i'll try with the last nb nightly build.

The vendor specific strings changes is an interesting way to check too.

thanks

anilam
Offline
Joined: 2005-03-29

Hi Gel,

>> I've found the persistence manager menu entry in the sjsas PE 9 beta

>> I don't find this menu entry in b40 and b41 of glassfish but maybe it's normal ...

Yes, indeed. The Persistence manager factory resource has been removed since Sun Java System App Server 8, and it is there only for backward compatibility. With EJB 3.0 persistence API, we believe it will actually mislead users, thus this was removed from Admin GUI's resource tree *after* Beta Release.

thanks
Anissa

pramodgo
Offline
Joined: 2005-04-05

As far as the automatic creation of the tables have to taken a look at this forum posting :
http://forums.java.net/jive/thread.jspa?threadID=13989&tstart=0

The vendor specific strings have changed and if these are not properly set then the automatic table generation feature would not function properly.

geldouches
Offline
Joined: 2006-02-20

ok but here is my dev conf which i had persistence problems with :

- netbeans-5_5-qbuild-bin-200603130300-windows-13_Mar_2006_0300.exe (68.85 MB)
- glassfish b41
- derby database bundled
- derbyClient.jar for the jdbc driver in the javadb folder.
- a different netbeans user directory for each versions installed.

I'll try it again on monday, i think i've done a mistake somewhere.

thanks for your help and ,yep , i 'll enjoy it.

Message was edited by: geldouches

ludo
Offline
Joined: 2003-06-10

If I recall correctly, the javadb name change is supported only in NetBeans builds post March 13... At that time, GlassFish did not modify yet this, so this qbuild does not know about this.
Try nb nightly build, it's no more or less stable than a Q build imo, but has the latest support.

Ludo

ludo
Offline
Joined: 2003-06-10

In latest build of GlassFish, the 'derby' directory that contains the derby db has been renamed 'javadb'.
Old versions of NetBeans 5.5 builds would not know about this new name, so I suggest you use the latest daily nightly build of NetBeans 5.5, that can now understand this change.

Thanks,
Ludo

ludo
Offline
Joined: 2003-06-10

I forgot: you also need to delete the old NetBeans user directory, to get the new derby definitions from GlassFish.

so

1/ install latest Nb 5.5 daily
2/ delete nb user directory
3/ start nb and register latest GlassFish.
4/ enjoy

geldouches
Offline
Joined: 2006-02-20

Automatic database tables generation from entities still don't work with the following dev conf :

- glassfish-installer-b42-nightly-26_mar_2006
- netbeans-5_5-daily-bin-200603240300-windows-24_Mar_2006_0300
- Empty user directory
- Database : integrated derby database

ludo
Offline
Joined: 2003-06-10

Hi,

Could you send your persistence.xml file for analysis?
I know some property names also changed for GlassFish there.
Thanks,
Ludo

geldouches
Offline
Joined: 2006-02-20

Hi Ludo,

I was using the persistence.xml file generated by the netbeans 5.5 preview.

There is some properties names and values which have changed :

become

Now it works.

Here is the link given by user pramodgo which show some changes.

http://forums.java.net/jive/thread.jspa?threadID=13989&tstart=0

Message was edited by: geldouches

ludo
Offline
Joined: 2003-06-10

glad to read!
too bad we did not keep the old values in deprecated mode. This was just a temporary state for early adopters like you...

geldouches
Offline
Joined: 2006-02-20

I've gone back to b40 and then it works again : persistence and automatic tables creation from entities. It seems that the installation folder of derby has been changed between the 2 builds : derby -> database ... but don't know if it's the cause of the problem.

I don't realy understand but it works with b40 and not since b41 ...

anilam
Offline
Joined: 2005-03-29

Hi geldouches,
I am trying to figure out if this is an admin gui issue. In the admin console, there is never a 'persistence menu entry in the resources tree menu' in any version.
Can you tell me the difference in admin console when you are using b40 vs b41 ? What appears in b40, but not showing up in b41 ? This will really help us to identify the issue.

thanks.
Anissa

geldouches
Offline
Joined: 2006-02-20

Hi Anissa,

Persistence menu differences i've found are not between the b40 and b41 version. I've found the persistence manager menu entry in the sjsas PE 9 beta which is in the Java EE 5 Tools Preview Bundle, The all-in one integrated bundle includes:
NetBeans 5.5 Preview with Java EE 5 Support
NetBeans Enterprise Pack 5.5 Preview with BPEL, XML, and UML support
Sun Java System Application Server PE 9 Beta

This Sun Java System Application Server PE 9 Beta version is not supposed to be a promoted build of glassfish ?

I don't find this menu entry in b40 and b41 of glassfish but maybe it's normal ...

What about the disfunctioning of automatic table generation from entities in the b41 ( with the derby database included in glassfish ) ?

Hope this will help ...

Gel

ludo
Offline
Joined: 2003-06-10

In latest build of GlassFish, the 'derby' directory that contains the derby db has been renamed 'javadb'.
Old versions of NetBeans 5.5 builds would not know about this new name, so I suggest you use the latest daily nightly build of NetBeans 5.5, that can now understand this change.

Thanks,
Ludo