You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Andriy Pepenin <pe...@gmail.com> on 2010/10/15 17:08:51 UTC

Setting up TSSConfig via JMX

Hi,

In my application, I intensively use geronimo via JMX.
The problem I found is that when I'm setting TSSConfig via JMX, I'm getting
exception:

java.lang.ClassNotFoundException:
org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
RMI class loader disabled)

I tried to set tssConfig exposed by TSSBeanGBean in different modules
(j2ee-corba-yoko; my ejb applications; etc.), but result was the same.

Notes: 

          Geronimo Version      2.2
          Build     2009.12.07-18:20:06.045-0800


Thanks
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Setting-up-TSSConfig-via-JMX-tp1708660p1708660.html
Sent from the Users mailing list archive at Nabble.com.

Re: Setting up TSSConfig via JMX

Posted by Rick McGuire <ri...@gmail.com>.
On 10/29/2010 11:43 AM, Andriy Pepenin wrote:
> Hello Rick,
>
> Sorry for delay with reply to your message.
>
> I tried to snapshot part Geronimo's configuration state, and restore it
> later.
> Now my prototype are able to snapshot\udpate almost all aspects of
> Geronimo's configuration state except TSSConfig.
>
> I've created a number of TSSConfig under different configuration modules and
> tried to set up new value via JMX, but result was identical.
This is not really much more information than you gave before.  How are 
you attempting to set this via JMX?  Can you show a code sample showing 
what you are doing.  The classloader identified in the stack trace does 
not have the corba support as one of its dependencies, so its not 
surprising that this error occurs, but we'd need a more concrete example 
of what you're doing to determine where the root cause of the error lies.

Rick
> Here is full stack trace:
>
> java.lang.ClassNotFoundException:
> org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
> org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
> RMI class loader disabled)
>
> 	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)
>
> 	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
>
> 	at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
>
> 	at
> org.apache.geronimo.kernel.rmi.RMIClassLoaderSpiImpl.loadClass(RMIClassLoaderSpiImpl.java:53)
>
> 	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
>
> 	at
> sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
>
> 	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
>
> 	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
>
> 	at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
>
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>
> 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>
> 	at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>
> 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>
> 	at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl$6.run(RMIConnectionImpl.java:1513)
>
> 	at java.security.AccessController.doPrivileged(Native Method)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1505)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.access$500(RMIConnectionImpl.java:72)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl$7.run(RMIConnectionImpl.java:1548)
>
> 	at java.security.AccessController.doPrivileged(Native Method)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1544)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.setAttribute(RMIConnectionImpl.java:670)
>
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> 	at java.lang.reflect.Method.invoke(Method.java:597)
>
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
>
> 	at sun.rmi.transport.Transport$1.run(Transport.java:159)
>
> 	at java.security.AccessController.doPrivileged(Native Method)
>
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>
> 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> 	at java.lang.Thread.run(Thread.java:619)
> Oct 29, 2010 6:20:26 PM org.codehaus.groovy.runtime.StackTraceUtils sanitize
>
> WARNING: Sanitizing stacktrace:
>
> java.rmi.UnmarshalException: java.lang.ClassNotFoundException:
> org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
> org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
> RMI class loader disabled); nested exception is:
> 	java.lang.ClassNotFoundException:
> org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
> org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
> RMI class loader disabled)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl$6.run(RMIConnectionImpl.java:1515)
>
> 	at java.security.AccessController.doPrivileged(Native Method)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1505)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.access$500(RMIConnectionImpl.java:72)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl$7.run(RMIConnectionImpl.java:1548)
>
> 	at java.security.AccessController.doPrivileged(Native Method)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1544)
>
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.setAttribute(RMIConnectionImpl.java:670)
>
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> 	at java.lang.reflect.Method.invoke(Method.java:597)
>
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
>
> 	at sun.rmi.transport.Transport$1.run(Transport.java:159)
>
> 	at java.security.AccessController.doPrivileged(Native Method)
>
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>
> 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>


Re: Setting up TSSConfig via JMX

