Skip to main content

Glassfish 3.1.2 DeploymentContext not contain any EJB.

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
4 replies [Last post]
jealzugaray
Offline
Joined: 2011-03-15

hi,

I have an EJB module and deploy on glassfish 3.1.1 as well, but when deploy on 3.1.2 /3.1.2.2 the server say

GRAVE: Exception while preparing the app : No se ha podido cargar el m

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hzhang_jn
Offline
Joined: 2005-07-22

Can you translate the error message to English?

If the exact application deployed successfully in 3.1.1 but not in
3.1.2, it could be a regression. Will you be able to provide a
reproducible test case for us to look into it? You could file an issue
with the test case attached...

Thanks,

- Hong

On 11/8/2012 8:22 AM, forums@java.net wrote:
> hi, I have an EJB module and deploy on glassfish 3.1.1 as well, but when
> deploy on 3.1.2 /3.1.2.2 the server say GRAVE: Exception while
> preparing the
> app : No se ha podido cargar el módulo EJB. DeploymentContext no contiene
> ningún EJB. Compruebe el archivo para asegurarse de que se realiza un
> empaquetado correcto para C:\Program Files
> (x86)\glassfish-3.1.2.2\glassfish\domains\domain1\applications\EJBModule.
> Si
> utiliza anotaciones de componente de EJB para definir el EJB y se utiliza
> también un descriptor de despliegue de ejb o web, asegúrese de que el
> descriptor de despliegue hace referencia a un esquema Java EE 5 o
> superior y
> que el atributo metadata-complete no está definido en true, de forma
> que las
> anotaciones de componente se puedan procesar como se espera INFO: Se ha
> producido una excepción:Error durante el despliegue: Exception while
> preparing the app : No se ha podido cargar el módulo EJB.
> DeploymentContext
> no contiene ningún EJB. Compruebe el archivo para asegurarse de que se
> realiza un empaquetado correcto para C:\Program Files
> (x86)\glassfish-3.1.2.2\glassfish\domains\domain1\applications\EJBModule.
> the
> same ejb.jar but in 3.1.2 not deploy which can be?? thanks juan
>
> --
>
> [Message sent by forum member 'jealzugaray']
>
> View Post: http://forums.java.net/node/892075
>
>

jealzugaray
Offline
Joined: 2011-03-15

Hong,

in english

Error occurred during deployment: Exception while preparing the app : Unable to load the EJB module. DeploymentContext does not contain any EJB. Check the archive to ensure correct packaging for /opt/glassfish3/glassfish/domains/domain1/applications/EJBModule. If you use EJB component annotations to define the EJB, and an ejb or web deployment descriptor is also used, please make sure that the deployment descriptor references a Java EE 5 or higher version schema, and that the metadata-complete attribute is not set to true, so the component annotations can be processed as expected. Please see server.log for more details.

I do ejb.jar for attash

thanks

juan

hzhang_jn
Offline
Joined: 2005-07-22

Thanks for the translation. I did not see the jar attached to the forum
thread. Can you re-attach it? Or better yet, create a GlassFish issue
and attach the test case there and it will be better tracked..

- Hong

On 11/8/2012 11:56 AM, forums@java.net wrote:
> Hong, in english Error occurred during deployment: Exception while
> preparing
> the app : Unable to load the EJB module. DeploymentContext does not
> contain
> any EJB. Check the archive to ensure correct packaging for
> /opt/glassfish3/glassfish/domains/domain1/applications/EJBModule. If
> you use
> EJB component annotations to define the EJB, and an ejb or web deployment
> descriptor is also used, please make sure that the deployment descriptor
> references a Java EE 5 or higher version schema, and that the
> metadata-complete attribute is not set to true, so the component
> annotations
> can be processed as expected. Please see server.log for more details.
> I do
> ejb.jar for attash thanks juan
>
> --
>
> [Message sent by forum member 'jealzugaray']
>
> View Post: http://forums.java.net/node/892075
>
>

jealzugaray
Offline
Joined: 2011-03-15

hi,

now attach the .jar file with ejb module

deploy on glassfish v 3.1.2.2 (build 5)

thanks, juan