twiddle exception java.lang.ClassNotFoundException: org.jboss.system.ServiceContext

Solution Verified - Updated -

Issue

When trying to  get listDeployed from the command line using twiddle:

twiddle.sh -s jnp://127.0.0.1:1099 -u admin -p admin invoke jboss.system:service=ServiceController listDeployed

results in the following exception. What is missing from the classpath ?

05:57:58,127 ERROR [Twiddle] Exec failed
java.lang.reflect.UndeclaredThrowableException
        at $Proxy0.invoke(Unknown Source)
        at org.jboss.console.twiddle.command.InvokeCommand.invoke(InvokeCommand.java:235)
        at org.jboss.console.twiddle.command.InvokeCommand.execute(InvokeCommand.java:291)
        at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:306)
Caused by: 
java.lang.ClassNotFoundException: org.jboss.system.ServiceContext (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:632)
        at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:259)
        at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:209)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1579)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1500)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1736)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:352)
        at java.util.ArrayList.readObject(ArrayList.java:717)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:986)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1853)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1757)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:352)
        at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
        at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:134)
        at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
        at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
        at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
        at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
        at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
        ... 4 more

Environment

  • JBoss Enterprise Application Platform(EAP) 5.0.1
  • JBoss SOA-P 5.0.x
  • Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.