[FIRSTCUP-18] Missing Persistence explanation Created: 16/Apr/14 Updated: 25/Apr/14 Resolved: 25/Apr/14
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
The persistence functionality together with the needed database is completely missing.
|Comment by jendrock [ 16/Apr/14 ]|
Could you please list the software that you are running?
We have never seen or heard of this error before, so I suspect it is a configuration issue that can easily be fixed once the problem has been narrowed down.
Please read Section 1.2, "Requirements for this Tutorial: A Checklist," which you can access here: http://docs.oracle.com/javaee/7/firstcup/doc/intro002.htm#GCQZL
|Comment by JKitzbichler [ 17/Apr/14 ]|
I have the following software versions installed:
Glassfish: 4.0 (Build 89)
I think, but I'm no more really sure, that I have installed Netbeans separetly from the Glassfish server,
The Glassfish error message during the deployment process - partely in German:
Do I need the "Java EE 7 SDK Extensions 4.0-89" and or
Also "Java EE 7 SDK Full Platform" and "Java EE 7 SDK Web Profile", each with version 4.0-89,
Do I have to install these four packages?
In the first-cup tutorial the persistence part is not really explained. The database handling,
Also it was not possible for me to create the projects out of the Maven Archetypes,
|Comment by Kim Haase [ 17/Apr/14 ]|
Your software versions look fine. You do not need the extensions, and you can use either the full profile or the web profile version of the Java EE 7 SDK.
This tutorial doesn't go into detail about the technologies – it is just a quick start to get you used to building and running an application. For information about persistence and JAX-RS you can consult the Java EE 7 Tutorial.
When you followed step 1 in "126.96.36.199 Install the Maven Archetypes", how many projects did you see under Projects after you selected "example" and clicked Open Project? You should see six:
If you saw only firstcup, it may be that the checkbox "Open Required Projects" was not selected. You need to open the required projects.
When you follow the instructions to create a dukes-age (and firstcup-war) application, you will then see two projects with identical contents. We suggest that you close the old ones before creating the new ones. By default, the new ones are created in your NetBeansProjects directory under your home directory, but they will appear next to the existing ones in the IDE, which can be quite confusing. Alternatively, you could give the new ones slightly different names from the existing ones.
We did encounter the same persistence error, which indicates that the database server is not running. This is because the Maven project doesn't start the database. We will need to change the project file and/or the instructions so that the database is started before you deploy the firstcup-war application.
The workaround for now is to go to the Services tab, expand the Databases node, right-click "Java DB" and choose Start Server, then deploy the application.
Thank you very much for pointing out this error. (We've found a few more while testing this, so thank you even more.)
|Comment by jendrock [ 17/Apr/14 ]|
|Comment by Kim Haase [ 25/Apr/14 ]|
We have released a new version of the First Cup Tutorial , 7.0.1-8, that fixes a number of issues we found. I hope you find it usable.
The description of Persistence is still brief, but the Java EE 7 Tutorial is the place to go for more information.
Thanks for bringing our attention to First Cup.