You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sudhakar <su...@co.brazos.tx.us> on 2007/05/08 00:38:00 UTC
EJB 3.0 + Maven 2.0 + maven-ejb-plugin + glassfish
I have a simple EJB 3.0 project with a stateless bean as follows:
The remote interface:
@Remote
public interface IssueBeanRemote {
public void createIssue();
}
The stateless EJB 3.0 bean:
@Stateless(mappedName = "ejb/IssueBean")
public class IssueBean implements IssueBeanRemote {
public void createIssue() {
...............
..........
}
}
I checked out and installed the latest maven-ejb-plugin as shown here:
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/%3C450C13F4.2000605@gmx.net%3E
I have the following in my pom.xml:
<modelVersion>4.0.0</modelVersion>
<groupId>my.ejb</groupId>
<artifactId>component</artifactId>
<version>0.0.1</version>
<packaging>ejb</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<ejbVersion>3.0</ejbVersion>
</configuration>
</plugin>
....................
..........
mvn package cmopiles without any error messages. But when I deploy the
jar file into Glassfish I get the following error message:
[#|2007-05-07T17:22:54.542-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=25;_ThreadName=Thread-47;_RequestID=3a898218-6f83-4579-b28d-5829b7e0ec01;|Exception
occured in J2EEC Phasejava.lang.IllegalArgumentException: Invalid ejb
jar
[/opt/glassfish/glassfish-v2-b42/domains/domain1/applications/j2ee-modules/my-ejb-component]:
it contains zero ejb.
I'd appreciate any help getting this deployment to work.
Thanks in advance.
-sud
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org