Hi,
I have one serious issue. I need to make a portlet application which will
connect to JBoss 4.0.x MBeans and perform/invoke some MBean's operations etc.
Problem is that the portlet application runs on IBM Websphere (with jdk1.3!) and MBeans runs on JBoss AS 4.0.x (with jdk1.5). I tried following code statement:
Properties properties = new Properties(); properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); properties.setProperty(Context.PROVIDER_URL, someIP:1099"); properties.setProperty(Context.URL_PKG_PREFIXES, org.jboss.naming"); Context context = new InitialContext(properties); MBeanServerConnection server = null; Object obj = context.lookup("jmx/invoker/RMIAdaptor"); server = (MBeanServerConnection)obj; ObjectName on = new ObjectName("jboss.system:type=Server"); Object ver = F_server.getAttribute(on, "Version");
javax.naming.CommunicationException. Root exception is java.io.InvalidClassException: org.jboss.util.id.GUID; Local class not compatible: stream classdesc serialVersionUID=3289509836244263718 local class serialVersionUID=6926421946503004889