RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-08 Thread Arup Vidyerthy
Guys,

I use a synchronised HashMap like Chuck is suggesting here and I have to say
it's absolutely fine. We have an application here with hundreds of users
logging in and doing stuff concurrently and I have seen no negative impact
on performance. So basically you either do that or use something like a
Vector.

/Arup

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 08 September 2005 04:51
To: Tomcat Users List
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

 From: Len Popp [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
 
 Inside Tomcat, references to the hashmap in question are synchronized 
 on the hashmap object itself, StandardSession.attributes (see 
 org.apache.catalina.session.StandardSession).

Except it doesn't appear to be done consistently.  The existing
synchronization in 5.5.9 protects against concurrent updates, but not
against a retrieval that happens at the same time as an update.

I don't understand the rationale behind this experiment that removed the
synchronization, since uncontended object locking has very little
performance impact in modern JVM/JIT implementations.  Removal of the synchs
would allow concurrent retrievals, but would the frequency of that warrant
the reduction in robustness?

 So if I want to *safely* call session.setAttribute or
session.getAttribute 
 I have to make sure the calls are synchronized on session.attributes.

Actually no - if you can find _all_ the events that can trigger references
or udpates to session attributes, you can synchronize on any object you
like.  The synchronize blocks internal to Tomcat then become redundant, but
they cause no harm.

Another option (as suggested by the HashMap javadoc) is to modify
StandardSession to use a HashMap wrappered by Collections.synchronizedMap().
No idea what kind of performance impact that would have, but at least it
would limit the changes needed to just one place in one file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ant deployment to Tomcat issue - UnknownHostException: C

2005-09-08 Thread patrick van den Bemt
Hi there,

* Ant script Deployment from ws1 (with ant1.6.2) onto ws2 (with
tomcat5.0.28) returns build.xml:150: java.net.UnknownHostException:
C.

* Web interface Deployment from ws1 onto ws2 of the same .war file
succeeds (use same http://hostname:8081/manager and username+password)

Build.xml

taskdef name=testdeploy 

classname=org.apache.catalina.ant.DeployTask

classpath refid=tomcat.classpath /

/taskdef 

target name=deploy

depends=dist

description=deploy application to servlet container

testdeploy url=${manager.url}

username=${manager.username}

password=${manager.password}

path=${app.path}

war=file://${build.home}/${app.name}-${app.version}.war/

/target

Build.properties

manager.username = x

manager.password = y

manager.url = http://hostname:8081/managerhttp://hostname:8081/manager
and username+password)

Build.xml

taskdef name=testdeploy 

classname=org.apache.catalina.ant.DeployTask

classpath refid=tomcat.classpath /

/taskdef 

target name=deploy

depends=dist

description=deploy application to servlet container

testdeploy url=${manager.url}

username=${manager.username}

password=${manager.password}

path=${app.path}

war=file://${build.home}/${app.name}-${app.version}.war/

/target

Build.properties

manager.username = x

manager.password = y

manager.url = http://hostname:8081/managerhttp://hostname:8081/manager

If it would have been a network or tomcat related issue it would fail
web deployment as well I guess.

Therefore I assume it is an issue with the ant configuration.

Has anyone some clue on what I might do wrong ? Some help would be
very much appreciated.

Best regards,

Patrick.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI DBCP Resources: Pool Leak

2005-09-08 Thread netsql

Also, nighly builds od DBCP and Pool are broken (45 bytes each for weeks).

.V

Nikola Milutinovic wrote:

Justin Jaynes wrote:


Concerning JNDI Database Connection Pooling Sources,

--
thx,
.V

roomity.com is the broadband portal http://roomity.com/demo.jsp

cell: 917 825 3035 in DFW
email: netsql at roomity.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Log4j Log Level Configuration

2005-09-08 Thread Jojo Paderes
How do I configure Tomcat or Log4J to change the log level output
during runtime? Anybody already done this successfully with Tomcat
5.5.9?

--
My Blogs http://jojopaderes.blogspot.com
Google Talk http://www.google.com/talk (ID: jojo.paderes)

In preparing for battle I have always found that plans are useless,
but planning is indispensable. - Eisenhower

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Turning off the containers session

2005-09-08 Thread Paul Singleton

Atif Suleman wrote:


Can you stop tomcat container from creating a jsession cookie?


Check out the Context cookies=false attribute in

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

(similarly in 5.0 and 4.1)

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 7/Sep/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Order at which Tomcat loads starts applications

2005-09-08 Thread Aaron Pederson
Can anyone provide me with the order in which Tomcat starts
applications? Specifically my applications are inside of
$TOMCAT_HOME/webapps.

 

 

 

Thanks in advance,

~Aaron



JSP on RHEL4 with Apache httpd RPM?

2005-09-08 Thread Peter Flynn
I need to add JSP ability to a RHEL4 server running the
current Apache httpd from the Red Hat RPM. Apparently the 
httpd RPM available from Red Hat doesn't have the hooks
needed to allow JSP files to be passed to Tomcat (or if it
does, I can't find them).

Has anyone managed to serve JSP with Tomcat on a RHEL4
machine running their stock httpd? 

I'd rather not have to resort to building Apache httpd from 
scratch, as that would mean also moving away from RPMs for 
MySQL and PHP, in order to maintain synchronisation between 
them.

///Peter



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Windows and Tomcat

2005-09-08 Thread Lalit Batra
Hi! 
I am new to the world of Tomcat and have recently installed 5.5.9 on a 
Windows (2003 and XP) Box. It works fine but only with Users having 
Administrative/power user privileges. 
1) When the service for tomcat is started with USER option, it does not go 
and read the Webapps. The folder has read+execute, read options set for the 
normal USER. 
2) I have tried the same scenarios on both XP and Server 2003, the result is 
same. 

Do we have to configure the tomcat-users.xml and if so then how do we add 
the access for a normal user on Windows Box. 

Please help!

Thanks, 
 Lalit


RE: Windows and Tomcat

2005-09-08 Thread Robert Harper
When you installed Tomcat, you were prompted if you want it to run as a
service and if so, what user to use. You should be able to go into your
Services app under ControlPannel\Administrative Tools\Services and change
the use and password that Tomcat starts with. If you need to, create an
account with the rights you want and set the service to start with that
account and the password to use. You can also set how Tomcat is to start as
well.

Robert S. Harper
Information Access Technology, Inc.
-Original Message-
From: Lalit Batra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 08, 2005 10:32 AM
To: tomcat-user@jakarta.apache.org
Subject: Windows and Tomcat

