RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-07-02 Thread Sandels Mark (RTH) OUH
Hi Chris

I started off looking at older documentation on how to configure tomcat and 
apache http as a tomcat connector but have referred to tomcat connectors v 9 
now. I have referred to the correct version of the documentation for Apache 
http 2.4.

Can you see anything in my configuration which should be changed?

Mark

Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services – Integration 
Services Team |Manor House Annexe Room G22, Oxford University Hospitals NHS 
Trust , Headley Way, Headington, Oxford OX3 9RR |Phone:  01865 (5) 72103 | 
Email: mark.sand...@ouh.nhs.uk NHS colleagues can visit the OUH IM Services 
intranet site at http://ouhimt.oxnet.nhs.uk 

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: 29 June 2018 21:35
To: users@tomcat.apache.org
Subject: Re: Apache http via tomcat WAR or Directory URL syntax (tomcat 
server.xml) for WAR application not working

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 6/29/18 3:32 AM, Sandels Mark (RTH) OUH wrote:
> Hi Andre
> 
> I am using Apache Tomcat connectors -
> 
> https://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
>
>  I got confused about using http as a proxy.
> 
> Here is my workers.properties file:
> 
> Workers.tomcat_home=C:\Program Files (x86)\apache-tomcat-9.0.6
> #Make mod_jk module aware of Tomcat workers.java_home=C:\Program
> Files (x86)\Java\jre1.8.0_161 #Make mod_jk module aware of jre ps =
> \ # Specify the file path separator worker.list=ajp13 
> worker.ajp13.port=8009 #Workport , this port should match the port
> used by the AJP/1.3 protocol of the Connector element in server.xml
>  worker.ajp13.host=localhost #Tomcat server address 
> worker.ajp13.type=ajp13 #type

Uhh... the workers.properties file you sent yesterday was different.
Are you making changes?

If you are using tomcat_home and java_home directives, your
configuration looks to be ancient. Are you following a setup guide
from 2005?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAls2l+QACgkQHPApP6U8
pFj5+A/7B12TLAhQWEiP0Po9XCeg7/gaVTtEHEbiJLp7lQ5Odq30+b4RGYIlvBUq
m2A3cNcezsk+9rwYGLUWPXti5Blv+TtvqmJWYQJ6fLyuSSSRcJbBKj5XmEeKRtim
RXRmwuCFWMILP1pEdDPDMXXM5BpqtyolmxECOfT+TeYwwArokA2DA55EXaPquDTk
1I7/29FwTAb2X/pOqXQjw6HrxuHswgTjr3pj6IQl9nKNRizlqtJ4AwbmdAHDbvB4
npoDXS51Is5A75D2kzSbKNMzgQYG/QriCVqoNYZNqOgd7X6isM3S5/Z2os+KrjAp
9SZB1LWbbfaYByPe2IzjPNJA/vpMFFIRiovjgKIxXLGqojrEhhfbIUVS3DHVjmps
2+Fdxt63TI+Z5bEqxMRGIPpEMre1GLIPu/r4Cd2l/lJeRCc+FShz6VhZgfIv5xdF
UmT0E2FX9unAlAbB2fxzZ5YG0Tmjv+yeNkydMGZ+fiieEp8pQPNmBIj5OBkrY9jE
RCNsdtUtYkcLiUXuDHnwdC7FwaI/LmtF3JdJwOr9hnIXSEfZLsvBPcLrsexBWNLj
kdHqZkvA/HOgKEoF6NfWEiEnBASVsSCxbdNf+u11YjlWfgbAHlNzkhUwPL+Gt3T5
8FsJBUsJsbTNmSIsc/+9aj4eY8P1s6pMNFkabj4AvtFihuCzUeg=
=/Old
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 6/29/18 3:32 AM, Sandels Mark (RTH) OUH wrote:
> Hi Andre
> 
> I am using Apache Tomcat connectors -
> 
> https://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
>
>  I got confused about using http as a proxy.
> 
> Here is my workers.properties file:
> 
> Workers.tomcat_home=C:\Program Files (x86)\apache-tomcat-9.0.6
> #Make mod_jk module aware of Tomcat workers.java_home=C:\Program
> Files (x86)\Java\jre1.8.0_161 #Make mod_jk module aware of jre ps =
> \ # Specify the file path separator worker.list=ajp13 
> worker.ajp13.port=8009 #Workport , this port should match the port
> used by the AJP/1.3 protocol of the Connector element in server.xml
>  worker.ajp13.host=localhost #Tomcat server address 
> worker.ajp13.type=ajp13 #type

Uhh... the workers.properties file you sent yesterday was different.
Are you making changes?

