0 Replies Latest reply on Mar 20, 2012 2:23 PM by Paul Keogh

    Testing JMX clients in Arquillian

    Paul Keogh Novice

      Hi,

       

      I am trying to test some JMX client code from Arquillian.

       

      I want to deploy a web application as a WAR and have the app call into remote JMX servers.

       

      I have verified that the code implementing the JMX client is working fine from a standalone unit test.

       

      When I deploy as a WAR archive in an Arquillian test, I cannot figure out what JARs and resource files need to be packaged to get the test to execute.

       

      I am currently stuck on this exception;

       

      Caused by: java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl cannot be cast to org.omg.CORBA.ORB

          at org.omg.CORBA.ORB.create_impl(ORB.java:295) [jacorb-2.3.1.jbossorg-1.jar:]

          ... 102 more

       

      The CORBA dependency arises because I am using IIOP as the remoting protocol for JMX.

       

      Any suggestions gratefully received...

       

      Thanks,