eclipse-ee4j / jakartaee-examples

Jakarta EE Examples
Other
124 stars 44 forks source link

Can you please help with me resolving this error? #74

Open andyt98 opened 1 year ago

andyt98 commented 1 year ago

ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven3-plugin:1.10.6:redeploy (deploy) on project hello1: Execution deploy of goal org.codehaus.cargo:cargo-maven3-plugin:1.10.6:redeploy failed: Failed to create deployer with implementation class org.codehaus.cargo.container.glassfish.GlassFish7xInstalledLocalDeployer for the parameters (container [id = [glassfish7x]], deployer type [installed]).: InvocationTargetException: The container configuration directory "C:\Users\andyt\Desktop\jakartaee-examples\tutorial\web\faces\hello1/target/glassfish7/glassfish/domains" does not exist. Please configure the container before attempting to perform any local deployment. Read more on: https://codehaus-cargo.github.io/cargo/Local+Configuration.html -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

I followed all the steps in the tutorial, but when trying to build the first example, I get this error. Any help would be appreciated :) Thank you!

arjantijms commented 1 year ago

Essentially you need to do this: "Please configure the container before attempting to perform any local deployment. "

But it's difficult and error prone, even for very experienced people.

jhammen commented 2 months ago

I encountered the same error attempting to build the examples and was able to fix it by editing in the examples project top-level pom.xml, I changed it from ${session.executionRootDirectory}/target/glassfish7 to the location of my glassfish 7 install