6 Replies Latest reply on Oct 29, 2008 4:13 PM by Sam G

    Is Jopr working on Linux ?

    Sam G Newbie

      Is Embedded Jopr was tested on GNU/Linux ?

      I have this error :
      Plugin [JMX] at [jndi:/localhost/embedded-jopr/plugins/rhq-jmx-plugin-1.1.1.GA.jar] could not be loaded and will therefore not be deployed.
      org.rhq.core.clientapi.agent.PluginContainerException: Failed to unpack embedded JARs within: jndi:/localhost/embedded-jopr/plugins/rhq-jmx-plugin-1.1.1.GA.jar

      Same for all the other plugins.

      I'm running this on GNU/Linux with jboss-4.2.3.GA (jdk 1.5.16)

      Thanks for your help.

        • 1. Re: Is Jopr working on Linux ?
          Ian Springer Master

          Yes, Embedded Jopr was tested on Linux. We haven't seen the issue you are encountering. Unfortunately, a bug in our exception handling was causing the root cause of the PluginContainerException to not get logged. This is now fixed in trunk. Would you mind grabbing the latest integration build from

          http://hudson.jboss.org/hudson/job/embjopr/lastSuccessfulBuild/artifact/embjopr/jbas4/target/admin-console.war

          and try with that. Remember to delete the existing embedded-jopr.war from your deploy directory in addition to copying in the new admin-console.war. If the error occurs again with this new war, it should include a more complete stack trace. Please post that here.

          Thanks,
          Ian

          • 2. Re: Is Jopr working on Linux ?
            Sam G Newbie

            Thanks Ian. It WORKS perfectly now!
            Good job for the JBoss ON Team.
            This console will be very useful to our sysadmins.

            • 3. Re: Is Jopr working on Linux ?
              Charles Crouch Expert

              hmm thats good news :-), though it couldn't have been Ian's change since that only improved the error handling:

              http://viewvc.rhq-project.org/cgi-bin/viewvc.cgi/rhq/trunk/modules/core/plugin-container/src/main/java/org/rhq/core/pc/plugin/PluginClassLoader.java?r1=1854&r2=1853&pathrev=1854

              Must have been another change made since 1.0 or a temporary issue in your environment? Anyways pleased its working now!

              • 4. Re: Is Jopr working on Linux ?
                Sam G Newbie

                That's wired.
                The complete story is that I downloaded embedded-jopr.zip. Then I took the war and put it on my local Jboss setup running on Windows XP. The setup was successful.
                Then I decided to put the same war on my Linux box and got these errors. The complete stack is below.
                Hope this will help.

                Sam

                ---

                2008-10-24 07:51:47,722 ERROR [org.rhq.core.pc.plugin.PluginManager] Plugin [Tomcat] at [jndi:/localhost/embedded-jopr/plugins/rhq-tomcat-plugin-2.1.1.GA.jar] could not be loaded and will therefore not be deployed.
                java.lang.NullPointerException
                at org.rhq.core.pc.plugin.PluginManager.initialize(PluginManager.java:142)
                at org.rhq.core.pc.PluginContainer.startContainerService(PluginContainer.java:279)
                at org.rhq.core.pc.PluginContainer.initialize(PluginContainer.java:212)
                at org.jboss.on.embedded.BootstrapAction.bootstrap(BootstrapAction.java:111)
                at org.jboss.on.embedded.BootstrapAction.init(BootstrapAction.java:84)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                at org.jboss.on.embedded.BootstrapAction_$$_javassist_0.init(BootstrapAction_$$_javassist_0.java)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
                at org.jboss.seam.Component.callComponentMethod(Component.java:2092)
                at org.jboss.seam.Component.callCreateMethod(Component.java:2015)
                at org.jboss.seam.Component.newInstance(Component.java:1976)
                at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
                at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
                at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
                at org.jboss.seam.init.Initialization.init(Initialization.java:596)
                at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
                at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
                at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
                at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                at org.jboss.web.WebModule.startModule(WebModule.java:83)
                at org.jboss.web.WebModule.startService(WebModule.java:61)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:417)
                at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy44.start(Unknown Source)
                at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
                at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy45.start(Unknown Source)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy9.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

                • 5. Re: Is Jopr working on Linux ?
                  Ian Springer Master

                  Did you delete the old v1.0 embedded-jopr.war from your deploy dir? If not, please do that. Then try this:

                  1) Stop your AS instance.
                  2) Delete the following subdirs of your AS configuration dir: data, tmp, work
                  3) Restart your AS instance.

                  Let me know if you still see the error.

                  Thanks,
                  Ian

                  • 6. Re: Is Jopr working on Linux ?
                    Sam G Newbie

                    My fault !
                    I found that the file '../work/jboss.web/localhost/embedded-jopr/tldCache.ser' was created, for some obvious reasons, with 'root'.
                    So, when I deployed the war using my 'jboss' user, it was not unable to be regenerated and made all the war to crash.

                    Finally, the first 'embedded-jopr.war' IS WORKING WELL.

                    THANKS ALL FOR YOUR TIME.