2 Replies Latest reply on May 31, 2009 10:09 AM by Arshad Mahmood

    Seam 2.1.2: Glassfish deploy EAR project

    Daniel Kluge Newbie

      Hi all,


      I followed the instructions of the glassfish-readme.txt of the generated project.
      But if I want to deploy the application to the Glassfish I get the following deployment error:



      gf-deploy:
           [exec] CLI171 Command deploy failed : Deploying application in domain failed; javassist/util/proxy/MethodHandler



      I checked the javassist.jar of the lib-folder. This jar includes the class.


      Here is the extract of the error of the server.log:


      java.lang.NoClassDefFoundError: javassist/util/proxy/MethodHandler
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:247)
           at com.sun.enterprise.util.TypeUtil.getMethod(TypeUtil.java:393)
           at com.sun.enterprise.deployment.MethodDescriptor.getMethod(MethodDescriptor.java:314)
           at com.sun.enterprise.security.application.EJBSecurityManager.convertEJBMethodPermissions(EJBSecurityManager.java:508)
           at com.sun.enterprise.security.application.EJBSecurityManager.loadPolicyConfiguration(EJBSecurityManager.java:257)
           at com.sun.enterprise.security.application.EJBSecurityManager.initialize(EJBSecurityManager.java:309)
           at com.sun.enterprise.security.application.EJBSecurityManager.<init>(EJBSecurityManager.java:191)
           at com.sun.enterprise.security.application.EJBSecurityManager.createManager(EJBSecurityManager.java:1093)
           at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:412)
           at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:260)
           at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
           at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
           at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
           at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
           at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
      Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodHandler
           at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:738)
           at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
           ... 19 more



      Does anybody have an idea what could be the reason?



      Regards