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.
Web application couldn't be deployed to Remote Application server. The process finishs with exception: java.lang.RuntimeException: No archive for deployment at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:548) [catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:95) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:56) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:301) at org.apache.tools.ant.Target.performTasks(Target.java:328) at org.apache.tools.ant.Project.executeTarget(Project.java:1215) at org.apache.tools.ant.Project.executeTargets(Project.java:1063) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:186) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:230) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
*** Issue 44345 has been marked as a duplicate of this issue. ***
The problem is that the build script in web project is setup for the incremental deployment so that it does not build the war file before deployment. To verify this you can first build the project and then run - that should work. The fix will require an API method in o.n.m.j2ee.deployment.devmodules.api.Deployment: /** Specifies whehter the archive needs to be built before * deployment to a given server. * If this method returns false a directory with files returned by * {@link J2eeModule.getArchiveContents} is enough and the archive * build can be skipped. */ public boolean requiresArchive (String serverInstanceId) { } Then the build-impl in web/project and the nbdeploy task will need to be adjusted to use this property.
I tried deploy my test web app to remote App server, but I got different error. New bugs has been filed, see #48988
[Build promo_e_ea1 041014_01] I tested deploy web app to remote server and it's working as you describe: 1) redeploy project: get Runtime Exception 2) build project and then run is working
Should not affect 4.0 with tomcat primarily local usage. Will be fixed as part of simplify plugin writing. Targeted for 4.1.
j2eeserver can ask plugin if it supports incremental deployment. We would need to add a task that would test this and based on the result set the dependency of nbdeploy on dist target.
Well, if you did not check, I did and noticed that the war file is created even in this case now, so the bug is fixed as far as I can tell.
[build 20050907]