I am new to Java EE and am using JBoss 7 to create my first project. I have an EAR project, an EJB project, WEB project and a JPA project in my workspace. The ejb created in the
In my case I accidentally had these imports in the EJB after some copy-pasting:
import javax.ejb.*;
import javax.inject.Singleton;
The EJB looked like this:
@Singleton
public class MyService {
Maven build went thru but the class was not deployed as EJB. After removing import javax.inject.Singleton;
it worked fine.