Open glassfishrobot opened 5 years ago
I also got the Caused by: javax.naming.NameNotFoundException: ForestDataSource not found exception when building dukes-forest. After adding the data-source java:global/ForestDataSource to the dukes-payment web.xml, I only had to remove the same definition from dukes-store to make sure it deployed correctly.
Source code version: https://github.com/eclipse-ee4j/jakartaee-tutorial-examples/tree/master/case-studies/dukes-forest 9814044 Server: Glassfish 5.0 build 25
Hi, when trying to build Duke's Forest case-study example in the tutorial, I got the same error explained in issue https://github.com/javaee/tutorial/issues/130#issue-264196325 and solved it following the solution posted in StackOverflow (as mentioned in the issue), but then I got two more errors. I could resolve the first one, but not the other one.
The first one is the following:
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.7.0:redeploy (deploy) on project dukes-payment: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.7.0:redeploy failed: GlassFish admin command with args (--interactive=false --host localhost --port 4848 --user admin --passwordfile F:\Desarrollo\JakartaEE\glassfish5\glassfish\domains\password.properties deploy --force --contextroot dukes-payment F:\Desarrollo\JakartaEE\glassfish5\docs\javaee-tutorial\examples\case-studies\dukes-forest\dukes-payment\target\dukes-payment.war) failed: asadmin exited 1 -> [Help 1]
server.log showed this:
I had to add to web.xml in "dukes-payment" project the following config:
After that, "dukes-payment" project finally deployed, but then I got the second error. It is the following:
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.7.0:redeploy (deploy) on project dukes-store: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.7.0:redeploy failed: GlassFish admin command with args (--interactive=false --host localhost --port 4848 --user admin --passwordfile F:\Desarrollo\JakartaEE\glassfish5\glassfish\domains\password.properties deploy --force --contextroot dukes-store F:\Desarrollo\JakartaEE\glassfish5\docs\javaee-tutorial\examples\case-studies\dukes-forest\dukes-store\target\dukes-store.war) failed: asadmin exited 1 -> [Help 1]
server.log shows this:
Note: I'm using NetBeans 8.2, GlassFish 5 (included in Java EE 8 download zip) and JDK 1.8.0_191.