Kevin,

It looks to me like you have not defined the location of your java install 
to James.  You have to edit your run.bat file (if you use Windows) in the 
james\bin folder. Add the following line of code to the beginning of the 
file:

set JAVA_HOME=YOURJAVADIRECTORY

change the YOURJAVADIRECTORY to the location of your java folder (probably 
C:\Program Files\java\jdk_1.5 or something like that).  Make sure this is 
the first line of code after all of the beginning rem statements (before the 
line: if not "%JAVA_HOME%"=="" goto found_java).

Thanks,
--Mark

---------- Original Message -----------
From: Kevin Burkart <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thu, 31 Aug 2006 11:26:25 -0400
Subject: JMX configuration

> I am trying to get JMX working with the James 2.3 release and jre 
> 1.5. I change the kernel.xml just like the 
> wiki.apache.com/james/configureJMX says and try to run but it I get 
> this error
> 
> Using PHOENIX_HOME:   C:\james-2.3.0rc2
> Using PHOENIX_TMPDIR: C:\james-2.3.0rc2\temp
> Using JAVA_HOME:
> 
> Phoenix 4.2
> 
> There was an uncaught exception:
> ---------------------------------------------------------
> --- Message ---
> The MBean class could not be loaded by the context classloader
> --- Stack Trace ---
> javax.management.ReflectionException: The MBean class could not be 
> loaded by the
>  context classloader
>         at 
> com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(Unknown Sourc
> e)
>         at 
> com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(Unknown Sourc
> e)
>         at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Unk
> nown Source)
>         at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Unk
> nown Source)
>         at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(Unknown Source)   
>      at 
org.apache.avalon.phoenix.components.manager.MX4JSystemManager.startR
> MIAdaptor(MX4JSystemManager.java:248)
>         at 
> org.apache.avalon.phoenix.components.manager.MX4JSystemManager.initia
> lize(MX4JSystemManager.java:167)
>         at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
> nerUtil.java:244)
>         at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupCo
> mponent(DefaultEmbeddor.java:575)
>         at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupCo
> mponents(DefaultEmbeddor.java:551)
>         at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initial
> ize(DefaultEmbeddor.java:244)
>         at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
> nerUtil.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(Unknown Source)        
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)   
>      at java.lang.reflect.Method.invoke(Unknown Source)        at 
> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)       
>  at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83) 
> Caused by: java.lang.ClassNotFoundException: 
mx4j/tools/naming/NamingService
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Unknown Source)
>         ... 21 more
> rethrown from
> java.lang.ClassNotFoundException: mx4j/tools/naming/NamingService
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Unknown Source)
>         at 
> com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(Unknown Sourc
> e)
>         at 
> com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(Unknown Sourc
> e)
>         at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Unk
> nown Source)
>         at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Unk
> nown Source)
>         at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(Unknown Source)   
>      at 
org.apache.avalon.phoenix.components.manager.MX4JSystemManager.startR
> MIAdaptor(MX4JSystemManager.java:248)
>         at 
> org.apache.avalon.phoenix.components.manager.MX4JSystemManager.initia
> lize(MX4JSystemManager.java:167)
>         at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
> nerUtil.java:244)
>         at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupCo
> mponent(DefaultEmbeddor.java:575)
>         at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.setupCo
> mponents(DefaultEmbeddor.java:551)
>         at 
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initial
> ize(DefaultEmbeddor.java:244)
>         at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
> nerUtil.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(Unknown Source)        
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)   
>      at java.lang.reflect.Method.invoke(Unknown Source)        at 
> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)       
>  at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
> 
> ---------------------------------------------------------
> The log file may contain further details of error.
> Please check the configuration files and restart Phoenix.
> If the problem persists, contact the Avalon project.  See
> http://jakarta.apache.org/avalon for more information.
> C:\james-2.3.0rc2\bin>
> 
> All the jars seem to be in the proper place.
> 
> any help would be appreciated
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
------- End of Original Message -------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to