Changing roles on the fly

2008-06-19 Thread Lyallex
if I am pointing in the right direction. Is this something I could do via JMX or is there something else I should be looking at. I do not want to expose the tomcat management console to superusers as they will be (business) domain experts, not Tomcat users or developers

Re: Changing roles on the fly

2008-06-22 Thread Lyallex
On Sat, Jun 21, 2008 at 12:41 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Johnny Kewl wrote: >> >> - Original Message - From: "Lyallex" <[EMAIL PROTECTED]> >>> >>> Allowing a user to add a role is simple enough. >> >> Is i

Re: Changing roles on the fly

2008-06-22 Thread Lyallex
On Sun, Jun 22, 2008 at 1:46 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > - Original Message - From: "Lyallex" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Sunday, June 22, 2008 1:14 PM > Subject: Re: Changing roles on the fl

How to close an out Stream if a client aborts

2008-06-30 Thread Lyallex
ing anyone to solve my problem, I'm just trying to figure out if I'm looking in the right place, possibly. Could this potentially be where the problem lies ? TIA Lyallex - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to close an out Stream if a client aborts

2008-07-01 Thread Lyallex
On Mon, Jun 30, 2008 at 1:52 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > - Original Message - From: "Lyallex" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Monday, June 30, 2008 10:11 AM > Subject: How to close an out Stream if

[Possibly OT] Life after dojo, slow 'buggy' redeploy. Any experience here ?

2008-09-03 Thread Lyallex
559) at java.lang.Thread.run(Thread.java:619) Many Thanks lyallex - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5.23: caching of css files?

2007-10-09 Thread Lyallex
Did you clear your browser cache ? If you access the application via different adresses AFAIK the browser sees identical files as being different due to those different addresses (FQDN versus IP address). I had similar problems that dissapeared after I cleared out the browser cache It's just a t

Re: Diagnosing Tomcat memory usage

2007-10-10 Thread Lyallex
Try Lambda Probe as recommended by other contributors to this list. http://www.lambdaprobe.org/d/index.htm I'm no expert with this tool but it's straightforward to install and I think it may help you out a bit. The System Information/Memory Utilization thing is particularly fascinating although I

Confused about startup

2007-10-24 Thread Lyallex
Hello Windows XP SP2 Java 1.5.0_10 Tomcat 5.5.25 After many years using Tomcat to host various web sites I thought it was about time I started looking at some of the code. I downloaded the source for 5.5.25 and thought I'd start at the beginning and figure out what happens when I start the server

Re: Confused about startup

2007-10-24 Thread Lyallex
mmented as /** * Main method, used for testing only. * * @param args Command line arguments to be processed */ Ah well, it's all character building stuff I suppose. On 10/24/07, Lyallex <[EMAIL PROTECTED]> wrote: > Hello > > Windows XP SP2 > Java 1.5.0_10 >

Re: Confused about startup

2007-10-25 Thread Lyallex
this? > > Actually, the Bootstrap class is not so important. The more important > class is org.apache.catalina.startup.Catalina, and its main(args) > method is commented as being the entry point. > > > 2007/10/24, Lyallex <[EMAIL PROTECTED]>: > > Hmm, obv

Re: [OT] "Ooh, shiny!" (was RE: Best Linux distribution)

