users@glassfish.java.net

Re: Unable to load EJBs classes

From: Bernhard Thalmayr <bernhard.thalmayr_at_painstakingminds.com>
Date: Thu, 22 Dec 2011 11:17:14 +0100

How does your archive look like?

As of JEE 6 the assembly of EAR file has been changed and GF enforces
this very strictly (see the discussion on the alias).

Either use --properties compatibilty=v2 when deploying the app or
package it compliant to JEE 6. (See section 8.1.2 of JEE 6 spec).

-Bernhard

On 12/22/2011 10:52 AM, forums_at_java.net wrote:
> Dear All,
>
> While deploying .ear file i'm getting below error in server logs. Please
> reply this if you faced this issue:-
>
> [#|2011-12-22T13:29:24.279+0530|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=27;_ThreadName=Thread-1001;_RequestID=809af1f2-6dc2-439f-9934-59620195d097;|Exception
>
> occured in J2EEC Phasejava.lang.RuntimeException: Error processing
> EjbDescriptor
> com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading
> deployment descriptors for module [wsc] -- Error processing EjbDescriptor
> at
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:406)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:359)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
>
> 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.RuntimeException: Error processing EjbDescriptor
> at
> com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:297)
>
> at
> com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2058)
> at
> com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:735)
>
> at
> com.sun.enterprise.deployment.Application.visit(Application.java:1819)
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:520)
>
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:840)
>
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
>
> at
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
>
> ... 10 more
> Caused by: java.lang.ClassNotFoundException:
> com.csam.wsc.services.mw.billpay.ejb.bean.BillPayManagerBean
> 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:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:254)
>
> ... 17 more
> |#]
>
> Thanks & Regards,
>
> Mohit Kumar Joshi
>
>
>
>
> --
>
> [Message sent by forum member 'mohitkumarjoshi']
>
> View Post: http://forums.java.net/node/876445
>
>
>


-- 
Painstaking Minds
IT-Consulting Bernhard Thalmayr
Herxheimer Str. 5, 83620 Vagen (Munich area), Germany
Tel: +49 (0)8062 7769174
Mobile: +49 (0)176 55060699
bernhard.thalmayr_at_painstakingminds.com - Solution Architect
This e-mail may contain confidential and/or privileged information.If 
you are not the intended recipient (or have received this email in 
error) please notify the sender immediately and delete this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.