tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Trollinger" <jaka...@trollingers.com>
Subject RE: SV: com.oreilly.servlet - upload example not working?
Date Fri, 11 Oct 2002 12:53:39 GMT
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:jra@conterra.dk] 
> 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:jakarta@trollingers.com]
> > 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:pengtuck@makmal.com]
> > > 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-> unsubscribe@jakarta.apache.org>
> > > >For
> > > additional commands,
> > > e-mail: 
> > > ><mailto:tomcat-user-help@jakarta.apache.org>
> > > >
> > > >
> > > >  
> > > >
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > > For
> > > additional commands, 
> > > e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> > > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 
> --
> To 
> unsubscribe, e-mail:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message