Embedded Tomcat question

2014-06-29 Thread John D. Ament
Hi, Playing around a bit with embedded tomcat. It looks like there are APIs to add all of the tomcat specific listeners, however how would I add a ServletRequestListener? John - To unsubscribe, e-mail:

Re: Embedded Tomcat question

2014-06-29 Thread John D. Ament
); if(!base.exists()) { base.mkdirs(); } Context ctx = tomcat.addContext(/,base.getAbsolutePath()); however, it doesn't look like Context here is a ServletContext. On Sun, Jun 29, 2014 at 6:30 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: John D. Ament

Re: Embedded Tomcat question

2014-06-29 Thread John D. Ament
) at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1307) at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:636) On Sun, Jun 29, 2014 at 8:21 PM, John D. Ament john.d.am...@gmail.com wrote: Hi, I'm on Tomcat

Re: Embedded Tomcat question

2014-07-01 Thread John D. Ament
, John D. Ament wrote: I spoke a little too quickly, ServletContext is avilable from ctx (just didn't search hard enough). Adding the request listener here though results in: java.lang.NullPointerException at org.apache.catalina.core.ApplicationContext.createListener

Re: Embedded Tomcat question

2014-07-09 Thread John D. Ament
... no questions asked. :-) On Tue, Jul 1, 2014 at 12:37 PM, Mark Thomas ma...@apache.org wrote: On 01/07/2014 17:16, John D. Ament wrote: I looked for the source code, at least on github, there's no tag for 7.0.55 defined (see [1]) Given you are using 7.0.54, why would you look for a tag for 7.0.55? How

Re: JAX-WS Web Services

2014-10-12 Thread John D. Ament
Tomcat's a servlet container, not an app server. If you want SOAP APIs, you need to use a SOAP runtime like CXF in your app. On Sun, Oct 12, 2014 at 10:16 AM, Meeraj Kunnumpurath mee...@servicesymphony.com wrote: Hi, I am porting an application from Weblogic 12 to Tomcat 8. The application

Re: JSR 236 with tomcat 8

2014-11-24 Thread John D. Ament
Concurrency utils is specific to app servers, where applications are generally unable to create or manage threads. This is an old EJB limitation. This limitation is not present in servlet containers. Why do you think you need them? On Mon, Nov 24, 2014 at 9:58 PM, shailendra singh

Re: login issue

2015-02-18 Thread John D. Ament
(with passwords obfuscated). -Terence Bandoian On Tuesday, February 17, 2015, James McEvoy tradingllc2...@gmail.com wrote: Ok if will check all On Tuesday, February 17, 2015, John D. Ament johndam...@apache.org javascript:_e(%7B%7D,'cvml','johndam...@apache.org'); wrote: Check your

Re: login issue

2015-02-18 Thread John D. Ament
On Wed Feb 18 2015 at 12:48:32 PM John D. Ament johndam...@apache.org wrote: Thanks for providing! The attribute name on the user is roles not role user username=tomcat1 password=tomcat1 roles=manager-script / user username=tomcat password=tomcat roles=manager-gui / You should only define

Re: login issue

2015-02-17 Thread John D. Ament
Check your logs for why. Don't forget to include the manager-gui role in the list of roles. John On Tue Feb 17 2015 at 8:15:45 AM James McEvoy tradingllc2...@gmail.com wrote: ok it wont take the shutdown command. On Tue, Feb 17, 2015 at 6:59 AM, James McEvoy tradingllc2...@gmail.com wrote:

Re: Login issues

2015-02-16 Thread John D. Ament
What are the contents of your tomcat-users.xml? On Mon Feb 16 2015 at 8:03:33 PM James McEvoy tradingllc2...@gmail.com wrote: hi I've read every document I can and still after following all the steps it will not authenticate me to the login manager. I am using tomcat7. Thanks James

Re: login issue

2015-02-17 Thread John D. Ament
And also make sure you bounce tomcat after updating the tomcat-users.xml file. It is not read dynamically, it is read on start up. John On Tue Feb 17 2015 at 7:23:34 AM Mark Thomas ma...@apache.org wrote: On 17/02/2015 12:17, James McEvoy wrote: Mark I did that one before and it didn't

Re: when idle tomcat runs on 3.9% CPU

2015-02-24 Thread John D. Ament
When you say idle, is there an application deployed to tomcat, or is it just the bare app server with nothing deployed? On Tue Feb 24 2015 at 7:35:31 AM Peter Irbizon peterirbi...@gmail.com wrote: Hello, I would like to know if it is normal that tomcat7 runs on 3.9% CPU when idle? I saw all

RE: diAdmin/launch/logon.do missing

2016-05-31 Thread John D. Ament
Is it vendor software or in house? On May 31, 2016 18:27, "Michael Hargis" wrote: > Andre, > Sorry, kinda shooting in the dark here. > > Apache Tomcat 5.5.20 > Java 1.6.0.60 > Windows 2003 R2 Standard Edition Service Pack 2 > > Data Integrator Management Console is what

Re: change persistence.xml at run time

2016-03-26 Thread John D. Ament
Well, Tomcat doesn't provide any support for JPA OOTB, so you'd probably need to check w/ your JPA implementation on what they support. John On Sat, Mar 26, 2016 at 8:02 AM Kaouthar Ghorbel wrote: > hello, > > I have two database that have the same design and the same

Re: Information about incident ID 2205106170494020972

2016-04-04 Thread John D. Ament
Is it at all possible that you have some network level security that's blocking your access to this port? On Mon, Apr 4, 2016 at 10:03 PM Yin, Ivan wrote: > Hi, > > I am sure this error message doesn't come from that webapp since there is > no "incident ID" in the webapp. > In

Re: dataSource.getConnectionManager() is null

2016-05-08 Thread John D. Ament
Rob, What database are you trying to connect to? What version of the JDBC driver? On Sun, May 8, 2016 at 9:07 PM Rob Clemens wrote: > Hello all, > > We've had an application that was stable for several years, no changes for > the last few aside from OS/java/tomcat

web-fragment.xml in embedded containers

2017-01-23 Thread John D. Ament
Hi, I was wondering if there was some configuration option that I could enable in an embedded Tomcat container to have it process web-fragment.xml files? John

How to properly map a filter in tomcat embedded

2016-08-27 Thread John D. Ament
Hi, I have this pretty straight forward case of starting an instance of tomcat and bringing in a filter. Tomcat tomcat = new Tomcat(); tomcat.setPort(8080); File base = new File("."); Context ctx = tomcat.addContext("", base.getAbsolutePath()); String

Re: How to properly map a filter in tomcat embedded

2016-08-28 Thread John D. Ament
On Sun, Aug 28, 2016 at 5:07 AM Mark Thomas <m...@homeinbox.net> wrote: > On 28 August 2016 02:33:00 BST, "John D. Ament" <johndam...@apache.org> > wrote: > >Hi, > > > >I have this pretty straight forward case of starting an instance of > &g

Tomcat listener not coming up - no stuck threads

2016-11-26 Thread John D. Ament
Hi, Looking for some external input. I've put together a simple tomcat embedded instance designed to deploy an arbitrary set of servlets, filters, etc. For some reason, when I run tests with Tomcat the server never fully launches. I can see the port in use, but connections to the server are

Populating init parameters

2016-12-13 Thread John D. Ament
Hi, I'm using Tomcat embedded to start a container. I need to set some initParameters in that embedded runtime. However, when I try to set the parameters I get the follow: java.lang.IllegalStateException: Initialization parameters cannot be set after the context has been initialized at

Re: Tomcat listener not coming up - no stuck threads

2016-12-13 Thread John D. Ament
On Thu, Dec 8, 2016 at 4:20 AM Mark Thomas <ma...@apache.org> wrote: > On 07/12/2016 15:21, Christopher Schultz wrote: > > John, > > > > On 12/7/16 7:19 AM, John D. Ament wrote: > >> On Wed, Dec 7, 2016 at 3:58 AM Mark Thomas <ma...@apache.org> > &g

Re: [OT] Tomcat listener not coming up - no stuck threads

2016-12-14 Thread John D. Ament
On Wed, Dec 14, 2016 at 11:23 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Mark, > > On 12/8/16 4:19 AM, Mark Thomas wrote: > > On 07/12/2016 15:21, Christopher Schultz wrote: > >> > >> Hmm... there is the "startStopThreads"

Re: [OT] Tomcat listener not coming up - no stuck threads

2016-12-15 Thread John D. Ament
n, > >> > >> On 12/14/16 10:01 PM, John D. Ament wrote: > >>> I was feeling ambitious so I gave this a shot. Here's what I > >>> changed: > >>> https://github.com/johnament/tomcat85/commit/a0281b2d4e0fea7cb0f7a9d > 3c > &l

Re: Tomcat listener not coming up - no stuck threads

2016-12-07 Thread John D. Ament
On Wed, Dec 7, 2016 at 3:58 AM Mark Thomas <ma...@apache.org> wrote: > On 06/12/2016 02:59, John D. Ament wrote: > > > > > So I was able to identify my issue. It's not specifically a tomcat > > problem, but tomcat's bootstrapping makes it unique. > >

Re: [OT] Tomcat listener not coming up - no stuck threads

2016-12-14 Thread John D. Ament
I was feeling ambitious so I gave this a shot. Here's what I changed: https://github.com/johnament/tomcat85/commit/a0281b2d4e0fea7cb0f7a9d3cd1e750b48498ff2 . I get some failed tests, but generallys eems good (I broke it earlier, and lots of things failed). [concat] Testsuites with failed

Re: Populating init parameters

2016-12-14 Thread John D. Ament
Mark, On Wed, Dec 14, 2016 at 3:10 AM Mark Thomas <ma...@apache.org> wrote: > On 14/12/2016 03:13, John D. Ament wrote: > > Hi, > > > > I'm using Tomcat embedded to start a container. I need to set some > > initParameters in that embedded runtime. However, whe

Re: Tomcat listener not coming up - no stuck threads

2016-12-03 Thread John D. Ament
On Wed, Nov 30, 2016 at 8:50 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John, > > On 11/26/16 7:29 PM, John D. Ament wrote: > > Hi, > > > > Looking for some external input. I've

Re: Tomcat listener not coming up - no stuck threads

2016-12-03 Thread John D. Ament
Sorry missed a response.. On Sat, Dec 3, 2016 at 12:36 PM John D. Ament <john.d.am...@gmail.com> wrote: > On Wed, Nov 30, 2016 at 8:50 PM Christopher Schultz < > ch...@christopherschultz.net> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John

Re: Tomcat listener not coming up - no stuck threads

2016-12-05 Thread John D. Ament
On Sat, Dec 3, 2016 at 2:28 PM Mark Thomas <ma...@apache.org> wrote: > On 03/12/2016 17:39, John D. Ament wrote: > > Sorry missed a response.. > > > > On Sat, Dec 3, 2016 at 12:36 PM John D. Ament <john.d.am...@gmail.com> > > wrote: > > > >&g

Re: [OT] Tomcat listener not coming up - no stuck threads

2016-12-29 Thread John D. Ament
Hash: SHA256 > > John, > > On 12/15/16 5:03 PM, John D. Ament wrote: > > On Thu, Dec 15, 2016 at 4:06 PM Christopher Schultz < > > ch...@christopherschultz.net> wrote: > > > > Mark, > > > > On 12/15/16 2:44 PM, Mark Thomas wrote: &

Re: Building a uber/fat jar

2017-09-30 Thread John D. Ament
I use Maven for the actual build. I use these dependencies (with 9.0.0.M26): org.apache.tomcat.embed tomcat-embed-core org.apache.tomcat.embed tomcat-embed-el org.apache.tomcat