Re: classloader disabled?
Niclas Hedhman <[email protected]> Mon, 8 Sep 2008 12:00:14 +0200
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Sounds like the SecurityManager is still not installed. Make sure that
you either modify the command line to include -Djava.security.manager=
or do a
if( System.getSecurityManager() == null )
System.setSecurityManager( new SecurityManager() );
Cheers
Niclas
On Sun, Sep 7, 2008 at 9:05 AM, Charles Chen <[email protected]> wrote:
> Hi,
>
> I am using ehCache replication which uses RMI to communicate among peers. My app is hosted by tomcat 6. When the ehCache manager tried to replicate an object it throws an exception as below. It is obvious enough so I added my own security policy for all my deployed jar files to the tomcat JVM, and give them all security permission (for testing), but still get the exception. Your help of pointers would be much appreciated.
>
>
>
> WARNING: Error asynchronously performing bootstrap. The cause was: Error bootstrapping from remote peer. Message was: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: com.a.b.contentInstanceSubclass.impl.NewsCmaImpl (no security manager: RM I class loader disabled)net.sf.ehcache.distribution.RemoteCacheException: Error bootstrapping from remote peer. Message was: error unmarshalling re turn; nested exception is: java.lang.ClassNotFoundException: com.a.b.contentInstanceSubclass.impl.NewsCmaImpl (no security manager: RM I class loader disabled) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:175) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader$BootstrapThread.run(RMIBootstrapCacheLoader.java:106)Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: com.a.b.contentInstanceSubclass.impl.NewsCmaImpl (no security manager: RM I class loader disabled) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162) at net.sf.ehcache.distribution.RMICachePeer_Stub.getElements(Unknown Source) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.fetchAndPutElements(RMIBootstrapCacheLoader.java:225) at net.sf.ehcache.distribution.RMIBootstrapCacheLoader.doLoad(RMIBootstrapCacheLoader.java:171) ... 1 moreCaused by: java.lang.ClassNotFoundException: com.a.b.contentInstanceSubclass.impl.NewsCmaImpl (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:620)
> _________________________________________________________________
> Get all your favourite content with the slick new MSN Toolbar - FREE
> http://clk.atdmt.com/UKM/go/111354027/direct/01/
> ===========================================================================
> To unsubscribe, send email to [email protected] and include in the body
> of the message "signoff RMI-USERS". For general help, send email to
> [email protected] and include in the body of the message "help".
>
> For a list of frequently asked RMI questions please refer to:
> http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html
>
> To view past RMI-USERS postings, please see:
> http://archives.java.sun.com/archives/rmi-users.html
>
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html
To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html