I think it is because the ClassPathExtension MBean
adds the url to the MBean's ObjectName.
ObjectNames in JMX are not allowed to contain a ":"
except to specify the domain. Looks like you'll
have to use the relative path.
The Tomcat classpath extensions are not exposed for
management in JMX.
With the JBoss approach, you can add new classpath
elements at runtime using a JMX adaptor such as the one
NOTE: There is no support for removing elements of the
classpath at unregistration. You'll have to wait for
3.0 and a better method.
Then why does the Tomcat ClassPathExtension in my jboss.conf
work? This entry I have modified from the downloaded JBoss-2.4.4_Tomcat-3.2.3.zip where it originally had a relative path and it works.
Even if your answer would be right, I would have to conclude, that it is not possible under Windows to have JBoss installed on one drive (actually all my runtime software shares one partition) and having the data on another drive - which frankly is a complete absurd restriction regarding partitioning of my OS.
Working with relative pathes under Unix this would not be a problem, but how to change to another drive on a Windows OS without using ':' in the path?
Apologies I didn't read your question very well :-(
You are correct. That will teach me to reply from
The ClassPathExtension MBean has two constructors.
// Constructors --------------------------------------------------
public ClassPathExtension(String url)
public ClassPathExtension(String url, String name)
this.name = name;
this.url = url;
The second form allows you to create an alias for the
url to avoid the ":" problem.
In your example "Tomcat" is added to the ObjectName
instead of the url.