brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-37) JettyWebAppFixtureIntegrationTest failing
Date Wed, 29 Oct 2014 12:01:33 GMT

    [ https://issues.apache.org/jira/browse/BROOKLYN-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14188287#comment-14188287
] 

ASF GitHub Bot commented on BROOKLYN-37:
----------------------------------------

GitHub user alasdairhodge opened a pull request:

    https://github.com/apache/incubator-brooklyn/pull/279

    Tweak Jetty config file ordering 

    So that JMX is configured enough to allow subsequent registration of required MBeans.
Resolves BROOKLYN-37.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/alasdairhodge/incubator-brooklyn jetty6-jmx-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-brooklyn/pull/279.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #279
    
----
commit 936b4f0a762c08809c4a54f510259c16dce38353
Author: Alasdair Hodge <splodge@alasdairs-macbook-pro.local>
Date:   2014-10-29T11:55:30Z

    Configure JMX bits early enough to allow subsequent registration of required mbeans

----


> 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.3.4#6332)

Mime
View raw message