Hi! 
I am new to the world of Tomcat and have recently installed 5.5.9 on a 
Windows (2003 and XP) Box. It works fine but only with Users having 
Administrative/power user privileges. 
1) When the service for tomcat is started with USER option, it does not go 
and read the Webapps. The folder has read+execute, read options set for the 
normal USER. 
2) I have tried the same scenarios on both XP and Server 2003, the result is

same. 

Do we have to configure the tomcat-users.xml and if so then how do we add 
the access for a normal user on Windows Box. 

Please help!

Thanks, 
 Lalit


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Order at which Tomcat loads starts applications

2005-09-08 Thread Marius Hanganu
You cannot rely on an order in which Tomcat load webapps. Since the
servlet spec does not mention that webapps should be load in a specific
order, you shouldn't rely on any ordering.

If you really need this ordering, implement a mechanism to synchronize
webapps.

Regards,
Marius

-Original Message-
From: Aaron Pederson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 08, 2005 6:35 PM
To: tomcat-user@jakarta.apache.org
Subject: Order at which Tomcat loads  starts applications

Can anyone provide me with the order in which Tomcat starts
applications? Specifically my applications are inside of
$TOMCAT_HOME/webapps.

 

 

 

Thanks in advance,

~Aaron


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Windows and Tomcat

2005-09-08 Thread Lalit Batra
Robert, 
Thanks for replying! 
1) When I installed it I was in Admin user, and installed it with Service 
option. In windows services, Apache Tomcat we have an option of starting 
with USER. The service starts and shows me the owner as the User and even 
in the Process information from (task Managger) I see User as the process 
(tomcat) owner. So yes it starts with the USER I started the service with. 

2) User priveledges: The user has read+Execute permissions for the webapps 
folder (changed it also for Aplication folder Tomcat under programs) and 
restarted many times.Still http://localhost does not come up. (I am using 
80, modified server to run on port 80).

3) If I put the USER to Power User Group of XP everything works.


please help

thanks,
Lalit


On 9/8/05, Robert Harper [EMAIL PROTECTED] wrote:
 
 When you installed Tomcat, you were prompted if you want it to run as a
 service and if so, what user to use. You should be able to go into your
 Services app under ControlPannel\Administrative Tools\Services and change
 the use and password that Tomcat starts with. If you need to, create an
 account with the rights you want and set the service to start with that
 account and the password to use. You can also set how Tomcat is to start 
 as
 well.
 
 Robert S. Harper
 Information Access Technology, Inc.
 -Original Message-
 From: Lalit Batra [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 08, 2005 10:32 AM
 To: tomcat-user@jakarta.apache.org
 Subject: Windows and Tomcat
 
 Hi!
 I am new to the world of Tomcat and have recently installed 5.5.9 on a
 Windows (2003 and XP) Box. It works fine but only with Users having
 Administrative/power user privileges.
 1) When the service for tomcat is started with USER option, it does not go
 and read the Webapps. The folder has read+execute, read options set for 
 the
 normal USER.
 2) I have tried the same scenarios on both XP and Server 2003, the result 
 is
 
 same.
 
 Do we have to configure the tomcat-users.xml and if so then how do we add
 the access for a normal user on Windows Box.
 
 Please help!
 
 Thanks,
 Lalit
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-08 Thread Len Popp
On 9/7/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  From: Len Popp [mailto:[EMAIL PROTECTED]
  Subject: Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
 
  So if I want to *safely* call session.setAttribute or
 session.getAttribute
  I have to make sure the calls are synchronized on session.attributes.
 
 Actually no - if you can find _all_ the events that can trigger
 references or udpates to session attributes, you can synchronize on any
 object you like.  The synchronize blocks internal to Tomcat then become
 redundant, but they cause no harm.

It would take me quite a while to look at all the possible code paths
inside Tomcat to figure that out. :-(

 Another option (as suggested by the HashMap javadoc) is to modify
 StandardSession to use a HashMap wrappered by
 Collections.synchronizedMap().  No idea what kind of performance impact
 that would have, but at least it would limit the changes needed to just
 one place in one file.
 
  - Chuck

That would be easier, but I was hoping I wouldn't have to use a hacked
version of Tomcat.

Thanks for your explanations.
-- 
Len

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Windows and Tomcat

2005-09-08 Thread Robert Harper
Tomcat will also need write access rights. When it starts, it changes some
of the XML configuration files and tries to create logs as well. You could
give your user full control to the tree under your CATALINA_HOME. Since you
say that when you set the User to have power user rights it Tomcat seems to
run, I would guess that this would fix your problem. Logs of the error might
help more but if Tomcat cannot write to the directories, logs will not be
able to be created.

Not knowing more detail, this would be my guess.

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Lalit Batra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 08, 2005 10:56 AM
To: Tomcat Users List
Subject: Re: Windows and Tomcat

Robert, 
Thanks for replying! 
1) When I installed it I was in Admin user, and installed it with Service 
option. In windows services, Apache Tomcat we have an option of starting 
with USER. The service starts and shows me the owner as the User and even 
in the Process information from (task Managger) I see User as the process 
(tomcat) owner. So yes it starts with the USER I started the service with. 

2) User priveledges: The user has read+Execute permissions for the webapps

folder (changed it also for Aplication folder Tomcat under programs) and 
restarted many times.Still http://localhost does not come up. (I am using 
80, modified server to run on port 80).

3) If I put the USER to Power User Group of XP everything works.


please help

thanks,
Lalit


On 9/8/05, Robert Harper [EMAIL PROTECTED] wrote:
 
 When you installed Tomcat, you were prompted if you want it to run as a
 service and if so, what user to use. You should be able to go into your
 Services app under ControlPannel\Administrative Tools\Services and change
 the use and password that Tomcat starts with. If you need to, create an
 account with the rights you want and set the service to start with that
 account and the password to use. You can also set how Tomcat is to start 
 as
 well.
 
 Robert S. Harper
 Information Access Technology, Inc.
 -Original Message-
 From: Lalit Batra [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 08, 2005 10:32 AM
 To: tomcat-user@jakarta.apache.org
 Subject: Windows and Tomcat
 
 Hi!
 I am new to the world of Tomcat and have recently installed 5.5.9 on a
 Windows (2003 and XP) Box. It works fine but only with Users having
 Administrative/power user privileges.
 1) When the service for tomcat is started with USER option, it does not go
 and read the Webapps. The folder has read+execute, read options set for 
 the
 normal USER.
 2) I have tried the same scenarios on both XP and Server 2003, the result 
 is
 
 same.
 
 Do we have to configure the tomcat-users.xml and if so then how do we add
 the access for a normal user on Windows Box.
 
 Please help!
 
 Thanks,
 Lalit
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Turning off the containers session

2005-09-08 Thread Atif Suleman

Paul Singleton wrote:


Atif Suleman wrote:


