Re: [E] Global Error Handling

2019-12-03 Thread Bauer, Margaret M (Peggy)
I think you can add your customized jsp page within your web.xml by
modifying path and file name

 
401
/WEB-INF/jsp/401.jsp
  
  
403
/WEB-INF/jsp/403.jsp
  
  
404
/WEB-INF/jsp/404.jsp
  

On Tue, Dec 3, 2019 at 8:11 AM Sumit Bhardwaj 
wrote:

> Hi Experts,
>
> We have a requirement from a customer, where in case of 404, where someone
> is putting an invalid url, instead of showing the default error, we should
> be showing a custom message.
>
> Is this possible?
>
> I have searched and found couple of solutions similar to
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_27859626_tomcat-2Dserver-2Dchange-2Ddefault-2Dhttp-2D404&d=DwIBaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=JYuCIQ8r7H-c_yYFTZ4gdv4goO0lCCtidMRmNza4zoA&m=W70UQy0yQZ6RcqlHmp6JmY1-JKse-vhMHnH9vleLY7o&s=rhOgsU2tAGMdFGQL-8RDhOtdkd11pYl5mOR1R4rQNKI&e=
>
>
> but these did not work, these work at the app level, but not globally on
> tomcat level.
>
> e.g. if i have an app called myapp
>
> http:///myapp/ This  works and it gets
> redirected to custom page
>
> but
>
> http:///, This does not work and 404 is
> shown,
>
> Is there someway we can handle errors at global level on tomca.t
>
> We are using tomcat 9.0.24.
>
> Thanks for your help.
>
> Best
> Sumit Bhardwaj
>


-- 
*Peggy Bauer*
CAO Production Support
214-770-1782


Re: [E] Re: Official documentation for running an embedded Tomcat server

2019-11-25 Thread Bauer, Margaret M (Peggy)
Ease of deployment and build in the AWS world.

On Mon, Nov 25, 2019 at 3:56 PM Behrang Saeedzadeh 
wrote:

> For an example use case, see Spring Boot. It can use an embedded Tomcat and
> build an executable Uber Jar. Then you can start your Web app by running
> java -jar app.jar.
>
> On Tue, 26 Nov. 2019, 2:29 am Mladen Adamović, 
> wrote:
>
> > I wonder why somebody would want to run "embedded Tomcat" and what it
> > actually means?
> > I'm working professionally in software engineering since 2003 and I'm
> > puzzled.
> >
> > From looking into that article, it seems that Java app starts Tomcat, why
> > somebody would want that?
> >
> >
> > On Sun, Nov 24, 2019 at 12:27 AM Behrang Saeedzadeh  >
> > wrote:
> >
> > > I will create a PR if I find the time to write one.
> > >
> > > On Sat, Nov 23, 2019 at 9:40 PM Mark Thomas  wrote:
> > >
> > > > On 23/11/2019 08:17, Behrang Saeedzadeh wrote:
> > > > > Hi all,
> > > > >
> > > > > Are there any official docs for how to run Tomcat as an embedded
> > > server?
> > > > > Searching returns some results such as
> > > > >
> > > >
> > >
> >
> https://urldefense.proofpoint.com/v2/url?u=https-3A__devcenter.heroku.com_articles_create-2Da-2Djava-2Dweb-2Dapplication-2Dusing-2Dembedded-2Dtomcat&d=DwIFaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=JYuCIQ8r7H-c_yYFTZ4gdv4goO0lCCtidMRmNza4zoA&m=wnrcnb8haPnDfVwSRvz9Cm28Kj7ACYEr8ZF0JTdMDLM&s=RoC8ts62eTgtf8yZNCja1R0TFRfhZHsoFF5x7IIPqsM&e=
> > > > > but I haven't seen any official docs.
> > > > >
> > > > > Are there any?
> > > >
> > > >
> > >
> >
> https://urldefense.proofpoint.com/v2/url?u=http-3A__tomcat.apache.org_tomcat-2D9.0-2Ddoc_api_org_apache_catalina_startup_Tomcat.html&d=DwIFaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=JYuCIQ8r7H-c_yYFTZ4gdv4goO0lCCtidMRmNza4zoA&m=wnrcnb8haPnDfVwSRvz9Cm28Kj7ACYEr8ZF0JTdMDLM&s=S1eZ7tY4G6jD32KhDWaVir7gfQaATAOrJ4qlUGGy5iY&e=
> > > >
> > > > is the closest thing we have but I suspect parts of it are out of
> date.
> > > > The unit tests are a good source of samples of how to use it.
> > > >
> > > > Care to contribute a how-to page for the docs?
> > > >
> > > > Mark
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > > >
> > > >
> > >
> >
>


-- 
*Peggy Bauer*
CAO Production Support
214-770-1782


tomcat with SiteMinder

2019-10-10 Thread Bauer, Margaret M (Peggy)
Has anyone used tomcat with SiteMinder without having a webserver in front
of it?  If so, where can I find the how to?

thank you,

*Peggy *


Re: [E] Binding a non root user to port 443

2018-03-13 Thread Bauer, Margaret M (Peggy)
Change your 443 port to something above 443.  like 1443 or 8443.  Root owns
ports below 1024.  Root owner will have to stop/start. and processes using
ports under 1024.  Only root user can use.

Peggy

On Tue, Mar 13, 2018 at 1:26 PM, Cheltenham, Chris <
ccheltenham-...@philasd.org> wrote:

> Hello Everyone,
>
>
>
> Is there a way to redirect ports 80 and 443 to 8443.
>
> I have a non root user but I cannot use CentOS firewalld nor iptables.
>
>
>
> I have tried these things.
>
>
>
> 
>enableLookups="false"
>
>redirectPort="8443" />
>
>
>
> But it still fails.
>
> ===
>
> Thank You;
>
> Chris Cheltenham
> Technology Services
> The School District of Philadelphia
>
> Work # 215-400-5025 <(215)%20400-5025>
> Cell # 215-301-6571 <(215)%20301-6571>
>



-- 
*Peggy Bauer*
CAO Production Support
214-770-1782


Re: [E] RE: Tomcat 8.5.23

2018-02-18 Thread Bauer, Margaret M (Peggy)
I was just suggesting that you check to make sure it's set, since it would
not deploy.

On Fri, Feb 16, 2018 at 2:32 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Margaret,
>
> On 2/15/18 10:46 PM, Bauer, Margaret M (Peggy) wrote:
> > I am not using 8.5, but in older tomcat you must set the below in
> > the server.xml
> >
> >  > autoDeploy="true">
>
> That is the default configuration. So... what is your suggestion exactly
> ?
>
> - -chris
>
> > On Thu, Feb 15, 2018 at 1:25 PM, Lawrence Lim
> >  wrote:
> >
> >> Red Hat Enterprise Linux Server release 6.9 (Santiago)
> >>
> >> Yes. I did check the logs. It does not log anything when I
> >> deploy. But, it logs something when I undeploy.
> >>
> >> Lawrence Lim Software Developer -
> >>
> >> ENBRIDGE TEL: 780-969-6208 10175 101 St NW,  Edmonton, Alberta
> >> T5J 0H3
> >>
> >> enbridge.com Integrity. Safety. Respect.
> >>
> >> -Original Message- From: Satish Chhatpar 02
> >> [mailto:chhatp...@cpwplc.com] Sent: Thursday, February 15, 2018
> >> 10:58 AM To: users@tomcat.apache.org Subject: [External] Re:
> >> Tomcat 8.5.23
> >>
> >> Which operating system? Did you check the logs?
> >>
> >> Sent using OWA for iPhone  From:
> >> Lawrence Lim  Sent: Thursday, February
> >> 15, 2018 11:09:54 PM To: users@tomcat.apache.org Subject: Tomcat
> >> 8.5.23
> >>
> >> Hi,
> >>
> >>
> >>
> >> I just installed tomcat 8.5.23. I am having problems deploying
> >> web apps via manager. To reproduce:
> >>
> >>
> >>
> >> 1.   Login to tomcat manager
> >>
> >>
> >>
> >> 2.   Go to " WAR file to deploy"
> >>
> >>
> >>
> >> 3.   Pick a war file
> >>
> >>
> >>
> >>
> >>
> >> Error message: FAIL - File upload failed, no file
> >>
> >>
> >>
> >>
> >>
> >> Workaround: Copy war file to the tomcat webapps directory
> >>
> >>
> >>
> >>
> >>
> >> I also tried using localhost:8080, same result. So, it's not some
> >> weird networking constraint.
> >>
> >>
> >> Lawrence Lim Software Developer -
> >>
> >> ENBRIDGE TEL: 780-969-6208 10175 101 St NW,  Edmonton, Alberta
> >> T5J 0H3
> >>
> >> enbridge.com Integrity. Safety. Respect.
> >>
> >> ::DISCLAIMER::
> >> 
> >> 
> >> Confidentiality Notice from Dixons Carphone plc (registered in
> >> England & Wales No.07105905) of 1 Portal Way, London, W3 6RS
> >> ("Dixons Carphone"). The information contained in this e-mail and
> >> any attachments may be legally privileged, proprietary and/or
> >> confidential. If you received this e-mail in error, please notify
> >> the sender by return, permanently delete the e-mail and destroy
> >> all hard copies immediately. No warranty is made as to the
> >> completeness or accuracy of the information contained in this
> >> e-mail. Opinions, conclusions and statements of intent in this
> >> e-mail are those of the sender and will not bind any Dixons
> >> Carphone group company (Dixons Carphone Group) unless confirmed
> >> by an authorised representative independently of this e-mail. We
> >> do not accept responsibility for viruses; you must scan for
> >> these. E-mails sent to and from Dixons Carphone Group are
> >> routinely monitored for record keeping, quality control, training
> >> purposes, to ensure regulatory compliance and to prevent viruses
> >> and unauthorised use of our computer systems. The Carphone
> >> Warehouse Limited (registered in England & Wales No.02142673) is
> >> a member of the Dixons Carphone Group and is authorised and
> >> regulated by the Financial Conduct Authority.
> >> 
> >> 
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> &

Re: [E] RE: Tomcat 8.5.23

2018-02-15 Thread Bauer, Margaret M (Peggy)
I am not using 8.5, but in older tomcat you must set the below in the
server.xml




On Thu, Feb 15, 2018 at 1:25 PM, Lawrence Lim 
wrote:

> Red Hat Enterprise Linux Server release 6.9 (Santiago)
>
> Yes. I did check the logs. It does not log anything when I deploy. But, it
> logs something when I undeploy.
>
> Lawrence Lim
> Software Developer
> -
>
> ENBRIDGE
> TEL: 780-969-6208
> 10175 101 St NW,  Edmonton, Alberta T5J 0H3
>
> enbridge.com
> Integrity. Safety. Respect.
>
> -Original Message-
> From: Satish Chhatpar 02 [mailto:chhatp...@cpwplc.com]
> Sent: Thursday, February 15, 2018 10:58 AM
> To: users@tomcat.apache.org
> Subject: [External] Re: Tomcat 8.5.23
>
> Which operating system?
> Did you check the logs?
>
> Sent using OWA for iPhone
> 
> From: Lawrence Lim 
> Sent: Thursday, February 15, 2018 11:09:54 PM
> To: users@tomcat.apache.org
> Subject: Tomcat 8.5.23
>
> Hi,
>
>
>
> I just installed tomcat 8.5.23. I am having problems deploying web apps
> via manager. To reproduce:
>
>
>
> 1.   Login to tomcat manager
>
>
>
> 2.   Go to " WAR file to deploy"
>
>
>
> 3.   Pick a war file
>
>
>
>
>
> Error message: FAIL - File upload failed, no file
>
>
>
>
>
> Workaround: Copy war file to the tomcat webapps directory
>
>
>
>
>
> I also tried using localhost:8080, same result. So, it's not some weird
> networking constraint.
>
>
> Lawrence Lim
> Software Developer
> -
>
> ENBRIDGE
> TEL: 780-969-6208
> 10175 101 St NW,  Edmonton, Alberta T5J 0H3
>
> enbridge.com
> Integrity. Safety. Respect.
>
> ::DISCLAIMER::
> 
> 
> Confidentiality Notice from Dixons Carphone plc (registered in England &
> Wales No.07105905) of 1 Portal Way, London, W3 6RS ("Dixons Carphone"). The
> information contained in this e-mail and any attachments may be legally
> privileged, proprietary and/or confidential. If you received this e-mail in
> error, please notify the sender by return, permanently delete the e-mail
> and destroy all hard copies immediately. No warranty is made as to the
> completeness or accuracy of the information contained in this e-mail.
> Opinions, conclusions and statements of intent in this e-mail are those of
> the sender and will not bind any Dixons Carphone group company (Dixons
> Carphone Group) unless confirmed by an authorised representative
> independently of this e-mail. We do not accept responsibility for viruses;
> you must scan for these. E-mails sent to and from Dixons Carphone Group are
> routinely monitored for record keeping, quality control, training purposes,
> to ensure regulatory compliance and to prevent viruses and unauthorised use
> of our computer systems. The Carphone Warehouse Limited (registered in
> England & Wales No.02142673) is a member of the Dixons Carphone Group and
> is authorised and regulated by the Financial Conduct Authority.
> 
> 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
*Peggy Bauer*
CAO Production Support
214-770-1782


Re: [E] Re: Cannot get a connection, pool error Timeout waiting for ideal object

2018-02-15 Thread Bauer, Margaret M (Peggy)
Verify your max connection is set high enough for the amount of traffic you
see in your access logs that would be making a call to the DB.  Possible
code is not properly closing DB connections.  Remove abandoned connections.


add to your data source config





On Thu, Feb 15, 2018 at 6:03 AM, Mark Thomas  wrote:

> On 15/02/18 00:35, Halder, Arpan [ITSUS Non J&J] wrote:
> > Hi All,
> >
> > Need urgent help. We are using apache tomcat version -7.0.67  and
> sporadically facing issue that application become unresponsive and below
> error message encountered in Catalina.out log:
> >
> > ExceptionCannot get a connection, pool error Timeout waiting for idle
> object
> > Exception in detailorg.apache.tomcat.dbcp.dbcp.SQLNestedException:
> Cannot get a connection, pool error Timeout waiting for idle object
> > within doFilter of Session Filter
> > url :/SPECTRA/login
> > Chain.doFilter()..
> > Inside Login Method.
> >
> > We had to restart tomcat service every time and issue gets resolved for
> the time being and again reappears sporadically. Could you please advise if
> we need to change any tomcat setting to mitigate this issue from happening
> in future.
> >
> > Please let us know if you need anything else from my side in this
> regards. Thank you in advance.
>
> It sounds like you have a connection leak in your application. Enable
> abandoned connection logging to find out where the leaked connections
> are being created.
>
> Mark
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
*Peggy Bauer*
CAO Production Support
214-770-1782


Re: [E] error creating connection pool

2018-02-13 Thread Bauer, Margaret M (Peggy)
Make sure the backend DB has enough connections.  DB connections total
should be the sum of all your datasurces maxActive connections plus a
couple for good luck.
To me, it appears DB is not permitting enough connections or your maxActive
in your datasource config is set to high.




On Tue, Feb 13, 2018 at 9:20 AM, Bruce L. Riddle <
bruce.l.rid...@dartmouth.edu> wrote:

> We are running a CDC Application PHIN MS that uses Tomcat 8.5.11.
>
> As the application starts, we are getting a message that says
>
> 'error creating connection pool for dbid.'
>
>
> Our assumption is that the message is coming from TomCat.  Please,
>
> what does the message mean and how to we research a possible
>
> resolution?
>
>
> Thanks.
>
>
> A segment from the LOG:
>
>
> ocalhost-startStop-1|02/13|08:28:35|Processing folderMap:
> C:\PHINMS3.0/config/sender/foldermap.xml|
> localhost-startStop-1|02/13|08:28:35|Loading decryption keystore|
> localhost-startStop-1|02/13|08:28:35|=== Spawning queue 0 |
> Thread-6|02/13|08:28:35|Initializing requeue cachepath from
> C:\PHINMS3.0/\shared\requeueCache|
> Thread-6|02/13|08:28:35|Spawning multi database poller 1...|
> Thread-7|02/13|08:28:35|Connection established|
> Thread-7|02/13|08:28:35|Waiting for records ...|
> localhost-startStop-1|02/13|08:28:35|Error creating connection pool for
> dbid: NHSCR_DB|
> localhost-startStop-1|02/13|08:28:35||
>
> Bruce
>
>
>
> Bruce Riddle
> NHSCR / Dartmouth College
> Phone: 603-653-6620
> PO Box 186, Hanover NH 03755
>
> STATEMENT OF CONFIDENTIALITY: This email may contain
> privileged and confidential information and is intended for use only by the
> individual(s) to whom it is addressed.  You are hereby notified
> that any unauthorized distribution or copying of this
> transmission is prohibited. If you have received this message
> in error, please contact the sender immediately and
> delete this electronic message
> and any attachments from your system.
>
>


-- 
*Peggy Bauer*
CAO Production Support
214-770-1782