I'm trying to get an IntelliJ project up and running on TeamCity. It's a Glassfish application. I know Glassfish build configurations are not supported (too bad, would make my life much easer), so I'm just building the artifact and then using an and script to drop the ear into Glassfish's autodeploy directory. Unfortunately, the ear is not building as it does on my local machine using the same artifact descriptor. There's no internal structure, all of the classes are just tossed in there, so it won't deploy. The exact error in the Glassfish log is:
[#|2011-04-04T14:28:16.089-0400|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=51;_ThreadName=Thread-1;|Exception while deploying the app [Mosaic_TeamCityEar] : Invalid ejb jar [ejb.jar]: it contains zero ejb.
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, @Singleton), please check server.log to see whether the annotations were processed properly.|#]
[#|2011-04-04T14:28:16.359-0400|WARNING|glassfish3.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=51;_ThreadName=Thread-1;|[AutoDeploy] Autodeploy failed : /opt/jetbrains/glassfish3/glassfish/domains/domain1/autodeploy/Mosaic_TeamCityEar.ear.|#]
Any help is greatly appreciated.