Can you stop tomcat container from creating a jsession cookie?



Check out the Context cookies=false attribute in

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

(similarly in 5.0 and 4.1)

Paul Singleton



That's cool.

But I want to stop tomcat container from creating a jsession cookie and 
URL rewriting for session identifier communication.


The reason why I want tomcat to stop doing session identifier 
communication is because I am working on a legacy web application,

which I want to break.

Ta
Atif.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Httpfilterproc and overflowing event logs

2005-09-08 Thread Keddie, Robert








Recently upgraded to tomcat 5.028 on windows 2000 server.
Loaded 4.1.2.09 sdk and the jakarta-tomcat-connects-jk2.0.4-win32-IIS.zip. Now
in my application events logs we are getting information errors like the ones
below that fill up our application log: Debug: [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/contents.htm] is pointing to the web-inf directory
Debug: [jk_isapi_plugin.c (420)]: HttpFilterProc [/contents.htm] is not a
servlet url Debug: [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host
redirection of ipaddress : 80 Any ideas on how to make this stop??? It appears
that even .htm pages created in frontpage 2003 are going through the redirection
process. HELP



Robert Keddie

Web Development/MIS

Phone: (352)671-8802
Marion County BCC

Florida












TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Ratti Michele
Good morning everybody!

I'd like to use Tomcat so I download this file
jakarta-tomcat-5.5.9.tar.gz
But I'm not able to uncompress it. 
On Linux I have this error: tar: A lone zero block at 25257
On Solaris I have this error: tar: Directory checksum error

Can someone help me?
I need this file. It's quiet urgent.
Thank you very much.

Michele

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Ben Souther
I just downloaded and tried with:
tar -zxvf jakarta-tomcat-5.5.9.tar.gz
on FC2

Try downloading it again


On Thu, 2005-09-08 at 14:14, Ratti Michele wrote:
 Good morning everybody!
 
 I'd like to use Tomcat so I download this file
 jakarta-tomcat-5.5.9.tar.gz
 But I'm not able to uncompress it. 
 On Linux I have this error: tar: A lone zero block at 25257
 On Solaris I have this error: tar: Directory checksum error
 
 Can someone help me?
 I need this file. It's quiet urgent.
 Thank you very much.
 
 Michele
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Ben Souther
F.W. Davison  Co.

CONFIDENTIALITY NOTICE:

This e-mail message, and any accompanying documents, is for the sole use
of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ant deployment to Tomcat issue - UnknownHostException: C

2005-09-08 Thread Mark Thomas

Usually caused by a URL of the form file://C:...

The fix is to add an extra / to your URL so it looks like:
file:///C:...

Mark

patrick van den Bemt wrote:

Hi there,

* Ant script Deployment from ws1 (with ant1.6.2) onto ws2 (with
tomcat5.0.28) returns build.xml:150: java.net.UnknownHostException:
C.

* Web interface Deployment from ws1 onto ws2 of the same .war file
succeeds (use same http://hostname:8081/manager and username+password)

Build.xml

taskdef name=testdeploy 


classname=org.apache.catalina.ant.DeployTask

classpath refid=tomcat.classpath /

/taskdef 


target name=deploy

depends=dist

description=deploy application to servlet container

testdeploy url=${manager.url}

username=${manager.username}

password=${manager.password}

path=${app.path}

war=file://${build.home}/${app.name}-${app.version}.war/

/target

Build.properties

manager.username = x

manager.password = y

manager.url = http://hostname:8081/managerhttp://hostname:8081/manager
and username+password)

Build.xml

taskdef name=testdeploy 


classname=org.apache.catalina.ant.DeployTask

classpath refid=tomcat.classpath /

/taskdef 


target name=deploy

depends=dist

description=deploy application to servlet container

testdeploy url=${manager.url}

username=${manager.username}

password=${manager.password}

path=${app.path}

war=file://${build.home}/${app.name}-${app.version}.war/

/target

Build.properties

manager.username = x

manager.password = y

manager.url = http://hostname:8081/managerhttp://hostname:8081/manager

If it would have been a network or tomcat related issue it would fail
web deployment as well I guess.

Therefore I assume it is an issue with the ant configuration.

Has anyone some clue on what I might do wrong ? Some help would be
very much appreciated.

Best regards,

Patrick.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Undeploy leaves residual files

2005-09-08 Thread Stephen Faustino
I've got a similar problem with jsf-impl.jar that is deployed in the
application's WEB-INF/lib directory using Tomcat 5.5.9. What's more, if I
use the Tomcat 5.5.9 that is packaged with the Jetspeed-2 distribution,
everything gets cleaned up as expected. Obviously, the portal guys fixed
something in their version Tomcat 5.5.9 to get this and Jetspeed-2 to work
correctly, but I can't find anything that documents what was fixed. 

Stephen L. Faustino
Senior Software Engineer

SecureLogix Corporation
13750 San Pedro, Suite 230
San Antonio, TX 78232
Direct/Vmail (210) 402-9669 x949
http://www.securelogix.com

SECURELOGIX CORPORATION EMAIL NOTICE - This transmission may be strictly
confidential. If you are not the intended recipient of this message, you may
not disclose, print, copy, or disseminate this information. If you have
received this in error, please reply and notify the sender (only) and delete
the message. Unauthorized interception of this e-mail is a violation of
federal criminal law. This communication does not reflect an intention by
the sender or the sender's principal to conduct a transaction or make any
agreement by electronic means. Nothing contained in this message or in any
attachment shall satisfy the requirements for a writing, and nothing
contained herein shall constitute a contract or electronic signature under
the Electronic Signatures in Global and National Commerce Act, any version
of the Uniform Electronic Transactions Act, or any other statute governing
electronic transactions.


Robert Taylor wrote:
I had the same issues and it looks like we are using similar 
technologies. Struts1.2.7, Hibernate 3.0.5, Spring 1.2.3

The struts issue (I think) is caused by validator access the 
validator.dtd resource and no releasing it. Under 
WEB-INF/classes/org/apache/commons/validator/resources I added both 
validator_1_1_3.dtd and validator-rules_1_0.dtd. Fpr struts, I moved 
(added) struts-config_1_2.dtd, tiles-config_1_1.dtd, and web-app_2_3.dtd 
to WEB-INF/classes/org/apache/struts/resources. For ehcache.jar, I ended 
up moving it to the CATALINE_HOME/common/lib directory. After that, 
everything seems to be working okay. I only just moved the ehcache out 
of WEB-INF/lib yesterday so I'm still testing those waters, but for now, 
it appears to have solved the problem.

I posted a question concerning the same issue earlier on this list but 
it was never answered (see ehacache prevents web app reload). I 
checked the Hibernate forum and found some postings but none that seemed 
to resolved this issue.

Please let me know if you figure a way to leave ehcache under 
WEB-INF/lib. It really rubs me the wrong way to have to treat it special 
during deployment.

HTH

/robert

Allistair Crossley wrote:
 Hi,
 
 I've noticed that undeploy of my web applications that the ROOT folder is
left \
 behind as follows; 
 ROOT
 WEB-INF
 classes
 log4j.properties
 lib
 ehcache.jar
 struts.jar
 
 The web application has a ContextListener that calls LogManager shutdowns
and \
 Introspector.flushCaches and so fourth to attempt to release resources.
Is this \
 part of that kind of problem?  
 Regards, Allistair.

Stephen L. Faustino
Senior Software Engineer

SecureLogix Corporation
13750 San Pedro, Suite 230
San Antonio, TX 78232
Direct/Vmail (210) 402-9669 x949
http://www.securelogix.com

SECURELOGIX CORPORATION EMAIL NOTICE - This transmission may be strictly
confidential. If you are not the intended recipient of this message, you may
not disclose, print, copy, or disseminate this information. If you have
received this in error, please reply and notify the sender (only) and delete
the message. Unauthorized interception of this e-mail is a violation of
federal criminal law. This communication does not reflect an intention by
the sender or the sender's principal to conduct a transaction or make any
agreement by electronic means. Nothing contained in this message or in any
attachment shall satisfy the requirements for a writing, and nothing
contained herein shall constitute a contract or electronic signature under
the Electronic Signatures in Global and National Commerce Act, any version
of the Uniform Electronic Transactions Act, or any other statute governing
electronic transactions.




httpfilterproc overflowing event logs help

2005-09-08 Thread Keddie, Robert








Recently upgraded to tomcat 5.028 on windows 2000 server.
Loaded 4.1.2.09 sdk and the jakarta-tomcat-connects-jk2.0.4-win32-IIS.zip. Now
in my application events logs we are getting information errors like the ones
below that fill up our application log: Debug: [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/contents.htm] is pointing to the web-inf directory
Debug: [jk_isapi_plugin.c (420)]: HttpFilterProc [/contents.htm] is not a
servlet url Debug: [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host
redirection of ipaddress : 80 Any ideas on how to make this stop??? It appears that
even .htm pages created in frontpage 2003 are going through the redirection
process. HELP





Robert Keddie

Web Development/MIS

Phone: (352)671-8802
Marion County BCC

Florida












tomcat 5.0.24 crashes silently when clustering turned on

2005-09-08 Thread Mike Noel
I am trying to set up a 2-node cluster.  Each node runs 5.0.24 with apache 
2.0.50 in front (with SSL).  I use the JK2 v. 2.0.43 connector.


What I'm seeing doesn't make sense.  I get tomcat and apache up on the 
first node and everything works fine. The clustering section in the 
server.xml file is uncommented and I've configured all of the appropriate 
values.  Once that's working I turn to node 2.  On the second node I start 
apache and tomcat and everything looks good for a bit.  I have most of the 
tomcat output going to the consoleappender so I capture that output into a 
file.  After anywhere from 1 - 2 minutes tomcat exits.  There is no thread 
dump printed in any of the logfiles (including stdout/stderr).  When I look 
in my log files I see normal activity for the little bit that TC is running 
and then it simply quits.  There is no indication of TC going through the 
shutdown process.


When tomcat exits it generates a non-zero exit code.  When I first saw this 
problem a few weeks ago it was when I was deploying clustering in my 
production environment.  After seeing TC exit like this 3 times in a row I 
rolled back my deployment and have spent the time trying to figure out what 
went wrong.  I didn't note the exit code number!  I have two different test 
environments setup with very similar configuration and I'm not having this 
problem on either of them.


I'm at the point now where I'm going to have to try to deploy to production 
again but since I've not changed anything I'm fully expecting it to 
fail.  This time I'll note the exit code number.


Have any of you seen anything like this?  What things can I adjust to 
enable more debugging output?


Thanks for any info.

-Mike Noel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Does Tomcat work on dual processor systems?

2005-09-08 Thread Asha Nallana
I am having problem with Tomcat running on a dual processor system? Has 
anyone tried this?

Does it work?

The server sockets from my application are not being created or 
accepting connections. I don't know the exact cause. But the symptom is 
that all client connections are not being refused with the cause 
Connection Refused.  The creation of these server sockets is random. 
It works 50% of the time. I have tried changing the start up sequence of 
Tomcat, Apache and my software but still no luck.


Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]



re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Leon Rosenberg
We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, it
works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a
multiprocessor problem.

Regards
Leon

 -Ursprüngliche Nachricht-
 Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
 Gesendet: Donnerstag, 8. September 2005 23:00
 An: tomcat-user@jakarta.apache.org
 Betreff: Does Tomcat work on dual processor systems?
 
 I am having problem with Tomcat running on a dual processor 
 system? Has anyone tried this?
 Does it work?
 
 The server sockets from my application are not being created 
 or accepting connections. I don't know the exact cause. But 
 the symptom is that all client connections are not being 
 refused with the cause Connection Refused.  The creation of 
 these server sockets is random. 
 It works 50% of the time. I have tried changing the start up 
 sequence of Tomcat, Apache and my software but still no luck.
 
 Thanks.
 
 --
 Asha Nallana
 Director - Austin R  D
 Interact Incorporated
 9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
 (512)502-9969 x 113
 [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Asha Nallana
My problem is that the server sockets that are supposed to be created by 
our servlet and wait for client connections are not being created. We 
have a RedHat7.3 linux system.  When I do a netstat -a | grep by socket 
connections only some of them show up.  Obviously, the client 
connections for the server sockets that were not created fail with the 
error message connection refused.


Asha

Leon Rosenberg wrote:


We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, it
works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a

multiprocessor problem.

Regards
Leon

 


-Ursprüngliche Nachricht-
Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. September 2005 23:00

An: tomcat-user@jakarta.apache.org
Betreff: Does Tomcat work on dual processor systems?

I am having problem with Tomcat running on a dual processor 
system? Has anyone tried this?

Does it work?

The server sockets from my application are not being created 
or accepting connections. I don't know the exact cause. But 
the symptom is that all client connections are not being 
refused with the cause Connection Refused.  The creation of 
these server sockets is random. 
It works 50% of the time. I have tried changing the start up 
sequence of Tomcat, Apache and my software but still no luck.


Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]


   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]



Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Asha Nallana

