Hi, Shouldn't we include this by default.. ?
thanks, On Fri, Jul 3, 2015 at 10:02 AM, Chathura Priyankara <[email protected]> wrote: > Hi, > > I was able to solve this issue by adding rmi context in carbon.xml > as mentioned in [1]. > > [1] > http://wso2.com/library/articles/2013/02/jmx-monitoring-wso2-bam/#multitenancy > > Thanks, > Chathura. > > On Thu, Jul 2, 2015 at 11:13 PM, Chathura Priyankara <[email protected]> > wrote: > >> Hi All, >> >> When I'm trying to use JMX webapp in AS multi tenant environment I'm >> getting following exception. >> >> org.springframework.web.util.NestedServletException: Request processing >> failed; nested exception is java.lang.IllegalArgumentException: >> rmiURLContext: name is not an RMI URL: 1 >> >> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927) >> >> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:735) >> >> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> root cause >> >> java.lang.IllegalArgumentException: rmiURLContext: name is not an RMI >> URL: 1 >> >> com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.java:64) >> >> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:200) >> >> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:886) >> >> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951) >> javax.naming.InitialContext.lookup(InitialContext.java:411) >> >> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929) >> >> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896) >> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286) >> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:249) >> org.wso2.carbon.jms.HelloController.printWelcome(HelloController.java:23) >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> java.lang.reflect.Method.invoke(Method.java:606) >> >> org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) >> >> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439) >> >> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427) >> >> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) >> >> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) >> >> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915) >> >> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:735) >> >> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> >> However this works fine in super tenant mode. >> The JMX service URL that I'm using is as follows >> service:jmx:rmi://localhost:1199/jndi/rmi://localhost:1199/jmxrmi. >> >> I found similar exceptions are reported in few places but I could not >> solve this in AS. >> Any suggestion to overcome this issue is highly appreciated. >> >> Thanks, >> Chathura. >> >> >> >> -- >> Chathura Priyankara >> Software Engineer | WSO2 Inc. >> Mobile : +94718795340 >> Blog : www.codeoncloud.blogspot.com >> > > > > -- > Chathura Priyankara > Software Engineer | WSO2 Inc. > Mobile : +94718795340 > Blog : www.codeoncloud.blogspot.com > -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: [email protected] <[email protected]> mobile: +94 (0)71 56 91 321
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
