Hello

I am trying to develop a remote server for a log4j
based trace system, but I have experimented some
problems using the rmic compiler

Here is my source code

// ----------------------------
// First File, Remote Interface
import java.rmi.*;
import org.apache.log4j.spi.LoggingEvent;

public interface RMILogInterface extends Remote{
  public void trace(LoggingEvent event) throws
RemoteException;  
}


// -----------------------------
// Second File, Remote InterfaceImplementation
import org.apache.log4j.*;

public class RMILogServer implements RMILogInterface {
  public void trace(LoggingEvent event) {
    System.out.println("Test Message ");
  }
}


When I use the rmic compiler without the -iiop option
it works fine, but when I include this option I get
the next error

rrror: Could not load class org.apache.log4j.Category.
error: Class org.apache.log4j.spi.LoggingEvent   
  contains an invalid argument type in method <init>.
error: Class org.apache.log4j.spi.LoggingEvent
  contains an invalid argument type in method <init>.
error: Class org.apache.log4j.spi.LoggingEvent
  contains an invalid argument type in method <init>.
error: Class org.apache.log4j.spi.LoggingEvent
  contains an invalid argument type in method <init>.
error: Class RMILogInterface
  contains an invalid argument type in method trace.


Anybody knows what could be the problem?

Thanks in advance (and sorry for my bad english)

_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to