Re: environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
Right. The tomcat directory is available through the environment somehow, and is accessed as ${catalina.home}. From here I can get to the tomcat logs directory. What else is exposed this way? I am hoping that if the host and context are available in the logging message itself, then maybe they are/c

Re: Multiple JSESSIONIDs different subdomain

2009-09-18 Thread Theparanoidone Theparanoidone
Thank you; that's pretty close to what I am looking for (as it relates to mod-jk): As a follow up question, it seems safe to assume that tomcat will receive the JSESSIONID's in the appropriate order... however, in our struts application there appears to be a limited way to retrieve the session:

Re: environment variables for hostname and context name

2009-09-18 Thread Rainer Jung
On 19.09.2009 02:18, Chris Cheshire wrote: > I'm reconfiguring the logging for my tomcat installation (6.0.20) to > use logback (instead of log4j) for the server logging so I can split > out error messages on a per host basis. I see that "catalina.home" is > exposed as an environment var and usable

Re: Multiple JSESSIONIDs different subdomain

2009-09-18 Thread Rainer Jung
On 19.09.2009 01:29, Theparanoidone Theparanoidone wrote: > Greetings~ > > We have cookies in use on our site for the following domains: > > ..rootdomain.com > and > ..subdomain.rootdomain.com > > When visiting a portion of our site ".subdomain.rootdomain.com" ... ... two > cookies are returned

Re: environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
I forced that error specifically for this example. That's not the issue. That is an example of what I am trying to log, and it illustrates that the information I need is available at the logging level. On Fri, Sep 18, 2009 at 7:01 PM, Martin Gainty wrote: > > org.apache.jasper.JasperException: /

RE: environment variables for hostname and context name

2009-09-18 Thread Martin Gainty
org.apache.jasper.JasperException: /WEB-INF/jsp/login.jsp(17,2) Unterminated

Re: Security Constraint conflict

2009-09-18 Thread Bill Barker
"Christopher Schultz" wrote in message news:4ab3f5f1.5060...@christopherschultz.net... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Peter, > > On 9/18/2009 4:34 PM, Peter Holcomb wrote: >> Thanks for your response. I've read through the example in 13.7.2 of >> the spec > > Which versio

RE: Why "tomcat" didn't compile my jsp's

2009-09-18 Thread Martin Gainty
you could download the struts blank webapp and get that running in about an hour http://struts.apache.org/download.cgi david..chuck..chris.. mark.. pidster or i could walk you thru deployment on any version of tomcat Martin __ Verzicht und Vertrauli

RE: Why "tomcat" didn't compile my jsp's

2009-09-18 Thread Caldarale, Charles R
> From: Rafael Muneton [mailto:rafael_mune...@hotmail.com] > Subject: Why "tomcat" didn't compile my jsp's > > In my first steps I deployed my Hello.jsp into Tomcat using > the Tomcat Manager ??? The manager deploys webapps, not individual JSPs. What exactly did you do? > So I googled my probl

Re: Why "tomcat" didn't compile my jsp's

2009-09-18 Thread David Smith
Rafael Muneton wrote: > Hello everyone: > I’m learning the Struts framework and in my first Web Application, that > contains only a JSP with the classic Hello World! Message, I have some > problems. > > I’m using Windows XP SP2 as the OS. > Apache Tomcat 5.5 as the web server. > Ant 1.7.1 and

RE: Request Dumping Enabled but no logs

2009-09-18 Thread Caldarale, Charles R
> From: jithu mada [mailto:jithu.m...@gmail.com] > Subject: Request Dumping Enabled but no logs > > I am using the Tomcat 5.0.27 on AIX 5 . Tomcat 5.0.x has not been supported for a while now. > I have enabled Request Dumping in tomcat by adding following line > What happens if you spell "Valv

Why "tomcat" didn't compile my jsp's

2009-09-18 Thread Rafael Muneton
Hello everyone: I’m learning the Struts framework and in my first Web Application, that contains only a JSP with the classic Hello World! Message, I have some problems. I’m using Windows XP SP2 as the OS. Apache Tomcat 5.5 as the web server. Ant 1.7.1 and Java 1.6 SDK. In my first steps I de

Re: Security Constraint conflict

2009-09-18 Thread Tim Funk
My bad - I was quoting the servlet 3.0 spec (usually the headings align) I need to reread but it might be a bug. (I dont have the spec in front of me) but IIRC it said something to the effect of using the url + the HTTP method to get all applicable constraints. And then unioning them together.

environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
I'm reconfiguring the logging for my tomcat installation (6.0.20) to use logback (instead of log4j) for the server logging so I can split out error messages on a per host basis. I see that "catalina.home" is exposed as an environment var and usable in the logging configuration file - what about the

Multiple JSESSIONIDs different subdomain

2009-09-18 Thread Theparanoidone Theparanoidone
Greetings~ We have cookies in use on our site for the following domains: ..rootdomain.com and ..subdomain.rootdomain.com When visiting a portion of our site ".subdomain.rootdomain.com" ... ... two cookies are returned from the browser: Cookie: JSESSIONID=D90A613743A67B0B8EF3EBEAB7E16F28.routew

Re: tomcat6 + apache 2.2 mod_jk - Help

2009-09-18 Thread Rainer Jung
On 18.09.2009 19:29, Paul S wrote: > I have installed mod_jk 1.2.28 and have tomcat 6 installed on linux. > > i created worker.prop file under apache2. > > workers.properties > - > worker.list=wkr01 > worker.wkr01.type=ajp13 > worker.wkr01.host=localhost > worker.wkr01.port=8009

Request Dumping Enabled but no logs

2009-09-18 Thread jithu mada
Hi, I am using the Tomcat 5.0.27 on AIX 5 . I have enabled Request Dumping in tomcat by adding following line in conf/server.xml file. I restarted the server after adding the above line and accessed the Tomcat server but I don't see any log files for Request dumping. I am checking in the $CATAL

Re: Virtual host configuration - best practise?

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George, On 9/18/2009 3:15 PM, George Sexton wrote: > No. Use the host manager to deploy/undeploy virtual hosts on the fly. When > you re-start tomcat, have a program create the server.xml so that all of the > one's you deployed using the host manager

Re: Security Constraint conflict

2009-09-18 Thread Peter Holcomb
I was actually looking in the 3.0 spec (here: http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html) but I believe the same example is available in the 2.4 spec under 12.8.2. It's the example under "combining constraints". I can't figure out the unioning process other than maybe it's unio

Re: tomcat6 + apache 2.2 mod_jk - Help

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 9/18/2009 1:29 PM, Paul S wrote: > workers.properties > - > worker.list=wkr01 > worker.wkr01.type=ajp13 > worker.wkr01.host=localhost > worker.wkr01.port=8009 This looks okay. > redirectPort="8445" debug="1" /> Okay. > Ap

Re: Security Constraint conflict

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 9/18/2009 4:34 PM, Peter Holcomb wrote: > Thanks for your response. I've read through the example in 13.7.2 of > the spec Which version of the spec? I don't see a section 13.8 at all in either 2.4 or 2.5 of the spec. I see the heading "Com

Re: NullPointerException on Struts Action

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 9/18/2009 2:24 PM, Martin Gainty wrote: > chris ..struts-1.2.9 is only 3 years old BTW Fair enough, but it's been abandoned and replaced with 1.3.x, which does not have the DataSource stuff in it anymore (for good reason: app servers provi

Re: Security Constraint conflict

2009-09-18 Thread Peter Holcomb
By the way, this works as we expected in Websphere and WebLogic. On Fri, Sep 18, 2009 at 3:34 PM, Peter Holcomb wrote: > Tim, > > Thanks for your response.  I've read through the example in 13.7.2 of > the spec but I don't think I'm understanding how the union works. > According to my thought p

Re: Security Constraint conflict

2009-09-18 Thread Peter Holcomb
Tim, Thanks for your response. I've read through the example in 13.7.2 of the spec but I don't think I'm understanding how the union works. According to my thought process, the url patterns are: *.xhtml - access precluded /* PUT,DELETE,TRACE,OPTIONS - access precluded How does the unioning of

RE: NullPointerException on Struts Action

2009-09-18 Thread Julio César Chaves Fernández
mmm yes you're right I should post this on the struts forum but thanks... i'll check what you said about the right implementation. Thanks > Date: Fri, 18 Sep 2009 12:04:11 -0400 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: NullPointerException on Struts Acti

Re: Yet another swallowOutput question

2009-09-18 Thread Mark Thomas
Vinicius Carvalho wrote: > Hello there! I'm trying to redirect some legacy System.out calls in > our app to a different logger. Since tomcat's logging implementation > does not allow one to configure the maximum size of the catalina.out, > we are easily reaching gigabytes of space on that file. >

RE: Virtual host configuration - best practise?

2009-09-18 Thread George Sexton
> -Original Message- > From: hepabolu [mailto:hepab...@gmail.com] > Sent: Friday, September 18, 2009 1:06 PM > To: users@tomcat.apache.org > Subject: RE: Virtual host configuration - best practise? > > > > > George Sexton wrote: > > > > > > Another way of getting there is scripting com

RE: Virtual host configuration - best practise?

2009-09-18 Thread hepabolu
George Sexton wrote: > > > Another way of getting there is scripting commands to the Tomcat Host > Manager application. You can deploy the new hosts on the fly. It's pretty > straight forward. > > The downside to this approach, and probably JMX as well is that it doesn't > update server.xml a

Yet another swallowOutput question

2009-09-18 Thread Vinicius Carvalho
Hello there! I'm trying to redirect some legacy System.out calls in our app to a different logger. Since tomcat's logging implementation does not allow one to configure the maximum size of the catalina.out, we are easily reaching gigabytes of space on that file. I thought that by just adding:

RE: NullPointerException on Struts Action

2009-09-18 Thread Martin Gainty
be sure to populate user,password,DriverClass for DataSource with Database Parameters beforehand e.g. //web.xml Struts Examples Application action org.apache.struts.action.ActionServlet org.apache.struts.action.DATA_SOURCE org.apache.struts.util.GenericDataSourc

RE: errors in apache error_log

2009-09-18 Thread keeplearning
Oh sorry...completely skipped my mind. Caldarale, Charles R wrote: > >> From: keeplearning [mailto:p_sodh...@yahoo.com] >> Subject: errors in apache error_log >> >> I am running a test with Apache webserver. > > This is the Tomcat mailing list, not the one for httpd. > > -Chuck > > > THIS

RE: errors in apache error_log

2009-09-18 Thread Caldarale, Charles R
> From: keeplearning [mailto:p_sodh...@yahoo.com] > Subject: errors in apache error_log > > I am running a test with Apache webserver. This is the Tomcat mailing list, not the one for httpd. -Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus

errors in apache error_log

2009-09-18 Thread keeplearning
I am running a test with Apache webserver. When I have 500 users running, I start seeing following messages in error_log. I looked at top command and I have 2G memory available, CPU is around 50% and doesn't have any swapping going on. Here are the parameters in httpd.conf (earlier it was even low

tomcat6 + apache 2.2 mod_jk - Help

2009-09-18 Thread Paul S
I am having issues with mod_jk. I have installed mod_jk 1.2.28 and have tomcat 6 installed on linux. i created worker.prop file under apache2. workers.properties - worker.list=wkr01 worker.wkr01.type=ajp13 worker.wkr01.host=localhost worker.wkr01.port=8009 httpd.conf

RE: Virtual host configuration - best practise?

2009-09-18 Thread George Sexton
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Friday, September 18, 2009 11:12 AM > To: Tomcat Users List > Subject: Re: Virtual host configuration - best practise? > > hepabolu wrote: > > Hi, > > > > I need to create the following situation: > > - each cli

Re: Virtual host configuration - best practise?

2009-09-18 Thread Mark Thomas
hepabolu wrote: > Hi, > > I need to create the following situation: > - each client uses a war (all use the same war file) with configuration > files that are different for every client > - each client's configuration should be addressable by a different URL, e.g. > domainX, domainY > > So in To

Virtual host configuration - best practise?

2009-09-18 Thread hepabolu
Hi, I need to create the following situation: - each client uses a war (all use the same war file) with configuration files that are different for every client - each client's configuration should be addressable by a different URL, e.g. domainX, domainY So in Tomcat 5.5 I created a Host entry f

Re: Security Constraint conflict

2009-09-18 Thread Tim Funk
See 13.8.1 of the servlet spec. The result in is unioning all the constraints together for one that passes It might be easier to write a filter to implement the restriction that only GET/POST/HEAD is allowed. -Tim Peter Holcomb wrote: We have a situation where we recently introduced a new s

Security Constraint conflict

2009-09-18 Thread Peter Holcomb
We have a situation where we recently introduced a new security constraint into our configuration that has caused a conflict with our previous constraint. Here's our current configuration: Restrict access to XHTML pages Restrict access to XHTML pages *.xhtml With no roles

Re: Comet high CPU usages on IoEndpoint$Poller.run()

2009-09-18 Thread Filip Hanik - Dev Lists
if you whip up a simple war file, and let us have that with your server.xml, then we can reproduce it and figure it out Filip On 09/16/2009 08:33 PM, Hacking Bear wrote: But it seems not relate to my problem here, as I tried both ways. I also try to close the response writer in addition to clo

Re: NullPointerException on Struts Action

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, On 9/18/2009 9:44 AM, Julio César Chaves Fernández wrote: > Hi, i've been having a strange behavior with some struts apps deployed on > Oracle portal. Given that this is Struts running on Oracle, why not ask your question on the Struts list o

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sylvie, On 9/18/2009 8:35 AM, Sylvie Perrin wrote: > So, I change this property in the servlet test, by adding > JAVA_OPTS=-Dsun.jnu.encoding=UTF-8 [snip] > But my issue is still here, ie. the FileNotFoundException. I wonder if it has nothing to do

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alberto, On 9/18/2009 7:42 AM, atroiano wrote: > But seems to me that the old session non more exists at this point of the > request flow. Is this true? Correct: by the time you can detect a new session, the old session is totally gone. - -chris ---

Re: tomcat & url rewrite

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/17/2009 10:30 PM, WILLIAMer wrote: >> If you always start your URLs with a '/', then you shouldn't have a problem. > > Could you explain this Sentence to me? Uh... you should make sure all your URLs are absolute, not relative. IF you h

Re: Horizontal Cluster Session Persistence during Failover

2009-09-18 Thread Alexander Bacon
I ended up using Option 2, which ended up being very easily to implement. (http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-interceptor.html) The network admin had previously assured me that multicast packets were working properly between the two servers. Thank you for your help! -Alexand

RE: Maximum Number of processes Exceeded

2009-09-18 Thread George Sexton
Most likely, you're leaking connection handles or result sets. A common error is storing them on the session. When the session times out they are not necessarily garbage collected. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > Fro

NullPointerException on Struts Action

2009-09-18 Thread Julio César Chaves Fernández
Hi, i've been having a strange behavior with some struts apps deployed on Oracle portal. Lately, they're giving the 500 Internal Server Error and this output: 09/09/17 16:10:19 java.lang.NullPointerException 09/09/17 16:10:19 at org.apache.struts.action.Action.getDataSource(Action.java:53

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-18 Thread Sylvie Perrin
Christopher, Thank you for your help and see inline the results of the test you suggest. It shows that "sun.jnu.encoding" hasn't got the same value in standalone and servlet runs. So, I change this property in the servlet test, by adding JAVA_OPTS=-Dsun.jnu.encoding=UTF-8 in my Tomcat starting

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-09-18 Thread atroiano
Thanks to Mark and Chris for all suggestions. I thing that a will follow th Chris suggestion to re-architect my session. I was attracted by this piece of code in Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem lynckmeister Wed, 11 Feb 2009 06:32:43 -0800 public class SessionTimeout

Re: http error 404

2009-09-18 Thread Peter Crowther
2009/9/18 alim > [...] > Caused by: > org.springframework.transaction.CannotCreateTransactionException: > Could not open Hibernate Session for transaction; nested exception is > org.hibernate.exception.GenericJDBCException: Cannot open connection > Caused by: org.hibernate.exception.GenericJDBCEx

Re: http error 404

2009-09-18 Thread alim
hi peter, i ll try this way also, thanx cheers alim Peter Crowther wrote: > > 2009/9/18 alim > >> Jre 1.6 >> > > OK, so it's a JRE not a JDK? > > >> java.lang.NoClassDefFoundError: javax/mail/internet/AddressException >> > > That's your root cause - for some reason, your system can't

Re: http error 404

2009-09-18 Thread alim
Hi Mikolaj thanx for quick reply, i have downloaded library and copied to tomcat lib folder, now there is some other problem i think catalina is showing same error Sep 18, 2009 11:22:49 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Sep 18, 2009 11:22:49 AM org.apa

Re: http error 404

2009-09-18 Thread Peter Crowther
2009/9/18 alim > Jre 1.6 > OK, so it's a JRE not a JDK? > java.lang.NoClassDefFoundError: javax/mail/internet/AddressException > That's your root cause - for some reason, your system can't see at least some of the Javamail classes. My guess is that because you're running a JRE, Javamail isn'

Re: http error 404

2009-09-18 Thread Mikolaj Rydzewski
alim wrote: Sep 18, 2009 10:34:58 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creati

http error 404

2009-09-18 Thread alim
Hi, I have been trying to install itracker(it is an open source trouble ticket system available on www.itracker.org) for 1 week now but can't fix the problem. I am using the following tools Windows Vista 32-bit MySql 5.0.45 Tomcat 6.0.20 Jre 1.6 The problem is when i point browser to http://loc

Re: what does j_security_check do in clustering?

2009-09-18 Thread Mark Thomas
Rex Wang wrote: > 2009/9/17 Mark Thomas > >> Rex Wang wrote: >>> Dear Tomcat, >>> >>> I meet a problem when config a web project which using the form based >>> security in clustering. >> Clustering or load-balancing? Whether or not session replication is >> configured between your Tomcat instance