Re: Which maven provided dependencies to target Tomcat ?

2018-05-09 Thread Luis Rodríguez Fernández
Hello Xavier, Perhaps you can have a look here: https://wiki.apache.org/tomcat/Specifications. Me, I have: javax javaee-web-api 7.0 provided Hope it helps, Luis 2018-05-09 16:35 GMT+02:00 Xavier Dupont : > Hi

Re: Querying Microsoft LDAP with Java

2018-05-23 Thread Luis Rodríguez Fernández
Hello Laurie, I do think that you are missing your cn in the query: /usr/bin/ldapsearch -x -h myhost.com -b "OU=Workgroups,DC=cern,DC=ch" "(member:X.X.XXX.X.X.X.:=cn=lurodrig,ou=users,ou=organic units,DC=myorganization,dc=com)" cn Hope it helps, Luis 2018-05-22 22:34 GMT+02:00 Laurie

Re: Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-24 Thread Luis Rodríguez Fernández
Hello Arnold, In this type of issues you should get something like this in the catalina.out: ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] - HTMLManager: FAIL - Deploy Upload Failed, Exception:

Re: log4j

2018-05-22 Thread Luis Rodríguez Fernández
Hello Chris, You can have a look here: https://logging.apache.org/log4j/2.x/log4j-appserver/index.html Hope it helps, Luis 2018-05-18 19:55 GMT+02:00 George Stanchev : > Depends on what you're asking. If you're asking to use log4j to capture > Tomcat logging, then the

Re: Configuration of Tomcat Container to use SAML authentication

2018-06-11 Thread Luis Rodríguez Fernández
Hello Sandeep, Both keycloack saml adapter [1] or the servlet filter[2] work for me out-of-the-box. I am using tomcat 9.0.5 Cheers, Luis [1] https://www.keycloak.org/docs/latest/securing_apps/index.html#_saml-tomcat-adapter [2]

Re: Question on Tomcat clustering

2018-05-03 Thread Luis Rodríguez Fernández
Hello Martin, If you use the default tomcat logging [1] probably setting org.apache.catalina.ha.level = FINE or FINEST in your $CATALINA_BASE/conf/logging.properties will give you the information you need. Hope it helps, Luis [1] https://tomcat.apache.org/tomcat-7.0-doc/logging.html

Re: Tomcat error at run-time.

2018-08-03 Thread Luis Rodríguez Fernández
Hello Noel, mmm, perhaps you could consider to use spring-boot for this. It provides a nice out-of-the-box embedded tomcat: https://spring.io/blog/2014/03/07/deploying-spring-boot-applications Hope it helps, Luis 2018-08-03 7:06 GMT+02:00 noel joseph : > Hey Chris, > > This is my code... > >

Re: cors filter in WEB-INF/web.xml

2018-07-31 Thread Luis Rodríguez Fernández
Hello Masber, In order to get accurate answers it would be helpful if you could provide details like: - Platform details: OS, jdk/jre, apache-tomcat version... - "I went through documentation" which one? perhaps https://tomcat.apache.org/tomcat-9.0-doc/config/filter.html#CORS_Filter - "my web

Re: Tomcat 8.x-9.x + Struts 1.3.x - Applications will get into a state where they won't serve random bunch of static resources, 500 errors

2018-08-06 Thread Luis Rodríguez Fernández
Hello Chris, Definitely you have to increase the logging level. If your tomcat instance is using JULI and you suspect from struts perhaps you could try to increase the debugging level of struts in your $CATALINA_BASE/conf/logging.properties: org.apache.struts.level=FINE or FINEST Hope it helps,

Re: Can't start Tomcat in debug mode

2018-07-16 Thread Luis Rodríguez Fernández
Hello Alain, /Library/Tomcat/bin/catalina.sh jpda start should be good enough. If you have a look at the tomcat command line process are the JPDA options enabled? E.g.: $ $CATALINA_HOME/bin/catalina.sh jpda start $ ps -ef | grep --color dt_socket lurodrig 13522 2883 6 13:58 pts/500:00:04

Re: Tutorial - How to Set Up Lucee in Tomcat

2018-09-05 Thread Luis Rodríguez Fernández
Cool, thanks! +1 for the makebase utility! Cheers, Luis El mié., 5 sept. 2018 a las 12:26, Ivan Serdyuk (< local.tourist.k...@gmail.com>) escribió: > > https://www.facebook.com/pg/Kyiv-Scala-Group-223492434893596/posts/?ref=page_internal > - > posted here. > > On Wed, Sep 5, 2018 at 1:16 PM

Re: Requirements for servlet session attributes?

2018-07-05 Thread Luis Rodríguez Fernández
Hello Alex, It looks like you are missing the getSession() method there: HttpServletRequest#getSession()#setAttribute("mykey", clientObjectHere); please have a look at [1] Hope it helps, Luis [1]

javax.servlet.Filter failed to start error. How to debug it?

2018-04-03 Thread Luis Rodríguez Fernández
Hello there, I've realized that if I make a typo in my declaration I get something in the catalina.out like: Apr 03, 2018 2:27:01 PM org.apache.catalina.core.StandardContext startInternal SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log

Re: Is LDAP connection failing?

2018-04-05 Thread Luis Rodríguez Fernández
Hello Suvendu, May I ask you to share your JNDIRealm configuration? For me something like this works: Hope it helps, Luis 2018-04-05 15:32 GMT+02:00 Suvendu Sekhar Mondal : > Hello Everyone, > > Recently in one of our environments I am seeing following log in >

Re: Is LDAP connection failing?

2018-04-13 Thread Luis Rodríguez Fernández
cher < felix.schumac...@internetallee.de>: > Hi Luis, > > > Am 05.04.2018 18:50, schrieb Luis Rodríguez Fernández: > >> Hello Suvendu, >> >> May I ask you to share your JNDIRealm configuration? >> >> For me something like this

Re: Tomcat question

2018-04-23 Thread Luis Rodríguez Fernández
Hello Zahi, As it is said in http://tomcat.apache.org/lists.html "Please format your messages as plain text, not HTML. Do not send attachments, as they are likely to be removed and ignored by the mailing list server." Just copy and paste the content of your xml files should be enough :) Cheers,

Re: Training material is now on-line

2018-04-23 Thread Luis Rodríguez Fernández
Hello Mark, Thank you for sharing the materials! https://apache.github.io/tomcat-training/courses/tomcat-for-administrators.html#/132 Do you have such .jsp anywhere? Would it make sense to add it as part of the /examples/jsp/ of tomcat distribution? Thanks in advance, Luis 2018-04-23 15:15

Re: Training material is now on-line

2018-04-24 Thread Luis Rodríguez Fernández
Empty while, simple and beautiful! Agree on that. I did not think about the examples exposure... Thanks! 2018-04-24 15:29 GMT+02:00 Mark Thomas <ma...@apache.org>: > On 23/04/18 14:42, Luis Rodríguez Fernández wrote: > > Hello Mark, > > > > Thank you for sharing t

Re: javax.servlet.Filter failed to start error. How to debug it?

2018-04-03 Thread Luis Rodríguez Fernández
: cern.ch.sso.sp.filters.decorators.SsoAisFilter And yes, in the past I used to turn it off, leaving only the catalina.out and catalina. $(date).log Cheers, Luis 2018-04-03 14:56 GMT+02:00 Coty Sutherland <csuth...@apache.org>: > On Tue, Apr 3, 2018 at 8:47 AM, Luis Rodríguez Fernández > <uo67...@gmail.com>

Re: Tomcat stop and start using bash script

2018-06-28 Thread Luis Rodríguez Fernández
Hello Danesh Perhaps you could look for any of your tomcat connector ports, ask for the process that is listening and kill it: $ ppid=`lsof -i:8080 -Fp | grep p` $ pid=`echo ${ppid#p*}` $ kill $pid Probably you can find something more elegant but the idea could be this one... Hope it helps,

Re: To Support at Tomcat, Got an issue Finding Maths.

2018-10-15 Thread Luis Rodríguez Fernández
Hello Ian, Perhaps you are trying something like this? <%@ page import="java.lang.Math" %> You have very nice and simple jsp examples inside the examples application of any tomcat distribution. E.g. ${CATALINA_BASE}webapps/examples/jsp/tagplugin/foreach.jsp Hope it helps, Luis El vie., 12

Re: web.xml mime-mappings

2018-11-01 Thread Luis Rodríguez Fernández
Hello Baron, There are no dumb questions, no worries :) Are you referring to the $CATALINA_BASE/conf/web.xml by chance? This is the default web.xml [1] that defines default values for all the webapps deployed in your tomcat server. Me personally I rarely modify it. Me, as a sample web.xml I

