brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BROOKLYN-37) JettyWebAppFixtureIntegrationTest failing
Date Tue, 15 Jul 2014 10:26:04 GMT
Aled Sage created BROOKLYN-37:
---------------------------------

             Summary: JettyWebAppFixtureIntegrationTest failing
                 Key: BROOKLYN-37
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-37
             Project: Brooklyn
          Issue Type: Bug
    Affects Versions: 0.7.0-M1
            Reporter: Aled Sage
            Priority: Minor


Our Jetty 6 integration is failing because of JMX connectivity. It fails to get to SERVICE_UP
because it can't reach the MBeans.

The underlying error is:
    The MBean class could not be loaded by the context classloader:
    java.lang.ClassNotFoundException: mx4j.tools.adaptor.http.HttpAdaptor

Looking in jconsole, the platfrom MBeanServer has org.mortbay.log and org.mortbay.util, but
not org.mortbay.jetty.

---
When I remove from Jetty6SshDriver the inclusion of jetty-brooklyn.xml then we don't get the
error in the jetty log, but also none of the org.mortbay MBeans are registered in the platform
mbean server so it still fails with the same symptoms.

Note that last significatn code modification was by [~andrew.kennedy], fixing the upload and
config of ./etc/*.xml files on Apr 29 11:01:14 2014 with the commit message:

    Update Jetty 6 to allow custom config and fix JMX setup

----
Below is the full contents of `logs/2014_07_15.stderrout.log`:

2014-07-15 10:34:25.427:WARN::HttpAdaptor for mx4j is not secure
2014-07-15 10:34:25.433:WARN::EXCEPTION 
javax.management.ReflectionException: The MBean class could not be loaded by the context classloader
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(MBeanInstantiator.java:625)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(MBeanInstantiator.java:94)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(MBeanInstantiator.java:118)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:278)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:216)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:349)
        at org.mortbay.management.MBeanContainer.start(MBeanContainer.java:108)
        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.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:542)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:252)
        at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:626)
        at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:915)
        at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:837)
        at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:523)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:252)
        at org.mortbay.xml.XmlConfiguration.get(XmlConfiguration.java:468)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:254)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:214)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:974)
        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.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:534)
        at org.mortbay.start.Main.start(Main.java:441)
        at org.mortbay.start.Main.main(Main.java:119)
2014-07-15 10:34:25.434:WARN::Nested in javax.management.ReflectionException: The MBean class
could not be loaded by the context classloader:
java.lang.ClassNotFoundException: mx4j.tools.adaptor.http.HttpAdaptor
        at javax.management.loading.MLet.findClass(MLet.java:974)
        at javax.management.loading.MLet.findClass(MLet.java:922)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:249)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(MBeanInstantiator.java:620)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(MBeanInstantiator.java:94)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(MBeanInstantiator.java:118)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:278)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:216)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:349)
        at org.mortbay.management.MBeanContainer.start(MBeanContainer.java:108)
        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.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:542)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:252)
        at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:626)
        at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:915)
        at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:837)
        at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:523)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:252)
        at org.mortbay.xml.XmlConfiguration.get(XmlConfiguration.java:468)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:254)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:214)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:974)
        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.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:534)
        at org.mortbay.start.Main.start(Main.java:441)
        at org.mortbay.start.Main.main(Main.java:119)
2014-07-15 10:34:25.437:INFO::jetty-6.1.26
2014-07-15 10:34:25.456:INFO::Opened /private/tmp/brooklyn-aled/apps/e8pZeiss/entities/Jetty6Server_PHaU7aFH/logs/2014_07_15.request.log
2014-07-15 10:34:25.486:INFO::Started SelectChannelConnector@0.0.0.0:7880



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message