Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Ken Johanson
Hi everyone, Trying to run Tomcat Tomcat/6.0.18 + apr-1.3.8.tar.gz, I get a: Oct 15, 2009 12:11:20 AM org.apache.coyote.http11.Http11AprProtocol start SEVERE: Error starting endpoint java.lang.Exception: Socket bind failed: [98] Address already in use at

Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Jan Pernica
You cannot use port 1024 as non-root. Use apache and AJP to connect tomcat running on eg. 8080. Regards Jan On 15.10.2009 8:18, Ken Johanson wrote: Hi everyone, Trying to run Tomcat Tomcat/6.0.18 + apr-1.3.8.tar.gz, I get a: Oct 15, 2009 12:11:20 AM

Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Ken Johanson
Jan Pernica wrote: You cannot use port 1024 as non-root. Use apache and AJP to connect tomcat running on eg. 8080. Regards Jan On 15.10.2009 8:18, Ken Johanson wrote: Hi everyone, Trying to run Tomcat Tomcat/6.0.18 + apr-1.3.8.tar.gz, I get a: Oct 15, 2009 12:11:20 AM

Re: Tomcat is not getting shutdown

2009-10-15 Thread Mark Thomas
Suneel Saguturu wrote: Hi Mark, Thanks for replying, I don't know how to take the thread dump how to look for non-daemon threads? Google is your friend. Mark - To unsubscribe, e-mail:

Re: Tomcat 5.5.26 hangs

