users@glassfish.java.net

Deployment error: Delegate is not set yet...how to solve this error?

From: <glassfish_at_javadesktop.org>
Date: Mon, 06 Jul 2009 23:52:30 PDT

Hi all,

   I am currently working on a web application using netbeans. I am using sun glassfish webspace server 10 and mysql database. I have added portlet plugins to the project. But when i build and deploy the project I get the following error. I am not sure what I have to do. Please guide me. The error is as follows

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
Copying 14 files to C:\Users\Sambaash\Documents\NetBeansProjects\CustomerApplication\build\web\WEB-INF\classes
library-inclusion-in-manifest:
compile:
compile-jsps:
Deployment error:
Delegate is not set yet
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:198)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:499)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.IllegalStateException: Delegate is not set yet
        at org.netbeans.modules.j2ee.deployment.impl.TargetModule.delegate(TargetModule.java:180)
        at org.netbeans.modules.j2ee.deployment.impl.TargetModule.getTarget(TargetModule.java:194)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.canFileDeploy(TargetServer.java:218)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.supportsDeployOnSave(TargetServer.java:707)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:167)
        ... 16 more
BUILD FAILED (total time: 0 seconds)
[Message sent by forum member 'sethu171988' (sethu171988)]

http://forums.java.net/jive/thread.jspa?messageID=354307