1) It should be in createService() not start()
although it probably won't make much difference in this case.

2) You need to make sure it loads the classes BEFORE jbossmq starts.
e.g. add the mbean config to the top of jbossmq-service.xml or put in 
conf/jboss-service.xml

3) Use
Class.forName(name, true, classLoader);
to ensure the class is resolved and initialized along with its referenced 
classes.
Using ClassLoader.loadClass() might only give you a reference to the reflection
metadata rather than the entire transitive closure.

4) You don't need to load all classes. You only need to load the problem 
classes.
It is usually seen where there is bidirectional link, e.g. main class <-> inner 
class
JBossMQ already loads many of the classes itself.

5) Read the documentation, in particular
a) the admin docs - notably chapter 2
b) a good tutorial on classloading
c) the wiki on how to enable to classloader TRACE logging

6) Use search to find what must be hundreds of other discussions on this 
problem.
You will have to wade through a lot of unanswered ones where people like you
didn't use search. I only answered in the first place to reject your incorrect 
bug report.
I don't look kindly on people that post bug reports to jump the "help queue".

7) Come back when you don't need hand-holding on debugging this problem and know
where the problem is (assuming that once you understand it, you don't know how 
to resolve it yourself).

8) If you resolve the problem, post an update for others to find, preferably on 
the WIKI.

9) If/when you do come back, post full configuration, code, stacktraces and 
relevant 
logging.
I am not going to guess what you did wrong or take your implied assumption that 
you did it
correctly.
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886642#3886642

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886642


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to