We have an application which uses Spring to expose a POJO as an MBean and that works fine. One method starts a new Thread in which a process is started were every now and than it looks in de Database using Hibernate. On the find method we get:
This indicates that we have a Classloader problem. Our application works in a standalone environment and this problem only occurs when we use the MBean.
I've tried isolation with overriding:
It seems as if the call from the MBean uses a different Classloader when using antlr classes. The thing is that in a standalone env. (or when using the webapp) we do not provide the antlr.jar and there seems no need for it.
So 3 questions:
1. Why does the isolation not work?
2. Why do we need the antlr.jar
2. What is the main difference when starting a process from an MBean and starting the same process from our webapp or standalond env. in terms of Classloading.
Hope someone can help.