2007-11-16 Thread Lyallex
> Unfortunately too many IT teams that I've encountered tend towards the "Ooh, > shiny new toy!" and "My server's newer than your server" views of the world. Heh heh, shiny new toy syndrome, where would the 'IT business' be without it. comp.lang.java.programmer has some really bilious postings

Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Lyallex
Hi Java 1.5.0_10 Tomcat 5.5.17 I've just spent the past couple of hours reading past postings to this list at marc.info The subject I'm interested in is the efficient use of ssl/https. I have managed to get the 'redirection' to https working with the following entry in web.xml (amongst other co

Re: Old Chestnut (http - https) causing some confusion

2007-07-03 Thread Lyallex
someone said, it's all a matter of tradeoffs. Regards Duncan On 6/29/07, Lyallex <[EMAIL PROTECTED]> wrote: Hi Java 1.5.0_10 Tomcat 5.5.17 I've just spent the past couple of hours reading past postings to this list at marc.info The subject I'm interested in is t

Images and response.getOutputStream()

2007-07-03 Thread Lyallex
Hi I'm not sure this is a Tomcat question, more likely a poor understanding of the Request/Response lifecycle on my part but I'll give it a go anyway. After agonising for days(weeks) over whether to store my images in a database or on the filesystem I opted for the database. I have everything w

Re: Images and response.getOutputStream()

2007-07-03 Thread Lyallex
Ricardo What can I say ... sometimes you just get a mental block about these things I used a servlet and now I don't get any java.lang.IllegalStateExceptions when loading images Thank you for showing me the light. Regards Duncan On 7/3/07, rpr_listas <[EMAIL PROTECTED]> wrote:

Re: How to remove port number from https adress and redirect http to https

2007-07-06 Thread Lyallex
Hi This is my first contribution to this list and I expect others will have better ways of doing it but ... The way I managed to get his working is to set the ssl connector port to the default ssl port (443) and my non-ssl connector port to the default http port (80) Obviously there are issues s

Re: How to remove port number from https adress and redirect http to https

2007-07-06 Thread Lyallex
you mentioned a suitable servlet filter? How would you go about making a servlet filter for this purpose and where would you put it? As you can tell from my question I have little experience with servlet filters.. Thanks again :) Lyallex wrote: > > Hi > > This is my first contri

Re: Configure customized deny page for tomcat JDBCRealm authorization

2007-07-09 Thread Lyallex
Hi I'm using Tomcat 5.5.17 To configure Tomcat to serve up a non default http 403 status code page which is what I think you are talking about you need to add something like the following to your web.xml 403 /errorcodes/ec403.jsp You can override all Tomcats default error pa

Re: How to remove port number from https adress and redirect http to https

2007-07-09 Thread Lyallex
where do you put the filter mapping? Thanks! Lyallex wrote: > > Hi > > Ah, yes, well I'm not really an 'expert' myself but I have been through > this > recently. > > The first thing I would say is that the following looks different to my > own >

Re: How to remove port number from https adress and redirect http to https

2007-07-09 Thread Lyallex
I forgot to mention http://java.sun.com/j2ee/dtds/web-app_2_2.dtd will tell you wherabouts to put the filter mapping in web.xml Rgds Duncan On 7/9/07, Lyallex <[EMAIL PROTECTED]> wrote: Hello You 'put' them somewhere in you package hierarchy, so for example if you have the p

Re: JavaMail SMTP authentication in JSP

2007-07-13 Thread Lyallex
properties.put("mail.smtp.auth", "true"); ... transport.connect(host, user, pass); possibly ? rgds Duncan On 7/13/07, Garthfield Carter <[EMAIL PROTECTED]> wrote: Hello, Has anybody got an example they could send me of how to authenticate with an SMTP server to send an email in JSP for JavaMa

Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

2007-07-15 Thread Lyallex
Hi How confused do you want to be I started looking at the 4.1 docs as well ... it'll never work I do object to having to download taglibs just to get a simple example working so you can keep all the code from the 4.1 example including the web.xml entry All you really need to change is the

Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

2007-07-16 Thread Lyallex
You left this bit out ... it's not a criticism before anyone gets upset I'd be glad to contribute to the documentation, just gotta figure out how, guess I'll have to RTFM. Rgds Duncan On 7/15/07, Mark Thomas <[EMAIL PROTECTED]> wrote: Lyallex wrote: > One thing that

Re: Tomcat cannot access the resources in an HTTPS webapp

2007-07-16 Thread Lyallex
Hi There seems to be an awful lot of confusion on this list about container managed security and https ... I know I was confused when I started with it. As I see it the two are not really connected. I think what you want to do is to force an https request for certain resources in your applicati

Re: Exception Thrown in a JSP

2007-07-17 Thread Lyallex
From the API docs public class NoSuchElementException extends RuntimeException Thrown by the nextElement method of an Enumeration to indicate that there are no more elements in the enumeration. The line number in the trace is from the generated code and bears no relation to line numbers in the

Re: Exception Thrown in a JSP

2007-07-18 Thread Lyallex
Or of course you could be using a Vector ... or something else that extends AbstractList and a call to (Iterator).next() is causing the problem. Too many late nights. Rgds Duncan On 7/18/07, Lyallex <[EMAIL PROTECTED]> wrote: From the API docs public class NoSuchElementException e

logging mail session debug

2007-07-24 Thread Lyallex
Good Morning tomcat 5.5.23 java 1.5.0_10 javamail 1.4ea jaf-1.1 I have two classes foo.MailQueueWatcher extends TimerTask foo.MailServer I have the following logging config in ${catalina.home}/conf/logging.properties foo.MailQueueWatcher.level=ALL foo.MailQueueWatcher.handlers=2myapp.org.apac

Re: Tomcat 5.0.28 - SSL Setup

2007-07-26 Thread Lyallex
The first thing that strikes me is that you have not defined a connector for port 8443, here's one of mine (Tomcat 5.5.23) I think you probably need this because (at the very least) you have 'redirectPort="8443"' in your non ssl Connector config Rgds Duncan On 7/26/07, Jeffrey C. Baldwin

Re: How to change(override) application path

2007-07-30 Thread Lyallex
Hi I've had all sorts of problems understanding how relative links are resolved so I found this solution somewhere and it works well for me All my pages import a header file (header.jsp) in header.jsp I have this <% String basePath = request.getScheme()+"://"+request.getServerName()+"/"; %>

Re: Catalina.bat and Tomcat 5.5.23

2007-07-30 Thread Lyallex
Google 'dos batch files' There are all sorts of tutorials out there. Rgds Duncan On 7/30/07, Varuna Seneviratna <[EMAIL PROTECTED]> wrote: > Hi Can somebody direct me to understand Catalina.bat after opening it using > a Text editor or point me where I can get the information. The Tomcat > docum

Re: How to change(override) application path

2007-07-30 Thread Lyallex
nse.BasePath=global value; > > I looked at response functions its not directly possible. Or is it? > > Thank you > > Note:Previous email was wrongly sent without any text from me sorry. > > - Original Message > From: Lyallex <[EMAIL PROTECTED]> > To: Tomcat U

Log file analyser for Access Log Valve output

2007-08-10 Thread Lyallex
Hi Tomcat 5.5.23 Java 1.5.0_10 First let me say thanks to the users on this list that have answered my (no doubt irritating) questions over the past few weeks. Thanks in no small part to you my new application is flying along on Tomcat and is all blinged up with AJAX, SSL certification, DataSour

Re: Log file analyser for Access Log Valve output

2007-08-10 Thread Lyallex
Looks interesting. Thanks On 8/10/07, David Smith <[EMAIL PROTECTED]> wrote: > > As I understand it access log valve outputs a compatible format to > Apache Httpd so Webalizer should be able to analyze and provide reports. > > --David > > > Lyallex wrote: > &g

Thawte SSL certificates

2007-08-13 Thread Lyallex
Hi I was wondering if anyone has managed to get the Thawte SSL test certificate working with Tomcat 5.5. I have created a CSR and submitted it to Thawte. I got a test certificate back I have installed the Thawte Root(chain) certificate and tried to install the test certificate I got a Certificat

Re: Thawte SSL certificates

2007-08-13 Thread Lyallex
t Roots/thawte test roor.cer into my browser and tried again (I restarted Tomcat just to be on the safe side) ... success. No more messages ----- On 8/13/07, Hassan Schroeder <[EMAIL P

Re: Web analyzer for Tomcat

2007-08-16 Thread Lyallex
Hi I don't think webalizer is 'for' apache httpd, rather it will analyse logs written in Common Logfile Format (and others). It doesn't matter what he server is. If you use the AccessLogValve to write your access logs then webalizer seems to read these well. I'm a raw beginner with webalizer. I ma

Re: 20 Tips for Using Tomcat in Production

2007-08-21 Thread Lyallex
Good stuff I'm doing 70% of what you suggest and Tomcat 5.5.20 hums along nicely on Debian Linux with Java 1.5.0_04 I bet this one runs and runs ... Rgds Duncan On 8/21/07, Shane Witbeck <[EMAIL PROTECTED]> wrote: > I thought my latest blog post would be of interest to the people on this list:

Is Tomcat being hacked by curl ?

2007-08-23 Thread Lyallex
(Debian) Linux 2.6.11.12-xenU Tomcat 5.5.20 Java 1.5.0_04 This question concerns access to a running Tomcat instance by a previously unseen/unknown user agent. I have been developing commercial sites in Java for a number of years now but this is the first time I have deployed a commercial applicat

Re: Is Tomcat being hacked by curl ?

2007-08-23 Thread Lyallex
- 69.25.212.191 # ARIN WHOIS database, last updated 2007-08-22 19:10 # Enter ? for additional hints on searching ARIN's WHOIS database. Sometimes whois returns a bunch of stuff sometimes I only get a minimal return, not much use really. Anyway, I will investigate further Thanks for taking the t

Re: Is Tomcat being hacked by curl ?

2007-08-23 Thread Lyallex
www.who.is Much more info ...tracking the perpetrator down now ... this is fun. On 8/23/07, Lyallex <[EMAIL PROTECTED]> wrote: > OK, that's all good advice ... > > [EMAIL PROTECTED]:/usr/tomcat/logs$ cat access.log | grep curl > > 69.25.212.171 - - [22/Aug

Re: Is Tomcat being hacked by curl ?

2007-08-23 Thread Lyallex
gt; > --David > > Mark Deneen wrote: > > >Once you find them, you might be hard pressed to actually do anything > >about it beyond getting in touch with their ISP. > > > >It might be easier to just block them at the firewall or on the server > >tomcat ru

Re: Is Tomcat being hacked by curl ?

2007-08-23 Thread Lyallex
On 8/23/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Duncan, > > Not to belabor this thread too much, but... > > Lyallex wrote: > > I never actually suggested [curl] was a > > hacking tool >

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-18 Thread Lyallex
How about creating a SessionListener class SomeSessionListener implements HttpSessionListener ... Register it in web.xml in the sessionCreated method of your listener get a reference to the new session from the HttpSessionEvent you can now access the getLastAccessedTime(), maybe store the refs i

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-18 Thread Lyallex
On 9/18/07, Lyallex <[EMAIL PROTECTED]> wrote: > How about creating a SessionListener > > class SomeSessionListener implements HttpSessionListener ... > > Register it in web.xml > > in the sessionCreated method of your listener get a reference to the > new session fro

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-19 Thread Lyallex
. Anyway, I'll shut up now. Rgds Duncan On 9/19/07, Lyallex <[EMAIL PROTECTED]> wrote: > On 9/18/07, Lyallex <[EMAIL PROTECTED]> wrote: > > How about creating a SessionListener > > > > class SomeSessionListener implements HttpSessionListener ... > &g

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-19 Thread Lyallex
On 9/19/07, David Delbecq <[EMAIL PROTECTED]> wrote: > Just use WeakReference :) Er, well that's OK, the WeakReference referant object (the session) is null after gc but now I have a WeakReference object lurking in my Map as opposed to the HttpSession object previously so I'm not really gaining a

Re: Seeking advice as to what platform/framework to use for developing a tourism/tourist attractions web site

2008-05-02 Thread Lyallex
our working life while others struggle to get heir head around the latest bloated XML nightmare config, docubabble latest greatest framework. Madness ? perhaps, but I spend my time learning the Java/J2EE APIs rather than reading framework documentation and I am never out of work. Good Luck Lyall

Re: Seeking advice as to what platform/framework to use for developing a tourism/tourist attractions web site

2008-05-02 Thread Lyallex
On Fri, May 2, 2008 at 2:38 PM, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I actually agree with Lyallex quite strongly, ..no, you don't, you can't, well actually you do, so I'm not going mad then, fabulous. No Idea what DWR is and the idea of writing more of my app i

Re: [OT] RE: Seeking advice as to what platform/framework to use for developing a tourism/tourist attractions web site

2008-05-02 Thread Lyallex
at least you'll have some idea where to look when it doesn't work (they NEVER work first time in my experience). Anyway OP, hope this little discussion has cleared things up for you :-)) Cheers Lyallex On Fri, May 2, 2008 at 2:48 PM, Peter Crowther <[EMAIL PROTECTED]> wrote: &

Re: [OT] RE: Seeking advice as to what platform/framework to use for developing a tourism/tourist attractions web site

2008-05-02 Thread Lyallex
ene.apache.org/) well it's the absolute dogs danglers isn't it ? I just think that a framework as a starting point is one layer too far for a beginner to web development. Anyway, let us know how you get on OP. Cheers Lyallex Just my two quids worth --

Re: Save POJO Application Server Definition

2008-05-15 Thread Lyallex
Jeez, give the guy a break, if you don't want to read his posts then don't read them. His name appears next to them, it's easy to ignore if you want to. I don't know 'Johnny' personally and I agree he can be a bit ebulliant but do we really all want to descend into g

Re: Save POJO Application Server Definition

2008-05-15 Thread Lyallex
t; wants) at the end - like everyone else - sorry if I was too sarcastic. Tag line looks good at the bottom Johnny Lyallex - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Distributed Singletons with clustered Tomcat

2008-05-22 Thread Lyallex
ingle Singleton) but another correspondant on this list seems to be having problems with lost data (although we won't be using a wan AFAIK). Is there a well tried solution to this issue ? Many Thanks In Advance Lyallex - To s

Re: Distributed Singletons with clustered Tomcat

2008-05-23 Thread Lyallex
On Thu, May 22, 2008 at 2:10 PM, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Lyllax, > > Lyallex wrote: > | Classically my ServiceLocator has been a Singleton, now I have the > | prospect of multiple Sing

Tomcat 6 and javamail

2008-11-19 Thread Lyallex
, I'm rather hoping it's not a securuity thing but I suspect it might be. I'm not asking anyone to debug my application I could just do with a pointer or two. Any help much appreciated Cheers lyallex - To start a

Re: Tomcat 6 and javamail

2008-11-19 Thread Lyallex
so I can't even see what is happening at the other end. Any other ideas ? Thanks anyway lyallex 2008/11/25 David Smith <[EMAIL PROTECTED]>: > Start by making sure there is only one copy of the javamail jar. Remove > either the one in tomcat's lib directory or your webapp&

Re: Tomcat 6 and javamail

2008-11-25 Thread Lyallex
... properties.put("mail.smtp.auth", "false"); so it looks like a different properties bundle is being used when I run this in Tomcat ... does any of this make sense ?? Thanks lyallex > > when I invoke the component in the webapp I get > javax.mail.AuthenticationFaile

Re: Tomcat 6 and javamail

2008-11-27 Thread Lyallex
to configure JNDI resources/Mail sessions etc JAVA_OPTS and CATALINA_OPTS have not been modified by me and do not contain anything other that the default settings (none of which appear to have anything to do with mail config settings). Any ideas much appreciated. lyallex 2008/11/26 Rainer Frey

Re: Tomcat 6 and javamail

2008-11-27 Thread Lyallex
2008/11/27 Rainer Frey <[EMAIL PROTECTED]>: > On Thursday 27 November 2008 12:52:56 Lyallex wrote: > > > (It would be easier to answer if you'd stop top quoting - but I won't correct > this whole mail) Well that's most kind of you, you are being very patient.

Re: Tomcat 6 and javamail

2008-11-27 Thread Lyallex
2008/11/27 Caldarale, Charles R <[EMAIL PROTECTED]>: >> From: Lyallex [mailto:[EMAIL PROTECTED] >> Subject: Re: Tomcat 6 and javamail >> >> The mail server does not require authentication when accessed from the >> office subnet. The server guys have confirm

Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
I can't use symbolic links to place the imagecache outside the application space because I develop on Windows and deploy to Linux (historical, nothing I can do about it) Any ideas much appreciated. Many thanks lyallex - To

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
ightly depressing ... unless of course I am missing something. Surely this is not an unusual requirement, how do others deal with serving up images that have been uploaded after the server has started. Anyway Thanks for taking the time to reply lyallex 2009/6/10 Jonathan Mast : > So you are actua

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
I'll start a new one for each issue then return here when I know exactly what the problem is. I hope this doesn't upset too many people. Rgds lyallex - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For ad

Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-10 Thread Lyallex
in context.xml then do a JNDI lookup in my site cooker and save the value to my config server... I'd much rather use getRealPath as I don't have to change the config when I deploy to live. I'm confused, any help much appreciated lyallex -

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
now how it's done > Are you by chance running Tomcat behind Apache Httpd or some other server? Nope, Tomcat runs standalone on port 80 and serves all content thanks lyallex - To unsubscribe, e-mail: users-unsubscr...@tom

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Lyallex
2009/6/11 Mark Thomas : > Lyallex wrote: >> The logging output gives the following >> >> INFO: The path to the image cache is >> C:\servers\tomcat\apache-tomcat-6.0.16\temp\1-ROOT\imagecache > > This is a side effect of using the anti-locking attributes on

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-11 Thread Lyallex
spec type API to write files so that the DefaultServlet could 'see' them ... hence the use of getRealPath grasping at straws ? You bet. Anyway, thanks for taking the time to reply lyallex - To unsubscribe, e-ma

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Lyallex
d images that have been written to disk after the server starts ... sorry if this offends you in some way, it's driving ME nuts especially as you all seem to have no trouble with this. I'm almost tempted to load the app ont

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-12 Thread Lyallex
2009/6/11 Mark Thomas : > Lyallex wrote: >> 2009/6/11 Caldarale, Charles R : >> >>> Writing to the webapp's deployment location is a bad idea - you again have >>> no guarantee that it's allowed, and you're at the whims of the container >

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-12 Thread Lyallex
2009/6/11 Caldarale, Charles R : >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Loading dynamically created content: An old chestnut but >> stilla problem. >> >> I suspect that Hassan and Chuck are nto using anti-resource-locking &g

Re: Redirecting from unprotected resource to a protected one

2012-11-02 Thread Lyallex
On 2 November 2012 16:21, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Lyallex, > > On 11/2/12 9:43 AM, Lyallex wrote: > > When I have validated the data I want to forward to a protected > > resource like this > > > >

This is just plain ... odd.

2012-11-08 Thread Lyallex
rator is being replaced in some way I have no servlet filters or any other code 'in the way' between the facade and the initialization servlet. Any ideas ? TIA Lyallex

Re: This is just plain ... odd.

2012-11-08 Thread Lyallex
ppreciate. the fact is that the data was always returned in the same order by the database, just not the order I wanted. This is why I was particularly confused. Whatever, your code works, now I just gotta figure out why Thanks Lyallex

Re: This is just plain ... odd.

2012-11-08 Thread Lyallex
repeatable in both environments but surely given everything else being equal the results should be the same ... or maybe I'm just losing the plot. Lyallex

Re: This is just plain ... odd.

2012-11-09 Thread Lyallex
r(); while(iter.hasNext()){ //build the output //output it That's it, really, there is no more I need to get to the bottom of this as it's bugging the hell out of me a pound to a penny says it's something simple/stupid. I'll try what you suggest re wrapping the collection Thanks Lyallex

Re: This is just plain ... odd.

2012-11-09 Thread Lyallex
Don't shout at me for top posting In this instance it's justified Thanks for your continued work on this. I have to get some lines of code down as release date is fast approaching but I will try your code as soon as I have time Thanks for you continued work on this Lyallex On 9 Nov

Running Tomcat under jsvc - logging problems

2012-12-04 Thread Lyallex
ng it myself, so no help there then ... logging.properties reproduced below just FYI if you want it. Any advice on how I can get the logging working will be much appreciated Lyallex handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler ###

Re: Running Tomcat under jsvc - logging problems

2012-12-04 Thread Lyallex
On 4 December 2012 18:50, Konstantin Kolinko wrote: > [snip] > > > > Any advice on how I can get the logging working will be much appreciated > > > > > > Lyallex > > > > > > > > handlers = org.

Re: Running Tomcat under jsvc - logging problems

2012-12-04 Thread Lyallex
On 4 December 2012 19:41, Konstantin Kolinko wrote: > 2012/12/4 Lyallex : > > On 4 December 2012 18:50, Konstantin Kolinko > wrote: > >> > [snip] > > > > I do not know why it worked in 6.0.18. > No, nor do I but I've (apparently) reproduced t

Re: Running Tomcat under jsvc - logging problems

2012-12-05 Thread Lyallex
On 4 December 2012 21:18, Konstantin Kolinko wrote: > 2012/12/5 Lyallex : > > On 4 December 2012 19:41, Konstantin Kolinko > wrote: > > > >> 2012/12/4 Lyallex : > >> > On 4 December 2012 18:50, Konstantin Kolinko > >> wrote: > > [snip]

Getting hold of an IP address

2010-12-08 Thread Lyallex
Hi apache-tomcat-6.0.16 jdk1.6.0_03 My application contains instances of javax.servlet.http.HttpSessionListener and javax.servlet.Filter (among other classes of course) My question is, is it possible to obtain the originating IP address of a request from either of these classes I've had a good l

Re: Getting hold of an IP address

2010-12-08 Thread Lyallex
On 8 December 2010 10:04, Konstantin Kolinko wrote: > ServletRequest.getRemoteAddr() > > (In a Filter.  There is no request in HttpSessionListener). > > Best regards, > Konstantin Kolinko > ahem ... yes, well that was easy wasn't it In my (weak) defense it's been a long while since I did any codi

Tomcat 7 ssl by default

2014-12-17 Thread Lyallex
Tomcat 7.0.42 jdk1.7.0_51 Ubuntu 12.04/CentOS dev/deploy I have been reading more and more about Google and the like prioritising sites that employ https/ssl by default. Currently my site does not use https but delegates payment to a secure payment provider who does, thusly I have avoided going th

Re: Tomcat 7 ssl by default

2014-12-17 Thread Lyallex
7 December 2014 at 17:20, Mark Thomas wrote: > On 17/12/2014 17:10, Lyallex wrote: >> Tomcat 7.0.42 >> jdk1.7.0_51 >> Ubuntu 12.04/CentOS dev/deploy >> >> I have been reading more and more about Google and the like >> prioritising sites that employ https/ssl by

Re: Tomcat 7 ssl by default

2014-12-18 Thread Lyallex
On 17 December 2014 at 22:37, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Duncan, > > On 12/17/14 12:32 PM, Lyallex wrote: >> Yea I thought of this, the problem is I currently have a user area >> that requires a login and all t

Re: Tomcat 7 ssl by default

2014-12-19 Thread Lyallex
On 18 December 2014 at 14:06, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Duncan, > > On 12/18/14 4:18 AM, Lyallex wrote: >> On 17 December 2014 at 22:37, Christopher Schultz >> wrote: Duncan, >> >> On 12/17/14 12

How to comply with http://www.sitemaps.org/protocol.html#location

2016-03-13 Thread Lyallex
p.xml. Unfortunately it is not possible to write to the root of my web app on the fly so how do people deal with this ? Thanks Lyallex - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: us

Re: How to comply with http://www.sitemaps.org/protocol.html#location

2016-03-14 Thread Lyallex
Oh ... well ... how smart is that, works like a dream, nice one Thanks Lyallex On 14 March 2016 at 10:34, Terence M. Bandoian wrote: > On 3/13/2016 10:23 AM, Lyallex wrote: >> >> CentOS 5.2 >> jdk1.7.0_45 >> apache-tomcat-7.0.42 >> no httpd, tomcat only, one w

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-18 Thread Lyallex
NA_OUT="/var/log/tomcat-8-dev/catalina.out" > JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.74" > CATALINA_PID="/var/run/tomcat-8-dev.pid" > > > - > Daniel Savard > > > 2016-03-18 13:31 GMT-04:00 Lyallex : >> I thought you

Re: systemd tomcat script for Linux EL7

2016-03-18 Thread Lyallex
S Linux release 7.2.1511. I now face the prospect of having to wade through the systemd docs and spend as much as needed experimenting to get this to work as required, still, I have nothing better to do ! Thanks again Lyallex On 17 March 2016 at 11:41, jieryn wrote: > ExecStartPr

porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
jar:/opt/apache-tomcat-7.0.42/bin/tomcat-juli.jar \ org.apache.catalina.startup.Bootstrap ExecStop=/bin/kill -9 /var/run/tc7/jsvc.pid ExecStopPost=/bin/rm -f /var/tc7lock/subsys/tomcat /var/run/tc7/jsvc.pid [Install] WantedBy=multi-user.target Oh happy day Thanks again to all responders Lyallex

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Lyallex
he reasons behind the way catalina.sh >> works, he might not have embarrassed himself. >> >> It must be hard being so smart and important that you have to quit the >> Internet for good[1]. >> >> - -chris >> >> [1] >> http://homepage.ntlworld.com

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Lyallex
ntered failed state. Mar 16 16:40:55 vps.example.com systemd[1]: tomcat.service failed. tomcat7 fwiw # chkconfig: - 71 19 # description: Start up the Tomcat servlet engine. # this is the startup file for the new version # 24/10/2013 by lyallex # use java 7 # JAVA_HOME=/usr/local/java/jdk1.6.0_07

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
hy? What is the point? The server.xml has nothing to do with > integration with systemd. > - > Daniel Savard > > > 2016-03-19 1:40 GMT-04:00 Lyallex : >> Would you mind posting your server.xml, here is the relevant bit from mine. >>

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Lyallex
ls posted earlier) Has anyone actually got this working or do you all hide behind httpd :-) TIA Lyallex On 17 March 2016 at 00:57, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > jieryn, > > On 3/16/16 1:36 PM, jieryn wrote: >> http://homepage.n

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
rg/proper/commons-daemon/jsvc.html You'll need an up to date ANSI C compiler (I use gcc) Lyallex > > Regards, > - > Daniel Savard > > > 2016-03-19 12:10 GMT-04:00 Lyallex : >> It's the simplest way to find out which port you have Tomcat

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
On 19 March 2016 at 21:02, André Warnier (tomcat) wrote: > Daniel, > > first of all, stop top-posting (this applies to both of you). This is not > the style of posting desired on this list. > See http://tomcat.apache.org/lists.html#tomcat-users, #6. > > Secondly, > the

How to start Tomcat as a standalone web server using the systemd init system

2016-03-20 Thread Lyallex
is ongoing as time allows. Lyallex === /etc/rc.d/init.d/tomcat7 === JAVA_HOME=/opt/jdk1.7.0_45 CATALINA_HOME=/opt/apache-tomcat-7.0.42 export JAVA_HOME CATALINA_HOME CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-daemon.jar:$

Tomcat running against Java 1.7 barfs with Java < 1.7 Jasper error

2016-04-08 Thread Lyallex
? Or does it? I'm sure there is a good reason, I just can't think of it :-( Lyallex - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

  1   2   >