The scenario is as follows:-
One application is deployed in JBOSS 4.0.5. The monitoring application is deployed in jboss 7.1.0. Both are deployed in separate machines in the same network. We can not access the manged bean published by jboss 4.0.5 from jboss 7.1.0. Tried both the JNP and remoting. I think remoting is the suggested approach for jboss 7. On first access from the client the exception seen is IllegalAccessError.On subsequent accesses the error message in the log changes to NoClassDefFoundError.Please see attached error snapshots for more details.
Following is the configuration in jboss 7.1.0 client:-
Hashtable<String, String> envProps = new Hashtable<String, String>();
String url = "remote://" + <<ip of the jboss 4.0 server where the mbeans are deployed>> + ":4447";
InitialContext context = new InitialContext(envProps);
I am really struggling with this issue.Please help.