RE: JSESSIONID doesn't contain the port

2008-06-20 Thread Zsolt Koppany
Thank you everybody making comments to my original post. Our customer has two tomcats because one instance is the production version of our application and the second one is a test instance of the new version of the same application. Because of that the context-pathes are the same. I understand,

Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad
Hi All, I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and tomcat 5.5.23. After some hassle I was able to build mod_jk.so and did modify the httpd.conf to say the location of the .so and worksers.properties but when I tried to start apache it failed with the following error:

Tomcat 5.5 hanging locked thread

2008-06-20 Thread Olivier Fourel
Hello, I have a tomcat 5.5 server hanging in production mode. It seems we have threads that are never released and stay locked as shown in the extract below. I'm looking for help about tools or methods to identify what locks our threads. Our application log is ok, we tried to set it in trace

Re: JSESSIONID doesn't contain the port

2008-06-20 Thread Leon Rosenberg
ok, it that case all you need are just two virtual hosts. Leon On Fri, Jun 20, 2008 at 8:56 AM, Zsolt Koppany [EMAIL PROTECTED] wrote: Thank you everybody making comments to my original post. Our customer has two tomcats because one instance is the production version of our application and

Re: Problem Running mod_jk with apache2

2008-06-20 Thread Rainer Jung
Hi Junaid, Junaid Arshad wrote: Hi All, I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and tomcat 5.5.23. After some hassle I was able to build mod_jk.so and did modify the httpd.conf to say the location of the .so and worksers.properties but when I tried to start apache it failed

Re: JSESSIONID doesn't contain the port

2008-06-20 Thread Pid
Caldarale, Charles R wrote: From: Pid [mailto:[EMAIL PROTECTED] Subject: Re: JSESSIONID doesn't contain the port The problem is that the TC1 sets a value of JSESSIONID that does not exist in TC2. Go back and reread the original post. There's only one instance of Tomcat, but there are two

Re: Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad
Rainer Jung wrote: Hi Junaid, Junaid Arshad wrote: Hi All, I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and tomcat 5.5.23. After some hassle I was able to build mod_jk.so and did modify the httpd.conf to say the location of the .so and worksers.properties but when I tried to

Re: Problem Running mod_jk with apache2

2008-06-20 Thread Rainer Jung
Junaid Arshad wrote: Rainer Jung wrote: Junaid Arshad wrote: Hi All, I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and tomcat 5.5.23. After some hassle I was able to build mod_jk.so and did modify the httpd.conf to say the location of the .so and worksers.properties but when I

libs oracle and tomcat 5.5

2008-06-20 Thread reno . rkcrew
hello everyone, is anybody know why the oracle lib should be placed into the 'common/endorsed' folder to be seen by BIRT ? i put them into 'common/lib' and i had an sql error ... thanks fred - To start a new topic, e-mail:

Spring or Tomcat forgets the classpath?

2008-06-20 Thread DCVer
Hi all, I have strange problem. I am building standard web application (with Maven). The structure of the output WAR is as follows: WAR | - - META-INF | | - - ... | | - - WEB-INF | - - classes | | - - compiled_classes | | - - all_necessary_files (e.g.

Re: Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad
Thanks! I got this working. I guess the apxs2 that I installed using apt-get was for apache2.2. This solved the problem but I am getting errors as: /Invalid command 'logsJkLogFile', perhaps mis-spelled or defined by a module not included in the server configuration/ I guess there is a

Re: Spring or Tomcat forgets the classpath?

2008-06-20 Thread Youssef Mohammed
you have to add this instead /WEB-INF/classes/common.xml On Fri, Jun 20, 2008 at 1:38 PM, DCVer [EMAIL PROTECTED] wrote: Hi all, I have strange problem. I am building standard web application (with Maven). The structure of the output WAR is as follows: WAR | - - META-INF |

Re: Spring or Tomcat forgets the classpath?

2008-06-20 Thread Youssef Mohammed
and in your common.xml file you can import as many config files are you want. and here you can specify a class path resources eg. import resource=classpath:spring/repos.xml / import resource=classpath:spring/dbDatasource.xml / import resource=classpath:spring/jaxwsspring.xml /

Re: Problem Running mod_jk with apache2

2008-06-20 Thread Rainer Jung
Junaid Arshad wrote: This solved the problem but I am getting errors as: /Invalid command 'logsJkLogFile', perhaps mis-spelled or defined by a module not included in the server configuration/ See http://tomcat.apache.org/connectors-doc/reference/apache.html for the list of known

Re: Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad
Yes, that was true...:-) and I did corect it to make the two (apache and tomcat) run but when I tried to access the location specfied by JkMount i.e. a webpage etc. it was a 503 error: Service Temporarily Unavailable I checked both tomcat and apache WS, and, they were running good... do

Re: Problem Running mod_jk with apache2

2008-06-20 Thread Rainer Jung
Junaid Arshad wrote: Yes, that was true...:-) and I did corect it to make the two (apache and tomcat) run but when I tried to access the location specfied by JkMount i.e. a webpage etc. it was a 503 error: Service Temporarily Unavailable I checked both tomcat and apache WS, and, they were

