Re: Tomcat clustering session data

2006-04-21 Thread Peter Rossbach
Hi, currently the Tomcat 5.0 and 5.5 only supports session replication, also JBoss to that. Filip has start a new cluster module and this version supports also application context replication. Look at tomcat source catalina/modules/ha and test it. Peter Am 20.04.2006 um 18:04 schrieb

ANT task for context.xml generation?

2006-04-21 Thread Nikita Tovstoles
Hi, Is there an ANT task for generating context.xml files? thanks, -nikita - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread Leon Rosenberg
I don't know it depends on your implementation of hashCode() method. Are you using 1.5? static int hash(Object x) { int h = x.hashCode(); -- your programm is here h += ~(h 9); h ^= (h 14); h += (h 4); h ^= (h 10); return h; } I

Re: exception in jspc with 5.5.16

2006-04-21 Thread Leon Rosenberg
Ok, it seems that my mind was rather broken than the jspc. We reinstalled a clean tomcat copy and now it works. Sorry for disturbing :-) regards Leon On 4/20/06, Leon Rosenberg [EMAIL PROTECTED] wrote: I found that same issue was discussed by Allistair and Remy in 2005 with 5.5.11, and

Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread David Delbecq
There are several ways to find out where tomcat is spending all it's cpu time 1) when it's a 100% CPU eating time issue a few stacktraces at a 10 or 20 seconds interval. then compare all those trace and try to find a stacktrace which is recurrent. This is clearly not easy and might require quite a

Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread David Delbecq
Leon Rosenberg a écrit : I don't know it depends on your implementation of hashCode() method. Are you using 1.5? static int hash(Object x) { int h = x.hashCode(); -- your programm is here h += ~(h 9); h ^= (h 14); h += (h 4); h ^= (h 10);

Tomcat WIKI only in polish??? - http://wiki.apache.org/tomcat/

2006-04-21 Thread Leon Rosenberg
No english version? regards Leon http://wiki.apache.org/tomcat/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat WIKI only in polish??? - http://wiki.apache.org/tomcat/

2006-04-21 Thread David Delbecq
ROFLMAO!! MichalDziczkowski did the polish translation on 18 april, but it seems he did all his commits on wrong web page :D The english version is still accessible in the page history. http://wiki.apache.org/tomcat/FrontPage?action=recallrev=21 You probably must warn a wiki maintainer of this

Re: Properties file problem

2006-04-21 Thread Marc Farrow
I am sorry, but I do not know what you are trying to do. The best place for this type of question would be on a Java list. This is a list specific to Tomcat issues. On 4/20/06, VIKASS NAGPAL [EMAIL PROTECTED] wrote: Hi All, I have a problem here. I have Pproperties file. It has the

Re: Properties file problem

2006-04-21 Thread Hadraba Petr
Hi Vikas, some details: I see you're correctly using the getClass.getResource() (I'm using getServletContext().getResourceAsStream() or getServletContext().getResource()). But, Why are you creating resources? You see all the war content in the host OS filesystem because of unpackWars=true. This

Change location of work directory?

2006-04-21 Thread Trevor Miller
Hi All, I've started working with the Tomcat embbed server and have managed to get it running and serving JSPs. What I'd like to know is if there's a way to explicitly specify a location of the work directory? I wish to have this under /tmp on linux as opposed to in the tomcat directory. Thanks,

Problem with the xsl:import

