Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-M3
-
None
-
Mac OS X, Java 1.4.2_05
Description
While trying to reproduce a different issue I ended up having a servlet throwing a ServletException in init(ServletConfig aServletConfig) on purpose. The servlet is loaded at startup.
The deployment of this archive fails (as expected), however the the console deployer can't unmarshall the exception.
Steps to reproduce:
Deploy the archive I will attach shortly using console deployer.
—
Client side stacktrace:
java -jar bin/deployer.jar deploy /tmp/test/test.war
Username: system
Password: manager
Deployment failed
Server reports: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: javax.servlet.ServletException (no security manager: RMI class loader disabled)
java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: javax.servlet.ServletException (no security manager: RMI class loader disabled)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)
at mx4j.remote.rmi.ClientInvoker.invoke(ClientInvoker.java:210)
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:324)
at mx4j.remote.ClientProxy.invoke(ClientProxy.java:34)
at mx4j.remote.rmi.ClientUnmarshaller.chain(ClientUnmarshaller.java:67)
at mx4j.remote.rmi.ClientUnmarshaller.invoke(ClientUnmarshaller.java:56)
at $Proxy0.invoke(Unknown Source)
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:324)
at mx4j.remote.ClientProxy.invoke(ClientProxy.java:34)
at mx4j.remote.rmi.ClientExceptionCatcher.invoke(ClientExceptionCatcher.java:42)
at $Proxy0.invoke(Unknown Source)
at org.apache.geronimo.gbean.jmx.JMXOperationInvoker.invoke(JMXOperationInvoker.java:54)
at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
at org.apache.geronimo.kernel.KernelMBean$$EnhancerByCGLIB$$66f64035.startConfiguration(<generated>)
at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:48)
at java.lang.Thread.run(Thread.java:552)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletException (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
... 23 more