This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I noticed there are changes done to the build-impl.xml file when the project is compiled on 7.0.1. It gives a NPE. Exactly the same project (reverting the changes done by 7.0.1) deploys successfully on the same container (Tomcat 7) without any further changes. The project can be checked out from https://xinco.svn.sourceforge.net/svnroot/xinco/trunk Notice that you need to clean and build on 7.0.1 to trigger the issue. 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:104) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.initialDistribute(TargetServer.java:263) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:638) [catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:197) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Created attachment 109199 [details] Log with the issue After switching to 7.0 then back to 7.0.1 the issue was gone. Attaching the log showing the issue.
PetrH, feel free to lower to P3 if impact is limited. At first sight looks like a regression or something in 7.0.1.
I am not aware of any changes in call stack that could introduce this. I'm not able to reproduce the issue as the freshly checkout project is not buildable (non utf char, missing org.eclipse.* class). Can you provide steps to reproduce the issue with clean installation of NetBeans and Tomcat 7? Including project configuration. The project seems to be somehow customized.
You can get a working project from: https://xinco.svn.sourceforge.net/svnroot/xinco/trunk I would load it but I'm away from home with limited speed internet access and will be for at least 3 more weeks.
As I wrote I've checked out the project from the URL you provided, but it is not prepared for "open - assign server - run". There are some missing dependencies etc. Would be great to have step by step configuration instructions. Thanks.