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.

Bug 45784 - NPE while deployment to remote App Server
Summary: NPE while deployment to remote App Server
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
: 44345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-01 10:21 UTC by Petr Blaha
Modified: 2006-03-24 09:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2004-07-01 10:21:12 UTC
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)
Comment 1 Petr Blaha 2004-07-01 10:41:51 UTC
*** Issue 44345 has been marked as a duplicate of this issue. ***
Comment 2 Pavel Buzek 2004-09-09 00:00:59 UTC
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.
Comment 3 Petr Blaha 2004-09-14 10:28:14 UTC
I tried deploy my test web app to remote App  server, but I got
different error. New bugs has been filed, see #48988
Comment 4 Petr Blaha 2004-10-19 15:59:07 UTC
[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 
Comment 5 Nam Nguyen 2004-11-10 19:18:51 UTC
Should not affect 4.0 with tomcat primarily local usage.  Will be
fixed as part of simplify plugin writing.  Targeted for 4.1.
Comment 6 Pavel Buzek 2005-02-23 15:10:32 UTC
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.
Comment 7 _ ludo 2005-02-25 02:02:59 UTC
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.
Comment 8 Petr Blaha 2005-09-08 11:52:37 UTC
[build 20050907]