I have a little problem when I run a project from my Netbeans 7.2 (I also use Glassfish 3.1.2 server) ...
In fact, I am migrating existing projects from Ant to Maven, my pom.xml is finished, and I used the context root setting as described here: http://maven.apache.org/plugins/maven-ear-plugin/examples/customizing-context -root.html , but when I run the project from netbeans, it deploys with the name of my .ear: localhost:8080/MyApplicationEAR-0.1-SNAPSHOT instead of localhost:8080/MyApplicationName (referenced by <contextRoot>/MyApplicationName</contextRoot> )
If I write the correct URL in my browser, it works fine, but it is not very nice.
Is there a problem with Netbeans or am I forgetting something?
EDIT: Application.xml is automatically generated by Maven and the context root is well-formed, but Netbeans doesn't seem to matter with that ...
source share