0
我有兩個無狀態的EJB3 bean,bean1取決於bean2。EJB3 bean部署依賴關係
在部署過程中,我得到以下
2010-07-13 12:30:43,480 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:jar=MyApp-Test.jar,name=TestWebService,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:jar=MyApp-Test.jar,name=TestWebService,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'Class:my.app.impl.TestService' **")
Deployment "jboss.j2ee:jar=MyApp-Test.jar,name=TestWebService,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=MyApp-Test.jar,name=TestWebService,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
bean2錯誤將無法啓動,因爲bean1是「PreInsall」狀態
是否有指定的EJB bean依賴的方式,即指定bean2應只在bean1後面開始
我在春天看到有'@ Primary'註釋 – n002213f 2010-07-13 10:47:24
關於您的項目結構的更多細節? EAR中的這些獨立模塊還是都在同一個包中? – apiri 2010-07-16 21:00:43
我使用不同的** jar部署**並且它們在不同的包中 – n002213f 2010-07-17 16:02:15