users@jax-rpc.java.net

SecurityException on java.util package when running a JAXRPC Client

From: Cho Cho Aung <chocho_at_ITVWORLD.COM>
Date: Tue, 09 Jul 2002 10:21:34 +1000

Hi
I'm getting a SecurityException on java.util package when running a JAXRPC
Client.
The client invokes a method from the server that returns custom date class
object.

The following is a trace message of the exception.
Has anyone had come across this sort of error?

C:\Earth\Projects\IAM_R20\Development\src\bctlRemote>ant run
Buildfile: build.xml

run:
[echo] Running the
com.itvworld.earth.iam.services.bctl.xmlrpc.BroadcastXMLRPCClient
program....
[echo]
http://localhost:8080/jaxrpc-BroadcastControl/jaxrpc/BroadcastXMLRPCServer
[java] java.lang.SecurityException: Prohibited package name: java.util
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:477)
[java] at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
[java] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
[java] at
com.itvworld.earth.iam.services.bctl.xmlrpc.BroadcastControl_SerializerRegis
try.getRegistry(Unknown Source)
[java] at
com.itvworld.earth.iam.services.bctl.xmlrpc.BroadcastControl_Impl.<init>(Unk
nown Source)
[java] at
com.itvworld.earth.iam.services.bctl.xmlrpc.BroadcastXMLRPCClient.createProx
y(Unknown Source)
[java] at
com.itvworld.earth.iam.services.bctl.xmlrpc.BroadcastXMLRPCClient.main(Unkno
wn Source)