Hey Johnny, thanks for the help. I fixed the problem - stupid mistake, I was running 1.4 instead of 1.5

--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293


On Jul 5, 2007, at 3:58 AM, Johnny Kewl wrote:

No, that stuff is not relevent, in the BAT (SH) files, the TC guys having given you the ability to make a digest or a hash of passwords to hide them in the realm, if u want to. And all they saying is that you dont have to use the whole of TC to make them (hashes), and can just use a few classes.... but if you have the whole of TC, you dont need that.... I dont have JMX.jar in my embedded stuff and I dont see the jar in either 5.5.23 or 6.013

javax.management.MBeanRegistration is part of the 1.5 JRE and JDK, so its something else... I suspect the either the JRE is old, or you trying to start TC, and havnt initialized in properly in the embedded code. I imagine that you have a full TC running on that machine, so I think its the later, TC is not intialized and it cant start because it hasnt setup JMX and all the rest of it.

If you doing embedded stuff, look at the articles, but also study the org.apache.catalina.startup.Catalina file to see how TC actually starts itself. I embed in a very unusual way.... ie I dont go through the embedded class, I actually just start TC up thru Catalina.... what that does is make it use all the mormal configuration files.... ie Server.xml etc... if you dont mind shipping that with your application. Its just easier because the exact same settings work as with the full TC.... and setting up things like Realms and JNDI via an embedded environment.... well I havnt seen anyone that has done it, in the embedded environment.

Also.... rather embed with 6.0.13.... the file structure is just much simpler. If my way floats your boat ;)... drop me an email, I'll give you the code.


----- Original Message ----- From: "Jesse Barnum" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, July 05, 2007 2:05 AM
Subject: Missing JMX.jar in Tomcat 5.5.23?


When I try to embed Tomcat 5.5.23 into my application, I get an error message about a missing MBeanRegistration (see stack trace at end). It seems like I need JMX.jar. This document ( http:// tomcat.apache.org/tomcat-5.5-doc/realm-howto.html ) states that "you will need the JMX jar and the commons-logging jar (either commons- logging-api.jar or commons-logging.jar). Both of these are included with the Tomcat distribution", but I don't see JMX.jar anywhere in the core distribution.

Exception in thread "main" java.lang.NoClassDefFoundError: javax/ management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at com.prosc.servlet.embedded.TomcatWrapper.start (TomcatWrapper.java: 75) at com.prosc.servertoolbox.plugin.ServerToolboxModel.start (ServerToolboxModel.java:25) at com.prosc.servertoolbox.plugin.ServerToolboxModel.main (ServerToolboxModel.java:36)


--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to