Apparently we do use the context loader on the client side. So you will need to change it,
however restore it immediately after obtaining the port:
| ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
|
| Foo foo;
|
| try
| {
| Thread.currentThread().setContextClassLoader(newLoader);
| foo = FooService.getPort();
| }
| finally
| {
| Thread.currentThread().setContextClassLoader(oldLoader);
| }
|
|
Make sure to remove the JMX classloader calls as well. If it still fails I would need to
see the stack trace of the CNFE.
-Jason
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023261#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...