If you are using the latest tomcat 4.1.12 I believe the invoker servelt is disabled by default so you will have to either enable it or create a servlet mapping to the Upload servelt and that servlet needs to be in a package.
> -----Original Message----- > From: J�rgen Ramskov [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 11, 2002 7:44 AM > To: 'Tomcat Users List' > Subject: SV: SV: com.oreilly.servlet - upload example not working? > > > So the Upload.war package is correctly made? > > I've created a new test, but I still get this error: > description: The requested resource (/upload/servlet/Upload) > is not available. > > I have this structure: /webapps/upload/WEB-INF/classes/Upload.class > > I don't understand why it can't find that one? > > Greetings > Joergen Ramskov > > > > -----Oprindelig meddelelse----- > > Fra: John Trollinger [mailto:[EMAIL PROTECTED]] > > Sendt: 11. oktober 2002 13:33 > > Til: 'Tomcat Users List' > > Emne: RE: SV: com.oreilly.servlet - upload example not working? > > > > > > Your servlets need to be in a package when using jdk1.4 (ie > > demo.DemoParserUploadServlet) > > > > > -----Original Message----- > > > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, October 11, 2002 5:17 AM > > > To: Tomcat Users List > > > Subject: Re: SV: com.oreilly.servlet - upload example not working? > > > > > > > > > Just redeploy the class file or jar file and define the > > servlet with > > > your new app. > > > But if you've already deployed it once, then there is no > > problem for > > > other apps to access the servlet cause you can just make a > > > url request > > > to the servlet from another app right ? > > > > > > J�rgen Ramskov wrote: > > > > > > >>it's a sevlet right? so you have to define the servlet in the > > > >>web.xml of your webapp. plus you must move the jar to the > > > WEB-INF/lib > > > >>rather than what you stated. > > > >> > > > >> > > > > > > > >If I want the cos.jar package to be available to all > > webapps, then I > > > >thought I could add it it /shared/lib? > > > > > > > >the upload.war is an example app that comes with the > > > package. It has a > > > >structure like this: > > > > > > > >/meta-inf/ (contains a manifest file) > > > >/upload/ > > > >-> /WEB-INF/ > > > >-> /WEB-INF/web.xml > > > >-> upload.html > > > >-> /WEB-INF/classes/ > /WEB-INF/classes/DemoParserUploadServlet.class > > > >-> (and more) > > > > > > > >The web.xml file has this (and more, but I think this is the > > > relevant > > > >part) > > > >info: > > > ><web-app> > > > > <servlet> > > > > <servlet-name> > > > > parserupload > > > > </servlet-name> > > > > <servlet-class> > > > > DemoParserUploadServlet > > > > </servlet-class> > > > > <init-param> > > > > <param-name> > > > > uploadDir > > > > </param-name> > > > > <param-value> > > > > . <!-- Current dir, replace with /tmp or > > > c:\temp maybe --> > > > > </param-value> > > > > </init-param> > > > > </servlet> > > > > > > > >Greetings > > > >Joergen > > > > > > > >-- > > > >To unsubscribe, e-mail: > > > <mailto:tomcat-user-> [EMAIL PROTECTED]> > > > >For > > > additional commands, > > > e-mail: > > > ><mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:tomcat-user-> [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:tomcat-user-> [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]>
