users@glassfish.java.net

Re: [Glassfish 3] Deployment fails on a NullPointerException.

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 Apr 2010 08:03:49 PDT

I did mvn install from ear directory

Missing:
----------
1) wschwendt:WS_SimpleEARTestModule-ejb:ejb:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=wschwendt -DartifactId=WS_SimpleEARTestModule-ejb -Dversion=1.0-SNAPSHOT -Dpackaging=ejb -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=wschwendt -DartifactId=WS_SimpleEARTestModule-ejb -Dversion=1.0-SNAPSHOT -Dpackaging=ejb -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) wschwendt:WS_SimpleEARTestModule-ear:ear:1.0-SNAPSHOT
        2) wschwendt:WS_SimpleEARTestModule-ejb:ejb:1.0-SNAPSHOT

2) wschwendt:WS_SimpleEARTestModule-appclient:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=wschwendt -DartifactId=WS_SimpleEARTestModule-appclient -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=wschwendt -DartifactId=WS_SimpleEARTestModule-appclient -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) wschwendt:WS_SimpleEARTestModule-ear:ear:1.0-SNAPSHOT
        2) wschwendt:WS_SimpleEARTestModule-appclient:jar:1.0-SNAPSHOT

----------
2 required artifacts are missing.

for artifact:
  wschwendt:WS_SimpleEARTestModule-ear:ear:1.0-SNAPSHOT

from the specified remote repositories:
  glassfish-internal (http://maven.sfbay/mirrors/glassfish/),
  java.net (http://download.java.net/maven/1),
  central (http://repo1.maven.org/maven2)


And I was able to reproduce the problem with the ear. Thanks. Besides the NPE in the sever.log, I also got some message about not recognized module type. I will look into it and update the thread when I have more information.

hzhang_at_nmr:~/downloads/wsch$ asadmin deploy WS_SimpleEARTestModule.ear
com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while preparing the app : org.glassfish.deployment.common.DeploymentException
Module type not recognize
[Message sent by forum member 'hzhang_jn']

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