users@glassfish.java.net

Re: deploy --force=true

From: Annies <annies_a_at_yahoo.com>
Date: Wed, 19 Aug 2009 15:30:21 -0700 (PDT)

More details...

stack trace from server.log
--------------------------------
[#|2009-08-19T15:23:03.464-0700|SEVERE|glassfish|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=31;_ThreadName=Thread-2;|Error during deployment : Keys cannot be duplicate. Old value of this key property, nullwill be retained
org.jvnet.hk2.config.TransactionFailure: Keys cannot be duplicate. Old value of this key property, nullwill be retained
    at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:194)
    at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:130)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.registerAppInDomainXML(ApplicationLifecycle.java:750)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:295)
...

application entry in domain.xml
---------------------------------------

    <application enabled="true" location="${com.sun.aas.instanceRootURI}/applications/file2file-1.0-SNAPSHOT/" directory-deployed="false" name="file2file-1.0-SNAPSHOT" object-type="user">
      <property name="isComposite" value="true" />
      <property name="default-EE6-app-name" value="file2file-1.0-SNAPSHOT" />
      <property name="module-name" value="container-created-sa" />
      <engine sniffer="FujiComposite" />
      <module name="container-created-sa.jar">
        <engine sniffer="osgi" />
      </module>
    </application>
  </applications>





________________________________
From: Annies <annies_a_at_yahoo.com>
To: users_at_glassfish.dev.java.net
Sent: Wednesday, August 19, 2009 3:24:19 PM
Subject: deploy --force=true



What am I doing wrong here?


$ ./asadmin deploy --force=true file2file-1.0-SNAPSHOT.jar
com.sun.enterprise.cli.framework.CommandException: remote failure: Error during deployment : Keys cannot be duplicate. Old value of this key property, nullwill be retained : org.jvnet.hk2.config.TransactionFailure: Keys cannot be duplicate. Old value of this key property, nullwill be retained

Command deploy failed.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com