Keep getting this error

2008-06-20 Thread Mathias P.W Nilsson
Don't know how to get rid of this :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Thread.java:619) Caused by:

very large catalina logfile...

2008-06-20 Thread Zaher Srour
Hi all, Am new to Tomcat, have the following problem: The size of the *catalina.-mm-dd.log* file became so large that the server free space (23 GB) was filled with it As you can see, a file of this size can't be opened to check the logged info. I couldn't find information about limiting

RE: Tomcat 5.5 hanging locked thread

2008-06-20 Thread Caldarale, Charles R
From: Olivier Fourel [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 hanging locked thread I have a tomcat 5.5 server hanging in production mode. It seems we have threads that are never released and stay locked as shown in the extract below. The threads you extracted look perfectly normal -

Re: mapping tomcat to ip address behind router

2008-06-20 Thread Eric Gichuhi
Hi, Try using a subdomain DNS eg myservice.mydomain.com that will resolve internally to http://192.168.0.54 (behind router) and externally to http://99.153.32.456(direct internet connection). The DNS Server should do the rest - basically forward all requests from behind the router to the given

Re: Keep getting this error

2008-06-20 Thread Youssef Mohammed
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111) It is in a spring classes filter , make sure your web app is configured correctly to use spring/jsf/jpa. you can also just comment that filter out from your web.xml. but you

Re: very large catalina logfile...

2008-06-20 Thread Youssef Mohammed
Zaher pasha .. try this http://www.unicon.net/node/604 On Fri, Jun 20, 2008 at 3:48 PM, Zaher Srour [EMAIL PROTECTED] wrote: Hi all, Am new to Tomcat, have the following problem: The size of the *catalina.-mm-dd.log* file became so large that the server free space (23 GB) was filled

Re: Problem Running mod_jk with apache2

2008-06-20 Thread André Warnier
Junaid Arshad wrote: Thanks! I got this working. I guess the apxs2 that I installed using apt-get was for apache2.2. This solved the problem but I am getting errors as: /Invalid command 'logsJkLogFile', perhaps mis-spelled or defined by a module not included in the server configuration/

RE: very large catalina logfile...

2008-06-20 Thread Caldarale, Charles R
From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: very large catalina logfile... Zaher pasha .. try this http://www.unicon.net/node/604 The OP stated he was using 5.5.17, so providing configuration for the defunct 5.0 Logger element isn't going to help. OP: what platform are

Re: AJP encryption

2008-06-20 Thread Rossen Raykov
Bill, The VPN and the ssh tunnels encrypt the traffic between the servers but anybody with enough access can listen on the interface and intercept the traffic. For example ngrep -d tun0 would revile all the communications over Open VPN. The encryption of the direct communications between the

Re: very large catalina logfile...