2009-10-15 Thread Tsirkin Evgeny
On Wed, Oct 14, 2009 at 6:15 PM, Mark Thomas ma...@apache.org wrote: Have you tried JkOptions +DisableReuse And if that solves the problem setup connection timeout . http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html Evgeny

Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Peter Crowther
2009/10/15 Ken Johanson tomcat-u...@kensystem.com SEVERE: Error starting endpoint java.lang.Exception: Socket bind failed: [98] Address already in use at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612) .. (no listener is actually running on 98; this is just generic

Re: How to install Tomcat 5.5.28 32-bit version on Windows 64-bit version?

2009-10-15 Thread Vadim Volkov
Hi Christopher. Thanks for replying. On Wed, Oct 14, 2009 at 10:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: Are you using 32-bit JVM? If so, then you must use the 32-bit service loader. I'm using 32-bit JVM (JDK 1.5.0_21) on 64-bit Windows. Form Tomcat 5.5.28 changelog: Add

Re: Problem in configuring tomcat for PKCS 11 for HSM

2009-10-15 Thread Israr Ahmed
Hi, I've successfully configured apache-tomcat-6.0.18 with JRE 1.6.0_13 for PKCS11 with keystore on smart card token but failed to use keystore on HSM which is in my case Eracom PSO:PL50 I've statically add a provider in java.security file security.provider.10=sun.security.pkcs11.SunPKCS11

RE: How to install Tomcat 5.5.28 32-bit version on Windows 64-bit version?

2009-10-15 Thread Caldarale, Charles R
From: Vadim Volkov [mailto:chain@gmail.com] Subject: Re: How to install Tomcat 5.5.28 32-bit version on Windows 64- bit version? I strongly needs in 32-bit JRE and 32-bit Tomcat service on 64-bit Windows. Could you please tell us why? I can't imagine any reason one would want a

RE: Tomcat Startup Error on IBM AIX 5.3 after Cluster enable in server.xml

2009-10-15 Thread Imad Hachem
Dear Caldarale, I have installed the latest Tomcat version Tomcat-6.0.20 and I am still getting the same Error. Is there anything to do on the IBM AIX level or at the level of Tomcat Settings or Startup scripts? Thanks for your help. Error faced: SEVERE: Unable to start

Re: Tomcat 5.5.26 hangs

2009-10-15 Thread conrad-tomcat . users . 2009
Hi, Am Mittwoch, 14. Oktober 2009 schrieb Christopher Schultz: Although those threads say runnable, they're really blocked at the OS level waiting to receive data from the mod_jk connector. These threads are actually idle, waiting for requests from httpd to come through the pipe. You can

Tomcat restart not killing session

2009-10-15 Thread sharda k
I was under the impression that restarting webserver would kill all user sessions. But with my tomcat install, restarting Tomcat does not kill user sessions. I am still able to continue with the initially started sessions. Is this a typical tomcat behaviour or a bug? I have Tomcat 5.5 running on

Shared email resource

2009-10-15 Thread Ken T.
I'm having some difficulty setting up a shared email resource under Tomcat and I can't seem to find the answer anywhere online. Everything seems to be working under Tomcat, but for some reason my application can't find the JNDI name.. In server.xml I have:

Re: Tomcat restart not killing session

2009-10-15 Thread conrad-tomcat . users . 2009
Hi, On Thu, Oct 15, 2009 at 08:53:03AM -0500, sharda k wrote: I was under the impression that restarting webserver would kill all user sessions. But with my tomcat install, restarting Tomcat does not kill user sessions. I am still able to continue with the initially started sessions. Is this

Re: Shared email resource

2009-10-15 Thread Mikolaj Rydzewski
Ken T. wrote: I'm having some difficulty setting up a shared email resource under Tomcat and I can't seem to find the answer anywhere online. Everything seems to be working under Tomcat, but for some reason my application can't find the JNDI name.. You have to include mapping in

Re: Tomcat restart not killing session

2009-10-15 Thread sharda k
Thats a cool feature... thanks Peter!!! Sharda On Thu, Oct 15, 2009 at 9:11 AM, conrad-tomcat.users.2...@tivano.de wrote: Hi, On Thu, Oct 15, 2009 at 08:53:03AM -0500, sharda k wrote: I was under the impression that restarting webserver would kill all user sessions. But with my tomcat

RE: Shared email resource

2009-10-15 Thread Caldarale, Charles R
From: news [mailto:n...@ger.gmane.org] On Behalf Of Ken T. Subject: Shared email resource In /etc/tomcat6/web.xml, I have: Shouldn't that be /etc/tomcat6/conf/web.xml? Are you running a real Tomcat, or a 3rd-party repackaged one? If the latter, it's difficult to tell where the proper

Re: Tomcat Startup Error on IBM AIX 5.3 after Cluster enable in server.xml

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Imad, On 10/15/2009 9:43 AM, Imad Hachem wrote: I have installed the latest Tomcat version Tomcat-6.0.20 and I am still getting the same Error. Is there anything to do on the IBM AIX level or at the level of Tomcat Settings or Startup scripts?

Re: Tomcat 5.5.26 hangs

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Conrad, On 10/15/2009 9:44 AM, conrad-tomcat.users.2...@tivano.de wrote: If you could post your httpd configuration for your worker/prefork stuff AND your mod_jk configuration, it might be helpful. ===workers.properties=== All that looks okay

Re: Shared email resource

2009-10-15 Thread Curtis Garman
I've only every declared in in META-INF/context.xml ...but I've also experienced another problem before that you may be having and that is truncating the resource name...it will take your valid name and chop off part of it (seems to truncate at / ) and then complain that it couldn't find the

Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan, On 10/15/2009 2:42 AM, Jan Pernica wrote: You cannot use port 1024 as non-root. Use apache and AJP to connect tomcat running on eg. 8080. The previous statement is *totally incorrect*. There are multiple ways to run on privileged ports

Re: how to replace apache's mod_alias

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, On 10/13/2009 11:30 AM, Dennis Christopher wrote: Is there any documentation on how to replace the alias elements in httpd.conf with corresponding elements in Tomcat's configuration? Not directly. But if you describe what you want to do,

RE: Windows 2008 Server (x64) IIS7 to Tomcat 6.0 32-bit with Java 32-bit isapi_redirect 1.2.28 connector problem

2009-10-15 Thread George Sexton
Why would you use the 32 bit ISAPI filter? You should use the 64bit ISAPI filter. If you're running IIS7 in 32 bit mode, THEN you should use 32 bit filter. If you do that, make sure the registry entries for configuration are in the WOW64 registry node. George Sexton MH Software, Inc.

Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Len Popp
On Thu, Oct 15, 2009 at 10:39, Christopher Schultz ch...@christopherschultz.net wrote: That's port 8443, not port 98. Where's your real Connector defined? 98 isn't a port number, it's an error code. It stands for Address already in use. -- Len

Re: how to replace apache's mod_alias

2009-10-15 Thread Dennis Christopher
Thanks for the reply Chris. what I want to do: I am running Tomcat as a standalone server on OSX. My application had been previously set up with apache serving in front of Tomcat. My application is a context element '/myapp' accessed via server address/myapp. Within the app's jsps are

Re: how to replace apache's mod_alias

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, On 10/15/2009 11:15 AM, Dennis Christopher wrote: My application is a context element '/myapp' accessed via server address/myapp. Within the app's jsps are references to files in a folder 'myapp-web' whose real location on the server

Re: JkMount for status working not getting triggered

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, On 10/14/2009 10:43 PM, Neil Aggarwal wrote: I then added this to my httpd.conf file in the global directives: # Mount the jk status application Location /jkstatus JkMount jkstatus Order allow,deny Allow from all /Location Try

Re: Shared email resource

2009-10-15 Thread Ken T.
On Thu, 15 Oct 2009 09:24:13 -0500, Caldarale, Charles R wrote: From: news [mailto:n...@ger.gmane.org] On Behalf Of Ken T. Subject: Shared email resource In /etc/tomcat6/web.xml, I have: Shouldn't that be /etc/tomcat6/conf/web.xml? Are you running a real Tomcat, or a 3rd-party

RE: JkMount for status working not getting triggered

2009-10-15 Thread Neil Aggarwal
Chris: That worked. Thanks for the help, Neil -- Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com Will your e-commerce site go offline if you have a DB server failure, fiber cut, flood, fire, or other disaster? If so, ask about our geographically redundant database system. Try

RE: Tomcat Startup Error on IBM AIX 5.3 after Cluster enable in server.xml

2009-10-15 Thread Imad Hachem
Dear Caldarale, As per the ifconfig command, it seems BROADCAST and MULTICAST are enabled on my AIX 5.3 Network interface: bash-3.00# ifconfig -a en0: flags=5e080863,c0UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROU PRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN inet

Re: how to replace apache's mod_alias

2009-10-15 Thread Dennis Christopher
Chris, the user accesses my jsps via http://host/my-app. The jsps include references of the form below, as request dumper valve tells me: /myapp-web/styles/images/mylogo.jsp where myapp-web is a directory elsewhere on the system. so the full path reference style is never done as such.

Re: Tomcat Startup Error on IBM AIX 5.3 after Cluster enable in server.xml

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Imad, On 10/15/2009 12:03 PM, Imad Hachem wrote: As per the ifconfig command, it seems BROADCAST and MULTICAST are enabled on my AIX 5.3 Network interface: Yes, it appears that all of your interfaces have MULTICAST enabled. Is there another

Re: how to replace apache's mod_alias

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, (No need to CC me directly at all; I get all the messages through the mailing list). On 10/15/2009 12:03 PM, Dennis Christopher wrote: the user accesses my jsps via http://host/my-app. The jsps include references of the form below, as

Re: tomcat 5.5.25 and loosing spaces between printing jstl variables

2009-10-15 Thread Markus Stauffer
My suggestion: set trimSpace to true on both servers. Then use ${firstName}{' '}${lastName} regards Am 13.10.2009 um 23:08 schrieb Curtis Garman: Has anyone else experienced loosing spaces between printing jstl variables. I've got something that is printing ${firstName} ${lastName} --

RE: Tomcat Startup Error on IBM AIX 5.3 after Cluster enable in server.xml

2009-10-15 Thread Imad Hachem
I solved the issue Christopher, It was a configuration on IBM AIX to bind the multicast address (228.0.0.4) to the IP of network interface using smitty Admin Console. Thanks for your reply. Imad Hachem | Asst.Product Development Manager e-Banking Department Path Solutions Tel: +961 1 697444

Re: tomcat 5.5.25 and loosing spaces between printing jstl variables

2009-10-15 Thread Curtis Garman
Hmm...yeah or I could do ${firstName}nbsp;${lastName} or something but the problem is the solution is only treating the symptom and not the cause...and therefore I don't know how to determine when and where it might happen in the future...I just happened to spot it this time and would be able to

RE: how to replace apache's mod_alias

2009-10-15 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: how to replace apache's mod_alias Create a file under CATALINA_BASE/conf/[service]/[host]/myapp-web.xml that contains the following: Context appBase=/library/webserver/documents / That should be docBase, not

catalina - when to use start and run

2009-10-15 Thread Anand HS
Hi, I use tomcat 6.0.16 and when evaluating different start up options , I came across the fact that you can start tomcat by either catalina start or catalina run. using start spawned the server start up in a new console where as run started in the same console. Other than this is there any

Re: Shared email resource

2009-10-15 Thread Mikolaj Rydzewski
Curtis Garman wrote: I've only every declared in in META-INF/context.xml It's fine to define Resource completely in context.xml. But if one uses GlobalNamingResources (as OP does) he has to declare mapping in context.xml as I described. Anyway, it works for me all the times :-) Of course, in

Re: how to replace apache's mod_alias

2009-10-15 Thread Dennis Christopher
Hmm. I thought that correction would make it work, but still no go. I don't have any structure under conf, and usually add contexts in server.xml . I tried this first, giving path=/myapp-web. But this didnt work. It seems by the logic of what we are trying, i.e. making the docBase =

RE: how to replace apache's mod_alias

2009-10-15 Thread Caldarale, Charles R
From: Dennis Christopher [mailto:dchristop...@pixion.com] Subject: Re: how to replace apache's mod_alias Next, and maybe I didnt follow directions properly, I added the directory conf/localhost which then contained myapp-web.xml with the (pathless) context below. Close, but that needs to

Re: Tomcat 6.0.20 always works in GMT timezone even after forcing it to use Asia/Calcutta by multiple methods.

2009-10-15 Thread Timothy J Schumacher
Then how come Tomcat alone can respect the UTC enablement in /etc/sysconfig/clock? That is a good question, and not the same as what I observed on my system. I guess maybe try removing the timezone line from that file and restart Tomcat to see if the clock file is even a player here. This

Re: Tomcat 6.0.20 always works in GMT timezone even after forcing it to use Asia/Calcutta by multiple methods.

2009-10-15 Thread Timothy J Schumacher
Also, there was some enlightening information about how the JVM decides which timezone to use here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6456628 I did not read the java source to verify the description there is accurate, but none the less, the description was helpful to me.

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Bill Davidson
Christopher Schultz wrote: Is it possible that your server just doesn't want to allocate 245 * 4 cursors, and that you are just hitting that barrier? cursor != connection Oracle is set up to allow up to 300 cursors per session (connection). I could up that limit, but it probably won't fix the

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Bill Davidson
Martin Gainty wrote: are you running as a Transaction? In some cases, but a lot of these lingering cursors are on very simple queries, with no insert/update/delete involved. As I said before, I'm finding lingering cursors on things as simple as SELECT * FROM some_table WHERE id = ?. That does

Re: how to replace apache's mod_alias

2009-10-15 Thread Dennis Christopher
Thanks Charles and Chris -- that works! Dennis On Oct 15, 2009, at 2:06 PM, Caldarale, Charles R wrote: From: Dennis Christopher [mailto:dchristop...@pixion.com] Subject: Re: how to replace apache's mod_alias Next, and maybe I didnt follow directions properly, I added the directory

Fw: Re: Metro/JAXWS and network packets...

2009-10-15 Thread Tony Anecito
Hi Wireshark group. I narrowed down the redundant packets last night/this morning. I have notified the Sun group about the issue and am still looking at it closer. Thanks for the help this has been a huge issue for me and now for Sun perhaps. Best Regards, -Tony --- On Thu, 10/15/09, Tony

Can a JNDI resource be in a webapp's lib folder

2009-10-15 Thread Ziggy
I am trying to set up a JNDI resource of an Oracle database connection. I have set the connection details in my application's context file in $CATALINA_BASE/webapps/myapp/META-INF/context.xml I put the jdbc driver in $CATALINA_BASE/common/lib and everything works fine. The problem is i dont want

Redeploy problem in 6.0.20

2009-10-15 Thread Andrew Morgan
I recently upgraded from Tomcat 6.0.18 to 6.0.20 (using jdk1.6.0_14 on Solaris 10). I have a webapp that stores its database configuration in the context xml file (/private/tomcat/conf/Catalina/localhost/devl.xml). Periodically, I must update the context xml file when the database password

Re: how to replace apache's mod_alias

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 10/15/2009 1:07 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: how to replace apache's mod_alias Create a file under CATALINA_BASE/conf/[service]/[host]/myapp-web.xml that

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 10/15/2009 2:15 PM, Bill Davidson wrote: Christopher Schultz wrote: Is it possible that your server just doesn't want to allocate 245 * 4 cursors, and that you are just hitting that barrier? cursor != connection Right... but presumably

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 10/15/2009 2:24 PM, Bill Davidson wrote: That does make me wonder though if there are Connection's getting sent back to the pool that had a pending transaction without a commit/rollback and if that could be making any cursors on that

Re: Tomcat 6.0.20 always works in GMT timezone even after forcing it to use Asia/Calcutta by multiple methods.

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raghu, On 10/15/2009 1:33 AM, raghu gs wrote: My question is, when i put a normal java code to display the time and timezone of the system, it just displays the timezone in IST without any problem. So, you still won't actually try to figure out

Re: tomcat 5.5.25 and loosing spaces between printing jstl variables

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Curtis, On 10/13/2009 5:08 PM, Curtis Garman wrote: Has anyone else experienced loosing spaces between printing jstl variables. I've got something that is printing ${firstName} ${lastName} -- Curtis Garman but instead the space in between

Re: Can a JNDI resource be in a webapp's lib folder

2009-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, On 10/15/2009 3:31 PM, Ziggy wrote: I have read about this a bit and i think that all JNDI resources must be in $CATALINA_HOME/common/lib which explains why If i put the driver in the application's lib folder it cant access it because the

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Hassan Schroeder
On Thu, Oct 15, 2009 at 1:46 PM, Christopher Schultz ch...@christopherschultz.net wrote: You could also ask on some Java-oriented Oracle forums. Oracle has a user community called Mix -- https://mix.oracle.com/ -- where you could post your issue (requires registration but otherwise free). /*

Re: DBCP woes (running out of cursors).

2009-10-15 Thread Bill Davidson
Christopher Schultz wrote: Probably not. DBCP calls setAutoCommit(true) by default in order to reset the connection as it goes back into the pool. Any pending transaction is committed (!) when that happens, so there shouldn't be any in-progress transactions lingering around. If you set

RE: Can a JNDI resource be in a webapp's lib folder

2009-10-15 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Can a JNDI resource be in a webapp's lib folder I think this is a reasonable desire, and I'm not sure why Tomcat's architecture does not allow this. Honestly, using the webapp's ClassLoader to create JNDI resources

Re: ClassNotFoundException when deserializing persisted sessions

2009-10-15 Thread Manlio Malaidini
On Wed, Oct 14, 2009 at 5:09 PM, Manlio Malaidini mmalaid...@gmail.com wrote: I'll check bugzilla and eventually file a bug, thanks. Bug filed as 48007 https://issues.apache.org/bugzilla/show_bug.cgi?id=48007 MM - To

Re: catalina - when to use start and run

2009-10-15 Thread Hassan Schroeder
On Thu, Oct 15, 2009 at 10:25 AM, Anand HS anan...@gmail.com wrote: Hi, I use tomcat 6.0.16 and when evaluating different start up options , I came across the fact that you can start tomcat by either catalina start or catalina run. using start spawned the server start up in a new console where

Re: Redeploy problem in 6.0.20

2009-10-15 Thread Keiichi Fujino
Hi Andrew. Check this BZ47343. https://issues.apache.org/bugzilla/show_bug.cgi?id=47343 Perhaps, it is the same as this BugReport. This bug is corrected by 6.0.21. Best Regards. -- View this message in context: http://www.nabble.com/Redeploy-problem-in-6.0.20-tp25915514p25919112.html Sent

Re: Tomcat + APR non-root on linux: Socket bind failed: [98] Address already in use

2009-10-15 Thread Ken Johanson
Peter Crowther wrote: 2009/10/15 Ken Johanson tomcat-u...@kensystem.com SEVERE: Error starting endpoint java.lang.Exception: Socket bind failed: [98] Address already in use at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612) .. (no listener is actually running on 98;

Tomcat + APR: 'Invalid Server SSL Protocol' (was 'Tomcat + APR .. Socket bind failed')

2009-10-15 Thread Ken Johanson
Ken Johanson wrote: snip After doing a kill, then startup I now get: java.lang.Exception: Invalid Server SSL Protocol at org.apache.tomcat.jni.SSLContext.make(Native Method) at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:693) at

Tomcat works fine on deployed machine, but not on others machines in network

2009-10-15 Thread Avijit Dutta
We have installed tomcat in a linux machine, and when we invoke http://linux machine ip:8080/ from that linux machine, it is showing properly. But, when we try to access the same URL from another machine in the same LAN, then nothing is coming up. Please help. The 2nd machine is able to ping