We are using Tomcat4.1.18, JDK1.4.2, Apache1.3 and mod_jk2.

Leon Rosenberg wrote:


We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, it
works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a

multiprocessor problem.

Regards
Leon

 


-Ursprüngliche Nachricht-
Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. September 2005 23:00

An: tomcat-user@jakarta.apache.org
Betreff: Does Tomcat work on dual processor systems?

I am having problem with Tomcat running on a dual processor 
system? Has anyone tried this?

Does it work?

The server sockets from my application are not being created 
or accepting connections. I don't know the exact cause. But 
the symptom is that all client connections are not being 
refused with the cause Connection Refused.  The creation of 
these server sockets is random. 
It works 50% of the time. I have tried changing the start up 
sequence of Tomcat, Apache and my software but still no luck.


Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]


   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]



Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Stephen Caine

Asha,

We are using Tomcat v5.5 running under OS X v10.4 (dual processor).   
No problems whatsoever.


Stephen Caine
CommonGround Softworks, Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Atanu Neogi
So, essentially, your web application is creating server socket instances 
and listening on them outside the context of Tomcat, right? That is, from 
your servlet code you are doing something like (new 
java.net.ServerSocket()).accept() ? Why do you call the ports are random? 
Is it because your servlet is exporting and registering 
UnicastRemoteObjects, i.e., also acting as an RMI server?

If so, then any issue you are seeing has got nothing to do with Tomcat or 
processor details but your network configuration? Is yours a multi-home 
server?








Asha Nallana [EMAIL PROTECTED] 
09/08/2005 05:13 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Does Tomcat work on dual processor systems?






My problem is that the server sockets that are supposed to be created by 
our servlet and wait for client connections are not being created. We 
have a RedHat7.3 linux system.  When I do a netstat -a | grep by socket 
connections only some of them show up.  Obviously, the client 
connections for the server sockets that were not created fail with the 
error message connection refused.

Asha

Leon Rosenberg wrote:

We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, 
it
works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a
multiprocessor problem.

Regards
Leon

 

-Ursprüngliche Nachricht-
Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. September 2005 23:00
An: tomcat-user@jakarta.apache.org
Betreff: Does Tomcat work on dual processor systems?

I am having problem with Tomcat running on a dual processor 
system? Has anyone tried this?
Does it work?

The server sockets from my application are not being created 
or accepting connections. I don't know the exact cause. But 
the symptom is that all client connections are not being 
refused with the cause Connection Refused.  The creation of 
these server sockets is random. 
It works 50% of the time. I have tried changing the start up 
sequence of Tomcat, Apache and my software but still no luck.

Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]


 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 


-- 
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]




R: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Ratti Michele
Thank you, Ben.
I tried but I get the same error.
:|



Da: Ben Souther [mailto:[EMAIL PROTECTED]
Inviato: gio 08/09/2005 20.29
A: Tomcat Users List
Oggetto: Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz



I just downloaded and tried with:
tar -zxvf jakarta-tomcat-5.5.9.tar.gz
on FC2

Try downloading it again


On Thu, 2005-09-08 at 14:14, Ratti Michele wrote:
 Good morning everybody!

 I'd like to use Tomcat so I download this file
 jakarta-tomcat-5.5.9.tar.gz
 But I'm not able to uncompress it.
 On Linux I have this error: tar: A lone zero block at 25257
 On Solaris I have this error: tar: Directory checksum error

 Can someone help me?
 I need this file. It's quiet urgent.
 Thank you very much.

 Michele

--
Ben Souther
F.W. Davison  Co.

CONFIDENTIALITY NOTICE:

This e-mail message, and any accompanying documents, is for the sole use
of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Andrew Miehs

Hi Asha,

Asha Nallana wrote:


We are using Tomcat4.1.18, JDK1.4.2, Apache1.3 and mod_jk2.



And somewhere you mentioned Redhat 7.3. Isn't that VERY old?

can you provide the output of

uname -a
ps auxw
netstat -anp

and probably server.xml

Does this setup work? Did it ever work? or are you trying to get it to 
work for the first time?


I would seriously suggest though, that you get someone in to help you 
look at this problem,
as it sounds like you may require quite a bit of help to get it up and 
running - (probably about

3 weeks of using this mailing list)

Regards

Andrew

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Asha Nallana
Yes, my web application is creating 4 server socket instances. Out of 
these 4 , some of them get created and some don't. The ones created each 
time differ and so the word random. My application does not use RMI. The 
server sockets are used to pass data (serialized ofcourse) between the 
client and our web server. Our webapplication displays real-time data of 
our servers.


Atanu Neogi wrote:

So, essentially, your web application is creating server socket instances 
and listening on them outside the context of Tomcat, right? That is, from 
your servlet code you are doing something like (new 
java.net.ServerSocket()).accept() ? Why do you call the ports are random? 
Is it because your servlet is exporting and registering 
UnicastRemoteObjects, i.e., also acting as an RMI server?


If so, then any issue you are seeing has got nothing to do with Tomcat or 
processor details but your network configuration? Is yours a multi-home 
server?









Asha Nallana [EMAIL PROTECTED] 
09/08/2005 05:13 PM

Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Does Tomcat work on dual processor systems?






My problem is that the server sockets that are supposed to be created by 
our servlet and wait for client connections are not being created. We 
have a RedHat7.3 linux system.  When I do a netstat -a | grep by socket 
connections only some of them show up.  Obviously, the client 
connections for the server sockets that were not created fail with the 
error message connection refused.


Asha

Leon Rosenberg wrote:

 

We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, 
   


it
 

works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a

multiprocessor problem.

Regards
Leon



   


-Ursprüngliche Nachricht-
Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. September 2005 23:00

An: tomcat-user@jakarta.apache.org
Betreff: Does Tomcat work on dual processor systems?

I am having problem with Tomcat running on a dual processor 
system? Has anyone tried this?

Does it work?

The server sockets from my application are not being created 
or accepting connections. I don't know the exact cause. But 
the symptom is that all client connections are not being 
refused with the cause Connection Refused.  The creation of 
these server sockets is random. 
It works 50% of the time. I have tried changing the start up 
sequence of Tomcat, Apache and my software but still no luck.


Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]




 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





   



 



--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]



Re: R: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Hari Mailvaganam
There could be a corruption during the download - try to download from 
another mirror.

regards,

Hari

On 9/8/05, Ratti Michele [EMAIL PROTECTED] wrote:
 
 Thank you, Ben.
 I tried but I get the same error.
 :|
 
 
 
 Da: Ben Souther [mailto:[EMAIL PROTECTED]
 Inviato: gio 08/09/2005 20.29
 A: Tomcat Users List
 Oggetto: Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz
 
 
 
 I just downloaded and tried with:
 tar -zxvf jakarta-tomcat-5.5.9.tar.gz
 on FC2
 
 Try downloading it again
 
 
 On Thu, 2005-09-08 at 14:14, Ratti Michele wrote:
  Good morning everybody!
 
  I'd like to use Tomcat so I download this file
  jakarta-tomcat-5.5.9.tar.gz
  But I'm not able to uncompress it.
  On Linux I have this error: tar: A lone zero block at 25257
  On Solaris I have this error: tar: Directory checksum error
 
  Can someone help me?
  I need this file. It's quiet urgent.
  Thank you very much.
 
  Michele
 
 --
 Ben Souther
 F.W. Davison  Co.
 
 CONFIDENTIALITY NOTICE:
 
 This e-mail message, and any accompanying documents, is for the sole use
 of
 the intended recipient(s) and may contain confidential and privileged
 information. Any unauthorized review, use, disclosure, distribution or
 copying is prohibited. If you are not the intended recipient, please
 contact our office by email or by telephone at (508) 747-7261 and
 immediately destroy all copies of the original message.
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: R: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Liz Donaldson

You must use the gnu version of tar ...


Hari Mailvaganam wrote:

There could be a corruption during the download - try to download from 
another mirror.


regards,

Hari

On 9/8/05, Ratti Michele [EMAIL PROTECTED] wrote:
 


Thank you, Ben.
I tried but I get the same error.
:|



Da: Ben Souther [mailto:[EMAIL PROTECTED]
Inviato: gio 08/09/2005 20.29
A: Tomcat Users List
Oggetto: Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz



I just downloaded and tried with:
tar -zxvf jakarta-tomcat-5.5.9.tar.gz
on FC2

Try downloading it again


On Thu, 2005-09-08 at 14:14, Ratti Michele wrote:
   


Good morning everybody!

I'd like to use Tomcat so I download this file
jakarta-tomcat-5.5.9.tar.gz
But I'm not able to uncompress it.
On Linux I have this error: tar: A lone zero block at 25257
On Solaris I have this error: tar: Directory checksum error

Can someone help me?
I need this file. It's quiet urgent.
Thank you very much.

Michele
 


--
Ben Souther
F.W. Davison  Co.

CONFIDENTIALITY NOTICE:

This e-mail message, and any accompanying documents, is for the sole use
of
the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure, distribution or
copying is prohibited. If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: R: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Ron Price
Try running this command:

[EMAIL PROTECTED] local]# md5sum jakarta-tomcat-5.5.9.tar.gz
35ea177af353446af1de3c762a4f0f4d jakarta-tomcat-5.5.9.tar.gz
^
|---you should get this big string here, if it doesn't match then it was
corrupted in the download if your number matches mine you have something
else going on...

;-)


On 9/8/05, Liz Donaldson [EMAIL PROTECTED] wrote:
 
 You must use the gnu version of tar ...
 
 
 Hari Mailvaganam wrote:
 
 There could be a corruption during the download - try to download from
 another mirror.
 
 regards,
 
 Hari
 
 On 9/8/05, Ratti Michele [EMAIL PROTECTED] wrote:
 
 
 Thank you, Ben.
 I tried but I get the same error.
 :|
 
 
 
 Da: Ben Souther [mailto:[EMAIL PROTECTED]
 Inviato: gio 08/09/2005 20.29
 A: Tomcat Users List
 Oggetto: Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz
 
 
 
 I just downloaded and tried with:
 tar -zxvf jakarta-tomcat-5.5.9.tar.gz
 on FC2
 
 Try downloading it again
 
 
 On Thu, 2005-09-08 at 14:14, Ratti Michele wrote:
 
 
 Good morning everybody!
 
 I'd like to use Tomcat so I download this file
 jakarta-tomcat-5.5.9.tar.gz
 But I'm not able to uncompress it.
 On Linux I have this error: tar: A lone zero block at 25257
 On Solaris I have this error: tar: Directory checksum error
 
 Can someone help me?
 I need this file. It's quiet urgent.
 Thank you very much.
 
 Michele
 
 
 --
 Ben Souther
 F.W. Davison  Co.
 
 CONFIDENTIALITY NOTICE:
 
 This e-mail message, and any accompanying documents, is for the sole use
 of
 the intended recipient(s) and may contain confidential and privileged
 information. Any unauthorized review, use, disclosure, distribution or
 copying is prohibited. If you are not the intended recipient, please
 contact our office by email or by telephone at (508) 747-7261 and
 immediately destroy all copies of the original message.
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Atanu Neogi
Ask yourself these questions:
a. Does the web-applications under Tomcat receive all HTTP(S) requests 
properly? Or are there any issue even for Tomcat's own sockets in 8080 and 
8443 (or whatever ports you have configured to) ports?

b. If yes (which I think is the case and which verifies that there is 
nothing wrong with your Tomcat server), can you write a simple Java-based 
application/service/process that uses your server socket creation code 
that is present within the web-application and let it run?  (If no then 
the Tomcat server itself having problems opening up or listening to 
sockets and you will need network analysis tools to find out what is 
happening on those well-known ports.)

c. Now do you observe the same problem? (I think you will)

d. Which ports are you using to listen to for your server sockets? If your 
server has multiple NICs are you making sure that the sockets are being 
created on the IP you want to?

e. Do you have any firewalls or network monitoring applications etc. 
blocking or controlling those  ports? 







Asha Nallana [EMAIL PROTECTED] 
09/08/2005 05:53 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Does Tomcat work on dual processor systems?






Yes, my web application is creating 4 server socket instances. Out of 
these 4 , some of them get created and some don't. The ones created each 
time differ and so the word random. My application does not use RMI. The 
server sockets are used to pass data (serialized ofcourse) between the 
client and our web server. Our webapplication displays real-time data of 
our servers.

Atanu Neogi wrote:

So, essentially, your web application is creating server socket instances 

and listening on them outside the context of Tomcat, right? That is, from 

your servlet code you are doing something like (new 
java.net.ServerSocket()).accept() ? Why do you call the ports are random? 

Is it because your servlet is exporting and registering 
UnicastRemoteObjects, i.e., also acting as an RMI server?

If so, then any issue you are seeing has got nothing to do with Tomcat or 

processor details but your network configuration? Is yours a multi-home 
server?








Asha Nallana [EMAIL PROTECTED] 
09/08/2005 05:13 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Does Tomcat work on dual processor systems?






My problem is that the server sockets that are supposed to be created by 
our servlet and wait for client connections are not being created. We 
have a RedHat7.3 linux system.  When I do a netstat -a | grep by socket 
connections only some of them show up.  Obviously, the client 
connections for the server sockets that were not created fail with the 
error message connection refused.

Asha

Leon Rosenberg wrote:

 

We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, 

 

it
 

works (under linux / jdk 1.4). 
Maybe you should provide more details, but it doesn't sounds like a
multiprocessor problem.

Regards
Leon



 

-Ursprüngliche Nachricht-
Von: Asha Nallana [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. September 2005 23:00
An: tomcat-user@jakarta.apache.org
Betreff: Does Tomcat work on dual processor systems?

I am having problem with Tomcat running on a dual processor 
system? Has anyone tried this?
Does it work?

The server sockets from my application are not being created 
or accepting connections. I don't know the exact cause. But 
the symptom is that all client connections are not being 
refused with the cause Connection Refused.  The creation of 
these server sockets is random. 
It works 50% of the time. I have tried changing the start up 
sequence of Tomcat, Apache and my software but still no luck.

Thanks.

--
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100 Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]




 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





 


 


-- 
Asha Nallana
Director - Austin R  D
Interact Incorporated
9390 Research Blvd. Kaleido II, Suite 100
Austin, TX 78759
(512)502-9969 x 113
[EMAIL PROTECTED]




Re: R: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Liz Donaldson
If you do a search in google for gnu tar untar tomcat you will get many 
hits indicating gnu tar is needed to untar tomcat on Solaris. I myself 
have to do this all the time in my Sun box or I get exact errors 
indicated below.


Ron Price wrote:


Try running this command:

[EMAIL PROTECTED] local]# md5sum jakarta-tomcat-5.5.9.tar.gz
35ea177af353446af1de3c762a4f0f4d jakarta-tomcat-5.5.9.tar.gz
^
|---you should get this big string here, if it doesn't match then it was
corrupted in the download if your number matches mine you have something
else going on...

