Hi
Thanks for the hint... the loading sequence is now in order:
1. db 2. EJBs 3. mbeans... Thats great!
But after I have added the jboss-app.xml with a context loader
for my app, i get a ClassCastException i dont understand..
All the classes are in the same classloader context, but when
the mbeans initialise they try to get a reference to the EJBs
and this gives:
java.lang.ClassCastException
at
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo
teObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
..
..
I have the following structure:
app.ear
|
|-META-INF/application.xml
|-META-INF/jboss-app.xml
|-app-datasource.sar
|-app-management.sar
|-app.jar
|-app.war
The app-datasource.sar only contains the META-INF/jboss-service.xml
which loads the firebird service.
The app-management.sar contains the mbeans and META-INF/jboss-service.xml
which depends on the EJBs in tha app.jar
Now, my application.xml looks like this:
<application>
<module>
<ejb>app-datasource.sar</ejb>
</module>
<module>
<ejb>app-management.sar</ejb>
</module>
<module>
<ejb>app.jar</ejb>
</module>
<module>
<web>
<web-uri>app.war</web-uri>
<context-root>/app</context-root>
</web>
</module>
</application>
and the jboss-app.xml :
<jboss-app>
<loader-repository>app.loader.repository:loader=app.ear</loader-repository>
</jboss-app>
I thought that the above loader-repository would imply that all the classes
in both jar, war, sar etc. would be in the same classloader context since
they
are all part of the app.ear!?!?!
Pointers or hints here are appreciated, i dont quite get it!
Thanks in advance...
^Torsten
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
> Sent: 29. juli 2002 20:12
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] SAR file with DB, EAR and MBean
>
>
> Easiest way is probably as an ear. Use a jboss-app.xml to get the sar to
> deploy as a jboss-specific package. Include anonymous depends elements in
> the mbean config to the ejbs in the ear that it requires. Put the sar in
> the ear.
>
> You can probably also do this without anonymous depends by
> sar (with mbean config) contains ear contains jboss-service.xml(with db
> config).
>
> david jencks
>
>
>
> On 2002.07.25 02:54:05 -0400 Torsten Terp wrote:
> >
> > Hi,
> >
> > Does anybody have an example of how to arrange the contents
> > and describe the dependencies in a SAR file?
> >
> > The SAR needs to contain a db connection, an ear file and
> > an mbean, and these parts should be deployed in the following
> > order: db, ear, mbean.
> >
> > So far I have been deploying the 3 parts independently and
> > configured the mbean to deploy after the ear by using the
> > <depends-list> element in the mbeans service xml file.
> >
> > If i package a SAR like:
> >
> > META-INF/jboss-service.xml
> > myapp.ear
> > myapp-mbean.jar
> >
> > I cant figure out what the contens of the jboss-service.xml
> > should be. Should it contain the contents of both the
> > db-service.xml and the mbean-service.xml or can META-INF
> > contain several service xml files?
> >
> > If anybody has hints or an example of this i would be greatfull...
> >
> > Thanks in advance..
> >
> > ^Torsten
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: Jabber - The world's fastest growing
> > real-time communications platform! Don't just IM. Build it in!
> > http://www.jabber.com/osdn/xim
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user