java.lang.Exception: undeploy is failing=Application dukes-age is not deployed on this target [server]

Java.net JIRA | oliviercailloux | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Deploy a war application with eclipse using Glassfish tools integration. Then, using the administration console, undeploy the application (not going through eclipse, thus). Then modify anything in the eclipse application (so that it gets dirty), and ask eclipse to re-publish it. Eclipse says: “cannot Deploy dukes-age, deploy is failing=Application with name [dukes-age] is not deployed.” (And indeed the application is not deployed.) Same thing after restarting eclipse and glassfish. Eclipse log says: First, INFO: GlassFish: Deploy direcotry /usr/local/share/glassfish4/glassfish/domains/domain1/eclipseApps/dukes-age. Second, ERROR: java.lang.Exception: deploy is failing=Application with name [dukes-age] is not deployed at oracle.eclipse.tools.glassfish.GlassfishServerBehaviourDelegate.publishDeployedDirectory(GlassfishServerBehaviourDelegate.java:613) at oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModuleForGlassFishV3(GlassfishV4ServerBehavior.java:96) at oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModule(GlassfishV4ServerBehavior.java:56) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3157) at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Third, ERROR (same stacktrace repeated). Workaround: rename the application in eclipse, deploy it: it gets deployed. Then rename it back to its original name, deploy: it gets deployed.

    Java.net JIRA | 2 years ago | oliviercailloux
    java.lang.Exception: undeploy is failing=Application dukes-age is not deployed on this target [server]
  2. 0

    Deploying app from Eclipse to GlassFish

    Stack Overflow | 2 years ago | user2783755
    java.lang.Exception: deploy is failing=Application with name [elearning] is not deployed
  3. 0

    [GLASSFISH-20616] Strange EntityManager errors in @Singleton @Startup @PostConstruct - Java.net JIRA

    java.net | 2 years ago
    java.lang.Exception: deploy is failing=Error occurred during deployment: Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton TestStartup. Please see server.log for more details.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [#GLASSFISH-20616] Strange EntityManager errors in @Singleton @Startup @PostConstruct

    java.net | 5 months ago
    java.lang.Exception: deploy is failing=Error occurred during deployment: Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton TestStartup. Please see server.log for more details.

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.Exception

      undeploy is failing=Application dukes-age is not deployed on this target [server]

      at oracle.eclipse.tools.glassfish.GlassfishServerBehaviourDelegate.undeploy()
    2. oracle.eclipse.tools
      GlassfishV4ServerBehavior.publishModule
      1. oracle.eclipse.tools.glassfish.GlassfishServerBehaviourDelegate.undeploy(GlassfishServerBehaviourDelegate.java:460)
      2. oracle.eclipse.tools.glassfish.GlassfishServerBehaviourDelegate.publishDeployedDirectory(GlassfishServerBehaviourDelegate.java:520)
      3. oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModuleForGlassFishV3(GlassfishV4ServerBehavior.java:96)
      4. oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModule(GlassfishV4ServerBehavior.java:56)
      4 frames
    3. Server Core
      Server$PublishJob.run
      1. org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091)
      2. org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183)
      3. org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987)
      4. org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
      5. org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3157)
      6. org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
      6 frames
    4. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame