Hi Scott,

    It is working now, the URL pattern I'm using is

        <servlet-mapping>
        <servlet-name>mywebapp</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>

    and in this way the images load (the / at the beginning of the url-pattern
value might be the difference).
Thanks a lot.

andres


Scott Eade wrote:

> >     I'm trying to run the sample app (Flux) that comes with the TDK
> > (tdk-2.1b4.zip) with Resin (v 2.0.0), but I haven't been able to make it
> > work. The same app runs fine with the Tomcat version that comes in the
> > TDK.
> >     First I tried just to copy the webapp dir to the resin webapps dir,
> > but it didn't work. When I try to access
> >
> >     http://http://localhost:8080/mywebapp/servlet/mywebapp
> >
> >     It throws a 404 Not Found. (This link works OK with Tomcat). After
> > playing a while with it I add a new parameter to the web.xml file of
> > myapp. I add the next lines:
> >
> >      <servlet-mapping>
> >       <servlet-name>mywebapp</servlet-name>
> >       <url-pattern>/main</url-pattern>
> >     </servlet-mapping>
> >
> >     After doing this I try to access the next URL:
> > "http://localhost:8080/socrates/main";; then I get a redirect to the next
> > URL:   "http://localhost:8080/socrates/main/redirected/true";; and
> > finally another 404 Not Found.
> >
> >     I would appreciate any idea or comment regarding how to make this
> > work.
>
> The url-pattern attribute is the key.  I think you need an asterisk in there
> somewhere.  This:
>
>     <servlet-mapping>
>         <servlet-name>mywebapp</servlet-name>
>         <url-pattern>servlet/*</url-pattern>
>     </servlet-mapping>
>
> in the applications web.xml should be accessible as:
>
>     http://localhost:8080/mywebapp/servlet
>
> With "/*" instead of "servlet/*" it works, but the images don't load - I
> haven't bothered looking into this yet.
>
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
=============================================
Andres G. Portillo D.
Software Engineer
Veratech  (www.veratech.com.mx)
=============================================



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

Reply via email to