Ah ok,
I use maven, only tomcat 7 and 6 is available. PreResources are only available
in tomcat8 so I decide against tomcat in higher versions than 7.
Kind regards
> Gesendet: Montag, 06. April 2020 um 16:34 Uhr
> Von: "Mark Thomas" <ma...@apache.org>
> An: users@tomcat.apache.org
> Betreff: Re: Aw: Re: /META-INF/resources/ and Chrome's DevTools
> On 06/04/2020 09:16, Peter Rader wrote:
> > Hello Konstantin Kolinko,
> >
> > I tried to use the PreResource but it does not work.
> >
> > 2020-04-06 10:13:05 WARNUNG org.apache.tomcat.util.digester.Digester
> endElement No rules found matching 'Context/Resources/PreResources'.
> >
> > This is my context.xml
> >
> > <Context addWebinfClassesResources="true" cookies="true">
> > <Resource name="jdbc/database" auth="Container"
> > type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
> > url="xxxx"
> > username="xxx" password="xxx" maxTotal="50"
> > maxIdle="50" maxWait="10"></Resource>
> > <Resources>
> > <PreResources
> > className="org.apache.catalina.webresources.FileResourceSet"
> > base="C:\Users\Guest\git\xxxxx\src\main\resources\META-INF\resources"
> > internalPath="index.html" />
>
> That doesn't look quite right. I'd expect it to look something like:
>
> <PreResources
> className="org.apache.catalina.webresources.FileResourceSet"
> base="C:\Users\Guest\git\xxxxx\src\main\resources\META-INF\resources"
> />
>
> To map the contents of the "...\META-INF\resources" directory into the
> root of the web application.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org