Re: Tomcat 8 and Oracle Wallets

2018-11-16 Thread Luis Rodríguez Fernández
Hello Christophe, Very interesting, thanks! Would it be possible in your scenario to export the certificates from the wallet and import them to a different keystore (PCKS12 or JKS)? You can have a look at [1] Hope it helps, Luis [1]

Re: SSL on Tomcat

2018-10-01 Thread Luis Rodríguez Fernández
Hello Loai, Agree with Christopher, you have to fix your client. Just get the root Certificate Authority public key and import it in your client truststore. If you did not change it the client (java) the default keystore is located in $JAVA_HOME/jre/lib/security/cacerts. Something like:

Re: SSL on Tomcat

2018-10-02 Thread Luis Rodríguez Fernández
Hello Christopher, It makes sense, thank you very much for your advice! Cheers, Luis El lun., 1 oct. 2018 a las 20:39, Christopher Schultz (< ch...@christopherschultz.net>) escribió: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Luis, > > On 10/1/18

Re: Connection refused: connect

2018-09-26 Thread Luis Rodríguez Fernández
Hello Karen, May I ask you what exactly you try to do: - Deploy locally - Deploy remotely - Debug locally - Debug remotely - Other... Eclipse version? Other plugins or tools (e.g. maven)? Thanks, Luis El sáb., 22 sept. 2018 a las 0:52, Igal Sapir () escribió: > On 9/21/2018 12:45 PM, André

Re: Spring+Tomcat

2018-12-13 Thread Luis Rodríguez Fernández
Hello Adlet, Regarding the deployment of spring in tomcat: I would recommend you to keep the application libraries (spring and others) in your WEB-INF/lib. You can have a look at this fantastic tutorial [1]. About websockets: keep in mind that tomcat has out-of-the-box websocket support.

Re: Tomcat behind Apache web server ProxyPass settings for WebSocket

2018-12-06 Thread Luis Rodríguez Fernández
Hello Richard, Yes, Christopher is right, with such configuration all the requests will be upgraded to ws. Digging down in my old apache conf I found something like this: ProxyPass /WinCCOAWebUI/ui ws://db-00032:13122/WinCCOAWebUI/ui ProxyPassReverse

Re: Resource Request - MySQL Data Pool

2019-03-26 Thread Luis Rodríguez Fernández
Hello Richard, In my experience the best is to "start simple". I would have a look at the apache tomcat doc [1], configure your pool with a minimal setup and test. Everything depends on your application workload, how your queries looks like, etc, so I am afraid that there are no "silver bullets"

Re: Access to server denied

2019-03-25 Thread Luis Rodríguez Fernández
Hello Peter, I am bit confused: you get the forbidden error after a successful login in the third party product? Is that third party product installed in a different machine? Which product? Is any kind of SSO solution (keycloak, Microsoft ASDF, OpenAM...)? May I ask you to describe a bit your

Re: 4 Apache Events in 2019: DC Roadshow soon [etc]

2019-03-13 Thread Luis Rodríguez Fernández
Thanks for sharing Chris. BTW: I've checked the one in Berlin [1]. Do you have an idea when the call for abstracts will be open? Thanks in advance, Luis [1] https://apachecon.com/aceu19/index.html El mié., 13 mar. 2019 a las 2:31, Christopher Schultz (< ch...@christopherschultz.net>)

Re: Datasource Connection Pool

2019-03-18 Thread Luis Rodríguez Fernández
Hello Rajendra, For instance if you are using MYSQL a validationQuery="l" in your datasource configuration [1] plus the magic autoreconnect parameter in the URL can do the trick for you. However this can have side effects (see the mysql autoreconnect description). In my experience the cheapest

Re: Tomcat connection error

