0 Replies Latest reply on Jan 8, 2006 8:21 PM by jaejong kim

    Can I invoke ejb from mbean in deferent domain?

    jaejong kim Newbie

      I configurate jmx-console security domain as 'manager' in jboss-web xml.

      I deploy MyMbean that call ejb in 'work' domain.

      MBean calls ejb when startService lifecycle method.
      When server start, everything works fine. When I edit to redeploy mbean,
      there is no problems to call ejb.

      But when I invoke managed service method from console,
      I get following exception.

      javax.servlet.ServletException: Failed to invoke operation
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:254)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:85)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:67)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      javax.management.MBeanException
      org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166)
      org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:149)
      org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:243)
      org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:208)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:247)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:85)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:67)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      For any help Thanks.