Hello,
The
Java EE 7 Tutorial (the two Oracle books) has three final examples, which need to be deployed with
Maven.
The book assumes that the examples work just out of the box. But..
The first example, Dukes bookstore does work. It's a simple WAR application with
JSF.
The second example, Dukes tutoring doesn't work. Is a little more complicated WAR and JAR application together in an EAR folder.
I right clicked the EAR file in Netbeans and build the app with dependencies.
I got the following error:
I've checked the pom.xml (the relevant bit):
What could be wrong is the ${glassfish.home} var. Does anyone know where i can reset this var? In the error, the location is wrong compared with the actual location.
Hopefully this solves the issue.
The third example, Dukes Forest doesn't work as well. Is the most comlete application with Entities in a sepperated JAR,
EJB container and three WAR apps.
The building with dependencies is succesfull. How as my ${glassfish.home} seems to be wrong? It must be declared in the app itself then? The pom.xml is exactly the same.
Now when running one of the WAR's (i.e. dukes-store) i get:
The groupid is for each subproject of the AER file: org.glassfish.javaeetutorial.
So what could i be missing?
So my two main Maven questions are:
1. (Second example) How can i set the ${glassfish.home} var right? And is this actually the reason for the error?
2. (third example) How can the app be build succesfully, missing dependecies? Wasn't the
org.glassfish.javaeetutorial:dukes-payment:war:7.0.5 package local?
Hopefully with some help i can get the examples working and get to learn more about Jave EE and Maven.
Thanks!
Peter,