2019-02-18 Thread Luis Rodríguez Fernández
Hello Faisal, It looks like your problem is more related with your hikari connection pool than with tomcat itself. I would recommend you to double check your hikari configuration properties. Pay specially attention on how you are configuring your connection pool (minimum and maximum size,

Re: Create a JNDI Datasource through JMX

2019-02-04 Thread Luis Rodríguez Fernández
Hello Arnaud, mmm, nothing stops you from create your custom mbean interface that wraps your datasource. >From Tomcat 8.5 doc "The connection pool object exposes an MBean that can be registered" [1] Perhaps you could start having a look here. Nevertheless may I ask you what is your use case for

Re: Session Persistence Problems

2019-04-11 Thread Luis Rodríguez Fernández
Hello Jerry, > I'm using single sign-on Do you mean tomcat Single Sign On valve? [1], a third party solution or your custom implementation? That can change the game completely :) > some RewriteRules in httpd Can you share them? That could change the game also :) Cheers, Luis [1]

Re: Session Persistence Problems

2019-04-12 Thread Luis Rodríguez Fernández
Hello Jerry, Sure, you can always set the path of your cookies to "/" via the cookie-config element [1] in your web.xml descriptor: / Or via your context.xml [2] Hope it helps, Luis [1]

Re: Tomcat(9.0.13) Error in DEV Server

2019-04-15 Thread Luis Rodríguez Fernández
Hello Gary, I would recommend you to add some debug to your JNDIReam [1]. For debugging your ldap search filters ldapsearch can be your friend [2] :) Hope it helps, Luis [1] https://stackoverflow.com/questions/12311496/how-to-debug-realm-feature-in-tomcat [2]

Re: Upgrade from Tomcat 7 to Tomcat 9.0.17

2019-04-17 Thread Luis Rodríguez Fernández
Hello Akram, If you can not put the jars inside each webapp perhaps you could define a shared.loader in your catalina.properties [1]. It works for us. Hope it helps, Luis [1] https://tomcat.apache.org/tomcat-9.0-doc/class-loader-howto.html#Advanced_configuration El mar., 16 abr. 2019 a

Re: [EXTERNAL] Re: Tomcat(9.0.13) Error in DEV Server

2019-04-16 Thread Luis Rodríguez Fernández
nd: > TOPS_INTL_FIELD_USER_MIA > > 15-Apr-2019 17:08:17.769 FINE [https-jsse-nio-9443-exec-8] > org.apache.catalina.authenticator.AuthenticatorBase.invoke Failed > accessControl() test > > > > > > > > The error messages on the screen looks like below: > > >

Re: HTTP/2 configuration

2019-12-12 Thread Luis Rodríguez Fernández
Hi Mark, I 've been using tomcat for many years and the cases were I had to modify the http connector defaults were very rare. I would go for the simplest solution. Hope it helps and thank you so mch to you and the rest of the committers! Luis El jue., 12 dic. 2019 a las 6:25,

Re: JMX 101 Question

2019-12-05 Thread Luis Rodríguez Fernández
Hello Jerry, To be tested, but perhaps connectionProperties can help you on this? [1] Hope it helps, Luis [1] https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html El jue., 5 dic. 2019 a las 19:42, Jerry Malcolm () escribió: > I'm trying to add some code to monitor my jdbc data connection

Re: Adding the manager app to an existing installation

2019-10-20 Thread Luis Rodríguez Fernández
Hello Tom, Hard to say what´s happening without some realm logging. You can have a look here [1]. Hope it helps, Luis [1] https://stackoverflow.com/questions/12311496/how-to-debug-realm-feature-in-tomcat El vie., 18 oct. 2019 a las 18:54, Tom Povey () escribió: > Thanks Olaf, > > Typo in

Re: Session Size Calculation Question

2019-10-20 Thread Luis Rodríguez Fernández
Hello M.Manna, Yes, probably SESSIONS.ser can give you an idea. Maybe if you want to get more accurate results perhaps you can 1. Do it yourself via JMX [1] 2. Give a try to psi-probe [2], it seems that it has everything that you need Hope it helps, Luis [1]

Re: Tomcat 9.0 - JDBC URL Help

2020-01-28 Thread Luis Rodríguez Fernández
Hello Crista, I do think that you can have more chances of get an answer for this in the Oracle Community [1] Anyway this is how our tns entries [2] looks like for our Oracle Databases: TNS_ENTRY_1_PROD=( DESCRIPTION=

Re: Question on HttpSession investigation

2020-02-10 Thread Luis Rodríguez Fernández
Hello M. Manna, I do think HttpSession.getAttributeNames(), HttpSession.getAttribute(name) should be good enough for debugging your issue. You can have a look at the good and classic examples servlet [1] included in every tomcat distribution. If you want to be sure what server is serving your

Re: Projects dependencies, warnings Runtime ClassNotFoundExceptions may result, quick fixes

2020-01-22 Thread Luis Rodríguez Fernández
Hello Léa, mmm, this does not look like a tomcat issue. Perhaps you can find more help to your issue in the eclipse mailing lists: https://accounts.eclipse.org/mailing-list Hope it helps, Luis El mié., 22 ene. 2020 a las 13:10, Lmhelp1 () escribió: > Hello, > > I am using Tomcat v9.0

Re: Error occurred while upgrading BPM application to Tomcat 8.5.53

2020-04-09 Thread Luis Rodríguez Fernández
Hello Kushagra, Regarding the supported platform matrix [1] it looks like the tomcat version should be Tomcat 8.5.28 Hope it helps, Luis [1] https://docs.alfresco.com/process-services1.10/concepts/supported-platforms.html El jue., 9 abr. 2020 a las 9:53, Kushagra Bindal () escribió: >

Re: OpenId with apache and tomcat

2020-03-13 Thread Luis Rodríguez Fernández
Hello Stephane, > moving authentication at tomcat level with an openid Realm If I understand you correctly you want to make the authentication process in tomcat instead of delegating in your apache proxy, don't you ? I would have a look then at the tomcat keycloak adapter [1]. Me I am using the

Re: Getting 404 error while accessing URL after deployment

2020-05-05 Thread Luis Rodríguez Fernández
Hello Megha, I am afraid that with that information you can not be sure if your webapp has been deployed or not. Maybe you can have a look at the manager app of your tomcat [1] instance (http://localhost:8080/manager), or query for the state of the applications using the jmxproxyservlet (

Re: how do I switch class loaders

2020-05-08 Thread Luis Rodríguez Fernández
Hello Jonathan, It is not exactly the same :), look at the "$2" appended at the end.This is an "anonymous inner class" [1] Cheers, Luis [1] https://stackoverflow.com/questions/11388840/java-compiled-classes-contain-dollar-signs El vie., 8 may. 2020 a las 11:52, Jonathan Yom-Tov (<

Re: Fwd: Advice please for Tomcat 8.5.53-dev with log4j2

2020-03-18 Thread Luis Rodríguez Fernández
Grande Brian, congrats! Sorry, I've just read your message, a bit late to the party: time ago I had cooked a tomcat9 container + log4j2 with a sample spring-boot app deployed. You can have a look here [1] Cheers, Luis [1]

Re: invoke jmxproxy servlet using argument with a , is not a possible

2020-03-24 Thread Luis Rodríguez Fernández
Hello Arnaud, If jmxproxy does not work for you perhaps you can give a try to jolokia [1]. It accepts JSON POST requests [2] that can implement your scenario. The installation is quite straight-forward, simply deploy it as a .war or attach it as an agent to your JVM. Hope it helps, Luis [1]

Re: log4j failed on tomcat9

2020-05-08 Thread Luis Rodríguez Fernández
Hello AjChen, Here [1] you can find an example of how I configured log4j2 in tomcat 9. You can skip all the bla, bla, bla and go directly to the gitthub repo [2] and run the example to have a look at the configuration. Note: I've been running like this for a while in production, but I do think

Re: Changing the Java using by Tomcat

2020-05-08 Thread Luis Rodríguez Fernández
Hello Krishna, Me I would point my JRE_HOME or JAVA_HOME to the new installation. You can have a look at the section 3.2 of the RUNNING.txt [1] Hope it helps, Luis [1] https://tomcat.apache.org/tomcat-9.0-doc/RUNNING.txt El mié., 6 may. 2020 a las 11:01, André Warnier (tomcat/perl) (<

Re: Junk characters in SOAP request after upgrade to tomcat 9.0.31

2020-06-10 Thread Luis Rodríguez Fernández
Hello Naveen, Recently we have had a similar issue migrating a webapp from another application server to tomcat. We solved it specifying UTF-8 in the web.xml descriptor. You can read here [1] the long story :) Hope it helps, Luis [1]

Re: Ensuring clean Tomcat shutdown

2020-06-08 Thread Luis Rodríguez Fernández
Hello Amit, Well, your approach will work. Personally, I do not like very much to parse logs. We, for instance, in our tomcat instances we provide an application that queries the status of the deployed apps, see below. If you have control in the code of "AAA" application I would suggest you to

Re: Regarding context.xml changes impact other web service not deployed

2020-06-09 Thread Luis Rodríguez Fernández
Hello Abirami, Well, strict does what it promises, so if those third-party rest services were expecting some cookies that now are not being sent by the browser, it is normal that they do not work as expected. Internal implementation: sure! You can always have a look at the code of the different