Posted by Andriy Pepenin <pe...@gmail.com>.
Hello Rick,

Sorry for delay with reply to your message.

I tried to snapshot part Geronimo's configuration state, and restore it
later.
Now my prototype are able to snapshot\udpate almost all aspects of
Geronimo's configuration state except TSSConfig.

I've created a number of TSSConfig under different configuration modules and
tried to set up new value via JMX, but result was identical.

Here is full stack trace:

java.lang.ClassNotFoundException:
org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
RMI class loader disabled)

	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)

	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)

	at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)

	at
org.apache.geronimo.kernel.rmi.RMIClassLoaderSpiImpl.loadClass(RMIClassLoaderSpiImpl.java:53)

	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)

	at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)

	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)

	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)

	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)

	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

	at java.rmi.MarshalledObject.get(MarshalledObject.java:142)

	at
javax.management.remote.rmi.RMIConnectionImpl$6.run(RMIConnectionImpl.java:1513)

	at java.security.AccessController.doPrivileged(Native Method)

	at
javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1505)

	at
javax.management.remote.rmi.RMIConnectionImpl.access$500(RMIConnectionImpl.java:72)

	at
javax.management.remote.rmi.RMIConnectionImpl$7.run(RMIConnectionImpl.java:1548)

	at java.security.AccessController.doPrivileged(Native Method)

	at
javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1544)

	at
javax.management.remote.rmi.RMIConnectionImpl.setAttribute(RMIConnectionImpl.java:670)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:597)

	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

	at sun.rmi.transport.Transport$1.run(Transport.java:159)

	at java.security.AccessController.doPrivileged(Native Method)

	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

	at java.lang.Thread.run(Thread.java:619)
Oct 29, 2010 6:20:26 PM org.codehaus.groovy.runtime.StackTraceUtils sanitize

WARNING: Sanitizing stacktrace:

java.rmi.UnmarshalException: java.lang.ClassNotFoundException:
org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
RMI class loader disabled); nested exception is: 
	java.lang.ClassNotFoundException:
org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
RMI class loader disabled)

	at
javax.management.remote.rmi.RMIConnectionImpl$6.run(RMIConnectionImpl.java:1515)

	at java.security.AccessController.doPrivileged(Native Method)

	at
javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1505)

	at
javax.management.remote.rmi.RMIConnectionImpl.access$500(RMIConnectionImpl.java:72)

	at
javax.management.remote.rmi.RMIConnectionImpl$7.run(RMIConnectionImpl.java:1548)

	at java.security.AccessController.doPrivileged(Native Method)

	at
javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1544)

	at
javax.management.remote.rmi.RMIConnectionImpl.setAttribute(RMIConnectionImpl.java:670)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:597)

	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

	at sun.rmi.transport.Transport$1.run(Transport.java:159)

	at java.security.AccessController.doPrivileged(Native Method)

	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Setting-up-TSSConfig-via-JMX-tp1708660p1793097.html
Sent from the Users mailing list archive at Nabble.com.

Re: Setting up TSSConfig via JMX

Posted by Rick McGuire <ri...@gmail.com>.
  On 10/15/2010 11:08 AM, Andriy Pepenin wrote:
> Hi,
>
> In my application, I intensively use geronimo via JMX.
> The problem I found is that when I'm setting TSSConfig via JMX, I'm getting
> exception:
>
> java.lang.ClassNotFoundException:
> org.apache.geronimo.corba.security.config.tss.TSSConfig in classloader
> org.apache.geronimo.framework/j2ee-security/2.2/car (no security manager:
> RMI class loader disabled)
>
> I tried to set tssConfig exposed by TSSBeanGBean in different modules
> (j2ee-corba-yoko; my ejb applications; etc.), but result was the same.

I'm not sure I understand what you're trying to do here.  Can you give a 
better example of what you're attempting to do?  If you have a stack 
trace for the exception, that might be useful too.

Rick
> Notes:
>
>            Geronimo Version      2.2
>            Build     2009.12.07-18:20:06.045-0800
>
>
> Thanks