NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NB 6.7.1 Problem deploying an ear on glassfish v2ur2

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
pepelara



Joined: 29 Nov 2008
Posts: 115

PostPosted: Sun Aug 30, 2009 5:05 pm    Post subject: NB 6.7.1 Problem deploying an ear on glassfish v2ur2 Reply with quote

Hello,

I have two web war applications and the same ejb-jar for both of them.
All toguether is built in an ear. But when I try to deploy on glassfish, it
throws the following exception,

Exception occured in J2EEC Phasejava.lang.IllegalArgumentException: Invalid ejb jar [catalogo-ejb.jar]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven), please check server.log to see whether the annotations were processed properly.
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [Almacen-Catalogo] -- Invalid ejb jar [catalogo-ejb.jar]: it contains zero ejb.

1.- The ejb-jar contains POJOs and PojoJpaControllers in different packages.
2.- Every web war can be deployed and run ok.

It is when I have built the ear I have the exception.

Here is the application.xml descriptor of the ear,

<?xml version="1.0" encoding="UTF-8"?>
<application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
<display-name>Almacen-Catalogo</display-name>
<module>
<ejb>catalogo-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>Catalogo-web.war</web-uri>
<context-root>/catalogo</context-root>
</web>
</module>
<module>
<web>
<web-uri>MiAlmacen.war</web-uri>
<context-root>/almacen</context-root>
</web>
</module>
</application>

This did not happen on NB 6.5.

What is going wrong now?

Thanks in advance,
Jose Alvarez de Lara
Back to top
vince kraemer
Posted via mailing list.





PostPosted: Mon Aug 31, 2009 2:45 pm    Post subject: NB 6.7.1 Problem deploying an ear on glassfish v2ur2 Reply with quote

Do you see an error if you try to deploy the ejb-jar 'stand-alone'?

The most common trigger for this message is when folks try to deploy a
jar that does not contain Session or Message beans as an ejb jar.
Entity classes are not EJBs.

HTH,
vbk

Jose Alvarez de Lara wrote:
Quote:
Hello,

I have two web war applications and the same ejb-jar for both of them.
All toguether is built in an ear. But when I try to deploy on
glassfish, it
throws the following exception,

Exception occured in J2EEC Phasejava.lang.IllegalArgumentException:
Invalid ejb jar [catalogo-ejb.jar]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x
style), or message driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as
library jar.
3. If the jar file contains valid EJBs which are annotated with EJB
component level annotations (@Stateless, @Stateful, @MessageDriven),
please check server.log to see whether the annotations were processed
properly.
com.sun.enterprise.deployment.backend.IASDeploymentException: Error
loading deployment descriptors for module [Almacen-Catalogo] --
Invalid ejb jar [catalogo-ejb.jar]: it contains zero ejb.
1.- The ejb-jar contains POJOs and PojoJpaControllers in different
packages.
2.- Every web war can be deployed and run ok.

It is when I have built the ear I have the exception.

Here is the application.xml descriptor of the ear,

[snip]

This did not happen on NB 6.5.

What is going wrong now?

Thanks in advance,
Jose Alvarez de Lara
Back to top
pepelara



Joined: 29 Nov 2008
Posts: 115

PostPosted: Tue Sep 01, 2009 9:02 pm    Post subject: NB 6.7.1 Problem deploying an ear on glassfish v2ur2 Reply with quote

Hello,

Finally I have added the ejb-jar as a library jar and it works fine.
My idea is to upload the ear to a hosting.

Such as I have deployed, is it ok?

Regards,
Jose Alvarez de Lara

--------------------------------------------------
From: "vince kraemer" <address-removed>
Sent: Monday, August 31, 2009 4:46 PM
To: <address-removed>
Subject: Re: [nbj2ee] NB 6.7.1 Problem deploying an ear on glassfish v2ur2

Quote:
Do you see an error if you try to deploy the ejb-jar 'stand-alone'?

The most common trigger for this message is when folks try to deploy a
jar that does not contain Session or Message beans as an ejb jar.
Entity classes are not EJBs.

HTH,
vbk

Jose Alvarez de Lara wrote:
Quote:
Hello,

I have two web war applications and the same ejb-jar for both of them.
All toguether is built in an ear. But when I try to deploy on
glassfish, it
throws the following exception,

Exception occured in J2EEC Phasejava.lang.IllegalArgumentException:
Invalid ejb jar [catalogo-ejb.jar]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x
style), or message driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as
library jar.
3. If the jar file contains valid EJBs which are annotated with EJB
component level annotations (@Stateless, @Stateful, @MessageDriven),
please check server.log to see whether the annotations were processed
properly.
com.sun.enterprise.deployment.backend.IASDeploymentException: Error
loading deployment descriptors for module [Almacen-Catalogo] --
Invalid ejb jar [catalogo-ejb.jar]: it contains zero ejb.
1.- The ejb-jar contains POJOs and PojoJpaControllers in different
packages.
2.- Every web war can be deployed and run ok.

It is when I have built the ear I have the exception.

Here is the application.xml descriptor of the ear,

[snip]

This did not happen on NB 6.5.

What is going wrong now?

Thanks in advance,
Jose Alvarez de Lara

Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo