Tocat webapp listening on different port

2009-11-04 Thread Sergio Arrighi
Hello to everyone, I'm pretty new with tomcat and I've a newbie question. Is it possible to have a tomcat webapp listening on a port different from the port which is in use by the server itself?? Example: I have a tomcat server listening on port 80 and I want the 'A' webapp to be listening on

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread breako
Thanks so much for replies. Very much appreciated. In response to the questions: 1. I have an apache server in front of my tomcat. 2. The reason why I am doing this is because I wish to use multiple tomcats and have some load balancing. That didn't work, so in trying to diagnose the problem, I

Inactive sessions won't be removed

2009-11-04 Thread Christian Stöber
Hello list, I've the problem that some (yes, really some) HttpSessions won't be removed. Here are some details from the manager app of two these sessions. Please consider the TTL an the Inactive Time value. I've just take a copy of the manager output! Details for Session

Re: tomcat https

2009-11-04 Thread Ognjen Blagojevic
Torleif wrote: I am trying to set up tomcat to use https. I used keytool -genkey -alias tomcat -keyalg RSA If I use changeit as password for keystore everything works ok. If I use a different password it does not work. I have modified server.xml with keystorePass=newpassword My .keystore is

Re: Tocat webapp listening on different port

2009-11-04 Thread Tobias Crefeld
Am Wed, 04 Nov 2009 09:43:54 +0100 schrieb Sergio Arrighi sergio.arri...@iminholding.com: Is it possible to have a tomcat webapp listening on a port different from the port which is in use by the server itself?? Example: I have a tomcat server listening on port 80 and I want the 'A' webapp

Re: Tocat webapp listening on different port

2009-11-04 Thread Ognjen Blagojevic
Tobias Crefeld wrote: schrieb Sergio Arrighi sergio.arri...@iminholding.com: Is it possible to have a tomcat webapp listening on a port different from the port which is in use by the server itself?? AFAIK it is not possible to setup 2 http-connectors for one tomcat, but you can install

webapps question

2009-11-04 Thread Michele Mase'
I've 100 webapps on one single tomcat instance. Every webapps has in his WEB-INF/lib the same jars I've some permgen memory problems too Moving all the shared libs in tomcat's root/common/lib should help me reducing the perm gen memory usage? Should it be a good pratics? Michele

Re: Reading and writing files outside tomcat directory

2009-11-04 Thread Ognjen Blagojevic
noobie45 wrote: Thank you so much. I am absolutely new to Tomcat on Linux. I need to figure out what you mean by user-id under which Tomcat runs. Every process on Linux is ran by a certain user. With command ps -ef, you can list all the processes and users that run them (first column from

Re: webapps question

2009-11-04 Thread Mikolaj Rydzewski
Michele Mase' wrote: I've 100 webapps on one single tomcat instance. Every webapps has in his WEB-INF/lib the same jars I've some permgen memory problems too Moving all the shared libs in tomcat's root/common/lib should help me reducing the perm gen memory usage? Should it be a good pratics It

remote debug

2009-11-04 Thread maven apache
Hi: I have a project and want to use the remote debug manner,my web container is tomcat of version of 5.5,I have seen the faq in wiki of tomcat. I follow the instruction: -- %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 Select the Java tab in the properties dialog box, Add the following

Re: webapps question

2009-11-04 Thread Michele Mase'
Thanx 4 you answer; ps: there are 100 webservices, not webapps Pls, help me: I'm not a developer ... and I don't understand the disadvantages of static classes/fields loaded from common classloader will be shared among all webapps, Could you be a little more specific about the disadvantages? Your

Re: webapps question

2009-11-04 Thread Ognjen Blagojevic
Michele Mase' wrote: I've 100 webapps on one single tomcat instance. Every webapps has in his WEB-INF/lib the same jars I've some permgen memory problems too Moving all the shared libs in tomcat's root/common/lib should help me reducing the perm gen memory usage? Should it be a good pratics?

Multi-level context starting at ROOT

2009-11-04 Thread Maurice Yarrow
Hello Tomcat Users Group I have no problem configuring a multi-level context originating at the context uri level, e.g.: http://www.domain.com/context/multi-level-sub-context/servletname and I have no problem creating a web-app context at the ROOT level, e.g.:

Re: Reading and writing files outside tomcat directory

2009-11-04 Thread noobie45
Thanks. I just tried out the command and got the list of users including tomcat. -- View this message in context: http://old.nabble.com/Reading-and-writing-files-outside-tomcat-directory-tp26160054p26194539.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: webapps question

2009-11-04 Thread Mikolaj Rydzewski
Michele Mase' wrote: ps: there are 100 webservices, not webapps Pls, help me: I'm not a developer ... and I don't understand the disadvantages of static classes/fields loaded from common classloader will be shared among all webapps, Could you be a little more specific about the disadvantages?

Re: Failed to install Tomcat5 service

2009-11-04 Thread chamin de silva
I had the same problem while I was installing Tomcat 5.5.9 and I observed that there was a service defined for tomcat installed previously of version 6. Once I uninstalled that version of Tomcat the problem was fixed. Hope this would others having same problem! --- Chamin De Silva Hez wrote:

Re: Multi-level context starting at ROOT

2009-11-04 Thread Konstantin Kolinko
2009/11/4 Maurice Yarrow maurice.yar...@comcast.net: Hello Tomcat Users Group I have no problem configuring a multi-level context originating at the context uri level, e.g.:   http://www.domain.com/context/multi-level-sub-context/servletname See

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread André Warnier
breako wrote: Thanks so much for replies. Very much appreciated. In response to the questions: 1. I have an apache server in front of my tomcat. 2. The reason why I am doing this is because I wish to use multiple tomcats and have some load balancing. That didn't work, so in trying to diagnose

Monitoring Tomcat over SNMP

2009-11-04 Thread Sameek Bhaumik
Hi,   We intend to monitor a J2EE application deployed in Tomcat 5.5 using IBM Tivoli Monitor (ITM) 6.1 over SNMP. It'll be really helpful if some information on this is provided. To be more specific the information I am looking forward to is:   1) Whether Tomcat 5.5 supports SNMP? 2) If the

Re: Multi-level context starting at ROOT

2009-11-04 Thread Pid
On 04/11/2009 11:13, Maurice Yarrow wrote: Hello Tomcat Users Group I have no problem configuring a multi-level context originating at the context uri level, e.g.: http://www.domain.com/context/multi-level-sub-context/servletname and I have no problem creating a web-app context at the ROOT

RE: webapps question

2009-11-04 Thread Joseph Morgan
Michele, It looks like all of the jar files you mention can safely be deployed in Tomcat's common lib area. Another question, though, to ask yourself and your developers is, do you really need 100 individual web apps to support the web services you have? In other words, there is no requirement

Re: webapps question

2009-11-04 Thread Pid
On 04/11/2009 13:17, Joseph Morgan wrote: Michele, It looks like all of the jar files you mention can safely be deployed in Tomcat's common lib area. I'm not sure that's true of commons-logging or log4j. Someone else might have a better memory than me, but I've a feeling that they hold onto

RE: webapps question

2009-11-04 Thread Joseph Morgan
I think you're right: http://stackoverflow.com/questions/217929/problem-with-commons-logging-l og4j-setup-in-spring-webapp-with-tomcat-6 So commons-logging is not safe in common lib area. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, November 04, 2009 7:23 AM

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread breako
Thanks so much for getting back to me. It's just a java process that is supposed to process requests from docy. This all works when it's just one tomcat as a client and one tomcat as a server with no apache http server infront of the server. Here is part of the request I edited out... [Tue

Re: ConnectionPool question

2009-11-04 Thread Josh Gooding
HOLY MOLY I am getting a TON of abandoned connection warnings now. I see I have logAbandoned=true. My Catalina log grew fast! Now here is a question, everytime I recycle a connection (close RS, statement, and the connection) does it place it back into the pool or is that what the abandoned

Re: webapps question

2009-11-04 Thread Mikolaj Rydzewski
Joseph Morgan wrote: So commons-logging is not safe in common lib area. I think, that OP's environment is a production one. So redeployment is not a problem. I mean it's not common to redeploy webapps often in production environment. But depending on design of webapps, classes loaded from

Re: tomcat https

2009-11-04 Thread Torleif
Hi Thanks for all your help!! I am using Debian Lenny as OS. I am trying to set up a funambol server witch use Tomcat. ( http://bionicmessage.net/?q=node/18 ) I am not sure witch version of Tomcat it uses. (I am at work right now and cant check) By default place I mean

Re: ConnectionPool question

2009-11-04 Thread Carsten Pohl
Hi, if you close the connection, it will be recycled. So, close() does not really close, but releases the connection. Regards, Carsten Pohl - Original Message - From: Josh Gooding josh.good...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, 4 November, 2009

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread André Warnier
See at bottom. breako wrote: Thanks so much for getting back to me. It's just a java process that is supposed to process requests from docy. This all works when it's just one tomcat as a client and one tomcat as a server with no apache http server infront of the server. Here is part of the

Re: ConnectionPool question

2009-11-04 Thread ramzi khlil
Yes, It releases the connection back to the pool. On Wed, Nov 4, 2009 at 9:43 AM, Carsten Pohl p...@tyntec.com wrote: Hi, if you close the connection, it will be recycled. So, close() does not really close, but releases the connection. Regards, Carsten Pohl - Original Message

RE: ConnectionPool question

2009-11-04 Thread Caldarale, Charles R
From: Josh Gooding [mailto:josh.good...@gmail.com] Subject: Re: ConnectionPool question everytime I recycle a connection (close RS, statement, and the connection) does it place it back into the pool or is that what the abandoned connection messages are for letting me know they were

RE: remote debug

2009-11-04 Thread Caldarale, Charles R
From: maven apache [mailto:apachemav...@gmail.com] Subject: remote debug my web container is tomcat of version of 5.5 %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of Tomcat are you really using? Failed to connect to remote VM.

Tomcat 5.5.20 Installation Issues for IIS Redirect

2009-11-04 Thread Corrin, Simon P
Hello, I am new at this, but am having some trouble getting Tomcat 5.5.20 installed the way I would like to. I am trying to install the Windows EXE for version 5.5.20 which seems to work fine. The next part is where I am having issues. I am trying to set it up to run Single Sign On through

Re: Multi-level context starting at ROOT

2009-11-04 Thread Maurice Yarrow
Hello Tomcat Users Grp and in particular, Pid and Konstantin Kolinko: Thanks for your replies. However, I evidently did not clearly state the problem I am having: I can define the following context xml files in conf/Catalina/localhost: contextname.xml and

Re: Multi-level context starting at ROOT

2009-11-04 Thread David Smith
I'm still wondering why you'd want to do ROOT#multilevelcontext.xml when it's functionally the same as multilevelcontext.xml. What use case do you have for such a thing? --David Maurice Yarrow wrote: Hello Tomcat Users Grp and in particular, Pid and Konstantin Kolinko: Thanks for your

Hash (#) character as context delimiter '/' stand-in

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm trying to use the foo#bar convention for a deployment path yielding /foo/bar as my context path and everything seems to work as expected. Except that I'm using Cocoon with one of my projects. For Cocoon, everything is a URL. When Cocoon

Re: ConnectionPool question

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 11/3/2009 3:24 PM, Josh Gooding wrote: If I close the RS, can I still use the MD? I see you've already answered this, but note the error is that the Connection is closed, not the ResultSet. I would expect that ResultSetMetaData requires

Re: tomcat https

2009-11-04 Thread Ognjen Blagojevic
Torleif wrote: By default place I mean /home/user/.keystore /home/user/.keystore? That's strange. Is it maybe /home/tomcat/.keystore? Or you have a user user on your system? Under what user did you create .keystore file? If I choose a different password and modify server.xml accordingly

Re: ConnectionPool question

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/4/2009 10:06 AM, Caldarale, Charles R wrote: If a webapp fails to close a connection wrapper and its associated real connection stays idle beyond the configured limit, the association between the wrapper and real connection is

Thread issue - org.apache.tomcat.util.threads.ThreadPool logFull

2009-11-04 Thread Curtis Garman
Does anyone know what would cause the following error Nov 4, 2009 9:30:28 AM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status I'm fronting apache tomcat 5.5.26 with apache 2.2.8 and

Re: Inactive sessions won't be removed

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian, On 11/4/2009 4:17 AM, Christian Stöber wrote: Hello list, I've the problem that some (yes, really some) HttpSessions won't be removed. Here are some details from the manager app of two these sessions. Please consider the TTL an the

Re: tomcat https

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 11/4/2009 11:47 AM, Ognjen Blagojevic wrote: Torleif wrote: By default place I mean /home/user/.keystore /home/user/.keystore? That's strange. Is it maybe /home/tomcat/.keystore? Or you have a user user on your system? Under what

Re: Hash (#) character as context delimiter '/' stand-in

2009-11-04 Thread Konstantin Kolinko
2009/11/4 Christopher Schultz ch...@christopherschultz.net: For Cocoon, everything is a URL. When Cocoon tries to build URLs to point to, say, files on the disk in the deployment directory, it gets a URL like file:///home/path/to/tomcat/webapps/foo#bar/some/file which ends up trying to access

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread breako
You are correct it is a post and it is missing a body. However, I used a utility tool TCPMon, to sniff what was being sent to the Apache Http Server. This does include a body, wrapped in XML tags. I do not know why Apache Http Server does not forward this to my tomcat server. The difference

Re: ConnectionPool question

2009-11-04 Thread Josh Gooding
Chris, I would imagine that you are correct, unless I store the RSMD in anther object (like a Map or AL). Now that I have started closing my resources something strange has actually happened now. I've hit the connectionpool limit faster. I was digging and realized that I changed my context.xml

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread breako
Note, I turned off MIME boundaries as I thought this was the problem. That is what the HTTP request as spotted by TCPMOM does not contain MIME boundaries. The corresponding Mod_JK is... ed Nov 04 16:52:55 2009] [5024:4688] [debug] jk_ajp_common.c (1070): sending to ajp13 pos=4 len=216 max=8192

Re: Multi-level context starting at ROOT

2009-11-04 Thread Maurice Yarrow
Hello Tomcat User Group and in particular, David Smith: My use-case is embedding meshcms inside my primary web app and in a way that they can both share the same session. David, I appear to correctly understand and use the contextname#multi-level-contextname.xml context file, but I am not

Re: Multi-level context starting at ROOT

2009-11-04 Thread David Smith
... but I am not acquainted with multilevelcontext.xml. I'm just using your description as written below w/o the hyphens. ROOT#multi-level-context.xml So what you really want is for your ROOT app and this other app to share the same session. H I so rarely do much of anything with

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread André Warnier
breako wrote: ... I wonder couild this be something do with Apache only knowing about the tomcat server's AJP port and not it's http port? I have to go right now, but I will answer this one quickly : You do not have to use mod_jk as a connector between Apache and Tomcat. There are two other

RE: Multi-level context starting at ROOT

2009-11-04 Thread Caldarale, Charles R
From: Maurice Yarrow [mailto:maurice.yar...@comcast.net] Subject: Re: Multi-level context starting at ROOT My use-case is embedding meshcms inside my primary web app and in a way that they can both share the same session. If you think multi-level contexts share sessions with other contexts

RE: ConnectionPool question

2009-11-04 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ConnectionPool question I believe both the real connection and the wrapper are discarded. Yes; I should have said the real connection is closed and a new real one created for the pool. - Chuck THIS

RE: Thread issue - org.apache.tomcat.util.threads.ThreadPool logFull

2009-11-04 Thread Caldarale, Charles R
From: Curtis Garman [mailto:curt.gar...@gmail.com] Subject: Thread issue - org.apache.tomcat.util.threads.ThreadPool logFull Does anyone know what would cause the following error Nov 4, 2009 9:30:28 AM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (150) are

Re: Multi-level context starting at ROOT

2009-11-04 Thread Maurice Yarrow
Hello Tomcat Users Group and Chuck Caldarale and David Smith: Chuck, thanks for clearing this up for me. I guess a simple session obj test would have sufficed to test equality of the two session objects so obtained from a context and similarly path-named multi-level-subcontext. Nevertheless,

Re: Hash (#) character as context delimiter '/' stand-in

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/4/2009 12:06 PM, Konstantin Kolinko wrote: 2009/11/4 Christopher Schultz ch...@christopherschultz.net: For Cocoon, everything is a URL. When Cocoon tries to build URLs to point to, say, files on the disk in the deployment

Re: Thread issue - org.apache.tomcat.util.threads.ThreadPool logFull

2009-11-04 Thread Curtis Garman
Thanks for the link...I will look into this Curtis On Wed, Nov 4, 2009 at 12:20 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Curtis Garman [mailto:curt.gar...@gmail.com] Subject: Thread issue - org.apache.tomcat.util.threads.ThreadPool logFull Does anyone know what would

Re: ConnectionPool question

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/4/2009 1:17 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ConnectionPool question I believe both the real connection and the wrapper are discarded. Yes; I should

Re: ConnectionPool question

2009-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 11/4/2009 12:11 PM, Josh Gooding wrote: type=javax.sql.DataSource [snip] res-typejavax.sql.DataSource/res-type I believe it is these types that must match, and they do. Don't change a thing. - -chris -BEGIN PGP

Re: webapps question

2009-11-04 Thread Michele Mase'
There are 87 webservices, initially served by 2 tomcat; The idea was, put (if possible) most of the libs in the common area and eventually split the whole work into 4 tomcats each one serving 20 webservices. No hope about different contexts :( Ok for the commons-logging/log4j part I don't know if

RE: Multi-level context starting at ROOT

2009-11-04 Thread Caldarale, Charles R
From: Maurice Yarrow [mailto:maurice.yar...@comcast.net] Subject: Re: Multi-level context starting at ROOT I still have no working context xml configuration that allow a multi-level-subcontext to be specified inside a ROOT-level web app, even though such a multi-level-subcontext works fine

RE: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread Jorge Medina
Did you add a load blancer worker to your workers.properties? Below is what I use to perform load balancing over two Tomcat servers. I have a similar scenario: Apache in front of two (or more Tomcats). Apache forwards the requests using mod_jk. My client is sending SOAP requests using Axis2.

RE: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread Jorge Medina
Your uriworkermap.properties must send the requests to the laod balancer worker Here is a sample uriworkermap.properties -Jorge # This file provides mapping for the wlb worker # defined in workers.properties. # The general syntax for this file is: # [URL]=[Worker name] /yourappcontext=wlb

Re: Tomcat hangs when reloading context if user is logged in

2009-11-04 Thread James Murphy
Chris, Thanks for all you help :) . We tried commenting out that method (just to see if it was the root of the problem) and Tomcat behaved like it is supposed to! Now we can work on implementing a work-around for the functionality. Thanks!

Re: tomcat https

2009-11-04 Thread Torleif
Hi again. My server.xml: Connector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true; clientAuth=false sslProtocol=TLS keystoreFile=/home/user/.keystore

RE: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread breaks
Thanks to all. I am at home now but will try your suggestions tomorrow. I was just wondering why I would need a load balancer, uriproperties file or a status worker just because it is a HTTP POST SOAP request? I am able to get all other http requests forwarded to my tomcat server without the

RE: Problem forward HTTP / Soap request using mod_jk

2009-11-04 Thread Jorge Medina
No, you don't need the load balancer if you only have one Tomcat behind your Apache server. The status worker is not needed either, but it allows you to monitor the state of the load balancer and the workers from a browser. (You can even enable/disable workers) -Original Message-

Re: ConnectionPool question

2009-11-04 Thread Elli Albek
As far as I remember, abandoned is a connection that was not closed. So if you call recycle on a connection it will not generate abandoned message. The messages that you see are from connections that you do not close. I also remember that closing a connection closes statements and result sets, but

Re: remote debug

2009-11-04 Thread maven apache
2009/11/4 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: remote debug my web container is tomcat of version of 5.5 %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of

Re: What is the difference between running Tomcat 6 as a Windows Service vs. running from the command line?

2009-11-04 Thread Earl Tom
Alan Kennedy-13 wrote: [Alan] I need to find out what is the difference between running Tomcat 6 as a Windows Service and running it from the command line. The reason is that I'm getting a bizarre bug when a jython based servlet is run under Tomcat6-as-Service. But the bug does NOT

RE: remote debug

2009-11-04 Thread Caldarale, Charles R
From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of Tomcat are you really using?\ I am using apache-tomcat-5.5.27(. Then how it is possible you're

Re: remote debug

2009-11-04 Thread maven apache
2009/11/5 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of Tomcat are you really using?\ I

RE: remote debug

2009-11-04 Thread Caldarale, Charles R
From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug In a word,I have two choice: 1 use the tomcat.zip of version 5.5 or 6.x. 2 use the tomcat.exe of version 6.x? The version of Tomcat doesn't matter, although unless you have a compelling reason to use an older

Re: remote debug

2009-11-04 Thread maven apache
2009/11/5 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug In a word,I have two choice: 1 use the tomcat.zip of version 5.5 or 6.x. 2 use the tomcat.exe of version 6.x? The version of Tomcat doesn't matter,