users@glassfish.java.net

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

From: Bernhard Thalmayr <bernhard.thalmayr_at_painstakingminds.com>
Date: Fri, 14 Oct 2011 09:19:00 +0200

Thanks for the pointer Hong,

the ejb-jar looks as follows ...

META-INF/
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/sun-ejb-jar.xml
com.test
com.test....(EJB-related class-files)
utilities.jar

MANIFEST.MF has
Class-Path: utilities.jar

I created this EJB module using NB 6.9.1

Deployment works using the 'compatibility flag'.

I tried to read most of the related documentation ... would you mind
pointing me to the one I obviously have not read?

Thanks again,
Bernhard

On 10/13/2011 10:33 PM, Hong Zhang wrote:
> 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
>>
>
>


-- 
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.