;-)


On 9/8/05, Liz Donaldson [EMAIL PROTECTED] wrote:
 


You must use the gnu version of tar ...


Hari Mailvaganam wrote:

   


There could be a corruption during the download - try to download from
another mirror.

regards,

Hari

On 9/8/05, Ratti Michele [EMAIL PROTECTED] wrote:


 


Thank you, Ben.
I tried but I get the same error.
:|



Da: Ben Souther [mailto:[EMAIL PROTECTED]
Inviato: gio 08/09/2005 20.29
A: Tomcat Users List
Oggetto: Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz



I just downloaded and tried with:
tar -zxvf jakarta-tomcat-5.5.9.tar.gz
on FC2

Try downloading it again


On Thu, 2005-09-08 at 14:14, Ratti Michele wrote:


   


Good morning everybody!

I'd like to use Tomcat so I download this file
jakarta-tomcat-5.5.9.tar.gz
But I'm not able to uncompress it.
On Linux I have this error: tar: A lone zero block at 25257
On Solaris I have this error: tar: Directory checksum error

Can someone help me?
I need this file. It's quiet urgent.
Thank you very much.

Michele


 


--
Ben Souther
F.W. Davison  Co.

CONFIDENTIALITY NOTICE:

This e-mail message, and any accompanying documents, is for the sole use
of
the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure, distribution or
copying is prohibited. If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




   



 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



web.xml, url-pattern

2005-09-08 Thread Trond Hersløv
Hi! I'm running Tomcat 5.5.9 and I'm struggeling getting the grip of how to 
work with the deployment descriptor. 
If I do the following (the web.xml below) I can access the TestServlet with:
http://www.mymachine.no/foxer and I get the correct output.

But, if I try using wildcards, eg. url-pattern/*foxer/url-pattern it doesent 
work anymore. In fact it seems like the astrisk is not interpreted as a 
wildcard but a normal character. I can accsses the servlet with 
http://www.mymachine.no/*foxser.

If I try to map the servlet so that it seems like a jsp-page 
url-pattern/foxer.jsp/url-pattern, it doesn't work at all.

In the Java Servlet  JSP Cookbook by Bruce W. Perry from O`Reilly I have 
read what I know about web.xml, but maybe it has been som changes in how 
version 5.5.9 works.

In the book I also read that I should be able to access the servlet even if 
it's not mapped up in web.xml. http://www.mymachine.no/servlet/foxer Ofcourse 
this does also not work.

Who can explain how to use the url-pattern and maybe tell me where I can find 
some documentation on how to configure web.xml

Thanks in advance
Trond


?xml version=1.0 encoding=ISO-8859-1?
web-app
servlet
servlet-namefoobar/servlet-name
servlet-classcom.tdev.test.TestServlet/servlet-class
/servlet

servlet-mapping
servlet-namefoobar/servlet-name
url-pattern/foxer/url-pattern
/servlet-mapping
/web-app



**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



workers.properties load balancing

2005-09-08 Thread Steve Dodge
JK 1.2.14 with Tomcat 5.0.28 and Apache 2.0.52 on Linux RH AS4, Tomcats 
are installed on different machines.   I cannot get a load balancing 
worker to work. mod_jk forwards request to tomcat just fine as long as I 
don't try and use a load balancing worker in my worker.list. The 
mod_jk.log says did not find a worker.


==workers.properties
worker.list=router

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=server.ip1
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.cachesize=10

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server.ip2
worker.worker2.port=8009
worker.worker2.lbfactor=1
worker.worker2.cachesize=10


worker.router.type=lb
worker.router.balance_workers=worker1,worker2
#worker.router.sticky_seesion=True

worker.status.type=status

=mod_jk.config==
JkWorkersFile /etc/httpd/conf.d/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLeveltrace
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T

JkMount /jmx-console/*.jsp router
JkMount /jkstatus/* status


When I use worker.list=worker1,worker1 and replace JkMount 
/jmx-console/*.jsp worker1 requests are forwarded, but I loose load 
balancing.  Its like the minute I put the load balancer worker into the 
list, the whole workers configuration is bad.


Thanks in advance,
Steve


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Desperate: trying to get Tomcat working through IIS

2005-09-08 Thread David Thielen
Hi;

 

I followed the instructions in
http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html It references
for configuring Tomcat with IIS 5 and 6 with a link - but the link is dead
and a search in the wiki it goes to shows nothing. I rebooted after
installing before attempting to connect.

 

When I go to http://localhost:8080/jsp-examples/index.html - it works. When
I go to http://localhost/jsp-examples/index.html I get an error 404.

 

My IIS log is:

#Software: Microsoft Internet Information Services 5.1

#Version: 1.0

#Date: 2005-09-08 23:37:35

#Fields: time c-ip cs-method cs-uri-stem sc-status 

23:37:35 127.0.0.1 GET /jsp-examples/index.html 404

 

My isapi_redirect.log log file is created, but is empty.

 

I used the isapi_redirect-1.2.14.exe setup program, then checked the
registry settings and they all appear to be correct. I followed every step
in the howto except the ones done by the setup program.

 

My uriworkermap.properties is:

/servlet-examples/*=ajp13w

!/servlet-examples/*.jpeg=ajp13w

 

My workers.properties.minimal is:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

My server.xml includes (only node with ajp in it):

Connector port=8009 

   enableLookups=false redirectPort=8443 protocol=AJP/1.3
/

 

 

Please help - I'm desperate.

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



Re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Luis Torres

Hello,

Im running Tomcat 4.01, 4.03, 4.131, 5.5.4 and 5.5.9 on Solaris 8/9 and 
also in AIX 4.3 with no problems at all.


The OS takes care of passing the processing to a particular CPU.

Regards,

Luis

Andrew Miehs wrote:


Hi Asha,

Asha Nallana wrote:


We are using Tomcat4.1.18, JDK1.4.2, Apache1.3 and mod_jk2.



And somewhere you mentioned Redhat 7.3. Isn't that VERY old?

can you provide the output of

uname -a
ps auxw
netstat -anp

and probably server.xml

Does this setup work? Did it ever work? or are you trying to get it to 
work for the first time?


I would seriously suggest though, that you get someone in to help you 
look at this problem,
as it sounds like you may require quite a bit of help to get it up and 
running - (probably about

3 weeks of using this mailing list)

Regards

Andrew

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: R: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz

2005-09-08 Thread Luis Torres

Or just try:

tar xvf filename.tar

without the -

Luis

Ron Price wrote:


Try running this command:

[EMAIL PROTECTED] local]# md5sum jakarta-tomcat-5.5.9.tar.gz
35ea177af353446af1de3c762a4f0f4d jakarta-tomcat-5.5.9.tar.gz
^
|---you should get this big string here, if it doesn't match then it was
corrupted in the download if your number matches mine you have something
else going on...

;-)


On 9/8/05, Liz Donaldson [EMAIL PROTECTED] wrote:
 


You must use the gnu version of tar ...


Hari Mailvaganam wrote:

   


There could be a corruption during the download - try to download from
another mirror.

regards,

Hari

On 9/8/05, Ratti Michele [EMAIL PROTECTED] wrote:


 


Thank you, Ben.
I tried but I get the same error.
:|



Da: Ben Souther [mailto:[EMAIL PROTECTED]
Inviato: gio 08/09/2005 20.29
A: Tomcat Users List
Oggetto: Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz



I just downloaded and tried with:
tar -zxvf jakarta-tomcat-5.5.9.tar.gz
on FC2

Try downloading it again


On Thu, 2005-09-08 at 14:14, Ratti Michele wrote:


   


Good morning everybody!

I'd like to use Tomcat so I download this file
jakarta-tomcat-5.5.9.tar.gz
But I'm not able to uncompress it.
On Linux I have this error: tar: A lone zero block at 25257
On Solaris I have this error: tar: Directory checksum error

Can someone help me?
I need this file. It's quiet urgent.
Thank you very much.

Michele


 


--
Ben Souther
F.W. Davison  Co.

CONFIDENTIALITY NOTICE:

This e-mail message, and any accompanying documents, is for the sole use
of
the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure, distribution or
copying is prohibited. If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




   



 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NoSuchElementException in DeltaRequest

2005-09-08 Thread Steve Mactaggart
Hi all,

We have just moved to using Tomcat in a clustered environment, and now on a
farily regular basis we are getting the following error occur from within
the clustering logic.

java.util.NoSuchElementException
 at java.util.LinkedList.remove(LinkedList.java:579)
 at java.util.LinkedList.removeFirst(LinkedList.java:131)
 at
org.apache.catalina.cluster.session.DeltaRequest.addAction(DeltaRequest.java
:102)
 at
org.apache.catalina.cluster.session.DeltaRequest.setAttribute(DeltaRequest.j
ava:69)
 at
org.apache.catalina.cluster.session.DeltaSession.setAttribute(DeltaSession.j
ava:1265)
 at
org.apache.catalina.cluster.session.DeltaSession.setAttribute(DeltaSession.j
ava:1246)
 at
org.apache.catalina.cluster.session.DeltaSessionFacade.setAttribute(DeltaSes
sionFacade.java:130)
 at
au.com.bestbets.central.command.user.BaseUserLoginCmd.innerExecute(BaseUserL
oginCmd.java:111)

I believe we are using tomcat 5.0.29 running under Linux.

Any ideas on what is causing this one?


Steve Mactaggart
Best Bets


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



where to place the /META-INF/context.xml file?

2005-09-08 Thread Ben Wong
Hi,
 
Apologies, but this is a newbie question. In the tomcat docs, it states that
 
A /META-INF/context.xml file can be used to define Tomcat specific 
configuration...
 
Could you please tell me where /META-INF/context.xml should be placed relative 
to the web application root? In other words, if I have a web application in a 
directory /MyWebApp, should the /META-INF  be at   /MyWebApp/META-INF or should 
it be under /WEB-INF?
 
Thanks.
 


isapi_redirector or isapi_redirector2?

2005-09-08 Thread David Thielen
Hi;

 

Is isapi_redirector2 that latest  greatest? On
http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.cgi
http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.cgi%20
JK2  JK2 is listed as deprecated.

 

I am using IIS 5.1 for development (XP) and 6.0 for production (Windows
2003).

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



Fw: How to force the Tomcat manager app to run in SSL only?

2005-09-08 Thread Augmentin

Hi All,

I have looked into docs about manager.xml, Context, Valves etc but still 
find no clues.


Since manager does not actually exist under /webapps I can't put a 
security-constraint in a web.xml file.


Thanks for help!
Raymond 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to force the Tomcat manager app to run in SSL only?

2005-09-08 Thread Caldarale, Charles R
 From: Augmentin [mailto:[EMAIL PROTECTED] 
 Subject: Fw: How to force the Tomcat manager app to run in SSL only?
 
  Since manager does not actually exist under /webapps I can't put a 
  security-constraint in a web.xml file.

You need to look around a little bit more, such as in server/webapps.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSP on RHEL4 with Apache httpd RPM?

2005-09-08 Thread Nikola Milutinovic

Peter Flynn wrote:


I need to add JSP ability to a RHEL4 server running the
current Apache httpd from the Red Hat RPM. Apparently the 
httpd RPM available from Red Hat doesn't have the hooks

needed to allow JSP files to be passed to Tomcat (or if it
does, I can't find them).

Has anyone managed to serve JSP with Tomcat on a RHEL4
machine running their stock httpd? 

I'd rather not have to resort to building Apache httpd from 
scratch, as that would mean also moving away from RPMs for 
MySQL and PHP, in order to maintain synchronisation between 
them.
 



You're looking for mod_jk RPM or mod_jk2 (which has been dropped from 
development). If you see mod_webapp RPM, run for your life.


As a workaround, you should be able to use mod_proxy to proxy requests 
for TC to it.


Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]