Re: unable to serve static files with embedded Tomcat

2019-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Garret, On 4/19/19 19:18, Garret Wilson wrote: > 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(ne

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: 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: 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: 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: 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

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