Re: unable to serve static files with embedded Tomcat

2019-04-19 Thread Garret Wilson
On 4/19/2019 8:04 PM, Rémy Maucherat wrote: On Fri, Apr 19, 2019 at 11:14 PM Garret Wilson wrote: On 4/19/2019 3:24 PM, Rémy Maucherat wrote: tomcat.getService().addConnector(new Connector()); works very well, etc, just look at what getConnector() does, it's very simple. I did look at that

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Konstantin Kolinko
пт, 19 апр. 2019 г. в 19:29, Garret Wilson :> > I'm wanting to embed Tomcat to only serve static files (for the moment). > That is, no JSP, etc. I also want to have the welcome files completely > customizable. > > So instead of calling `tomcat.addWebapp()`, I go the completely > programmable route

Re: unable to serve static files with embedded Tomcat

2019-04-19 Thread Rémy Maucherat
On Fri, Apr 19, 2019 at 11:14 PM Garret Wilson wrote: > On 4/19/2019 3:24 PM, Rémy Maucherat wrote: > > On Fri, Apr 19, 2019 at 7:46 PM Woonsan Ko wrote: > > > >> I found this before from > >> > https://stackoverflow.com/questions/48998387/code-works-with-embedded-apache-tomcat-8-but-not-with-9-

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Garret Wilson
On 4/19/2019 5:12 PM, Christopher Schultz wrote: On April 19, 2019 4:20:24 PM UTC, Garret Wilson wrote: So I've probably answered my own question; this is an old TODO that needs to be done, I suppose? Yep. +1 This is a perfect "beginner" enhancement. Yay! I'd love to take that on. Would

Re: unable to serve static files with embedded Tomcat

2019-04-19 Thread Garret Wilson
On 4/19/2019 3:24 PM, Rémy Maucherat wrote: On Fri, Apr 19, 2019 at 7:46 PM Woonsan Ko wrote: I found this before from https://stackoverflow.com/questions/48998387/code-works-with-embedded-apache-tomcat-8-but-not-with-9-whats-changed/49011424 // Note: make sure that tomcat creates th

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Garret, On 4/19/19 15:12, Mark Thomas wrote: > On April 19, 2019 4:20:24 PM UTC, Garret Wilson > wrote: >> I'm wanting to embed Tomcat to only serve static files (for the >> moment). That is, no JSP, etc. I also want to have the welcome >> files c

Re: unable to serve static files with embedded Tomcat

2019-04-19 Thread John Dale
Tomcat doesn't seem to timeout one its own unless my DBCP is being abused in the code. I'm thinking firewall .. also, double-check your port configuration(s) in server.xml (or context.xml if that's the route you're going). On 4/19/19, Garret Wilson wrote: > Embedding Tomcat 9 (with OpenJDK 11 on

Re: 404 response to URLs with trailing decimal

2019-04-19 Thread Mark Thomas
On April 19, 2019 5:32:11 PM UTC, Mark Reyes wrote: >Hello, > >I find that Tomcat 8 will not serve up static content with a trailing >decimal in >the URL. A response code of 404 is served up, not the static content. > >My configuration is a symbolic link in the webapps/ directory. e.g. > >

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Mark Thomas
On April 19, 2019 4:20:24 PM UTC, Garret Wilson wrote: >I'm wanting to embed Tomcat to only serve static files (for the >moment). >That is, no JSP, etc. I also want to have the welcome files completely >customizable. > >So instead of calling `tomcat.addWebapp()`, I go the completely >programmab

Re: unable to serve static files with embedded Tomcat

2019-04-19 Thread Rémy Maucherat
On Fri, Apr 19, 2019 at 7:46 PM Woonsan Ko wrote: > On Fri, Apr 19, 2019 at 1:24 PM Garret Wilson > wrote: > > > > Embedding Tomcat 9 (with OpenJDK 11 on Windows 10) I want to serve > > static files from `/foo/bar`. From scouring the web (primarily > > https://stackoverflow.com/a/15235711/421049

Re: unable to serve static files with embedded Tomcat

2019-04-19 Thread Woonsan Ko
On Fri, Apr 19, 2019 at 1:24 PM Garret Wilson wrote: > > Embedding Tomcat 9 (with OpenJDK 11 on Windows 10) I want to serve > static files from `/foo/bar`. From scouring the web (primarily > https://stackoverflow.com/a/15235711/421049 ), the documentation, and > some books (primarily _Apache Tomca

404 response to URLs with trailing decimal

2019-04-19 Thread Mark Reyes
Hello, I find that Tomcat 8 will not serve up static content with a trailing decimal in the URL. A response code of 404 is served up, not the static content. My configuration is a symbolic link in the webapps/ directory. e.g. allowLinking="true"

unable to serve static files with embedded Tomcat

2019-04-19 Thread Garret Wilson
Embedding Tomcat 9 (with OpenJDK 11 on Windows 10) I want to serve static files from `/foo/bar`. From scouring the web (primarily https://stackoverflow.com/a/15235711/421049 ), the documentation, and some books (primarily _Apache Tomcat 7_), I have this:     Tomcat tomcat = new Tomcat();     t

programmatically setting MIME mappings for static-only site

2019-04-19 Thread Garret Wilson
I'm wanting to embed Tomcat to only serve static files (for the moment). That is, no JSP, etc. I also want to have the welcome files completely customizable. So instead of calling `tomcat.addWebapp()`, I go the completely programmable route and call `tomcat.addContext()`, `context.createWrapp

Re: OS

2019-04-19 Thread Mark Thomas
On April 18, 2019 6:54:37 PM UTC, Christopher Schultz wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA256 > > > >On 4/18/19 01:06, liname...@outlook.com wrote: >> Hello, I am doing an investigation. Does Windows Server 2019 >> support the following products: >> >> Apache Tomcat 6.0.35 Tom