users@glassfish.java.net

Re: GF 3.1.1: Deployment Error for JEE 1.4 style EJB module

From: Hong Zhang <hong.hz.zhang_at_oracle.com>
Date: Thu, 13 Oct 2011 16:33:44 -0400

Where is the utility.jar packaged in the ejb module?

Try to deploy the ejb jar with the compatibility flag to see if it makes
a difference:
asadmin deploy --property compatibility=v2 foo.jar

Bernhard Thalmayr wrote:
> Hi experts,
> I'm trying to deploy a simple EJB module (consisting of a basic
> stateless session bean).
>
> The stateless session bean uses a class from an utility jar, packaged
> into the module.
>
> When trying to deploy it using 'asadmin' I get the error
>
> "remote failuer: Error occured during deployment: Exception while
> loading the app : EJB Container initialization error. Please see
> server.log for more details."
>
> Unfortunately there's no information in the server.log at all.
>
> Even if I set loglevel for '....container.ejb' and
> '...tools.deployment' to 'FINER' nothing shows up in the log.
>
> I suspect it's a classloading issue.
>
> If put the following entry in MANIFEST.MF
>
> "Class-Path: <utility-jar>"
>
> Any pointers available?
>
> TIA,
> Bernhard
>