2008-06-20 Thread Zaher Srour
Am running a Java (5.0 update 6) web application on a MS server 2003 SE SP2. Thanks for you both for the quick reply. Zaher On Fri, Jun 20, 2008 at 3:03 PM, Youssef Mohammed [EMAIL PROTECTED] wrote: Zaher pasha .. try this http://www.unicon.net/node/604 On Fri, Jun 20, 2008 at 3:48 PM,

Re: very large catalina logfile...

2008-06-20 Thread Zaher Srour
Hi, Now I read the whole message :) I tried to open the file with UltraEdit32 and Notepad++ 4.8.5 .. The first gives am error, the other crashed. Zaher On Fri, Jun 20, 2008 at 3:33 PM, Zaher Srour [EMAIL PROTECTED] wrote: Am running a Java (5.0 update 6) web application on a MS server 2003 SE

RE: very large catalina logfile...

2008-06-20 Thread Caldarale, Charles R
From: Zaher Srour [mailto:[EMAIL PROTECTED] Subject: Re: very large catalina logfile... Am running a Java (5.0 update 6) web application on a MS server 2003 SE SP2. Try this: http://www.hhdsoftware.com/Products/home/hex-editor-free.html I haven't tried it with anything as big as 23 GB, but

Re: Changing roles on the fly

2008-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lyallex, Lyallex wrote: | The problem comes when a superuser wants to remove a role from a user | and that user may be logged in. | What I need to be able to do is to view all the currently active | sessions and log the relevant user out (by

Re: JSESSIONID doesn't contain the port

2008-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zsolt, Zsolt Koppany wrote: | Our customer has two tomcats because one instance is the production version | of our application and the second one is a test instance of the new version | of the same application. Because of that the context-pathes are

Re: JNDI realm strange problem(Tomcat 6.0.16)

2008-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kuman, Kumar Gaurav Srivastava wrote: | i have my realm configuration in server.xml, every thing is fine i can | login. but when i try to login the next morning it gives error | | SEVERE: Exception performing authentication |

Re: Logging contexts with multiple / in path attribute

2008-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, I know you've posted before, but could you remind us of your TC version? Jonathan Mast wrote: | Context path=/foo/bar | | Specifically, how do I reference this webapp in the logging.properties | file? For contexts with just a single

Re: JSESSIONID doesn't contain the port

2008-06-20 Thread Leon Rosenberg
On Fri, Jun 20, 2008 at 4:16 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zsolt, Zsolt Koppany wrote: | Our customer has two tomcats because one instance is the production version | of our application and the second one is a test instance

RE: Logging contexts with multiple / in path attribute

2008-06-20 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Logging contexts with multiple / in path attribute Does this really capture use of System.out and System.err? Cool! I didn't know that! Isn't that just a result of setting swallowOutput to true for the Context? - Chuck THIS

Re: very large catalina logfile...

2008-06-20 Thread Bruno Vilardo
If it was Linux or Unix, or could use the command split to split the file in small pieces so that you can read. Not so sure on windows env. Just my 2 cents... On Fri, Jun 20, 2008 at 10:55 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Zaher Srour [mailto:[EMAIL PROTECTED]

Re: Validation

2008-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emerson, emerson cargnin wrote: | I saw that in the server.xml web.xml validation is disabled. And with | the comment: | | Note: XML Schema validation will not work with Xerces 2.2 | | The thing is, I can't see any xerces library inside tomcat. I

Re: JSESSIONID doesn't contain the port

2008-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: | http://host:8000/theApp vs http://host:8080/theApp or whatever ports | he uses? :-) Oh, right. Duh! Yeah... I think he's kinda screwed. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment:

Re: very large catalina logfile...

2008-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno, Bruno Vilardo wrote: | If it was Linux or Unix, or could use the command split to split the file in | small pieces so that you can read. 'split' is a GNU utility (part of coreutils) which is not specific to GNU/Linux. There are windows

Re: very large catalina logfile...

2008-06-20 Thread Bruno Vilardo
Cris, Thanks a lot for the information. I will download the softwares and play around. Great tips are always welcome as well as great explanation.. Thanks a lot, Best Regards, Bruno On Fri, Jun 20, 2008 at 12:04 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED

Re: Tomcat 5.5 hanging locked thread

2008-06-20 Thread Olivier Fourel
The threads you extracted look perfectly normal - they're in the thread pool, waiting for requests to show up. You need to be looking at the other threads that may be stuck or looping somewhere else. If you have database connections, make sure those are functional and not all consumed by

RE: Tomcat 5.5 hanging locked thread

2008-06-20 Thread Peter Crowther
From: Olivier Fourel [mailto:[EMAIL PROTECTED] I have no other lock description in my thread dump. But you may still have stuck threads, for example waiting on database connections. Not all sources of waiting threads require a lock. - Peter

RE: Tomcat 5.5 hanging locked thread

2008-06-20 Thread Caldarale, Charles R
From: Olivier Fourel [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5 hanging locked thread i thought the locked keyword was indicating a lockedk thread as in tle lines below In order to do an Object.wait() call, the thread must first synchronize on (lock) the object of interest, so what

Mapping a file to a URL pattern on Tomcat?

2008-06-20 Thread Vinay Chilakamarri
Hi, I want to send a response(which is basically a file on the disk) to a specific URL pattern. While I know that we could do this using directives in Apache HTTPD, I am not sure how to do this on Tomcat. I could see that we can map Servlets to a URL pattern. Is there a way that we can map a

How to turn off Etag headers?

2008-06-20 Thread Dave Girardin
Group, I'm a Unix admin working on a Solaris 8 server running Tomcat 6.0.16. No other apps run on the server, for example, there is no Apache httpd running. I have been tasked with turning off Etag headers. Our security folks have supposedly identified this security vulnerability, note that is

Re: Logging for Dummies in Tomcat 5.5/6.0

2008-06-20 Thread Mark Thomas
André Warnier wrote: To attempt a summary of the discussions so far, it sems that there are two distinct groups : Tomcat developers, and Tomcat users, There might be two lists but I don't think it is quite that simple. The standard ASF definitions can be found here

RE: How to turn off Etag headers?

2008-06-20 Thread Caldarale, Charles R
From: Dave Girardin [mailto:[EMAIL PROTECTED] Subject: How to turn off Etag headers? Impact: Among the file attributes included in the header is the file inode number that is returned to a client. Although paranoia is often helpful when analyzing security risks, I think your assessment team

Getting Tomcat 6 to compile JSP with Java 1.6

2008-06-20 Thread Johannes Schmidt
Hello, I have just spent 4+ hours trying to get Tomcat 6(.0.14) to compile my JSPs with Java 1.6. I have googled, found some things and tried, but have had no luck getting it to work. I found a page with instructions on getting Tomcat 5.5 running with Java 1.5 (a page linked to from several

Re: Logging contexts with multiple / in path attribute

2008-06-20 Thread Jonathan Mast
Turns out the multiple / in the context path wasn't a problem. However, its not capturing the System.out and System.err associated with the webapps. An empty file is created, but the System. stuff keeps going to Catalina.out. And i've set the swallowOutput attribute to true, so that

RE: Getting Tomcat 6 to compile JSP with Java 1.6

2008-06-20 Thread Caldarale, Charles R
From: Johannes Schmidt [mailto:[EMAIL PROTECTED] Subject: Getting Tomcat 6 to compile JSP with Java 1.6 I have just spent 4+ hours trying to get Tomcat 6(.0.14) to compile my JSPs with Java 1.6. I have googled, found some things and tried, but have had no luck getting it to work. I think

Re: Getting Tomcat 6 to compile JSP with Java 1.6

2008-06-20 Thread Johannes Schmidt
2008/6/21 Caldarale, Charles R [EMAIL PROTECTED]: From: Johannes Schmidt [mailto:[EMAIL PROTECTED] Subject: Getting Tomcat 6 to compile JSP with Java 1.6 I have just spent 4+ hours trying to get Tomcat 6(.0.14) to compile my JSPs with Java 1.6. I have googled, found some things and tried,

RE: Getting Tomcat 6 to compile JSP with Java 1.6

2008-06-20 Thread Caldarale, Charles R
From: Johannes Schmidt [mailto:[EMAIL PROTECTED] Subject: Re: Getting Tomcat 6 to compile JSP with Java 1.6 Again, apologies for the time wasting (believe me, I really am sorry that I wasted so much time -- I've been up all night -- it's almost 6 am here now). No apologies necessary. I

Re: Mapping a file to a URL pattern on Tomcat?

2008-06-20 Thread Youssef Mohammed
any static file in your WAR can be accessed thru a URL eg. the file.png in the root directory in you site.war can be accessed thru http://localhost:8080/site/file.png On Fri, Jun 20, 2008 at 7:49 PM, Vinay Chilakamarri [EMAIL PROTECTED] wrote: Hi, I want to send a response(which is

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
if you are running behind apache .. you can turn that off using the mod_headers ... you can unset any headers then. On Fri, Jun 20, 2008 at 8:37 PM, Dave Girardin [EMAIL PROTECTED] wrote: Group, I'm a Unix admin working on a Solaris 8 server running Tomcat 6.0.16. No other apps run on the

RE: How to turn off Etag headers?

2008-06-20 Thread Caldarale, Charles R
From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? if you are running behind apache .. Did you read the original message? No other apps run on the server, for example, there is no Apache httpd running. - Chuck THIS COMMUNICATION MAY CONTAIN

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
On Sat, Jun 21, 2008 at 1:12 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? if you are running behind apache .. Did you read the original message? Sorry I missed that. So doing that thought

RE: How to turn off Etag headers?

2008-06-20 Thread Caldarale, Charles R
From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? Although I don't really see a point on not having apache in a real deployment. Because adding httpd makes things slower. Read the recent threads about performance comparisons. - Chuck THIS

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
On Sat, Jun 21, 2008 at 1:29 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? Although I don't really see a point on not having apache in a real deployment. Because adding httpd makes things

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
corrected On Sat, Jun 21, 2008 at 1:44 AM, Youssef Mohammed [EMAIL PROTECTED] wrote: On Sat, Jun 21, 2008 at 1:29 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? Although I don't really see

RE: How to turn off Etag headers?

2008-06-20 Thread Caldarale, Charles R
From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? no way ! well at least in our apps a major bank in the region. we have done extensive tests and we got 10% - 20% performance gain. Since you're dealing with banking information, I suspect much of

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
no way ! well at least in our apps a major bank in the region. we have done extensive tests and we got 10% - 20% performance gain. Since you're dealing with banking information, I suspect much of your traffic is via SSL. Turn on the APR connector in Tomcat with OpenSSL and try the

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
correction gain ! WAS not WSAD. On Sat, Jun 21, 2008 at 1:58 AM, Youssef Mohammed [EMAIL PROTECTED] wrote: no way ! well at least in our apps a major bank in the region. we have done extensive tests and we got 10% - 20% performance gain. Since you're dealing with banking information,

Re: Keep getting this error

2008-06-20 Thread Bill Barker
Mathias P.W Nilsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Don't know how to get rid of this Don't take so long to generate the page that your users get bored and move on to utube ;)? Seriously, the error is that the user has moved on to a different page (e.g. clicking

Tomcat Connection Pooling - wait_timeout

2008-06-20 Thread Thomas Haines
Hello I am experiencing a reproducible problem with connection pooling in Tomcat, although I suspect it is not a Tomcat issue per se. I am running: mysql server 5.0.58 tomcat 6.0.16 mysql connector 5.1.6 java version 1.5.0_13 all on CentOS 5 The following error occurs when there has been no

Re: Tomcat Connection Pooling - wait_timeout

2008-06-20 Thread Youssef Mohammed
people were suffering from this exception in hibernate forums, it was suggested to switch from DBCP to c3po. Note also that the config you provided is not using any pooling at all. Datasources are not pooled by default. On Sat, Jun 21, 2008 at 8:18 AM, Thomas Haines [EMAIL PROTECTED] wrote: