[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-18 Thread [EMAIL PROTECTED]
Could you be a little more careful (or just buy some JBoss support)? Your 
configuration file tries to load mx4j classes. If you comment that out, it 
works.


  | Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: 
mx4j.too
  | ls.adaptor.http.HttpAdaptor
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(Unknown Source)
  | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(Unknown 
Sour
  | ce)
  | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(Unknown 
Source)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:219)
  | at 
com.percussion.jmx.config.PSJmxDefaultConfigurationBuilder$Create.con
  | figure(PSJmxDefaultConfigurationBuilder.java:333)
  | ... 72 more
  | 


  |!--
  |   create className=mx4j.tools.adaptor.http.HttpAdaptor 
objectName=connectors:type=http loaderName=null
  |  arg type=int name=port9090/arg
  |  arg type=string name=hostlocalhost/arg
  |   /create
  | 
  |   create className=mx4j.tools.adaptor.http.XSLTProcessor 
objectName=connectors:type=http,processor=xslt loaderName=null/
  |   
  |   call objectName=connectors:type=http 
attribute=ProcessorNameString
  |  arg type=string 
name=connNameconnectors:type=http,processor=xslt/arg
  |   /call
  |   call objectName=connectors:type=http operation=start/
  | -- 
  | 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855570#3855570

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855570


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-18 Thread vitaly1
Thanks a lot!

The above MX4J stuff got in by accident, but the bigger issue was that I left a 
older sar under /lib
so, I kept trying and trying not realizing that JBoss
was actually running my older code!

I appreciate your help

Thanks,
-Vitaly


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855630#3855630

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855630


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-17 Thread [EMAIL PROTECTED]
The example code I showed you, works for at least one component I know. From 
which line exactly the exception comes from? (fromName(), newInstance()?)

Try calling the default CTOR.

Also from the 3 methods getXXX() it seems as if you try to replicate the same 
running MBean, e.g. getObjectName() what does it return?

Show the mbean descriptor, too.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855472#3855472

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855472


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-17 Thread vitaly1
Dimitris,

I sent you my sources, see if something jumps out

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855495#3855495

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855495


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-17 Thread vitaly1
1. JBoss loads us PSJmxJBossService
that one creates another MBean
PSJmxConfigurationLoader
2. PSJmxConfigurationLoader fetches my xml 
file with all the beans definitions in it and
uses PSJmxDefaultConfigurationBuilder
to load all those beans up
3. The PSJmxDefaultConfigurationBuilder
has one inner class for each xml node in 
the xml config file under com.percussion.jmx.config

ie:  node is first parsed then there
is a second run when PSJmxDefaultConfigurationBuilder
instantiates all those MBeans and registers
them with MBeanServer

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855499#3855499

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855499


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-16 Thread [EMAIL PROTECTED]
You need to use the classloader that loaded the 1st MBean, e.g:


  | Object mybean = Class.forName(com.percussion.jmx.test.SimpleListener, 
true, this.getClass().getClassLoader()).newInstance();
  | 
  | server.registerMBean(mybean, mydomain:name=myname);
  | 

There is also the createMBean() that takes the ObjectName of a classloader, but 
I'm not sure how to map the context thread classloader to the ObjectName under 
which it is registered.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855431#3855431

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855431


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-16 Thread vitaly1
Wonder if this will work too?
trying it now..

ClassLoader cl = this.getClass().getClassLoader();
 obj = server.createMBean(className, 
 getObjectName(), 
 cl,
 getMethodArguments(this, server),
 getJMXMethodSignature(this));
   

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855434#3855434

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855434


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-16 Thread vitaly1
oops, it actually expects ObjectName loaderName
how do I get ObjectName of the loader?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855435#3855435

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855435


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-16 Thread vitaly1
So, I ended up with this code:
The trouble is it not working just like before - ClassNotFoundException :(
eflectionException: Class not found: com.percussion.jmx.test.SimpleListener 
Cause: java.lang.ClassNotFoundException: com.percussion.jmx.test.SimpleListener

ClassLoader cl = this.getClass().getClassLoader(); 

Class clazz = Class.forName(className,
  true,
  this.getClass().getClassLoader());

Constructor handlerCtor = clazz.getConstructor(
  getMethodSignature(this));
   
java.lang.Object beanInst =
   handlerCtor.newInstance( getMethodArguments(this, server) );
  
obj = server.registerMBean(beanInst, getObjectName());

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855440#3855440

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855440


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-16 Thread [EMAIL PROTECTED]
out of curiocity, what are those:

getMethodSignature(this)
getMethodArguments(this, server)
getObjectName()

Isn't you 1st mbean loaded using a -service.xml or .sar archive?

What is the use case you are trying to implement?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855442#3855442

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855442


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: ClassLoader can not find a MBean class that sits in the

2004-11-16 Thread vitaly1
Hi !
those are my methods :) (derived from MX4J) one gets signature Class[]
another actual values and getObject gives ObjectName instance
The use case is like this:
1. I want to be able to load the same JMX beans on JBoss, Bea, etc.
2. To do the above I defined my own xml config file (enhaced MX4J one)
3. For each app server I will build one app server specific loader; in JBoss
case that is a service MBean
4. So I have a sar with one JBoss specific MBean that creates another MBean 
(non JBoss specific) that guy loads up my xml config file and creates all the 
rest of the beans, creates listeners, relationships, etc.

All these classes sit inside the same SAR file, which really puzzles me why 
JBoss can not find simple Bean classes that are practically sit next to the 
service class only in a different package?



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855463#3855463

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855463


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user