users@glassfish.java.net

Re: Accessing EJB in different EAR?

From: Sahoo <Sahoo_at_sun.com>
Date: Tue, 03 Feb 2009 12:48:11 +0530

glassfish_at_javadesktop.org wrote:
> Hi Sahoo,
>
> the ear that contains ABSessionBean can be deployed without any problems. I've added the following mappedName attribute:
>
> [...]
> @Stateless(mappedName="ABSession")
> [...]
> But to no avail.
What didn't succeed? Didn't you see ABSession in JNDI tree?
> Both EJBs are packaged in EARs that contain a meta-inf/Manifest.mf and in the case of XYSession a jar-File containing the class-Files of the XY remote interface and the implementing class, plus the AB remote interface. Still, when trying to deploy the EAR I get an error message saying "Error processing EjbDescriptor." and the following entry in the log file:
>
I still don't understand how you have packaged them. It does not tell
the ear layout. Why can't you send us "jar tf" output of ear as well
every jar inside the ear? Check the log to see if actually your EJB got
deployed or not. Before you attempt to deploy the second ear, ensure
that ABSessionBean appears in JNDI.

Sahoo

> Zeitstempel
>
> 02.02.2009 17:19:25.943
> Protokollebene
>
> SEVERE
> Protokollierungsfunktion
>
> javax.enterprise.system.tools.deployment
> Namens-/Wertepaare
>
> _ThreadID=25;_ThreadName=Thread-34041;_RequestID=322dabed-dfc4-48da-a747-058875f6dd51;
> Eintragsnummer
>
> 620
> Nachrichten-ID
>
> Ausnahmefehler in J2EEC-Phasejava.lang.RuntimeException
> Vollständige Meldung
>
> Error processing EjbDescriptor com.sun.enterprise.deployment.backend.IASDeploymentException: Fehler beim Laden der Bereitstellungsbeschreibungen für Modul [testInjectXY] - Error processing EjbDescriptor at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390) at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358) at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294) at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207) at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788) at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187) at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223) Caused by: java.lang.RuntimeException: Error processing EjbDescriptor at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:281) at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2058) at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734) at com.sun.enterprise.deployment.Application.visit(Application.java:1754) at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:470) at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:366) ... 11 more Caused by: java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:334) at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:136) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:238) ... 16 more
>
> Any help is appreciated. Thanks for your patience.
>
> Michael
> [Message sent by forum member 'mschwind' (mschwind)]
>
> http://forums.java.net/jive/thread.jspa?messageID=329653
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>