I have 3 project in Eclipse: one is the server which start with a main method; one is like a bridge containing the interface which extends Remote and Serializable classes and the class used for this interface as parameter and return object; one the client which is a web application with jsf and tomcat. The bridge project is used like a jar file and it is import in server and client project. For the server and the client I set the policy and the codebase in VM arg in eclipse (i want it to work first on my localhost in eclipse). Then i start the server and the client... in my index.jsp i have only a button name insert. As a bean i use a class name JobDTO and it has a method name insertJob for the button. In that method i want to connect client to the server. When is press insert button an error ocurred:

SEVERE: An exception occurred
javax.faces.el.EvaluationException: org.apache.jasper.el.JspELException: /index.jsp(44,8) '#{JobDTO.insertJob}' java.lang.NoClassDefFoundError: interf/IJobsManager
at javax.faces.component._MethodExpressionToMethodBin ding.invoke(_MethodExpressionToMethodBinding.java: 96)
at org.apache.myfaces.application.ActionListenerImpl. processAction(ActionListenerImpl.java:100)
at javax.faces.component.UICommand.broadcast(UIComman d.java:120)
at javax.faces.component.UIViewRoot._broadcastAll(UIV iewRoot.java:937)
at javax.faces.component.UIViewRoot.broadcastEvents(U IViewRoot.java:271)
at javax.faces.component.UIViewRoot._process(UIViewRo ot.java:1249)
at javax.faces.component.UIViewRoot.processApplicatio n(UIViewRoot.java:675)
at org.apache.myfaces.lifecycle.InvokeApplicationExec utor.execute(InvokeApplicationExecutor.java:34)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute Phase(LifecycleImpl.java:171)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServl et.java:189)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:405)
at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:964)
at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:515)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:304)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.jasper.el.JspELException: /index.jsp(44,8) '#{JobDTO.insertJob}' java.lang.NoClassDefFoundError: interf/IJobsManager
at org.apache.jasper.el.JspMethodExpression.invoke(Js pMethodExpression.java:79)
at javax.faces.component._MethodExpressionToMethodBin ding.invoke(_MethodExpressionToMethodBinding.java: 88)
... 26 more
Caused by: java.lang.NoClassDefFoundError: interf/IJobsManager
at main.java.dto.JobDTO.insertJob(JobDTO.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.el.parser.AstValue.invoke(AstValue.java :262)
at org.apache.el.MethodExpressionImpl.invoke(MethodEx pressionImpl.java:278)
at org.apache.jasper.el.JspMethodExpression.invoke(Js pMethodExpression.java:70)
... 27 more
Caused by: java.lang.ClassNotFoundException: interf.IJobsManager
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1678)
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1523)
... 35 more

this is the used code:

public class ServerApplication {

public static void main(String[] args) {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new SecurityManager());
}
try {
String endPointName = "JobManager";
IJobsManager jobManager = new JobsManager();
IJobsManager stub = (IJobsManager)UnicastRemoteObject.exportObject(job Manager, 0);
Registry reg = LocateRegistry.createRegistry(1099);
reg.bind(endPointName, stub);
System.out.println("Server Application has started ...");
}
catch (Exception ex) {
System.err.println("Server side exception occured: ");
ex.printStackTrace();
}
}


}


if (System.getSecurityManager() == null) {
System.setSecurityManager(new SecurityManager());
}
try {
String endPointName = "JobManager";
Registry registry = LocateRegistry.getRegistry("localhost");
IJobsManager jobManager= (IJobsManager) registry.lookup(endPointName);
System.out.println("Adding a new job to the database table ...");
jobManager.postJob(.....
catch (Exception e) {
System.err.println("Broker exception:");
e.printStackTrace();
}




Can someone help me please? i don't know what else to do...