Hi,How To Order JBoss AS Deployments By Defining Custom Dependencies
I hope it helps to add a JBoss-specific "@Depends" annotation to "AnaUniEJB":
@Depends(value = "jboss.j2ee:jar=JAR2.jar,name=GvccBean,service=EJB3")
@Stateless
@WebService
public class AnaUniEJB implements AURemoteBusiness, AnaUniWebService {
I am not sure whether the @Depends value is correct. If not: when "GvccBean" is deployed sucessfully, you can find the correct name by looking at the jmx console.
It might also help to force JBoss to first deploy JAR2, then JAR1. Take a look e.g. at those articels:
http://community.jboss.org/wiki/PrefixDeploymentOrder
http://community.jboss.org/wiki/HowToOrderJBossASDeploymentsByDefiningCustomDependencies
Hope this helps
Wolfgang