2006-04-21 Thread BLAND, Geoff, GBM
Using Apache Tomcat 5.0.28 I'm having a problem with the xsl:import command. I have several Tomcat running on the same server (they could be different releases of code so can't share resources). An XSLT script is called via a JSP to convert XML to HTML (xsl:apply nameXml=routesummary

RE: Change location of work directory?

2006-04-21 Thread Derrick Koes
Yes, set the workDir attribute on the context element. -Original Message- From: Trevor Miller [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 9:21 AM To: users@tomcat.apache.org Subject: Change location of work directory? Hi All, I've started working with the Tomcat embbed

Re: Tomcat clustering session data

2006-04-21 Thread Filip Hanik - Dev Lists
http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/modules/groupcom/ I'm gonna focus on writing documentation for this module next week, by then I will publish it to a site so that you can read it for a quick start, take a look at the LoadTest and the MapDemo applications. For a very

Re: Problem with the xsl:import

2006-04-21 Thread Marc Farrow
You need to put the XML import file (in your case routesummarycontent.xsl) somewhere that whomever is providing the resource (Apache or Tomcat) can see it. Let me try to elaborate. We use an AJP connector with Tomcat and receives requests from Apache on port 8009. We forward all Servlet stuff

Re: Change location of work directory?

2006-04-21 Thread Trevor Miller
I assume that's in the server.xml file, which I'm not using. I'm using the following code with no server.xml: System.setProperty(catalina.home, getPath()); embedded = new Embedded(); engine = embedded.createEngine(); engine.setDefaultHost(localhost); host = embedded.createHost(localhost,

Re: Change location of work directory?

2006-04-21 Thread Trevor Miller
Figured it out. Cast Context to StandardContext and call setWorkDir. Thanks!! On 4/21/06, Trevor Miller [EMAIL PROTECTED] wrote: I assume that's in the server.xml file, which I'm not using. I'm using the following code with no server.xml: System.setProperty(catalina.home, getPath());

RE: Access server from outside

2006-04-21 Thread Jonathan Pare
Any of you have an idea why I can't access my websites from outside my home ? Thanks. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access server from outside Date: Thu, 20 Apr 2006 07:44:41 -0400 Hi, Why can't I access my websites from outside my network ? On the

Re: Access server from outside

2006-04-21 Thread David Kerber
Does your ISP allow you to run a server? Mine blocks pretty much all incoming requests. Jonathan Pare wrote: Any of you have an idea why I can't access my websites from outside my home ? Thanks. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access server from outside

Error starting examples with 5.5.16

2006-04-21 Thread Anthony Richardella
Hi, I'm having a problem with the default install of 5.5.16. When I go into the manager and try start either /jsp-examples or /servlet examples I get the following errors. I'm using the Sun jre 1.5.0_06. catalina.log Apr 21, 2006 10:24:14 AM

RE: Error starting examples with 5.5.16

2006-04-21 Thread Caldarale, Charles R
From: Anthony Richardella [mailto:[EMAIL PROTECTED] Subject: Error starting examples with 5.5.16 I'm having a problem with the default install of 5.5.16. When I go into the manager and try start either /jsp-examples or /servlet examples I get the following errors. The sample .class files

[offtopic] Performance check

2006-04-21 Thread Danny Lee
Hi guys! A really sure question, for those of you, who already finished a project. Where can I find some kind of statistics telling me, how many users per day can produce how many simultaneous clicks. I kind of seen such a stuff, but can't find it again. For example, if my application can

RE: [offtopic] Performance check

2006-04-21 Thread Peter Crowther
From: Danny Lee A really sure question, for those of you, who already finished a project. Where can I find some kind of statistics telling me, how many users per day can produce how many simultaneous clicks. I kind of seen such a stuff, but can't find it again. For example, if my

RE: Re: Access server from outside

2006-04-21 Thread Jonathan Pare
I contacted my ISP and they are blocking the port 80. They also forbid to run any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or other. So basicaly, that mean that I could just uninstall tomcat and forget all about it !?! Date: Fri, 21 Apr 2006 10:28:41 -0400 From: [EMAIL

RE: Re: Access server from outside

2006-04-21 Thread Peter Crowther
From: Jonathan Pare [mailto:[EMAIL PROTECTED] I contacted my ISP and they are blocking the port 80. [...] So basicaly, that mean that I could just uninstall tomcat and forget all about it !?! Or change ISP to one that suits your needs. - Peter

RE: Re: Access server from outside

2006-04-21 Thread Steve Ochani
On 21 Apr 2006 at 11:13, Jonathan Pare wrote: I contacted my ISP and they are blocking the port 80. They also forbid to run any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or other. So basicaly, that mean that I could just uninstall tomcat and forget all about it !?! You could

error listener start during aplication start up

2006-04-21 Thread lee hwaying
I have the following error message while starting up my application in Tomcat. I am using log4j.xml in my custom application. can someone help thanks. INFO: XML validation disabled log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig). log4j:WARN Please

Re: [offtopic] Performance check

2006-04-21 Thread Danny Lee
Thanks for your answer! I see your point. Well in my case this is a usual web-shop portal. So the question here maybe is: how many normal-behavior shopping users have to be present on my site to generate user 20 clicks per second in the peak-near area, let say 80-90% of the time. I guess

RE: Re: Access server from outside

2006-04-21 Thread Jonathan Pare
Yeah but in my area, I don't have that much choices ! Plus, I have I package deal with that ISP (IP phone + log distance call + television + internet). Maybe I'll try the other port suggestion and see if they bother my with the not running a server policy... Thanks guys ! Subject: RE:

Re: Access server from outside

2006-04-21 Thread David Kerber
Some ISP's (not all!) will make exceptions for non-commercial, low-volume personal web sites if you ask nicely. You have nothing to lose by explaining what you want to do, and asking them to allow a single port in to your system. Dave . Jonathan Pare wrote: I contacted my ISP and they are

Re: Access server from outside

2006-04-21 Thread David Kerber
Or you could pay for a business line, which would allow servers. Of course it will cost more... Jonathan Pare wrote: I contacted my ISP and they are blocking the port 80. They also forbid to run any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or other. So basicaly, that mean that I

Re: Access server from outside

2006-04-21 Thread David Kerber
If you keep the data transfer volume low, they probably won't notice... Jonathan Pare wrote: Yeah but in my area, I don't have that much choices ! Plus, I have I package deal with that ISP (IP phone + log distance call + television + internet). Maybe I'll try the other port suggestion and see

Re: Tomcat clustering session data

2006-04-21 Thread Len Popp
Thanks, Filip! -- Len On 4/21/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/modules/groupcom/ I'm gonna focus on writing documentation for this module next week, by then I will publish it to a site so that you can read it for

Re: connector maxProcessor attribute question

2006-04-21 Thread Rumpa Giri
We are currently using 5.0.28 tomcat version. We were referring to docs for version 5.0. Thanks, Rumpa Giri Bill Barker [EMAIL PROTECTED] wrote: Rumpa Giri wrote in message news:[EMAIL PROTECTED] I had 2 questions regarding tomcat configuration: 1) We are currently trying to reconfigure

inscrutable TC 5.5.12 startup

2006-04-21 Thread Chris Pat
Hello I hope someone can doesnt mind a little coaching. I am sure this is brain-fade, however I have a struts app in TC 5.5.12 that gives a cfne for a PlugIn that does not exist. Yes I know that is impossible, ultimately, however I have searched the application's web/struts-config.xml, the

Problems configuring SSL connector

2006-04-21 Thread EddieE
I am trying to move from Tomcat 4.1.27 to 5.5.16 I use Tomcat to test round trip http/https communication from a JMS server to http and https clients. I'm using keystore files so I needed to add these to server.xml. I'm using native libraries since it appears that these are required if you want

Reducing Tomcat (Embedded Or Regular) memory

2006-04-21 Thread Chirag
Hi, We are trying to upgrade Tomcat from an older version 3.x to 5.x and noticing that Tomcat 5.x requires quite more memory than 3.x. We are running it in constrained env. with limited memory and other resources. In order to fully explore all possibilities, we also ran Embedded Tomcat for

question on jvmRoute parameter (tomcat version 5.0.28)

2006-04-21 Thread Rumpa Giri
According to the 5.0 docs, the jvmRoute description says the following: Identifier which must be used in load balancing scenarios to enable session affinity. The indetifier, which must be unique across all Tomcat 5 servers which participate in the cluster, will be appended to

NoClassDefFoundError for Bootstrap on Solaris

2006-04-21 Thread Michael Gesundheit
I have put the jar file on the classpath, I put the path to where the jar is as well. I don't know about any other option to try. Any clue? Thanks, -Michael

Re: inscrutable TC 5.5.12 startup

2006-04-21 Thread Chris Pat
Hello Sorry to self-answer, but for edification purposes. I undeployed all other apps and it worked. That means the config in another app was being used in the startup of the one in question. I thought this was impossible. I checked in the shared and the PlugIn class was not there. I

RE: question on jvmRoute parameter (tomcat version 5.0.28)

2006-04-21 Thread Tim Lucia
The set of worker names is one-to-one and onto the set of jvmRoutes. I use the short host name, an underscore and the port number (ajp), i.e., Tomcat1_9009 Tomcat2_10009 Tomcat3_11009 Tomcat4_12009 For the worker names and the jvm routes, thus making the identifiers unique, and following the

RE: SSL tomcat apache FAILURE

2006-04-21 Thread Crom James B.
Anyone help! I have followed the directions precisely in http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html , (yes we have tomcat 5.x) and cannot get port 8443 or 443 to respond at all via web browser or by a portscan. Running on a windows 2003 ent edition, apache-tomcat is the ONLY

Logging?

2006-04-21 Thread David Rush
Should Tomcat be logging the HTTP requests that it gets? I'm debugging 5.5.16 on Windows. I've installed commons-logging.jar and log4j-1.2.13.jar into common/lib, and log4j.properties into common/lib. My log4j.properties looks like this right now: #log4j.rootLogger=INFO, RFA

RE: Logging?

2006-04-21 Thread Derrick Koes
Try the RequestDumperValve. -Original Message- From: David Rush [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 5:00 PM To: Tomcat Users List Subject: Logging? Should Tomcat be logging the HTTP requests that it gets? I'm debugging 5.5.16 on Windows. I've installed

Re: error listener start during aplication start up

2006-04-21 Thread Hadraba Petr
Hi, this warning says that tomcat is using log4j, but can't find the configuration file /common/classes/log4j.properties. But I don't know how tell tomcat to ignore log4j.jar.:-( More info about Tomcat vs. Log4j: http://tomcat.apache.org/tomcat-5.5-doc/logging.html PETR On 4/21/06, lee

Re: IE 20 session cookies limitation

2006-04-21 Thread Rick Wong
This is neat. Thanks! -- Rick Peter Rossbach wrote: Option is Connector emptySessionPath=true ... / Then all webapps share the same session id. Cheers Peter Am 16.04.2006 um 15:12 schrieb Tim Funk: Check the docs - there is an option that will allow tomcat to use the same jsessionid

Re: Problems configuring SSL connector

2006-04-21 Thread Markus Schönhaber
EddieE wrote: I'm using keystore files so I needed to add these to server.xml. I'm using native libraries since it appears that these are required if you want to use a non-default keystoreFile. No. With APR (the native libs) you'll have to configure the OpenSSL way:

Re: Logging?

2006-04-21 Thread Markus Schönhaber
David Rush wrote: Should Tomcat be logging the HTTP requests that it gets? Not unless you tell it to. If you want a complete dump of the requests logged, use RequestDumperValve, as Derrick said. If you simply want an access log, use an AccesLogValve (look at the end of server.xml and uncomment

Re: Reducing Tomcat (Embedded Or Regular) memory

2006-04-21 Thread manivannan57
1) remove unnecessary jars (you think) form your-web-app/WEB-INF/lib and tomcat-home/common/lib 2) remove unnecessary classes from webapp-root/WEB-INF/classes 3)stop loading unnecessary (other) web applications. 4) avoid the load-on-startup in web.xml - (this will avoid loading servlets and other

Re: Problems configuring SSL connector

2006-04-21 Thread Dhaval Patel
Yes. Markus is right. When you add tcnative-1.dll, it means you are enabling APR support in tomcat, which is good. For detail instruction, visit: http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html There is only one problem in the steps described in above link. It works 100%

RE: SSL tomcat apache FAILURE

2006-04-21 Thread Dhaval Patel
Before any suggestion, I have few question: 1) How do you run Tomcat? Standalone or as a service or as a JSP server behind IIS? 2) Are you 100% sure that port 8443 and 443 are free? 3) Do you have any failure entry in tomcat log when you start tomcat? If yes, what is that? By looking at