Re: New TC 7 tomcat-users.xml can't login (401)

2011-07-12 Thread chris derham
On Tue, Jul 12, 2011 at 6:57 PM, David Brown wrote: > Hi, I have a new TC 7 running. I have RTFM on the new changes for the > User realm using the new roles: manager-gui and admin-gui but all I get > is 401. server.xml seems to default to usage of the tomcat-users.xml. > Any ideas of how to diagn

Re: Init HTTP session during realm authentication stage

2011-07-18 Thread chris derham
> > But I would like to initialize HTTP session in this stage with user data. > My custom authenticate() method queries user data to check if exists > or not , and I wouldn't like to have to call another service to > perform the same query. > Couldn't you just implement HttpSessionListener? Chri

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread chris derham
I have experienced similar issues to the OP in the past, and just tried again now and still hit them. I can't bear to watch this thread amble along any longer, so I will try to rephrase the question for the OP as he seems unwilling or unable to do so Windows 7 Tomcat 7.0.19 java -version java vers

Re: Web app running on http, not on https

2011-07-22 Thread chris derham
> If I type "http://localhost";, I get the expected "It works!" Apache page. > Cool. > Apache works on port 80 > > If I type "https://localhost";, I get the expected "It works!" Apache page. > Cool. > Apache works on port 443 > > If I type "http://localhost/myWebApp";, I get the expected resu

Question on mod_jk and tomcat

2011-07-28 Thread chris derham
All, We have apache running on Windows Web Server 2008 R2, fronting tomcat. We use mod_jk to connect. We see these kind of log messages in mod_jk logs. What do they mean? [Thu Jul 28 12:30:56 2011] [14264:10144] [info] jk_ajp_common.c (1882): Writing to client aborted or client network problems [

Re: Getting an absolute path into a servlet's context-param value w/o hardcoding in web.xml

2011-07-29 Thread chris derham
> > As part of the "configuration" of the servlet to be deployed into an > environment, it wants a directory path passed as a servlet context > parameter: > > (WEB-INF/web.xml) > > >3rd-party-app.home >/path/to/directory > > > > In our environments, "/path/to/directory" will b

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread chris derham
>>> I want to use parallel deployment as an easy way to allow existing > >>> sessions to continue while redirecting new sessions to a "down for > >>> temp maintenance page." > We use apache http in-front of tomcat. This allows us to do exactly this. We route calls from apache through to tomcat no

How do I log to a filename based on the full context name?

2011-08-12 Thread chris derham
Reading http://www.javacodegeeks.com/2011/06/zero-downtime-deployment-and-rollback.html?m=1, it states If you do not use the full context name of the application in the log file name, you may end up in a situation where both versions of a web application are writing into the same log file So how

Re: Servlet 3.0 File Upload

2011-09-03 Thread chris derham
> > You need to add a line in in your form: > > > > > > Then in your servlet GetPost() method you put this filename in a > > variable: > > String filename; > > filename = req.getParameter("filename"); > > > > Then instead of part.write("samplefile"); > > do: > > part.write(filename); > Letting th

Re: AW: ISAPI Redicect - Request Entitiy too large

2011-10-05 Thread chris derham
Alexander, If you are using authorisation header, then you are using SPNGEO. This header encodes the users group membership in the authorisation header. By default tomcat has an 8k maximum header, whilst users belonging to many groups can have an authorisation token that can swell to larger than t

Re: Tomcat connector for IIS, are user groups passed along?

2011-10-12 Thread chris derham
> > - it would probably require serious coding changes to do it (notably > because in the AJP protocol, there is no attribute or packet type foreseen > to pass such information per se) > - and there are some conceptual issues linked to this, essentially because > the very notion of AD/NTLM "user g

Re: Application not logging out properly

2011-10-12 Thread chris derham
>> Then they're going to be available in the browser cache until the >> browser chooses to discard them. You can't have it both ways. > >The OP could set expires headers that are relatively short-lived. That >way, the client /should/ request a fresh page after, say, 30 minutes >or whatever the ses

Re: Tomcat connector for IIS, are user groups passed along?

2011-10-13 Thread chris derham
>Kerberos is cross platform standard, allowing for groups to be embedded in >the token. Nothing windows specific about that. I've definitely had windows >primary domain controller and clients running on Windows talking to a tomcat > running on Linux, and allowing access to the group info in the ker

Re: Rollback in Tomcat7 under parallel deployment

2011-10-29 Thread chris derham
> > > Also, what happens if ROOT##001 and ##002 have the same log4j configs > > and are writing to the same log file?? How have people handled this > > situation? > > You'll certainly end up with both apps writing to the same file. Whether > or not that is a problem will depend on exactly how you h

Re: how to connect to datasource

2011-11-09 Thread chris derham
>> may I know, how to connect to datasource automatically if my DB machine > >> is > >> restarted?? Is it having any specific parameter to connect datasource > >> automatically?? > How does the existing app connect to the database? Can you show the code please - remove any sensitive passwor

Re: making security constraints configureable

2011-11-09 Thread chris derham
This thread is quite long, but to sum up what I have understood 1) you have an application running on staging and production 2) you want to enable access to staging for public demos from anywhere on the internet - for this you want to add access controls 3) everyone else will access the applicatio

Re: SSL for modjk and tomcat

2011-11-10 Thread chris derham
> > Simple i have setup httpd,modjk,tomcat .i want to enable SSL(i.e i can > handle everything on https). > If you have httpd sending traffic via mod_jk to tomcat, you are nearly there. Just configure httpd to listen over ssl. > > > If (instead) you want to encrypt the AJP connection between HTTP

Re: Session time out never takes place with ajax

2011-11-10 Thread chris derham
> > So to recap, and verify my understanding... > Perhaps I am missing some valve overview. > > I understand it is invoked before the filters, but after completion it > would arrive to the filter/servlet container anyway. > So what your saying is that if I build a valve and read information from >

Re: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread chris derham
On Tue, Nov 15, 2011 at 11:39 AM, Alexander Diedler wrote: > Hello, > This is no option, this solution means, that the windows session must still > remain opened with a logged in user. > > Not true. You can setup tomcat to run under a service account, and have the service account map that drive.

Re: Grabbing the user's info

2011-11-16 Thread chris derham
> > But for _transparent_ authentication IIS is required as Christopher > mentioned. > > That is not true. You can use SPNEGO to setup transparent authentication directly to tomcat. You do not need IIS. This means that a browser accesses a protected url on the server, and the server and browser "di

Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread chris derham
All, Java running on windows 2008 r2 against tomcat 7.0.19 java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode) I have a single war file, and would like to host multiple demo sites of our app. So ideally users

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread chris derham
> > unpackWARs="false" autoDeploy="false"> > > The appBase I find a little concerning... You don't have any apps > directly place in webapps do you? > > So I wasn't 100% sure exactly what to do here. I setup a folder under webapps called demos. We put our app there, named ROOT.war. Then in

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-23 Thread chris derham
> > We thought this would allow us to monitor all contexts with a > > single probe install, but it only seems to show a single localhost > > context. I assume that the hosts are separated, and that the > > context="priviliged" setting can allow a web app to access other > > webapps in the same cont

Re: Babysitting ThreadLocals

2011-11-23 Thread chris derham
> > A silly question: > > why do you use a ThreadLocal to store a constant value for entire > application? why not a static variable or store into web application > context , by example ? > > The string of the date format is constant. However the SimpleDateFormat class is not threadsafe, so you wil

Re: Strategy to prohibit concurrent users authenticated through Tomcat

2012-01-13 Thread chris derham
> > I am using Tomcat 7.0.11 and use Form Authentication (via >> j_security_check) to authenticate through the Tomcat server. >> Currently, two users with the same username can log into my application >> from two different computers and concurrently access the app. >> Is there a way to prohibit a u

Re: Tomcat memory requirements

2012-01-25 Thread chris derham
> > Hi Celso, you signature is in portuguese because that i will talk in > portuguese... > > Tenho 12 anos de experiência com Linux e dois livros publicados, nunca > vi um tomcat rodar sem consumir umas cacetadas de megas de memória, > acho que o java, é uma plataforma ruim, mas que todo mundo defe

Re: JNDI Access in Lifecycle Listener

2012-02-14 Thread chris derham
> > i load a spring xml with my own lifecycle listener. Which works pretty > well actually. > In my spring xml i try to get a datasource from the JNDI context. I > put the definition in the server.xml under . > My lifecycle listener is loaded after the GlobalResourcesLifecycleListener > > During th

Re: Tomcat with mod_jk becomes irresponsive after working for awhile

2012-02-24 Thread chris derham
> > http://wiki.apache.org/tomcat/**HowTo#How_do_I_obtain_a_** >>> thread_dump_of_my_running_**webapp_.3F >>> for more info, to get a thread dump of tomcat. >>> >> I have seen that page but actually can't u

Re: Tomcat with mod_jk becomes irresponsive after working for awhile

2012-02-26 Thread chris derham
Ofer, Look at the articles in the link already given - http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F- find the bit about sendsignal. Download this program, and run it. This provides the windows equivalent of sending -3 to a *nix java process, e.g. encou

64bit windows mod_jk connector download for apache httpd 2.4

2012-04-18 Thread chris derham
All, Our setup has apache tomcat running behind apache httpd using mod_jk. I would like to upgrade to apache 2.4, but for this I need to find a 64bit mod_jk release for httpd 2.4. The binaries contained at http://tomcat.apache.org/download-connectors.cgi 32 bit httpd connectors, or a 64bit iis one

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-19 Thread chris derham
On Wed, Apr 18, 2012 at 5:07 PM, Mladen Turk wrote: > On 04/18/2012 02:00 PM, chris derham wrote: > >> All, >> >> Our setup has apache tomcat running behind apache httpd using mod_jk. I >> would like to upgrade to apache 2.4, but for this I need to find a 64bit &

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-23 Thread chris derham
> > > Exactly. Might be better to come from "userland" > > +1 > I have emailed the apache lounge contact email asking if they would consider including a build of mod_jk - lets see what happens Thanks Chris

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-24 Thread chris derham
> > > Exactly. Might be better to come from "userland" >> >> +1 >> > > I have emailed the apache lounge contact email asking if they would > consider including a build of mod_jk - lets see what happens > > Thanks > > Chris > And we have a winner - 64 bit mod_jk now present on http://www.apachelou

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-25 Thread chris derham
> Wow, that was fast. >> >> Far better than commercial support IMO > I am grateful too for the above, but since you appear to have a good > connection, and for the sake of symmetry, should not one ask them also for > the 32-bit version ? > I sent one email, and he went for it. I don't really ca

Re: IE caching problem-

2012-05-13 Thread chris derham
> > never had this problem when i deployed to SolarisI'll try again > tommorrow when i have a REAL Operating System to deploy my webapp > So you have a web app, serving up web pages, that are being cached in a browser. The browser is not refreshing, for reasons unknown. You say that the clock

Fwd: mod_jk binary

2012-05-16 Thread chris derham
Steffen from apache lounge asked me to forward this to tomcat mailing list Chris -- Forwarded message -- From: Steffen Date: Wed, May 16, 2012 at 12:10 PM Subject: Re: mod_jk binary Chris, Made 1.2.36 Apache 2.4 Win32/Win64 available. Maybe you can say it on the Tomcat user l

Re: user switching or application interacting with container based authentication

2012-05-23 Thread chris derham
> > > any hint on fast-user-switching or > applications-interacting-with-container-based-authentication are very > welcome. > Dirk, We had an app where support staff can login, and then on a special form enter the username of the person to impersonate and their own password (to prevent abuse), an

Re: Request timeout option in HTTP or AJP Connector

2012-06-22 Thread chris derham
> > > Using tomcat 6.0.29. > > i want to know is there any parameter in HTTP\AJP connector to set > request time out(i.e if particular request taking long time to complete it > should time out after configured timeout value).? > > My web application communicating to some external system where res

Re: Wish to use an independent class module in Tomcat

2012-06-26 Thread chris derham
On Tue, Jun 26, 2012 at 12:46 PM, Cotton, Joseph B < bcot...@dpscs.state.md.us> wrote: > I looked at the Realm documentation for a few minutes, but it appears to > be intended for User ID and Password verification. > > Joseph, Ignore Martin's JDBCRealm suggestion - his responses don't seem to rel

Re: How to initiate session id change from application code?

2012-06-28 Thread chris derham
> > > Good Evening Pavel Implementing a SSL Connector on Tomcat will prevent > Session Fixation attack > Martin, This is not correct. Using SSL will not stop session fixation attacks Chris

Re: Tomcat 7.0.28 connection pool issue

2012-06-28 Thread chris derham
On Thu, Jun 28, 2012 at 12:38 PM, Yasser wrote: > Yes. It does show that maxactive has reached 100. I also use splunk to get > the connection status at the oracle side. > What I dont understand is that Resin needs just 50 connections to handle > the same load. I am in the process of increasing th

Re: Location of Tomcat 7 jvm defualt settings...

2012-07-21 Thread chris derham
On Fri, Jul 20, 2012 at 6:31 PM, Tony Anecito wrote: > Thanks for the quick reply Mark. > Yes I saw your comments in one of your presentations about profilier and I > am a fan of visualvm and have profiled Tomcat in the past but when down to > 1-2msec not sure how much the profilier can pick up.

Re: TOMCAT with multiple sites (one on https, others on http)

2012-08-07 Thread chris derham
> > I have configured the server.xml to run a few sites with HTTP and HTTPS, > HTTP sites work correctly, that HTTPS is not responding, can not display > the page > > Massimo Chirivì > > Massimo, Pid's reply was asking you to answer some specific questions. You appear to have only answered the fir

Re: ClassCastException org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl

2012-08-09 Thread chris derham
| I am 95% certain of what is happenning but haven't tested this. It will help your understanding if you read the EL specification, specifically the section in the Javadoc regarding how implementations are discovered. | Tomcat implements these rules. It is possible for an EL implementation to be lo

Re: tomcat and DB oracle problem - only in higher versions

2012-08-16 Thread chris derham
> > I found following problem when java application is trying save xml data > into xml column to database. > > I found a problem with tomcat which is happening in the version 6.0.32 and > 6.0.35 (maybe also in other version), but working really fine with version > 6.0.26. > > ** ** > > My

Re: Root context switching

2012-09-04 Thread chris derham
I am new to Tomcat. What I like to do is to deploy different versions of my > application, for example: > hostname\myappv1 > hostname\myappv2 > > Now I want the ROOT context to be set dynamicly to one of the available > deployed versions. Is this possible? Is there a way to implement this? > > Den

Re: Root context switching

2012-09-04 Thread chris derham
> > Basic what I want is the same functionality which google apps provides. So > I want to be able to have multiple versions of my application online, let > people try the new environment and eventually switch the root context to > the new running version. This enables my clients to try out the new

Re: exploting tomcat vulnerability with example

2012-09-19 Thread chris derham
On Wed, Sep 19, 2012 at 10:02 AM, Ragini wrote:For my research work I want to have different attacking scenarios which exploits vulnerability of JAVA based applications. This java applications can be just any web-application, desktopapplication or any other.For this, I was thinking to exploit vuln

Re: Setting JVM Parameters in Windows Service for Tomcat7

2012-09-20 Thread chris derham
> > The documentation tells, that this could be done by calling "tomcat7 > //US//Tomcat7 ..." > This method works, but it is not practicable for our production > environment, because these settings are stored in the registry. > > Matthias - can you please elaborate on exactly what "it is not practi

Re: insfrastructure set list

2012-10-23 Thread chris derham
> Today we're about to deploy a simple app that is basically a charts > solution that will run over Tomcat 7.X. Well till there everything is all > right. But since I'm not a heavy user of Tomcat I'm not so sure what could > that be the best settup for my app for not have problems in a first sight

Re: tomcat 7 PermGen

2012-10-25 Thread chris derham
> After upgrading to 7, deploying a new war file often results > in PermGen error, much more often than in 6.(with identical JVM settings) > I have tried all those JVM settings for perm memory but no help. "All those JVM settings for perm memory" - could you share which settings you have tried, an

Re: Handling requests when under load - ACCEPT and RST vs non-ACCEPT

2012-11-14 Thread chris derham
Having finally received the actual details of what the OP actually is doing in email #37 of this thread, I was struck by a simple thought. I have re-read the whole thread, and don't think/hope that I am about to say anything completely stupid. > "We develop software that routes millions of request

Re: Mod_jk - loadbalancer

2012-12-03 Thread chris derham
> I use mod_jk loadbalancing. (JkMount /WebApp/* loadbalancer ) > I want to use only one loadbalancer. Why are you using load balancing? Why do you want to use only one loadbalancer? > Can I set specific url after balancing > ? > > For example, firstly every request will go to loadbalancer. > T

Re: Single Tomcat instance scalability

2013-01-18 Thread chris derham
> We have a web server hosted on Apache Tomcat Version 7.0.32. > > It is a single Tomcat instance on 64 bit windows. Server.xml has two > connectors: The ssl connector is HTTP NIO and the non-ssl connector is HTTP > BIO. > > We are trying to achieve vertical scalability and would like to increase

Re: Trying to install tomcat 7.0.35 but after installation it shows me as Apache Tomcat 7.0.2

2013-01-23 Thread chris derham
Kiran > I want to run it as service.I installed this by running service bat file > from cmd prompt.once installation was success full.I checked local > host:8080.over there I see version 7.0.2 . in a cmd prompt run netstat -ano. The output will list all processes and the TCP port they have open.

Re: Different webapp paths on different hosts

2013-01-26 Thread chris derham
> > it's not. maybe it will make things clear if i change the names of the > paths, say: > > * when user goes to http://app1.com/ -> {thesamewebapp}/app1 path is served > as root path of the domain app1.com > * when user goes to http://app2.com/ -> {thesamewebapp}/app2 path is served > as root path

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread chris derham
> 1) All 3 applications are browser compatible and users may use other then > IE > hence IE alone can be ruled out Do you mean "multiple browsers access these web applications, so we can't use anything that is IE specific"? Assuming that you do, I don't believe that anybody suggested anything th

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread chris derham
>>> Do you need a plug-in or anything like that? Does it need to be >>> specifically enabled? >> >> No, we use it all the time with IE, Firefox, and I believe Chrome >> as well. Last time I was working in this area a few years ago, it worked by default in IE and had to be turned on in FF. A rogue

Re: LDAP on TOMCAT 7.0.30

2013-01-29 Thread chris derham
> Does that mean that Tomcat treats WIA similar to HTTP BASIC (or maybe > DIGEST) unless you've approved a particular domain/host? That's > interesting. Can you just enter anything you'd like? For instance, can > I authenticate to a server that is expecting WIA from a Linux > workstation just by en

Re: LDAP on TOMCAT 7.0.30

2013-01-31 Thread chris derham
> We have 2 Apps on tomcat with each having independent DB > the credentials in both apps are in synch with the list of authorized users > as per LDAP. What does that mean? Where is the source of the credentials? When a user changes a password, where do they change it? You say "in synch", so do th

Re: LDAP on TOMCAT 7.0.30

2013-01-31 Thread chris derham
> Is this possible, Is there any material available for me The links already provided cover all that you request > I have read some where that Apache HTTPD ( ) can do this SSO process, > then the same could be at Httpd instead of Tomcat end . > > If so yes plz let me know the process. I have

Re: How do I deploy a war file to a context path not matching the war file name

2013-02-01 Thread chris derham
> The documentation for the docBase (a.k.a context root) attribute > states that the docBase attribute should be used to point to the war > or exploded war file. My server's appBase is the default of 'webapps' > and my WAR and exploded WAR are under webapps so I have specified a > relative path of

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread chris derham
> In the Java world, most people would only call it a consider it a > "cluster" if the app servers actually know about each other -- for > instance, if you are using session replication. IMO session > replication is a dog, and there are better ways to achieve similar > goals that yield much higher

Re: Different webapp paths on different hosts

2013-02-02 Thread chris derham
> To my mind if you deploy the app as ROOT.war, as long as DNS > is configured correctly, that single context will serve > responses to http://app1.com/ and http://app2.com/. This > appears solves the explicit requirement stated above. But the OP refuses to supply any info

Re: Sharing session attributes across multiple webapps

2013-02-09 Thread chris derham
> I simply need a temporary string that is set during the session in > one app to still be able to be displayed when the user goes to another > app. > Am I missing something obvious here? Couldn't you try a cookie? Chris -

Re: Tomcat 6 access Network drive and interact with desktop

2013-02-21 Thread chris derham
> I mean I need a tomcat service which can interact with desktop and can > access network resources 'access network resources' is clear, but please define 'interact with the desktop' - what do you want the app to do exactly? Chirs -

Re: Tomcat 6 access Network drive and interact with desktop

2013-02-22 Thread chris derham
I mean I need a tomcat service which can interact with desktop and can access network resources Top hit when googling for 'windows service interact with desktop' http://lostechies.com/keithdahlby/2011/08/13/allowing-a-windows-service-to-interact-with-desktop-without-localsystem/ > The

Re: Tomcat 6 access Network drive and interact with desktop

2013-02-22 Thread chris derham
> The first part (running programs which require a Window) usually doesn't, > because those programs are usually such that they do not work "as a > service". It is not usually only the fact that they need a console, but > they need a whole bunch of other environment which a Service does not > prov

Re: SSL Best Practices

2013-03-18 Thread chris derham
> If the system is only for testing, or communicates with a limited number of > systems (i.e., > it is a firewalled backend system that only communicates with a front-end > system), then again, > a self-signed certificate would be fine. +1 > If his organization already uses PKI certificates, th

Re: I need help in configuring windows authentication in tomcat 7.0

2013-03-21 Thread chris derham
> >adCompat="true" >allRolesMode="authOnly" > referrals="follow" > connectionURL="ldap://dc01.mydom.local:389"; > connectionName="mydom\tcuser" > connectionPassword="Pa55w0rd" > userBase="dc=mydom,dc=local" >userSubtree="true" > userSearch="

Re: runtime.exec "cmd.exe /C net use"

2013-03-26 Thread chris derham
This thread has been going on for some time now, but why are you using drive letters? Can't you just use unc paths and remove all of these issues you are having? I searched the thread for UNC and can't see that this was asked, but seems like a sensible question. HTH Chris ---

Re: Analyzing Connection Pool Errors/Leaks

2013-04-02 Thread chris derham
> OK, I'll have to investigate the DB setting more thoroughly. The maximum > sessions and processes in Oracle are higher than we were using for the test > though (several hundred). We hit a similar situation a year ago. Essentailly Oracle has a TNS listener process that accepts connections. This i

Re: Tomcat access log reveals hack attempt: "HEAD /manager/html HTTP/1.0" 404

2013-04-16 Thread chris derham
> Or, another way of looking at this would be that for every 40 servers > scanned without a 404 delay, the same bot infrastructure within the same > time would only be able to scan 1 server if a 1 s 404 delay was implemented > by 50% of the webservers. This assumes that the scanning software makes

Problem with overriding parameters via context.xml

2011-01-26 Thread chris derham
All, I appear to have an issue with tomcat 6.0.30 not allowed web.xml parameters to be over-ridden via context.xml file entries. This works fine in tomcat 6.0.29. I have a parameter defined in web.xml, like this http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSch

Re: Problem with overriding parameters via context.xml

2011-01-26 Thread chris derham
ed up fine - its just the parameters that seem to have changed behaviour moving from 6.0.29 to 6.0.30 Thanks Chris On Wed, Jan 26, 2011 at 1:02 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris >

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> > I need some help creating my context.xml file in a correct way. > > My application is based on Spring and Hibernate. I need to configure more > than one datasource > to access multiple databases at the same time. > > We use JNDI to set up our datasource. So in spring configuration, we have

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> And the question is: > How to build the context to move the existing Spring configuration to the > Tomcat context to get all datasources with JNDI. > The problem is, that it must be possible to set a variable amount of > databases. I can't set the number of databases to a fixed amount. > Building

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> > That's right, my code doesn't support a variable amount of databases at > the moment because > the databases are configured in Spring (inside my war file). > But if I use the context to configure this list of datasources, the admin > can create databases as he need. > And that's the reason why

Automated installer for war files

2011-02-16 Thread chris derham
All, I have been reading "Continuous Integration: Improving Software Quality and Reducing Risk". It recommends having an automated installer for all deployments, so that the everything is the same on all environments. We typically have multiple instances of tomcat, allowing us to segregate applica

Re: Automated installer for war files

2011-02-16 Thread chris derham
> Maybe you should be more precise as to what exactly you want to be able to update mechanically. Fair question. We have different environments - test, uat and prod. We want the environments to be the same. We install multiple tomcat instances, so we don't typically customize the tomcat install mu

Re: Automated installer for war files

2011-02-16 Thread chris derham
> > > Can you expand a bit on the above ? > (That seems to be the only part which is really Windows-specific). > Such as, what "variable" are you talking about, defined where ? > So currently we set catalina_home and catalina_base, cd into \bin and run service install myApp then manually run t

Re: Setting the expiry for static content served by Tomcat 6.0.32

2011-02-23 Thread chris derham
> > Is there any way I can specify the expiry of static content (js,css etc) by > some setting in the context.xml or sever.xml .Or the only way to achieve > this is to write my own filter which will add the appropriate header. > We used this http://www.vineetmanohar.com/2010/10/java-expiry-date-h

Re: programming question

2011-02-24 Thread chris derham
> > When I mention them that their programs should handle the situation > resulting from the database bounce automagically and not the dba handling > the web app or Tomcat shutdowns and restarts, they look at me like I came > from Mars or Saturn :-) > If you code the app to use a connection pool,

Re: [OT] Memory Leak in Tomcat

2011-02-25 Thread chris derham
All, I've only been on this mailing list for a couple of weeks, so am still not quite sure of the etiquette. I know people get upset about top posting or replying to an existing email and changing the subject only. Not sure about the intricacies of when people should attempt to help others on the

Re: Problem with overriding parameters via context.xml

2011-02-25 Thread chris derham
On Fri, Feb 4, 2011 at 4:58 PM, Oliver Doepner wrote: > > Hi, > > This looks like a symptom of this: > > Bug 50700 – Context parameters are being overridden with parameters from > the > web application deployment descriptor > https://issues.apache.org/bugzilla/show_bug.cgi?id=50700 > > Please vot

Re: Running Tomcat as service - is it possible to make "tomcat7.exe" run a batch file each time it starts?

2011-03-06 Thread chris derham
> Back when it was running through "startup.bat" we put some code in "catalina.bat" which is now ignored by "tomcat7.exe". What is it that you are trying to achieve? What does this "code" do? Maybe if you explain a little more, someone might have achieved the same thing already in a different way

Re: Running Tomcat as service - is it possible to make "tomcat7.exe" run a batch file each time it starts?

2011-03-07 Thread chris derham
> > I run Groovy to make some machine-specific replacements in some files > according to properties file which can be configured prior to starting > Tomcat. We have Artifactory and Jenkins deployed to Tomcat. This property > file contains various configurations to them and Groovy script, started >

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread chris derham
> We have some working tomcat 6 instances that we'd like to identify Can you use the combination of machine and schema name to identify the instance? You didn't detail your environment, but if you have a cluster, then the machine name would uniquely identify the instance. If you have multiple dif

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-15 Thread chris derham
> > We have some working tomcat 6 instances that we'd like to identify > > > >> As David said, this does work with the thin driver, but I need the > > >> service/load balancing functionality from OCI. Any more suggestions > > >> are welcome! > You didn't say what connection pool you are usi

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread chris derham
> We'd like to be able to tell apart database sessions from the 15 or so > tomcat applications we have running on our web-servers. Most of them > use similar logins, so we can't query the username from gv$session. We > were hoping to instead query to program field to tell them apart. > > We were ab

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread chris derham
> > > The problem he appears to be encountering is that he is unable to customize > the > value in v$session.program. The reason for the problem is that he does not > know > how to do it either when using the OCI jdbc driver (it is likely not > possible). > Jason, So oci or thin driver is largely

Re: Allocate JVM settings per instance

2011-04-21 Thread chris derham
I have a windows server 2003 with three instances of Tomcat (2x6.0.26 and 1x6.0.32). Every Tomcat has it own dir and the services was installed through “/bin/service install [service-name]”. > How can I change the JVM settings per instance? If I try to open the > tomcat6w.exe, I got not the instan

Re: SEVERE: Exception starting filter

2011-04-26 Thread chris derham
> > Now > i know that this looks way to easy to spot. It's obvious that i am > missing a class. But the problem is that the class is right there where > it should be. I mean, Ant sees the class and gives no compilation errors, > also my IDE (Eclipse) sees the class (from the build path), but when

Re: SEVERE: Exception starting filter

2011-04-26 Thread chris derham
> > >> Yes, i do have such a jar file. And i extracted its contents and verified >> that the class exists. >> I have extracted war's contents and this is what i got in a folder names >> Hibernate (as expected) http://dl.dropbox.com/u/13391208/Screenshot.png >> >> Can you please run the following co

Re: SEVERE: Exception starting filter

2011-04-26 Thread chris derham
> > WEB-INF/lib/Hibernate/hibernate-core-3.6.3.Final.jar > WEB-INF/lib/Hibernate/hibernate-jpa-2.0-api-1.0.0.Final.jar > WEB-INF/lib/Hibernate/hibernate-search-analyzers-3.4.0.Final.jar > > From your listing, you have located the hibernate jar files in a subdirectory of WEB-INF/lib. I believe Tomca

Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread chris derham
> But when I try to access my resource with the following code: > >Context newCtx = null; >try { >newCtx = new InitialContext(); >} catch (NamingException e) { >// TODO Auto-generated catch block >

Connection pool race condition

2011-04-27 Thread chris derham
All, So we have various tomcat services setup on windows. When windows updates are auto installed, sometimes they force a reboot of the server. When this happens, the tomcats win the race with the database (Oracle) to startup. Then the connection pool can't start, and then the war file is flagged

Re: JNDI, resource and LDAP Trouble

2011-04-28 Thread chris derham
> > I have tried this before - with little success. The code does not through > any exception now - but the DirContext object (ctx) is null and by that > unusable: > >DirContext ctx = (DirContext) > newCtx.lookup("java:comp/env/blah"); >if (ctx != nul

Problem with connection pool

2011-04-29 Thread chris derham
All, I am having a weird problem with an app. We were having concurrency issues, so we setup some simple pessimistic locking - we lock a single table using select for update. We have developed a jmeter script that allows us to test the app when loaded. Repeatedly after different intervals, but les

Re: Problem with connection pool

2011-04-30 Thread chris derham
All, > > What do you mean by "swapped out"? > Idle speculation in the face of a problem that I didn't really understand :-( > > > 69% of all threads are sleeping on a monitor. > > Fully expected, since that's what they do when waiting for work to show up. > > > This might indicate they are waiti

  1   2   >