Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-05 Thread Mark Thomas
On 03/09/2016 14:07, vimil wrote: > I looked at tomcat 8 source code to determine how the class loader resolves > libraries and class folders specified in post resources. > > if the order of post resources is as follows > > className="org.apache.catalina.webresources.DirResourceSet" >

Re: How to set up a separate configuration for a Tomcat application

2016-09-05 Thread Joshua McDowell
Fung, I am not clear on what you’re asking for. So before I attempt to help.. Can you clarify a couple of things? Are you wanting to setup a multi-tenant / opti-tenant tomcat installation? In other words. Are you wanting to run user10, user11, user12 all separate tomcat applications?

Re: AW: How to set up a separate configuration for a Tomcat application

2016-09-05 Thread Mark Thomas
On 05/09/2016 16:13, Fung wrote: > I'm going to get it right now. > I make a xml file "download.xml" at > apache-tomcat-8.0.15\conf\Catalina\localhost,the contents are as follows: > > > > > > > > And,open the tomcat web.xml listings to true. > This is done.Now I can access F:\nas by

Re: AW: Status-Code of error-pages is always http-200?

2016-09-05 Thread tomcat
On 05.09.2016 14:28, Matthias Ludwig wrote: Problem solved: It was a programming error in my own code. I set the status myself to 200. I can only say : it is a pity. With an issue so well described, it would have been a pleasure to search the Tomcat code for the reason. But in my experience,

AW: How to set up a separate configuration for a Tomcat application

2016-09-05 Thread Fung
I'm going to get it right now. I make a xml file "download.xml" at apache-tomcat-8.0.15\conf\Catalina\localhost,the contents are as follows: And,open the tomcat web.xml listings to true. This is done.Now I can access F:\nas by http://localhost:8080/download/ But there are still

Re: How to write a correct HTTP request to Tomcat 8.5.4 instance?

2016-09-05 Thread tomcat
On 05.09.2016 15:09, Klemens Muthmann wrote: Am 05.09.2016 um 14:49 schrieb Tim Watts: On Mon, 2016-09-05 at 14:11 +0200, Klemens Muthmann wrote: Hi, I currently need to implement an HTTP data transmission from an Arduino with WiFi module to a PC running a Tomcat 8.5.4 instance. The Tomcat is

Re: How to write a correct HTTP request to Tomcat 8.5.4 instance?

2016-09-05 Thread Klemens Muthmann
Am 05.09.2016 um 14:49 schrieb Tim Watts: > On Mon, 2016-09-05 at 14:11 +0200, Klemens Muthmann wrote: >> Hi, >> >> I currently need to implement an HTTP data transmission from an Arduino >> with WiFi module to a PC running a Tomcat 8.5.4 instance. The Tomcat is >> running under Ubuntu 16.04. >>

How to set up a separate configuration for a Tomcat application

2016-09-05 Thread Fung
Hi! I want to map a virtual path in my web app to a physical path on the server. I know it can cross by set up the server.xml(add a tag) and open the web.xml "DefaultServlet" init param -- listings to true.But it will influence other app in the tomcat. So,it there any ways to seperate the

Re: How to write a correct HTTP request to Tomcat 8.5.4 instance?

2016-09-05 Thread Tim Watts
On Mon, 2016-09-05 at 14:11 +0200, Klemens Muthmann wrote: > Hi, > > I currently need to implement an HTTP data transmission from an Arduino > with WiFi module to a PC running a Tomcat 8.5.4 instance. The Tomcat is > running under Ubuntu 16.04. > > The problem is that, since there are no HTTP

AW: Status-Code of error-pages is always http-200?

2016-09-05 Thread Matthias Ludwig
Problem solved: It was a programming error in my own code. I set the status myself to 200. -Ursprüngliche Nachricht- Von: Matthias Ludwig [mailto:matthias-lud...@gmx.net] Gesendet: Montag, 5. September 2016 11:24 An: users@tomcat.apache.org Betreff: Status-Code of error-pages is always

How to write a correct HTTP request to Tomcat 8.5.4 instance?

2016-09-05 Thread Klemens Muthmann
Hi, I currently need to implement an HTTP data transmission from an Arduino with WiFi module to a PC running a Tomcat 8.5.4 instance. The Tomcat is running under Ubuntu 16.04. The problem is that, since there are no HTTP libraries on Arduino, I need to write the correct HTTP request myself and I

Status-Code of error-pages is always http-200?

2016-09-05 Thread Matthias Ludwig
Hello, I'm using the servlet error-page Mechanism. I tried this under Tomcat 8.0.23 and 8.5.4. Background: I'm trying to implement a REST-Web-Service. Therefore I have to combine error-http-status with json/xml in the response body for further error information. I experienced the following: