RE: dynamical class loading

2005-10-12 Thread Allistair Crossley
this is a complex answer that *probably* only the Tomcat devs can answer of someone knowledgable about the JVM and class loaders, so don't expect too many users to answer. i believe from my limited knowledge that you cannot reload single classes in a tomcat web application as a whole class

RE: dynamical class loading

2005-10-12 Thread Allistair Crossley
Thrust me, when dynamically classloading, half of code breaks ^^ *rotfl* this has made my afternoon FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474

Continuing Frustration and Misery with Deployer

2005-10-07 Thread Allistair Crossley
Hi List, Honestly, I wish Tomcat web application deployment would be easier/smarter. To pre-empt certain list members from telling me it's my fault, I can assure you my WAR itself is totally 100% no doubts valid. Perhaps it is my method of deploying that is causing the issue, I don't know.

RE: Continuing Frustration and Misery with Deployer

2005-10-07 Thread Allistair Crossley
Subject: RE: Continuing Frustration and Misery with Deployer From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: Continuing Frustration and Misery with Deployer deploy: [deploy] OK - Deployed application at context path /ROOT So it's deployed OK. I suspect all that means

RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-07 Thread Allistair Crossley
Hi, looks like jk is using commons logging, you'll have better success using a log4j or commons-logging properties configuration to set the threshold to ERROR. you may be able to do that in jk's config files too, i am sure there is an error level setting. check out the jk docs. Allistair.

RE: Continuing Frustration and Misery with Deployer

2005-10-07 Thread Allistair Crossley
Hi, The thing is, I do not wish to execute directly from the WAR as that would be inefficient. If you only have classes (as opposed to resource files) I don't think it will make a difference. If you do have other resources in there, then yes, expanding the war would probably be

[OT] RE: Flexible way of defining application variables in text format?

2005-09-27 Thread Allistair Crossley
Hi, Just enter your variables into a text file called abc.properties with name/value pairs, e.g var1=val1 var2=val2 Although these will not automatically appear in application scope. You will need to write a tiny Servlet that you configure in web.xml, pass the filename as a servlet

RE: Flexible way of defining application variables in text format?

2005-09-27 Thread Allistair Crossley
To make this easier in the presentation tier, you would probably want to make this method a static member of some class (if using scriplet), or a tag if attempting a non-scripted presentation tier (recommended). Allistair. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-27 Thread Allistair Crossley
Dave, If it's working via a solution you've configured, and you are not writing a specification of how things will work, why do you keep asking this question? With best intentions, Allistair. -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: 27 September 2005

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Allistair Crossley
You'll almost likely find that the reload via Ant does not free up all resources and so each time you perform a reload you'll be leaking some memory resulting in OOME after a week. 3 things to do; Get a profiler to see where you may be losing memory. Ensure no resource/references are held

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Allistair Crossley
] Sent: 20 September 2005 15:08 To: Tomcat Users List Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 3 things to do; Get a profiler to see where

RE: Order of WebApp Loading

2005-09-16 Thread Allistair Crossley
Hi, Create a servlet that is shared by all your web applications, perhaps use common/classes (or shared/classes - not sure which), and configure it to be a load-on-startup servlet in each web app's web.xml. your servlet can hook into your db startup code, or not bother if already started.

RE: Order of WebApp Loading

2005-09-16 Thread Allistair Crossley
run your dependent web app in it's own tomcat? -Original Message- From: Peter Menzel [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 15:55 To: Tomcat Users List Subject: Re: Order of WebApp Loading I see, if i can't count on the order of loading, I tried something other: I

RE: Problem making my servlet the default servlet (instead of ROOT)

2005-09-15 Thread Allistair Crossley
Hi, To make this URL work http://localhost/cart.faces - error 404 You need to just define your context as path= (although I use path=/ROOT with no problem). You URI mappings for JK would need to include (if no other wildcard mapping exists) /*.faces=ajp13 to ensure traffic with faces

RE: Virtual Hosts

2005-09-15 Thread Allistair Crossley
Simplistically ... Configure Host elements inside your Engine. Create a folder for each application within webapps. Set the Host docBase to each. Check out the online ref. -Original Message- From: Durfee, Bernard [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 17:07 To:

RE: Where to put context.xml?

2005-09-13 Thread Allistair Crossley
Nearly. Rename your file ROOT.xml and a path of /ROOT and you're away. The other alternative is create in your web application folder META-INF/context.xml Allistair -Original Message- From: Michael Lai [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 10:07 To:

RE: Where to put context.xml?

2005-09-13 Thread Allistair Crossley
Means a folder at /home/tomcat/applications/ROOT/META-INF/context.xml applications -Original Message- From: Michael Lai [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 10:21 To: Tomcat Users List Subject: Re: Where to put context.xml? Allistair Crossley wrote: Nearly

RE: problem with tomcat manager's deploy command

2005-09-13 Thread Allistair Crossley
Hi, I had the same trouble with undeploy, residual JARs in WEB-INF/lib which then totally screwed up any chance of redeploying. So another stop Tomcat, delete manually, deploy. I'd be interested to learn if there is anything that can be done too ... Allistair. -Original Message-

RE: Where to put context.xml?

2005-09-13 Thread Allistair Crossley
[mailto:[EMAIL PROTECTED] Sent: 13 September 2005 14:25 To: Tomcat Users List Subject: RE: Where to put context.xml? From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Where to put context.xml? Context path=/ROOT docBase=/home/tomcat/applications/ debug=0

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair. -Original Message- From: Vsevolod (Simon) Ilyushchenko [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 16:36 To: Tomcat Users

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
the standard way. Allistair. -Original Message- From: Vsevolod (Simon) Ilyushchenko [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 17:01 To: Tomcat Users List Subject: Re: Different JDBC sources? Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers

RE: Asking Again: What's the best way to mix html jsp

2005-09-12 Thread Allistair Crossley
Hi, It works just as great keeping your web application a self-contained unit, you can still serve HTML from IIS if you really want by setting the document root for the site, or using virtual folders. you'd also for absolute certainty put an exlusion mask in uriworkers.properties for static

RE: Asking again: Final questions: Default pages

2005-09-12 Thread Allistair Crossley
Hi, Just don't bother putting the domain in the mapping from IIS to Tomcat, e.g /*.jsp=ajp13 would capture both domain requests and forward to Tomcat. Allistair. -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: 12 September 2005 17:03 To: 'Tomcat Users List'

RE: Asking again: Final questions: Default pages

2005-09-12 Thread Allistair Crossley
name out of the url for the default servlet? Thanks - dave -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 10:07 AM To: Tomcat Users List Subject: RE: Asking again: Final questions: Default pages Hi, Just don't bother

RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread Allistair Crossley
if your uriworkermap.properties file contains /servlet-examples/*=ajp13w !/servlet-examples/*.jpeg=ajp13w then why are you expecting http://localhost/jsp-examples/index.html to work? For that, you'd need to add /jsp-examples/*=ajp13w (and restart IIS) Allistair. -Original

RE: where to place the /META-INF/context.xml file?

2005-09-09 Thread Allistair Crossley
Hi, The META-INF/context.xml is one way in which a *web application context* can be configured, not Tomcat itself per se, although it is an instruction on behalf of the web application *to* Tomcat about what *it* needs Tomcat to setup for itself, e.g database pools, environment vars or

RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread Allistair Crossley
: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 09, 2005 1:57 AM To: Tomcat Users List Subject: RE: Desperate: trying to get Tomcat working through IIS if your uriworkermap.properties file contains /servlet-examples/*=ajp13w !/servlet-examples/*.jpeg=ajp13w then why

RE: IIS6 - ASP.Net - JK - TC5 - tomcatAuthentication=false: user auth not getting passed?

2005-09-07 Thread Allistair Crossley
Hi, You probably need to ensure that the IIS virtual directory for the jakarta dll has Directory Security set to Windows Integrated? Allistair. -Original Message- From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: 07 September 2005 01:03 To: Tomcat Users List; [EMAIL PROTECTED]

Different behaviour for log4j configuration from common/classes and WEb-INF/classes

2005-09-07 Thread Allistair Crossley
Hi, We've recently noticed that our log4j configuration logs are pretty empty. I decided I must have changed something that ruptured the configuration, so with a brand new installation of Tomcat 5.5.11 and a basic log4j config file (shown below) I set about testing what was happening.

Undeploy leaves residual files

2005-08-26 Thread Allistair Crossley
Hi, I've noticed that undeploy of my web applications that the ROOT folder is left behind as follows; ROOT WEB-INF classes log4j.properties lib ehcache.jar struts.jar The web application has a ContextListener that calls LogManager shutdowns and

RE: upgrade to 5

2005-08-26 Thread Allistair Crossley
Hi there, Of course you can, you just need to be aware of what elements of Tomcat you need to configure, e.g JNDI resources and so on and then lookup the way you do that in Tomcat 5. It's not a *far* cry from Tomcat 3/4, you still use server.xml for a bunch of stuff, but it's recommended that

RE: upgrade to 5

2005-08-26 Thread Allistair Crossley
sure I have plenty of work cut out for me :) Off I go - Original Message - From: Allistair Crossley [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, August 26, 2005 11:48 AM Subject: RE: upgrade to 5 Hi there, Of course you can

RE: system.property in web.xml

2005-08-25 Thread Allistair Crossley
Hi, This is not mandated by the Servlet specification. What you *could* do is write a servlet that is mapped in web.xml and set init parameters for that servlet. Also set the load-on-startup to 1. Then in the servlet init method you can extract the init parametes and call System.setProperty

Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
Hi, I've decided to try out the Deployer tool for the first time to see if it makes like a little easier for deployments to our test servers. I've used the 5.5.11 Alpha Deployer as I noted some threads indicating a problem with 5.5.9's version. I've come across the following when running

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
Subject: Re: Client Deployer 5.5.11 NullPointerException On 8/25/05, Allistair Crossley [EMAIL PROTECTED] wrote: Hi, I've decided to try out the Deployer tool for the first time to see if it makes like a little easier for deployments to our test servers. I've used the 5.5.11 Alpha

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
; } -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 25 August 2005 13:05 To: Tomcat Users List Subject: Re: Client Deployer 5.5.11 NullPointerException On 8/25/05, Allistair Crossley [EMAIL PROTECTED] wrote: Hi, No I don't think that's it, both

RE: jndi question

2005-08-25 Thread Allistair Crossley
, web.xml, context.xml (that i placed in my web/META-INF folder), and the class I'm using to make the connection. Thanks again to everyone who has helped me so far. sean Allistair Crossley wrote: Hi, He isn't using that method of configuration, that's just 1 option

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
, Allistair. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 25 August 2005 14:55 To: Tomcat Users List Subject: Re: Client Deployer 5.5.11 NullPointerException On 8/25/05, Allistair Crossley [EMAIL PROTECTED] wrote: Hi, I'd really love to I assure you

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
Well that's really unexpected. The only other 2 differences are perhaps that I am on Windows, and that I did this with the 5.5.11-alpha download from the site. I can't think of anything else if you say that copying the JDT jar should work. It simply doesn't here and I have tested this with pure

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
PROTECTED] Sent: 25 August 2005 16:56 To: Tomcat Users List Subject: Re: Client Deployer 5.5.11 NullPointerException Am Donnerstag, 25. August 2005 17:03 schrieb Allistair Crossley: Well that's really unexpected. The only other 2 differences are perhaps that I am on Windows, and that I

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
Donnerstag, 25. August 2005 17:57 schrieb Allistair Crossley: Thanks, that's good to know, it must be something to do with my environment. Are you saying then that you did not have to copy any JDT jars into your deployer? No, I didn't have to copy any jars since ant uses sun's javac

RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI and Connection Pooling?

2005-08-24 Thread Allistair Crossley
?? Many thanks for your help with this. Best Regards, Ian -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 16:05 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server usin g

RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI and Connection Pooling?

2005-08-24 Thread Allistair Crossley
Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 16:05 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server usin g JNDI? Hi Wade, Can you perhaps resend the configuration files server.xml

RE: Tomcat 5.5.9 missing jars ?

2005-08-24 Thread Allistair Crossley
I don't think that's shipped with Tomcat 5.5.9. What is the error you are getting? Are you running your own web applications yet or just testing the default ROOT webapp? Allistair. -Original Message- From: Srinath Narasimhan [mailto:[EMAIL PROTECTED] Sent: 24 August 2005 14:29 To:

RE: Tomcat 5.5.9 missing jars ?

2005-08-24 Thread Allistair Crossley
. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 9:29 AM To: Tomcat Users List Subject: RE: Tomcat 5.5.9 missing jars ? I don't think that's shipped with Tomcat 5.5.9. What is the error you are getting? Are you running your own web

RE: how to update tomcat?

2005-08-24 Thread Allistair Crossley
Hi, Not sure if there's a migration guide, but roughly 1. Download Tomcat 5.0.x or 5.5.x 2. Read the configuration guide for those parts you've configured in 4.1 to see how to do it in 5.0.x/5.5.x 3. Move your webapp WAR to the new webapps, make configuration changes 4. Test. Your webapp

RE: Deploying war in another directory

2005-08-24 Thread Allistair Crossley
you can change the appBase attribute per Host but I am not aware of whether you can mix based on webapp name. Allistair. -Original Message- From: XYZ [mailto:[EMAIL PROTECTED] Sent: 24 August 2005 15:51 To: tomcat-user@jakarta.apache.org Subject: Deploying war in another directory

RE: newbie with a short question

2005-08-24 Thread Allistair Crossley
Hi, I did this the other day with a bat file. First I cause an open/save prompt with response.addHeader(Content-Disposition, attachment; filename=somebat.bat); Then I use the response.getOutputStream() and stream the bat file down it. This requires of course that you get an inputstream to

RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server usin g JNDI?

2005-08-23 Thread Allistair Crossley
()) ; } == -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 11 August 2005 12:10 To: Tomcat Users List Subject: RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server

RE: logging tomcat 5.5

2005-08-23 Thread Allistair Crossley
actually you don't *have* to use log4j, since 5.5.8/9 tomcat has shipped with a customised jdk logging configuration (juli) that sets up a localhost log for you out of the box -Original Message- From: Alain Gaeremynck [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 16:09 To: Tomcat

RE: jndi question

2005-08-23 Thread Allistair Crossley
Hi, The documentation says; Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/EmployeeDB); However, we use; try { Context ctx = new InitialContext(); dataSource = (DataSource)

RE: jndi question

2005-08-23 Thread Allistair Crossley
16:41 To: Tomcat Users List Subject: Re: jndi question no, that didn't help. thanks though. could this maybe be a class problem? am i using the wrong jar files? i can list the files i'm using if anyone thinks it might be the problem Allistair Crossley wrote: Hi

RE: jndi question

2005-08-23 Thread Allistair Crossley
To: Tomcat Users List Subject: Re: jndi question thank you, i will Allistair Crossley wrote: If you could please send 1. server.xml 2. web.xml 3. context.xml or yourwebapp.xml 4. list of files in common/lib 5. list of files in yourwebapp/WEB-INF/lib I'd be happy to see if I

RE: jndi question

2005-08-23 Thread Allistair Crossley
Hi, He isn't using that method of configuration, that's just 1 option of 3. He is nesting his Context definition within the server.xml Host element. Although this is now scorned, it's still valid. The 2 other methods are contextname.xml as you say, and also META-INF/context.xml within the

RE: Java 1.4.2_08 and up breaks Jstl

2005-08-22 Thread Allistair Crossley
Ensure that your class members all have getters, since person.language.localeName will call person.getLanguage().getLocaleName() Allistair. -Original Message- From: Martyn Hiemstra [mailto:[EMAIL PROTECTED] Sent: 22 August 2005 09:55 To: Tomcat Users List Subject: Re: Java

Deploying ROOT.war indicates missing application web.xml

2005-08-22 Thread Allistair Crossley
Hi Everyone, Just been deploying ROOT.war into webapps and it's failing to explode. The logs indicate; INFO: Deploying web application archive ROOT.war 22-Aug-2005 09:46:44 org.apache.catalina.startup.ContextConfig applicationWebConfig INFO: Missing application web.xml, using defaults only

RE: Java 1.4.2_08 and up breaks Jstl

2005-08-22 Thread Allistair Crossley
If you do have com.jatse.api.User.getLanguage() then the problem is that language is null. Test with c:if test=${empty person.language} language is null /c:if Allistair. -Original Message- From: Allistair Crossley Sent: 22 August 2005 10:19 To: Tomcat Users List Subject: RE

RE: Deploying ROOT.war indicates missing application web.xml

2005-08-22 Thread Allistair Crossley
, Allistair. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 22 August 2005 10:56 To: Tomcat Users List Subject: Re: Deploying ROOT.war indicates missing application web.xml On 8/22/05, Allistair Crossley [EMAIL PROTECTED] wrote: Hi Everyone, Just been

RE: Deploying ROOT.war indicates missing application web.xml

2005-08-22 Thread Allistair Crossley
. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 22 August 2005 11:32 To: Tomcat Users List Subject: Re: Deploying ROOT.war indicates missing application web.xml On 8/22/05, Allistair Crossley [EMAIL PROTECTED] wrote: Hi, Just to reconfirm, and also to take

RE: Deploying ROOT.war indicates missing application web.xml

2005-08-22 Thread Allistair Crossley
, Allistair. -Original Message- From: Allistair Crossley Sent: 22 August 2005 11:48 To: Tomcat Users List Subject: RE: Deploying ROOT.war indicates missing application web.xml Hi, Yes, the default ROOT.war does appear to work in the way I have been trying to deploy my own

RE: Deploying ROOT.war indicates missing application web.xml

2005-08-22 Thread Allistair Crossley
? http://ant.apache.org/faq.html#winzip-lies Best regards Robert -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 22 August 2005 11:59 To: Tomcat Users List Subject: RE: Deploying ROOT.war indicates missing application web.xml Hi, OK, I've found

RE: tomcat 5.5.9 not recompiling JSPs

2005-08-22 Thread Allistair Crossley
compiled pages are just classes, and so long as they are mapped correctly in the web.xml you'll be ok. -Original Message- From: Paul Singleton [mailto:[EMAIL PROTECTED] Sent: 22 August 2005 15:13 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: tomcat 5.5.9 not recompiling

RE: Log4j writing to the same log file for different webapps

2005-08-18 Thread Allistair Crossley
shouldn't that be log4j.logger.voteLogger=DEBUG, vote ?? else where will it get voteLogger from? -Original Message- From: Derek Merren [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 15:42 To: tomcat-user@jakarta.apache.org Subject: Log4j writing to the same log file for different

RE: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Allistair Crossley
we used to just schedule updates and let all our staff know there would be a small amount of downtime (for our intranet) but you can't do this on external production servers, so you need to go with either load balancing/clustering that allows you to close a node down *while also* letting

load balancing 2 tomcats on 1 machine question

2005-08-18 Thread Allistair Crossley
Hi, I thought I had this sussed but it seems I haven't :( 2 tomcats, 1 machine, JK to balance with stick sessions. The following configuration works in that JK routes requests to both the tomcats and so on. The issue is that if I look in the access logs for each tomcat I can see that 1

RE: load balancing 2 tomcats on 1 machine question

2005-08-18 Thread Allistair Crossley
Allistair Crossley wrote: Hi, I thought I had this sussed but it seems I haven't :( 2 tomcats, 1 machine, JK to balance with stick sessions. The following configuration works in that JK routes requests to both the tomcats and so on. Did you set the jvmRoute=tomcat1 inside

RE: tomcat connect to IIs - Upload problem

2005-08-15 Thread Allistair Crossley
Hi, What is the error that you receive when uploading 50kb? I know there was previously a bug with earlier versions of the now unsupported JK2 connector. If that's what you are using then you should upgrade to the latest JK 1.2.x connector. Allistair. -Original Message-

RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
Really, this has been discussed to death on this mailing list. The 5.5 logging page for a start gives you instructions for setting logging up. Also, I have a blog at www.adcworks.com/blog that touches on 5.5 configuration and logging. Allistair. -Original Message- From: Robert Abbate

RE: Out of memory

2005-08-12 Thread Allistair Crossley
Hi, You can modify the memory settings for the windows service also in the service.bat file itself. I've been known to uninstall the service, modify the bat file and then service install again. I don't like using the binary version so that should work for you. Secondly, OOMEs should be

RE: Out of memory

2005-08-12 Thread Allistair Crossley
Oh yes :) -Original Message- From: Wolfgang Hackl [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 09:24 To: Tomcat Users List Subject: RE: Out of memory You can modify the memory settings for the windows service also in the service.bat file itself. I've been known to

RE: Tomcat W3C Access Log

2005-08-12 Thread Allistair Crossley
Hi, Just use the Access Log Value with the pattern you need. You can see the built-in patterns or define your own one. Check out the docs http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html Cheers, Allistair. -Original Message- From: news [mailto:[EMAIL PROTECTED]

RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
: Robert Abbate [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 01:37 To: Allistair Crossley Subject: RE: Tomcat 5.5 upgrade + logging problems I appreciate your response, but I can assure you there are many out there which are not able to get this going EVEN after following the scant

RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
within the web application itself which is another example. -- end -- -Original Message- From: Allistair Crossley Sent: 12 August 2005 13:57 To: tomcat-user@jakarta.apache.org Cc: Robert Abbate Subject: RE: Tomcat 5.5 upgrade + logging problems Hi Robert, The fact

RE: Out of memory

2005-08-12 Thread Allistair Crossley
a development error like say forgetting to close an object something everyone on the list has done it is always better to learn of errors as early as possible so you do not carry it over to other apps. A lesson I have learned the hard way. Allistair Crossley wrote: Oh yes

RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Allistair Crossley
Can you post the JSP directives, and the scriplet that calls log4j? Also, you have been given a line number 39 .. can you work out which line this is in the work directory. Allistair. -Original Message- From: Gary Zhu [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 16:17 To: Tomcat

RE: WEB-INF/lib/myjar.jar doesn't contain file xyz...

2005-08-12 Thread Allistair Crossley
Can you post the full exception stack? -Original Message- From: t.n.a. [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 16:19 To: tomcat-user@jakarta.apache.org Subject: WEB-INF/lib/myjar.jar doesn't contain file xyz... Tomcat (5.5) seems reluctant to load a .jar file from the

RE: Problems with context

2005-08-12 Thread Allistair Crossley
And what is the error you are getting? 404? 500? Exception? What? Allistair. -Original Message- From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 08:54 To: Tomcat Users List Subject: Problems with context Hi. I just has beginning to use the Tomcat, for

RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Allistair Crossley
logger = org.apache.log4j.Logger.getLogger(agent_report_all_in_jsp.class); % Gary -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: August 12, 2005 11:20 AM To: Tomcat Users List Subject: RE: Cannot compile jsp pages with log4j statements

RE: Virtual Host Config Question

2005-08-12 Thread Allistair Crossley
Hi, Not sure about this one. How are you routing requests to Tomcat? Are you using the JK connector with a mapping of /*.do? Do you allow image to be handled by Apache/IIS or is Tomcat doing it? You may need to ensure your static resource uris like images reference the context name, e.g

RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Allistair Crossley
- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: August 12, 2005 11:46 AM To: Tomcat Users List Subject: RE: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9 I think Jon maybe onto something ... to use agent_report_all_in_jsp.class your JSP would need

RE: Listening on multiple ips

2005-08-12 Thread Allistair Crossley
In the time it took you to write this email you could have tested this!! ;o) Looks reasonable so long as you want to connect direct to Tomcat on port 80 for each IP ... try it out and get back to us. Allistair. -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent:

RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI?

2005-08-11 Thread Allistair Crossley
Hi, Can you please send more information, such as error messages, stdout logging and the configuration for your pool. Cheers, Allistair. -Original Message- From: Wylie, Ian [mailto:[EMAIL PROTECTED] Sent: 11 August 2005 10:28 To: Tomcat Users List Subject: RE: Has anyone used

RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI?

2005-08-11 Thread Allistair Crossley
(Unknown Source) 10-Aug-2005 15:30:09 org.apache.catalina.core.ApplicationContext log ERROR MESSAGE END = -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 11 August 2005 10:38 To: Tomcat Users List

RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI?

2005-08-11 Thread Allistair Crossley
the webappname.xml I get the same error. Any more ideas? Thanks, Ian -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 11 August 2005 11:53 To: Tomcat Users List Subject: RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI

RE: Easy EL question

2005-08-08 Thread Allistair Crossley
you use .key or .value, e.g item.value['key'] item.key Allistair -Original Message- From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Sent: 08 August 2005 10:34 To: Tomcat Users List Subject: Easy EL question Hello ! I'm still having problem with all the different

RE: Easy EL question

2005-08-08 Thread Allistair Crossley
with it ... On 8/8/05, Allistair Crossley [EMAIL PROTECTED] wrote: you use .key or .value, e.g item.value['key'] item.key Allistair -Original Message- From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Sent: 08 August 2005 10:34 To: Tomcat Users List Subject: Easy EL

Blog: JK1.2 load balancing as solution to 100% uptime

2005-08-04 Thread Allistair Crossley
Hi Chaps, If anyone is interested, I blogged last night on my experience setting up 2 tomcats on 1 server and then load balancing them with JK 1.2, and tested that bringing 1 down, and then back up did not lose any requests. This for my web application is an ideal way to avoid downtime

RE: Blog: JK1.2 load balancing as solution to 100% uptime

2005-08-04 Thread Allistair Crossley
as solution to 100% uptime Allistair Crossley wrote: Hi Chaps, If anyone is interested, I blogged last night on my experience setting up ... It would be great if you provide a link to your blog :) Regards, Mladen

RE: Upgrading from 5.0.28 to 5.5.9?

2005-08-03 Thread Allistair Crossley
Yes, some of which are pointed out in my blog at www.adcworks.com/blog -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 22:44 To: Tomcat Users List Subject: Upgrading from 5.0.28 to 5.5.9? Anything one should be aware of when moving from

RE: How to set auto-commit to false on a Tomcat Connection-Pool?

2005-08-02 Thread Allistair Crossley
I found this on the web for Struts using org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses. Therefore perhaps you can try defaultAutoCommit instead. data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource set-property property=driverClassName

RE: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days

2005-08-02 Thread Allistair Crossley
Hi, Hanging, memory up 50%, sounds very much like an OutOfMemoryException to me. I know from experience that Tomcat can hang with no memory and not log to stdout either (although most of the time it does). Have you profiled your application under a load test? Cheers, Allistair.

RE: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days

2005-08-02 Thread Allistair Crossley
flash remoting connector) with some jdbc (mysql) so i guess that any one of these (and my code) could be the culprit. I'll look into each of these individually and see if they could be causing the problem. thanks. martin Allistair Crossley wrote: Hi, Hanging, memory up 50

RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more explicitly. Allistair. Per-webapp logging == 1. Add log4j's jar to both your webapp's WEB-INF/lib folders 2. Add log4j.properties to both your

RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 8:31 AM To: Tomcat Users List Subject: RE: Logging With Tomcat 5.5 Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more

RE: Cannot create JDBC driver of class - help!!

2005-08-01 Thread Allistair Crossley
Is Context not supposed to be within a Host element? You also have a lowercase c in context rather than Context. You also will want jdbc/ before the name for the datasource. In fact, I think you need to read the manual (I am assuming Tomcat 5.0, otherwise look at your version).

RE: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Allistair Crossley
Hi, 1. Check your JSP imports the c tag library 2. Check your web.xml schema is for J2EE 2.4 web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee

RE: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Allistair Crossley
10:00 To: Tomcat Users List Subject: RE: tomcat 5.5.9, JSP, EL evaluation Hi Allistair, Now the definition of the taglibs in the web.xml seems to be wrong. Could you provide me an example? Thx -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent

Requests that are not handled by ROOT

2005-07-26 Thread Allistair Crossley
Hi, Mind's gone a little blank, should know this but our webapp has a setup such that a filter maps /* requests and handles them. However, Tomcat is preventing requests that do not match /abc with a 404 I think because it thinks abc is another web application if it has /abc/def E.g

RE: Requests that are not handled by ROOT

2005-07-26 Thread Allistair Crossley
List' Subject: RE: Requests that are not handled by ROOT Try filter map with * instead of /* Regards Guru -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 11:36 To: tomcat-user@jakarta.apache.org Subject: Requests that are not handled

RE: Requests that are not handled by ROOT

2005-07-26 Thread Allistair Crossley
My bad. It is actually coming into the web application afterall with /*. Cheers! -Original Message- From: Allistair Crossley Sent: 26 July 2005 11:46 To: Tomcat Users List Subject: RE: Requests that are not handled by ROOT According to the spec /* is everything in the web

  1   2   3   4   5   6   7   >