hi,
I'm facing dependencies issues between several ear. When I deploy the ear in a
proper order, everything fine, not when jboss starts ; It sends some class
loading issues,of course, it wasn't suppose to load this application before
some others :-). jboss keeps ignoring my @depend annotation and still deploy in
alphabetical order.
| [EARDeployer] Init J2EE application:
file:/opt/jboss-4.2.1.GA/server/all/deploy/JackArticle.ear
| 10:44:58,794 WARN [ServiceController] Problem starting service
jboss.j2ee:service=EJB3,module=JackArticle-ejb.jar
| java.lang.NoClassDefFoundError: org/portal/media/ejb/JackMediaSessionRemote
|
(linux x64, jdk 1.5.0_17, jboss 4.2.1.ga, netbeans 6.5)
I split my project in several ear ; each has the same structure : an ejb
module, with some ejb3 beans, a jmx responsible of initialization (a private
jackrabbit repo), a war module with all portlets. There NO cross dependencies
:-). (an ejb from article.ear will call an ejb from media.ear, through remote
interface. At compilation time, I link article.ear against classes in the media
application BUT NOT including media-ejb.jar into it)
i'm using @depends injection like this one on all ejb and jmx :
| @Stateful
| @Depends({
| "jboss.j2ee:jar=JackLogger-ejb.jar,name=JackLoggerJMX,service=EJB3",
|
"jboss.j2ee:ear=JackRss.ear,jar=JackRss-ejb.jar,name=JackRssSessionBean,service=EJB3",
|
"jboss.j2ee:ear=JackMedia.ear,jar=JackMedia-ejb.jar,name=JackMediaSessionBean,service=EJB3",
|
"jboss.j2ee:ear=JBPAuthentificationServer.ear,jar=JBPAuthentificationServer-ejb.jar,name=JBPAuthentificationListener,service=EJB3"})
| public class JackArticleSessionBean implements JackArticleSessionRemote,
JackArticleSessionLocal {
| ........
| }
|
tried with service=EARDeployment,url='JackMedia.ear' or
module=JackMedia-ejb.jar,service=EJB3 instead ; same.
Isn't a mechanism to set deployment order - beside renaming all ear to fit the
'right' order :-) - ??
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227741#4227741
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227741
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user