james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Fondermann (JIRA)" <server-...@james.apache.org>
Subject [jira] Updated: (JAMES-701) JMX HTTP adapter fails to start
Date Thu, 09 Sep 2010 07:51:35 GMT

     [ https://issues.apache.org/jira/browse/JAMES-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bernd Fondermann updated JAMES-701:
-----------------------------------

    Assignee:     (was: Bernd Fondermann)

> JMX HTTP adapter fails to start
> -------------------------------
>
>                 Key: JAMES-701
>                 URL: https://issues.apache.org/jira/browse/JAMES-701
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: James Core
>    Affects Versions: 2.3.0
>         Environment: Linux Ubuntu 6.06 (Dapper Drake), JDK 1.5.0_06-b05, James 2.3.0
final binary release
>            Reporter: Thomas Dudziak
>             Fix For: Trunk
>
>
> I downloaded the binary James 2.3.0 final release and modified the kernel.xml according
to http://wiki.apache.org/james/ConfigureJmx, section Enabling James' built-in MBeanServer.
This gives me an exception
> java.lang.ClassNotFoundException: mx4j/tools/naming/NamingService
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:164)
>        at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiatorImpl.java:437)
>        at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstantiatorImpl.java:72)
>        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:279)
>        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(DefaultMBeanServerInterceptor.java:227)
>        at com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java:463)
>        at org.apache.avalon.phoenix.components.manager.MX4JSystemManager.startRMIAdaptor(MX4JSystemManager.java:248)
>        at org.apache.avalon.phoenix.components.manager.MX4JSystemManager.initialize(MX4JSystemManager.java:167)
>        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
>        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponent(DefaultEmbeddor.java:575)
>        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponents(DefaultEmbeddor.java:551)
>        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(DefaultEmbeddor.java:244)
>        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
>        at org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234)
>        at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162)
>        at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
>        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:585)
>        at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
>        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
> Without JMX enabled, James starts just fine.
> Copying the jars from the current MX4J release (3.0.1) into lib and bin/lib directories
does not help.
> Neither does configuring MX4J as the default MBean server via adding -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
> to the RUN_CMD in phoenix.sh (as suggested e.g. in http://jira.codehaus.org/browse/LOOM-78).
This changes the exception to:
> java.lang.ClassNotFoundException: mx4j.adaptor.http.HttpAdaptor
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>        at mx4j.server.interceptor.InvokerMBeanServerInterceptor.instantiate(InvokerMBeanServerInterceptor.java:99)
>        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.instantiate(DefaultMBeanServerInterceptor.java:105)
>        at mx4j.server.interceptor.SecurityMBeanServerInterceptor.instantiate(SecurityMBeanServerInterceptor.java:72)
>        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.instantiate(DefaultMBeanServerInterceptor.java:105)
>        at mx4j.server.interceptor.DefaultMBeanServerInterceptor.instantiate(DefaultMBeanServerInterceptor.java:105)
>        at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.instantiate(ContextClassLoaderMBeanServerInterceptor.java:136)
>        at mx4j.server.MX4JMBeanServer.instantiateImpl(MX4JMBeanServer.java:681)
>        at mx4j.server.MX4JMBeanServer.createMBean(MX4JMBeanServer.java:743)
>        at mx4j.server.MX4JMBeanServer.createMBean(MX4JMBeanServer.java:733)
>        at org.apache.avalon.phoenix.components.manager.MX4JSystemManager.startHttpAdaptor(MX4JSystemManager.java:191)
>        at org.apache.avalon.phoenix.components.manager.MX4JSystemManager.initialize(MX4JSystemManager.java:162)
>        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
>        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponent(DefaultEmbeddor.java:575)
>        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupComponents(DefaultEmbeddor.java:551)
>        at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(DefaultEmbeddor.java:244)
>        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
>        at org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234)
>        at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162)
>        at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
>        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:585)
>        at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
>        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message