I don't think it's wiki page fix. I think the that line of the bat file should just be fixed personally.
Scott -----Original Message----- From: Bernd Fondermann [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 7:55 AM To: James Users List Subject: Re: [2] JMX Startup Problem Yes, I also ran into problems like this before. Thanks for posting the hint. You are very welcome to improve the wiki page you were referring to before. Bernd On 3/15/07, Scott Mitchell <[EMAIL PROTECTED]> wrote: > > OK, I've got it figured out. I had to update line 92 in the run.bat file to > enclose the %PHOENIX_JVM_OPTS% reference in double quotes. Once I did that > everything worked fine. It appeared that only the first -D was getting > evaluated and it's value was all things that followed it. So: > > -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.port=10201 > > effectively became: > > -Djava.rmi.server.hostname="localhost -Dcom.sun.management.jmxremote > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.port=10201" > > So only "java.rmi.server.hostname" received a value (which was a bogus > value) > > > Scott Mitchell wrote: > > > > Hi, I am attempting to use the Java 5 JMX server with James. I've followed > > the instructions found on the ConfigureJmx page, but to no avail. It fails > > at startup time with a NullPointerException when exporting the Embeddor. I > > am using a freshly downloaded 2.3 James install with tweaks made to the > > kernel.xml file based on the instructions in the wiki. I have also set the > > PHOENIX_JVM_OPTS variable (since I am on Windows at the moment) to > > configure the JVM's JMX settings. The value I've set is: > > > > -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false > > -Dcom.sun.management.jmxremote.authenticate=false > > -Dcom.sun.management.jmxremote.port=10201 > > > > Here is my component definition from the kernel.xml for the SystemManager: > > > > <component > > role="org.apache.avalon.phoenix.interfaces.SystemManager" > > > > class="org.apache.avalon.phoenix.components.manager.HostedSystemManager" > > logger="manager" > > > > > And finally, here is the error message I'm getting: > > > > There was an uncaught exception: > > --------------------------------------------------------- > > --- Message --- > > Unable to export component=Embeddor as mBean. > > --- Stack Trace --- > > org.apache.avalon.phoenix.interfaces.ManagerException: Unable to export > > componen > > t=Embeddor as mBean. > > at > > org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor > > t(AbstractJMXManager.java:126) > > at > > org.apache.avalon.phoenix.components.manager.AbstractSystemManager.do > > Register(AbstractSystemManager.java:273) > > at > > org.apache.avalon.phoenix.components.manager.AbstractSystemManager.re > > gister(AbstractSystemManager.java:106) > > at > > org.apache.avalon.phoenix.components.manager.SubContext.register(SubC > > ontext.java:117) > > at > > org.apache.avalon.phoenix.components.manager.SubContext.register(SubC > > ontext.java:117) > > at > > org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.registe > > rComponents(DefaultEmbeddor.java:659) > > at > > org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initial > > ize(DefaultEmbeddor.java:245) > > 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(NativeMethodAccessorImpl. > > java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > sorImpl.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) > > Caused by: java.lang.NullPointerException > > at > > org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor > > tTopic(AbstractJMXManager.java:277) > > at > > org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor > > tTarget(AbstractJMXManager.java:256) > > at > > org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor > > t(AbstractJMXManager.java:119) > > ... 16 more > > rethrown from > > java.lang.NullPointerException > > at > > org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor > > tTopic(AbstractJMXManager.java:277) > > at > > org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor > > tTarget(AbstractJMXManager.java:256) > > at > > org.apache.avalon.phoenix.components.manager.AbstractJMXManager.expor > > t(AbstractJMXManager.java:119) > > at > > org.apache.avalon.phoenix.components.manager.AbstractSystemManager.do > > Register(AbstractSystemManager.java:273) > > at > > org.apache.avalon.phoenix.components.manager.AbstractSystemManager.re > > gister(AbstractSystemManager.java:106) > > at > > org.apache.avalon.phoenix.components.manager.SubContext.register(SubC > > ontext.java:117) > > at > > org.apache.avalon.phoenix.components.manager.SubContext.register(SubC > > ontext.java:117) > > at > > org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.registe > > rComponents(DefaultEmbeddor.java:659) > > at > > org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initial > > ize(DefaultEmbeddor.java:245) > > 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(NativeMethodAccessorImpl. > > java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > sorImpl.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) > > > > --------------------------------------------------------- > > > > > > -- > View this message in context: http://www.nabble.com/JMX-Startup-Problem-tf3408317.html#a9501496 > Sent from the James - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
