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