This is starting to look like a classic case of bad design. But to get your app working, try adding servlet.jar to the CLASSPATH of rmiregistry.
"Sarah L. Moore" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Well, I just moved the application classes over to the > examples/WEB-INF/classes directory and re-ran my servlet. I get a slightly > different message: > > java.rmi.ServerError: Error occurred in server thread; nested exception is: > java.lang.NoClassDefFoundError: javax/servlet/ServletRequest > > From the output of my application, it looks as though the application > begins to run, but it is the servlet that is throwing the above exception > upon the call to the RMI application. I did a search for servlet.jar, and > it looks as though it is where it should be in the Tomcat directory > structure (i.e. catalina_home/common/lib). Any other advice? I'm at a > total loss. > > Thanks again! > > Sarah > > At 11:30 AM 11/27/2002 +0800, you wrote: > >Sorry, did not correctly see which class it was complaining about. Try and > >move MyApplicationStarter to the said directories. > > > >Sarah L. Moore wrote: > > > >>Thanks for your reply. My servlet class is in > >>examples/WEB-INF/classes. If I comment out the RMI step, the servlet > >>runs fine, so I'm left to think that the servlet location, etc. are OK, > >>but something relating to RMI is the culprit. > >> > >>At 11:01 AM 11/27/2002 +0800, you wrote: > >> > >>>" Cannot allocate servlet instance for path /examples/servlet/MyServlet > >>>" means that it can't find the requested servlet for that web app which > >>>implies that your servlet class isn't where it should be. Servlets & > >>>classes go in /examples/WEB-INF/classes or > >>>/examples/WEB-INF/lib for jar packages. > >>> > >>>Sarah L. Moore wrote: > >>> > >>>>Hello all. > >>>> > >>>>I am new to Tomcat, and am having a problem with RMI. I have a Java > >>>>application that basically just sits on my server waiting for a data > >>>>vector to be passed to it from my servlet. However, when I run the > >>>>servlet and try to have it pass the data to the application through RMI, I get: > >>>> > >>>>javax.servlet.ServletException: Cannot allocate servlet instance for > >>>>path /examples/servlet/MyServlet > >>>>java.lang.NoClassDefFoundError: MyApplicationStarter > >>>> > >>>>The application resides in a directory on the root of the c drive (i.e. > >>>>c:\MyApplication), and the servlet I am working with is in > >>>>catalina_home/webapps/examples. Could it be that my problem is due to > >>>>the fact that Tomcat can't locate the classes that are in the > >>>>c:\MyApplication directory? How can I remidy that problem, if that is, > >>>>in fact, the problem. > >>>> > >>>>I am running Tomcat 4 with jdk 1.3.1 on Win2K. > >>>> > >>>>Please let me know if you need any more information. Any help would be > >>>>appreciated. > >>>> > >>>>Thanks! > >>>> > >>>>Sarah > >>>> > >>>>-- > >>>>To unsubscribe, e-mail: > >>>><mailto:[EMAIL PROTECTED]> > >>>>For additional commands, e-mail: > >>>><mailto:[EMAIL PROTECTED]> > >>> > >>> > >>> > >>>-- > >>>To unsubscribe, e-mail: > >>><mailto:[EMAIL PROTECTED]> > >>>For additional commands, e-mail: > >>><mailto:[EMAIL PROTECTED]> > >> > >> > >> > >>-- > >>To unsubscribe, e-mail: > >><mailto:[EMAIL PROTECTED]> > >>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > >> > > > > > > > >-- > >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>