If you are using tomcat_home and java_home directives, your
configuration looks to be ancient. Are you following a setup guide
from 2005?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAls2l+QACgkQHPApP6U8
pFj5+A/7B12TLAhQWEiP0Po9XCeg7/gaVTtEHEbiJLp7lQ5Odq30+b4RGYIlvBUq
m2A3cNcezsk+9rwYGLUWPXti5Blv+TtvqmJWYQJ6fLyuSSSRcJbBKj5XmEeKRtim
RXRmwuCFWMILP1pEdDPDMXXM5BpqtyolmxECOfT+TeYwwArokA2DA55EXaPquDTk
1I7/29FwTAb2X/pOqXQjw6HrxuHswgTjr3pj6IQl9nKNRizlqtJ4AwbmdAHDbvB4
npoDXS51Is5A75D2kzSbKNMzgQYG/QriCVqoNYZNqOgd7X6isM3S5/Z2os+KrjAp
9SZB1LWbbfaYByPe2IzjPNJA/vpMFFIRiovjgKIxXLGqojrEhhfbIUVS3DHVjmps
2+Fdxt63TI+Z5bEqxMRGIPpEMre1GLIPu/r4Cd2l/lJeRCc+FShz6VhZgfIv5xdF
UmT0E2FX9unAlAbB2fxzZ5YG0Tmjv+yeNkydMGZ+fiieEp8pQPNmBIj5OBkrY9jE
RCNsdtUtYkcLiUXuDHnwdC7FwaI/LmtF3JdJwOr9hnIXSEfZLsvBPcLrsexBWNLj
kdHqZkvA/HOgKEoF6NfWEiEnBASVsSCxbdNf+u11YjlWfgbAHlNzkhUwPL+Gt3T5
8FsJBUsJsbTNmSIsc/+9aj4eY8P1s6pMNFkabj4AvtFihuCzUeg=
=/Old
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 6/28/18 5:55 AM, Sandels Mark (RTH) OUH wrote:
> In answer to your questions ...
> 
> < for that JSP? (I'm expecting the answer to be yes.)>>
> 
> The web-page that I was expecting appears - that is the WAR
> application web-page for OracleStatus.
> 
> < proxy? If yes, show us the proxy configuration.>>
> 
> I am using the Apache http service as a proxy. I have configured
> the Apache httpd.conf file to listen to client requests on port
> 8000.
> 
> How do I configure tomcat to go directory to the index.jsp page?
> 
> Apache http.conf file.
> 
> [snipped irrelevant details]
> 
> # Load mod_jk module LoadModule jk_module modules/mod_jk.so
> 
> [more snips]
> 
> # Assign the /* .action and /*.jsp requests to Tomcat, and the rest
> of the Apache Http Servers handle them. # Note that the akp13
> behind JkMount corresponds to the name of the worker in the
> worker.list file in the worker.properties file. JKMount /servlet/*
> ajp13
> 
> JkMount /*.jsp ajp13 JkMount /*.do ajp13  Order
> deny,allow Allow from all 
> 
> Apache workers.properties file ..
> 
> worker.list=worker1,jkstatus
> 
> #Set properties for worker19 (ajp13) worker.worker1.type=ajp13 
> worker.worker1.host=localhost worker.worker1.port=8009 
> worker.worker1.ping_timeout=1000 
> worker.worker1.connect_timeout=1 
> worker.worker1.prepost_timeout=1 
> worker.worker1.socket_timeout=10 
> worker.worker1.connection_pool_timeout=60 
> worker.worker1.connection_pool_size=90 worker.worker1.retries=2 
> worker.worker1.reply_timeout=30
> 
> # status worker worker.jkstatus.type=status

Your worker is called "worker1" and you have used JkMount to mount a
(non-existent) worker called "ajp13".

You should either change your workers.properties file to use the
worker-name you are using in JkMount ("ajp13") or change your JkMount
directives to match the worker you actually defined ("worker1").

Also, if you want /jkstatus to give you mod_jk's status, you'll want
to map that to the "jkstatus" worker.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAls2lxwACgkQHPApP6U8
pFiVVhAAxUGWmuyiTek7VbPbGQ7jcr0qmax2AQmWfvFzZ+DxBH7Nvz7U4UgD+pLo
0d8Vm+iCf0ch6yTREpP/80sKApBmMYuPuwAJ2nRmZ2pLPl7d4CB+9Ey91X3Psd+U
2UAu7PVISJ3iHt+iTqMHXuq3n1ahjFYUOgdEM2rZA9RGMuQjIL/CdLour0y1mbPH
XJNqBjdorm0uB5d5rKJi0mNlPsZBuD5URIMV6x5hg2gYCPp0dl9C9WVmonHmDJq0
gAFr6mc2Zv0AYesrh5Zht9PMInC3golf4Kv4VZw9ROrRpfBWQRY0oXZKCxuP9672
OOA0Bng28SQ9bDl3RALX79brFmUeUjq9qGz7T9UikrYNFxEftHgomUhC3njifMup
06L77Tp1cKGToZXcNacJHEhxpByptknd30Bs52yH2CIeB2lSclPf0HfGfdLNU33L
rQP2aoGOggonaR7wo50M5Km8RE5A77Obu239BWIaWZ/jxuATO8zBQucRGvpN9P6o
gpzgHxIHHyBRSomsaGSI59jkBV3Q31JZOUQy7uSGcoR059gYXUzv5d6buVZrYEIZ
OIbNnQknU7od+jhGFMB8eBwLWnOxazj8lbpu3YEj7CRGhPLJRnPoJvDEGiKNXaGx
1lEaiS2iopPrTsysw2mBfvWGF4SvzywsnWpAzw/IBlHYLBvwS3c=
=JeQv
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-29 Thread Sandels Mark (RTH) OUH
Hi Users list (and especial thanks to Mark T from Apache and others who have 
responded to this post.

I am now able to go directly to my WAR application from a browser. I am using 
Tomcat connectors to pass a browser request via Apace http. The answer was 
simple - do not use a http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
# will be interpreted as '/logs/access_log'.
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "c:/Apache24"

#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:logs

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the 
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 8000

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule auth_form_module modules/mod_auth_form.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_core_module modules/mod_authn_core.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_socache_module modules/mod_authn_socache.so
#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_core_module modules/mod_authz_core.so
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule brotli_module modules/mod_brotli.so
#LoadModule buffer_module modules/mod_buffer.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cache_disk_module modules/mod_cache_disk.so
#LoadModule cache_socache_module modules/mod_cache_socache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule data_module modules/mod_data.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule 

RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-29 Thread Sandels Mark (RTH) OUH
Hi Andre

I am using Apache Tomcat connectors -

https://tomcat.apache.org/connectors-doc/webserver_howto/apache.html

I got confused about using http as a proxy.

Here is my workers.properties file:

Workers.tomcat_home=C:\Program Files (x86)\apache-tomcat-9.0.6 #Make mod_jk 
module aware of Tomcat 
workers.java_home=C:\Program Files (x86)\Java\jre1.8.0_161 #Make mod_jk module 
aware of jre 
ps = \ # Specify the file path separator 
worker.list=ajp13 
worker.ajp13.port=8009 #Workport , this port should match the port used by the 
AJP/1.3 protocol of the Connector element in server.xml 
worker.ajp13.host=localhost #Tomcat server address 
worker.ajp13.type=ajp13 #type



Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-28 Thread tomcat

Hi.

On 28.06.2018 11:55, Sandels Mark (RTH) OUH wrote:
[.. snip ..]



I am using the Apache http service as a proxy. I have configured the Apache 
httpd.conf file to listen to client requests on port 8000.



Well no, according to the confiuration below, you are not at all using Apache httpd as a 
proxy.

E.g.

...

#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_express_module modules/mod_proxy_express.so
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
#LoadModule proxy_html_module modules/mod_proxy_html.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_http2_module modules/mod_proxy_http2.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

...

All the Apache httpd modules which /would/ allow some kind of proxying are commented out, 
thus not even loaded.

As a minimum for acting as a proxy, the following 2 should be uncommented :

> #LoadModule proxy_module modules/mod_proxy.so
> #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so




#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "c:/Apache24/htdocs"
#
DocumentRoot "C:\Program Files (x86)\apache-tomcat-9.0.6\webapps"




What you are doing here, and which may make it /look/ like you are proxying, is 
:
You are telling (and allowing) the Apache httpd front-end, to serve itself directly 
whatever is in the tomcat webapps directory (without involving tomcat at all).
In other words, when a client requests a tomcat page (html, jsp, whatever) Apache httpd 
goes /around/ tomcat, and returns this file directly to the browser, without any Java 
processing at all. Tomcat does not even see that this is happening.
(And also, any kind of security that may be built into your tomcat application, is totally 
bypassed.)
You can probably see this if you examine the tomcat logfiles : I bet that you will not see 
any kind of access to the tomcat pages or webapps.

And see the warning in red here :
http://tomcat.apache.org/connectors-doc/reference/apache.html




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-28 Thread Sandels Mark (RTH) OUH
Hi Tom

In answer to your questions ...

<>

The web-page that I was expecting appears - that is the WAR application 
web-page for OracleStatus.

<>

I am using the Apache http service as a proxy. I have configured the Apache 
httpd.conf file to listen to client requests on port 8000.

How do I configure tomcat to go directory to the index.jsp page?

Apache http.conf file.
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see 
# http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" 
# will be interpreted as '/logs/access_log'.
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "c:/Apache24"

#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:logs

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the 
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 8000

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule auth_form_module modules/mod_auth_form.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_core_module modules/mod_authn_core.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_socache_module modules/mod_authn_socache.so
#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_core_module modules/mod_authz_core.so
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule brotli_module modules/mod_brotli.so
#LoadModule buffer_module modules/mod_buffer.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cache_disk_module modules/mod_cache_disk.so
#LoadModule cache_socache_module modules/mod_cache_socache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module 

Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-28 Thread Mark Thomas
On 28/06/18 09:58, Sandels Mark (RTH) OUH wrote:
> Hi Mark
> 
> 
> 
> Following your instructions, I get the following web-page in my browser. It 
> is not running the WAR application.
> 
> 
> Index of /oraclestatus
> 
>   *   Parent Directory
>   *   META-INF/
>   *   WEB-INF/
>   *   green_up.gif
>   *   index.jsp
>   *   red_down.gif

What happens when you click index.jsp. Do you see the source code for
that JSP? (I'm expecting the answer to be yes.)

Are you connecting directly to Tomcat or are you using a reverse proxy?
If yes, show us the proxy configuration.

If no, explain why your browser is connecting to port 8000 when Tomcat
is listening on port 8080 (based on the server.xml you showed us yesterday).

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-28 Thread Sandels Mark (RTH) OUH
Hi Mark



Following your instructions, I get the following web-page in my browser. It is 
not running the WAR application.


Index of /oraclestatus

  *   Parent Directory
  *   META-INF/
  *   WEB-INF/
  *   green_up.gif
  *   index.jsp
  *   red_down.gif



Kind regards

Mark









Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services – Integration 
Services Team |Manor House Annexe Room G22, Oxford University Hospitals NHS 
Trust , Headley Way, Headington, Oxford OX3 9RR |Phone:  01865 (5) 72103 | 
Email: mark.sand...@ouh.nhs.uk NHS colleagues can visit the OUH IM Services 
intranet site at http://ouhimt.oxnet.nhs.uk



-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: 27 June 2018 15:52
To: Tomcat Users List
Subject: Re: Apache http via tomcat WAR or Directory URL syntax (tomcat 
server.xml) for WAR application not working



On 27/06/18 15:44, Sandels Mark (RTH) OUH wrote:

> Thanks Chris

>

> Point taken. I have looked at the correct version of the Tomcat documentation 
> - the text is the same for the relevant section but thanks for pointing out 
> that I should check this.

>

> https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL

>

> Here is the other information you asked for:

>

> 1. Provide the name and location of your WAR file on the disk

>

> C:\Program Files (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war



Stop Tomcat.



If they exist, move C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\ROOT.war and C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\ROOT to a C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps-backup (or any suitable back-up location).



Rename C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war to C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\ROOT##OracleStatus.war







> server.xml contents







>  WAR or Directory URL="file:C:\Program Files 
> (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war" />

> 



I feared as much.



Remove this entire  element from you server.xml



Start Tomcat.



Done (assuming your app works and doesn't require additional resources).





To repeat. You are mixing up configuration of a  element

(which shouldn't be in server.xml) with using the Manager web

application to deploy a new webapp.



You were reading this:

https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL



You should have been reading this:

http://tomcat.apache.org/tomcat-9.0-doc/config/host.html#Automatic_Application_Deployment



Mark



-

To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Mark Thomas
On 27/06/18 15:44, Sandels Mark (RTH) OUH wrote:
> Thanks Chris
> 
> Point taken. I have looked at the correct version of the Tomcat documentation 
> - the text is the same for the relevant section but thanks for pointing out 
> that I should check this.
> 
> https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL
> 
> Here is the other information you asked for:
> 
> 1. Provide the name and location of your WAR file on the disk
> 
> C:\Program Files (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war

Stop Tomcat.

If they exist, move C:\Program Files
(x86)\apache-tomcat-9.0.6\webapps\ROOT.war and C:\Program Files
(x86)\apache-tomcat-9.0.6\webapps\ROOT to a C:\Program Files
(x86)\apache-tomcat-9.0.6\webapps-backup (or any suitable back-up location).

Rename C:\Program Files
(x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war to C:\Program Files
(x86)\apache-tomcat-9.0.6\webapps\ROOT##OracleStatus.war



> server.xml contents



>WAR or Directory URL="file:C:\Program Files 
> (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war" />
>   

I feared as much.

Remove this entire  element from you server.xml

Start Tomcat.

Done (assuming your app works and doesn't require additional resources).


To repeat. You are mixing up configuration of a  element
(which shouldn't be in server.xml) with using the Manager web
application to deploy a new webapp.

You were reading this:
https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL

You should have been reading this:
http://tomcat.apache.org/tomcat-9.0-doc/config/host.html#Automatic_Application_Deployment

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Sandels Mark (RTH) OUH
Thanks Chris

Point taken. I have looked at the correct version of the Tomcat documentation - 
the text is the same for the relevant section but thanks for pointing out that 
I should check this.

https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL

Here is the other information you asked for:

1. Provide the name and location of your WAR file on the disk

C:\Program Files (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war

2. Provide the name and location of the XML file you are editing

C:\Program Files (x86)\apache-tomcat-9.0.6\conf\server.xml

3. Provide the complete contents of the XML file you are editing (with
any secrets removed, of course)
 
server.xml contents





  
  
  
  
  
  
  
  

  
  


  

  
  























  
  

  
  


  

  










   

  


4. Catalina error when starting the tomcat service using this server.xml 
configuration -

27-Jun-2018 15:42:30.446 WARNING [main] 
org.apache.catalina.startup.Catalina.load Catalina.start using conf/server.xml: 
Attribute name "WAR" associated with an element type "Context" must be followed 
by the ' = ' character.
27-Jun-2018 15:42:30.446 SEVERE [1] org.apache.catalina.startup.Catalina.start 
Cannot start server. Server instance is not configured.

Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services – Integration 
Services Team |Manor House Annexe Room G22, Oxford University Hospitals NHS 
Trust , Headley Way, Headington, Oxford OX3 9RR |Phone:  01865 (5) 72103 | 
Email: mark.sand...@ouh.nhs.uk NHS colleagues can visit the OUH IM Services 
intranet site at http://ouhimt.oxnet.nhs.uk 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 6/27/18 10:02 AM, Sandels Mark (RTH) OUH wrote:
> Hi Mark
> 
> Please follow the second link I gave in my original post - 
> https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Deplo
y_a_Directory_or_WAR_by_URL
>
>  My original post explains what I am trying to do. Here is the
> extract from the link above which gives the Apache documented
> syntax that I am trying to use.


If you are trying to do that, please use the documentation for your
version of Tomcat. That would be:

https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_
a_Directory_or_WAR_by_URL

The text happens to be the same in this case, but in many cases, it is
not.

If you want more help, you will need to:

1. Provide the name and location of your WAR file on the disk
2. Provide the name and location of the XML file you are editing
3. Provide the complete contents of the XML file you are editing (with
any secrets removed, of course)

- -chris

> < directory or ".war" file located on the Tomcat server. If no
> Context Path is specified, the directory name or the war file name
> without the ".war" extension is used as the path. The WAR or
> Directory URL specifies a URL (including the file: scheme) for
> either a directory or a web application archive (WAR) file. The
> supported syntax for a URL referring to a WAR file is described on
> the Javadocs page for the java.net.JarURLConnection class. Use only
> URLs that refer to the entire WAR file. In this example the web
> application located in the directory C:\path\to\foo on the Tomcat
> server (running on Windows) is deployed as the web application
> context named /footoo. Context Path: /footoo WAR or Directory URL:
> file:C:/path/to/foo In this example the ".war" file
> /path/to/bar.war on the Tomcat server (running on Unix) is deployed
> as the web application context named /bar. Notice that there is no
> path parameter so the context path defaults to the name of the web
> application archive file without the ".war" extension. WAR or
> Directory URL: jar:file:/path/to/bar.war!/ Deploy a Directory or
> War from the Host appBase Install a web application directory or
> ".war" file located in your Host appBase directory. If no Context
> Path is specified the directory name or the war file name without
> the ".war" extension is used as the path. In this example the web
> application located in a subdirectory named foo in the Host appBase
> directory of the Tomcat server is deployed as the web application
> context named /foo. Notice that there is no path parameter so the
> context path defaults to the name of the web application
> directory. WAR or Directory URL: foo In this example the ".war"
> file bar.war located in your Host appBase directory on the Tomcat
> server is deployed as the web application context named /bartoo. 
> Context Path: /bartoo WAR or Directory URL: bar.war>>
> 
> Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services -
> Integration Services Team |Manor House Annexe Room G22, Oxford
> University Hospitals NHS Trust , Headley Way, Headington, Oxford
> OX3 9RR |Phone:  01865 (5) 72103 | Email: mark.sand...@ouh.nhs.uk
> NHS colleagues can visit the OUH IM Services intranet site at
> http://ouhimt.oxnet.nhs.uk
> 
> 
> -Original Message- From: Sandels Mark (RTH) OUH
> [mailto:mark.sand...@ouh.nhs.uk] Sent: 27 June 2018 13:54 To:
> users@tomcat.apache.org Subject: Apache http via tomcat WAR or
> Directory URL syntax (tomcat server.xml) for WAR application not
> working
> 
> 
> I am attempting to launch a WAR web application from a tomcat
> service (tomcat 9.0.2, windows server 2008 R2), after invoking a
> URL in a browser (Firefox) hosted by an Apache HTTP server (Apache
> 2.4). The documentation ...
> 
> https://www.ibm.com/support/knowledgecenter/SS6RHZ_6.0.6/com.ibm.ratio
nal.pe.install.doc/topics/t_rpeng_tomcat.html
>
> 
https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Deploy_
a_Directory_or_WAR_by_URL)
> 
> states that the tomcat server.xml configuration file should have an
> entry:
> 
>  (which in this case is C:\Program Files
> (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war)
> 
> The Catalina log file entry gives the following error message  
> 25-Jun-2018 14:49:51.158 WARNING [main]
> org.apache.catalina.startup.Catalina.load Catalina.start using
> conf/server.xml: Attribute name "WAR" associated with an element
> type "Context" must be followed by the ' = ' character.
> 
> The tomcat service then fails to start.
> 
> Please advise as to correct syntax to use in the server.xml
> configuration file.
> 
> Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services -
> Integration Services Team |Manor House Annexe Room G22, Oxford
> University Hospitals NHS Trust , Headley Way, Headington, Oxford
> OX3 9RR |Phone:  01865 (5) 72103 | Email:
> mark.sand...@ouh.nhs.uk NHS
> colleagues can visit the OUH IM 

Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 6/27/18 9:50 AM, Sandels Mark (RTH) OUH wrote:
> Hi Mark
> 
> I only included the IBM link because it was one of the few
> real-world examples of using the documented context.xml Context
> directive to specify the WAR or Directory URL. My WAR application
> was developed and built using Netbeans 8.

A  element can't define where the application is, because the
application itself contains the (file which contains the) 
element.

If you want to deply a WAR file, why not just drop it into webapps/
into a default installation and collect your paycheck? It really
couldn't be much easier than that.

- -chris

> -Original Message- From: Mark Thomas
> [mailto:ma...@apache.org] Sent: 27 June 2018 14:45 To:
> users@tomcat.apache.org Subject: Re: Apache http via tomcat WAR or
> Directory URL syntax (tomcat server.xml) for WAR application not
> working
> 
> On 27/06/18 13:53, Sandels Mark (RTH) OUH wrote:
>> 
>> I am attempting to launch a WAR web application from a tomcat
>> service (tomcat 9.0.2, windows server 2008 R2), after invoking a
>> URL in a browser (Firefox) hosted by an Apache HTTP server
>> (Apache 2.4). The documentation ...
>> 
>> https://www.ibm.com/support/knowledgecenter/SS6RHZ_6.0.6/com.ibm.rati
onal.pe.install.doc/topics/t_rpeng_tomcat.html
>
>> 
> I assume that, by including the reference to the above doc, you
> are attempting to install the Document Builder applications.
> 
> That IBM doc says you must use Tomcat 7 or 8. You are trying to
> use Tomcat 9. The applications should work on Tomcat 9 but
> applications have been known to try and use Tomcat internals
> directly and those can be version specific.
> 
> I'll also note that the IBM docs tell you to edit conf/context.xml.
> That means all the applications deployed on that Tomcat instance
> will have access to those databases. That may or may not be what
> you want and in some circumstances would be considered a security
> concern.
> 
>> https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Depl
oy_a_Directory_or_WAR_by_URL)
>
>> 
> That is the doc for Tomcat 7. You are using Tomcat 9.
> 
>> states that the tomcat server.xml configuration file should have
>> an entry:
>> 
>> > (which in this case is C:\Program Files
>> (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war)
> 
> No, it does not. You are confusing manual deployment and
> configuration with deployment via the Manager application.
> 
> As a general rule, you should never define  elements
> in server.xml.
> 
> Hmm. That WAR file appears to be unrelated to the IBM
> applications.
> 
> 
>> The Catalina log file entry gives the following error message
>>  25-Jun-2018 14:49:51.158 WARNING [main]
>> org.apache.catalina.startup.Catalina.load Catalina.start using
>> conf/server.xml: Attribute name "WAR" associated with an element
>> type "Context" must be followed by the ' = ' character.
>> 
>> The tomcat service then fails to start.
>> 
>> Please advise as to correct syntax to use in the server.xml
>> configuration file.
> 
> What, exactly, are you trying to do?
> 
> 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
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlsznQ8ACgkQHPApP6U8
pFisXBAAxVI/1/RD/hyjiXjDq3MQoHLwv42W31TwxfqOC5/I+17Qf9tOfxiJ76mD
7QHkTbrgGg8p0G+GRbiSpNqbY09aXvzqnk3iKY5SByLBGAm+m5rVsR/a2vovMSdl
4KcYsbwR2qyfYqsDOox0zMG38jHIqbmVKhXpk6OlsV3n5Q5Hw7Rf41QMKF2qm7k2
dsJ9QOqTNoGjelqnnPZ35RsvNJir+4PMv/CGPgghC+Ro+5bPSt2syFqD+C4LPtmO
/ikv75cvObNtaJ5PK/x9SNHgvH4BylnALlrRXBdBPzwcDtJp/to99WN5nsVcEq4Z
5t6inrLUP6MC5HVKg3eyHDpVyiFo1Q5lFfeDRYXkkeiXX5kYAChonGQBFxbHse+J
wEUoT5efatiuFEr5G+NXWX2ANSMuxVZ503C74uisJoxJ116bJlcsbuUw0KkNVhBc
CG/c5ViwBkIAfL4ZmRWYCkm3fk5gJ3fl+2PhI9hWiivHDDKEOhkeGwBwikThi78K
2r1pe6WPumlw8DoMjsAMXKKGy96iPfPLuB0KV3OSJrmfdxxOpqtgWbbS95Eo1CwW
HsaXvO6+p8jYMlpFK3OeMM/gCKHFJCJKNG34YkD4oF5Dx5KhH77G9ip6jBSH7yqj
wf6G19pUPjTVVuzwKeTQJpTITYY8GtZpwdotMTRbSg3sIFXPeus=
=OvWj
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Sandels Mark (RTH) OUH
Hi Mark

Please follow the second link I gave in my original post -
https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL

My original post explains what I am trying to do. Here is the extract from the 
link above which gives the Apache documented syntax that I am trying to use.

Kind regards
Mark

<>

Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services - Integration 
Services Team |Manor House Annexe Room G22, Oxford University Hospitals NHS 
Trust , Headley Way, Headington, Oxford OX3 9RR |Phone:  01865 (5) 72103 | 
Email: mark.sand...@ouh.nhs.uk NHS colleagues can visit the OUH IM Services 
intranet site at http://ouhimt.oxnet.nhs.uk 


-Original Message-
From: Sandels Mark (RTH) OUH [mailto:mark.sand...@ouh.nhs.uk] 
Sent: 27 June 2018 13:54
To: users@tomcat.apache.org
Subject: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) 
for WAR application not working


I am attempting to launch a WAR web application from a tomcat service (tomcat 
9.0.2, windows server 2008 R2), after invoking a URL in a browser (Firefox) 
hosted by an Apache HTTP server (Apache 2.4). The documentation ...

https://www.ibm.com/support/knowledgecenter/SS6RHZ_6.0.6/com.ibm.rational.pe.install.doc/topics/t_rpeng_tomcat.html
https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL)

states that the tomcat server.xml configuration file should have an entry:

mailto:mark.sand...@ouh.nhs.uk> NHS colleagues 
can visit the OUH IM Services intranet site at 
http://ouhimt.oxnet.nhs.uk


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Mark Thomas
On 27/06/18 14:50, Sandels Mark (RTH) OUH wrote:
> Hi Mark
> 
> I only included the IBM link because it was one of the few real-world 
> examples of using the documented context.xml Context directive to specify the 
> WAR or Directory URL.

That IBM doc provides no such example.

> My WAR application was developed and built using Netbeans 8.

So, to repeat:

What, exactly, are you trying to do?

Mark


> 
> Thanks
> Mark
> 
> Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services - Integration 
> Services Team |Manor House Annexe Room G22, Oxford University Hospitals NHS 
> Trust , Headley Way, Headington, Oxford OX3 9RR |Phone:  01865 (5) 72103 | 
> Email: mark.sand...@ouh.nhs.uk NHS colleagues can visit the OUH IM Services 
> intranet site at http://ouhimt.oxnet.nhs.uk 
> 
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org] 
> Sent: 27 June 2018 14:45
> To: users@tomcat.apache.org
> Subject: Re: Apache http via tomcat WAR or Directory URL syntax (tomcat 
> server.xml) for WAR application not working
> 
> On 27/06/18 13:53, Sandels Mark (RTH) OUH wrote:
>>
>> I am attempting to launch a WAR web application from a tomcat service 
>> (tomcat 9.0.2, windows server 2008 R2), after invoking a URL in a browser 
>> (Firefox) hosted by an Apache HTTP server (Apache 2.4). The documentation ...
>>
>> https://www.ibm.com/support/knowledgecenter/SS6RHZ_6.0.6/com.ibm.rational.pe.install.doc/topics/t_rpeng_tomcat.html
> 
> I assume that, by including the reference to the above doc, you are
> attempting to install the Document Builder applications.
> 
> That IBM doc says you must use Tomcat 7 or 8. You are trying to use
> Tomcat 9. The applications should work on Tomcat 9 but applications have
> been known to try and use Tomcat internals directly and those can be
> version specific.
> 
> I'll also note that the IBM docs tell you to edit conf/context.xml. That
> means all the applications deployed on that Tomcat instance will have
> access to those databases. That may or may not be what you want and in
> some circumstances would be considered a security concern.
> 
>> https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL)
> 
> That is the doc for Tomcat 7. You are using Tomcat 9.
> 
>> states that the tomcat server.xml configuration file should have an entry:
>>
>> > case is C:\Program Files (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war)
> 
> No, it does not. You are confusing manual deployment and configuration
> with deployment via the Manager application.
> 
> As a general rule, you should never define  elements in
> server.xml.
> 
> Hmm. That WAR file appears to be unrelated to the IBM applications.
> 
> 
>> The Catalina log file entry gives the following error message 
>> 25-Jun-2018 14:49:51.158 WARNING [main] 
>> org.apache.catalina.startup.Catalina.load Catalina.start using 
>> conf/server.xml: Attribute name "WAR" associated with an element type 
>> "Context" must be followed by the ' = ' character.
>>
>> The tomcat service then fails to start.
>>
>> Please advise as to correct syntax to use in the server.xml configuration 
>> file.
> 
> What, exactly, are you trying to do?
> 
> 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
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Sandels Mark (RTH) OUH
Hi Mark

I only included the IBM link because it was one of the few real-world examples 
of using the documented context.xml Context directive to specify the WAR or 
Directory URL. My WAR application was developed and built using Netbeans 8.

Thanks
Mark

Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services - Integration 
Services Team |Manor House Annexe Room G22, Oxford University Hospitals NHS 
Trust , Headley Way, Headington, Oxford OX3 9RR |Phone:  01865 (5) 72103 | 
Email: mark.sand...@ouh.nhs.uk NHS colleagues can visit the OUH IM Services 
intranet site at http://ouhimt.oxnet.nhs.uk 

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 27 June 2018 14:45
To: users@tomcat.apache.org
Subject: Re: Apache http via tomcat WAR or Directory URL syntax (tomcat 
server.xml) for WAR application not working

On 27/06/18 13:53, Sandels Mark (RTH) OUH wrote:
> 
> I am attempting to launch a WAR web application from a tomcat service (tomcat 
> 9.0.2, windows server 2008 R2), after invoking a URL in a browser (Firefox) 
> hosted by an Apache HTTP server (Apache 2.4). The documentation ...
> 
> https://www.ibm.com/support/knowledgecenter/SS6RHZ_6.0.6/com.ibm.rational.pe.install.doc/topics/t_rpeng_tomcat.html

I assume that, by including the reference to the above doc, you are
attempting to install the Document Builder applications.

That IBM doc says you must use Tomcat 7 or 8. You are trying to use
Tomcat 9. The applications should work on Tomcat 9 but applications have
been known to try and use Tomcat internals directly and those can be
version specific.

I'll also note that the IBM docs tell you to edit conf/context.xml. That
means all the applications deployed on that Tomcat instance will have
access to those databases. That may or may not be what you want and in
some circumstances would be considered a security concern.

> https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL)

That is the doc for Tomcat 7. You are using Tomcat 9.

> states that the tomcat server.xml configuration file should have an entry:
> 
>  case is C:\Program Files (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war)

No, it does not. You are confusing manual deployment and configuration
with deployment via the Manager application.

As a general rule, you should never define  elements in
server.xml.

Hmm. That WAR file appears to be unrelated to the IBM applications.


> The Catalina log file entry gives the following error message 
> 25-Jun-2018 14:49:51.158 WARNING [main] 
> org.apache.catalina.startup.Catalina.load Catalina.start using 
> conf/server.xml: Attribute name "WAR" associated with an element type 
> "Context" must be followed by the ' = ' character.
> 
> The tomcat service then fails to start.
> 
> Please advise as to correct syntax to use in the server.xml configuration 
> file.

What, exactly, are you trying to do?

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



Re: Apache http via tomcat WAR or Directory URL syntax (tomcat server.xml) for WAR application not working

2018-06-27 Thread Mark Thomas
On 27/06/18 13:53, Sandels Mark (RTH) OUH wrote:
> 
> I am attempting to launch a WAR web application from a tomcat service (tomcat 
> 9.0.2, windows server 2008 R2), after invoking a URL in a browser (Firefox) 
> hosted by an Apache HTTP server (Apache 2.4). The documentation ...
> 
> https://www.ibm.com/support/knowledgecenter/SS6RHZ_6.0.6/com.ibm.rational.pe.install.doc/topics/t_rpeng_tomcat.html

I assume that, by including the reference to the above doc, you are
attempting to install the Document Builder applications.

That IBM doc says you must use Tomcat 7 or 8. You are trying to use
Tomcat 9. The applications should work on Tomcat 9 but applications have
been known to try and use Tomcat internals directly and those can be
version specific.

I'll also note that the IBM docs tell you to edit conf/context.xml. That
means all the applications deployed on that Tomcat instance will have
access to those databases. That may or may not be what you want and in
some circumstances would be considered a security concern.

> https://tomcat.apache.org/tomcat-7.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL)

That is the doc for Tomcat 7. You are using Tomcat 9.

> states that the tomcat server.xml configuration file should have an entry:
> 
>  case is C:\Program Files (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war)

No, it does not. You are confusing manual deployment and configuration
with deployment via the Manager application.

As a general rule, you should never define  elements in
server.xml.

Hmm. That WAR file appears to be unrelated to the IBM applications.


> The Catalina log file entry gives the following error message 
> 25-Jun-2018 14:49:51.158 WARNING [main] 
> org.apache.catalina.startup.Catalina.load Catalina.start using 
> conf/server.xml: Attribute name "WAR" associated with an element type 
> "Context" must be followed by the ' = ' character.
> 
> The tomcat service then fails to start.
> 
> Please advise as to correct syntax to use in the server.xml configuration 
> file.

What, exactly, are you trying to do?

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org