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 --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ---

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 loa

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

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
2005 17:03 > To: Tomcat Users List > Subject: RE: Continuing Frustration and Misery with Deployer > > > > From: Allistair Crossley [mailto:[EMAIL PROTECTED] > > Subject: Continuing Frustration and Misery with Deployer > > > > deploy: > >[deploy]

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. I

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: 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 P

[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 parameter

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

2005-09-20 Thread Allistair Crossley
[EMAIL PROTECTED] > 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 > &

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 onto

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 oth

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. Alli

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: tomca

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 e

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
ut it's nevertheless 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

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: Where to put context.xml?

2005-09-13 Thread Allistair Crossley
; From: Caldarale, Charles R [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? > > >

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
> -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. Rename your file ROOT.xml and a path of /ROOT and >

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: tomcat-user@jakart

RE: Asking again: Final questions: Default pages

2005-09-12 Thread Allistair Crossley
.windward.net/stroe/cart.jsp. Is there any way > to get the > servlet name out of the url for the "default" servlet? > > Thanks - dave > > > -Original Message- > From: Allistair Crossley [mailto:[EMAIL PROTECTED] > Sent: Monday, September 12, 2005

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 Lis

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 typ

RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread Allistair Crossley
deas? > > Thanks - dave > > David Thielen > 303-499-2544 > www.windwardreports.com > > -Original Message- > From: Allistair Crossley [mailto:[EMAIL PROTECTED] > Sent: Friday, September 09, 2005 1:57 AM > To: Tomcat Users List > Subject: RE: Desperate:

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 whatever

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 Message--

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. Before

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]

RE: upgrade to 5

2005-08-26 Thread Allistair Crossley
7;s somewhat of a relief, although I'm sure I have > plenty of work > cut out for me :) > > Off I go > > - Original Message - > From: "Allistair Crossley" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Friday, August

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 y

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 Introspector.flush

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
ployer 5.5.11 NullPointerException > > > Am 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 > >

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
ilto:[EMAIL 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

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
is appreciated, 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]&g

RE: jndi question

2005-08-25 Thread Allistair Crossley
t.JspServlet.serviceJspFile(JspServlet > .java:291) > > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > I have enclosed my server.xml, web.xm

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
// Log ? // FIXME: log } return compiler; } > -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 > > &

RE: Client Deployer 5.5.11 NullPointerException

2005-08-25 Thread Allistair Crossley
lPointerException > > > 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. > > &

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: 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 for

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: 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 direct

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 *shoul

RE: Tomcat 5.5.9 missing jars ?

2005-08-24 Thread Allistair Crossley
does the > default java > namespace in the JNDI work ? > > Srinath. > > > > -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 ? &g

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 > T

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

2005-08-24 Thread Allistair Crossley
automatically > used Cnnection > Pooling with a datasource?? > > 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: Tomca

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

2005-08-24 Thread Allistair Crossley
ction Pooling working, or is > there no need in > Tomcat 5.5 - In aother words does Tomcat 5.5 automatically > used Cnnection > Pooling with a datasource?? > > Many thanks for your help with this. > > Best Regards, > > Ian > > > -Original Message-

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 webap

RE: jndi question

2005-08-23 Thread Allistair Crossley
> 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 > &g

RE: jndi question

2005-08-23 Thread Allistair Crossley
ent: 23 August 2005 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

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) ctx.lookup("j

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: Tomca

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

2005-08-23 Thread Allistair Crossley
; > logger.error("ERROR - > > NamingException - Config error with > > JNDI and datasource." +ex); > > logger.error(ex.getMessage()); > > } > > catch (NullPointerException npE) { > >

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 recompi

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

2005-08-22 Thread Allistair Crossley
aveyou seen this article? > > 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: Deployi

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

2005-08-22 Thread Allistair Crossley
heers, 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

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

2005-08-22 Thread Allistair Crossley
expect no less. > -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:

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

2005-08-22 Thread Allistair Crossley
the web.xml??? (wild guess) Thanks, 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, Al

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 language is null Allistair. > -Original Message- > From: Allistair Crossley > Sent: 22 August 2005 10:19 > To: Tomcat Users List > Subject: RE: Java 1.4.2_08 and

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
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 1.4

RE: load balancing 2 tomcats on 1 machine question

2005-08-18 Thread Allistair Crossley
tomcats on 1 machine question > > > 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 t

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 sess

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 session

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 differe

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: 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: Cannot compile jsp pages with log4j statements -- Tomcat 5.5.9

2005-08-12 Thread Allistair Crossley
gs that JasperCompiler on Tomcat 4.1.30 does not have? > > Thanks. > > Gary > > -Original Message- > From: Allistair Crossley [mailto:[EMAIL PROTECTED] > Sent: August 12, 2005 11:46 AM > To: Tomcat Users List > Subject: RE: Cannot

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 src="/

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

2005-08-12 Thread Allistair Crossley
t;% > > response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 > > response.setHeader("Pragma","no-cache"); //HTTP 1.0 > > response.setDateHeader("Expires", 0); //prevents caching > at the proxy > > server > >

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

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 fro

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: Tomc

RE: Out of memory

2005-08-12 Thread Allistair Crossley
> probably > be better severed by debugging the app to see what is using > so much RAM. > > If you are making 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

RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
og Summary --- Note that this is virtual host logging, it is not webapp logging. For webapp logging you need to configure log4j within the web application itself which is another example. -- end -- > -Original Message- > From: Allistair Crossley > Sent: 12 August 2005 13:

RE: Tomcat 5.5 upgrade + logging problems

2005-08-12 Thread Allistair Crossley
ir. > -Original Message- > From: 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 th

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] 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 k

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 address

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 Abbat

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

2005-08-11 Thread Allistair Crossley
arned something that I was doing wrong, but > after removing 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 >

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

2005-08-11 Thread Allistair Crossley
ssConne > ction(Http11Protocol.java:744) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolT > cpEndpoint.jav > a:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Le > aderFollowerWo > rkerThread.java:80) > at > org.apache.tomcat.util.t

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: Easy EL question

2005-08-08 Thread Allistair Crossley
> > > > > Thanks a lot for the answer, but I would be even more thankfull if a > bit more explanation goes with it ... > > On 8/8/05, Allistair Crossley <[EMAIL PROTECTED]> wrote: > > you use .key or .value, e.g > > >

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 diffe

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

2005-08-04 Thread Allistair Crossley
log: JK1.2 load balancing 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

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 durin

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

RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
the log4j.properties file under the webapp? > > Thanks, > Scott > > > > > > > > -Original Message- > From: Allistair Crossley [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 02, 2005 8:31 AM > To: Tomcat Users List > Subject: RE: Logging With Tomcat

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 w

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

2005-08-02 Thread Allistair Crossley
> would be much appreciated > > the app itself uses spring, openamf (an open source 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 co

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. > -Origin

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. Allistair > -Original Message- > From: starki78 [mailto:[EMAIL PROTECTED] > Sent: 02 August 2005 09:38

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 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Allistair. > -Original Message- > From: Anish Tom Ashley [mailto:[EMAIL PROTECTED] > Sent: 01 August 2005 16:30 > To:

RE: Problem running tomcat with a CMS application

2005-07-26 Thread Allistair Crossley
agnolia > manages it's > own authorization through a repository. > > --David > > Allistair Crossley wrote: > > >from memory you need to ensure you add users and roles to > the tomcat-users.xml file? it's all in the manual. > > > > > > >

RE: Problem running tomcat with a CMS application

2005-07-26 Thread Allistair Crossley
from memory you need to ensure you add users and roles to the tomcat-users.xml file? it's all in the manual. > -Original Message- > From: Patrick saad [mailto:[EMAIL PROTECTED] > Sent: 26 July 2005 15:39 > To: tomcat-user@jakarta.apache.org > Subject: Problem running tomcat with a CMS app

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

RE: Requests that are not handled by ROOT

2005-07-26 Thread Allistair Crossley
gt; To: 'Tomcat Users 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:3

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 /index

  1   2   3   4   5   6   7   >