Re: Help with java.rmi.server.codebase

"Vanfleet, David" <[email protected]> Tue, 26 Dec 2006 09:07:13 -0800
Newsgroups gmane.comp.java.sun.rmi
Message-ID <352366D52DA72B4295106E3C65E1719103B1F340@USCYMPLM004.net.plm.eds.com>
Niclas, I'm not sure I understand what you're saying about the "client
Jar"? I'm trying to get the RMI service to run in the server registry
and to download needed classes from a remote http server. This remote
service has no dependencies on the client that will be accessing this
service. 

The com.ugs.xme.dto.Library class IS being referenced from inside of the
Remote interface:

  package com.ugs.xme.rmi.dto;

  import java.rmi.Remote;
  import java.rmi.RemoteException;
  import java.util.List;

  import com.ugs.xme.dto.Library;

  public interface DTOServerInterface extends Remote {
    ...
    public Library getLibrary(String libraryName) throws
RemoteException;
  }

So, you're saying that because this class is being referenced from
within this remote interface it can't be downloaded dynamically from
java.rmi.server.codebase? It seems that this limitation causes this
functionality to loose some of it's usefulness. What am I not
understanding here?

Thanks for your help,
David




-----Original Message-----
From: Niclas Hedhman [mailto:[email protected]] 
Sent: Sunday, December 24, 2006 7:59 AM
To: [email protected]
Subject: Re: Help with java.rmi.server.codebase

On Sunday 24 December 2006 00:17, Vanfleet, David wrote:

<not paying too much attention to the security issues>

> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/ugs/xme/dto/Library

IIRC, NoClassDefFoundError happens when a class or interface that is
"part of"
the java.rmi.Remote interface is not pre-existing on the client.

Is com.ugs.xme.dto.Library inside the Remote interface?
If so, it must be in the "client Jar" and not downloaded dynamically.

Cheers
Niclas

========================================================================
===
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