NetBeans: Deploying on GlassFish Server profile mode: false debug mode: false force redeploy: true Starting GlassFish Server GlassFish Server is running. Deployment error. See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:245) at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:184) at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:135) at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:235) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) Caused by: java.lang.NullPointerException at org.netbeans.modules.j2ee.deployment.plugins.spi.IncrementalDeployment.getDirectoryForNewApplication(IncrementalDeployment.java:147) at org.netbeans.modules.j2ee.deployment.impl.InitialServerFileDistributor.distribute(InitialServerFileDistributor.java:105) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.initialDistribute(TargetServer.java:261) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:666) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:197) ... 4 more