Re: setup

2007-04-30 Thread Rashmi Rubdi
Hi Chuck, On 5/1/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] > Subject: Re: setup > > > and aloso I would like to know where the webapps/ROOT/index.jsp > > is ? > > > > By default, it is under Tomcat's webapps/ROOT/ folder , in my instance >

RE: Context started twice

2007-04-30 Thread Caldarale, Charles R
> From: sc [mailto:[EMAIL PROTECTED] > Subject: Re: Context started twice > > This is my first time using nabble.com and surprised > to see how prompt I can get response. Nabble has nothing to do with it - it's merely a web-based GUI for several mailing lists, including Tomcat-user. My persona

Re: Context started twice

2007-04-30 Thread Rashmi Rubdi
On 4/30/07, sc <[EMAIL PROTECTED]> wrote: All my mistake. I apologize for my stupidity. It turns out it wasn't invoked twice. It just prints twice. I had the following in log4j.properties. log4j.rootLogger=ERROR, TRIP log4j.logger.org.hibernate=WARN, TRIP log4j.logger.net.sf.hibernate=INFO, TRI

RE: setup

2007-04-30 Thread Caldarale, Charles R
> From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] > Subject: Re: setup > > > and aloso I would like to know where the webapps/ROOT/index.jsp > > is ? > > > > By default, it is under Tomcat's webapps/ROOT/ folder , in my instance > of Tomcat 5.5.x Well, not really. The source to index.jsp is there

Re: Context started twice

2007-04-30 Thread sc
All my mistake. I apologize for my stupidity. It turns out it wasn't invoked twice. It just prints twice. I had the following in log4j.properties. log4j.rootLogger=ERROR, TRIP log4j.logger.org.hibernate=WARN, TRIP log4j.logger.net.sf.hibernate=INFO, TRIP log4j.logger.com.cutetrip=DEBUG, TRIP I c

Re: setup

2007-04-30 Thread Rashmi Rubdi
Hi William, On 4/30/07, William Biggs <[EMAIL PROTECTED]> wrote: I just installed tomat 5.5 on my Fedora 5 box it is up and running . I would like to know how to add a user for the admin page ? Under Tomcat's folder /conf/tomcat-users.xml is where the users are

setup

2007-04-30 Thread William Biggs
I just installed tomat 5.5 on my Fedora 5 box it is up and running . I would like to know how to add a user for the admin page ? and aloso I would like to know where the webapps/ROOT/index.jsp is ?

Re: Encrypting passwords in the connection pool setup

2007-04-30 Thread Mark Thomas
Kelly J Flowers wrote: > I'm using Tomcat 5.5 to run a web application. I have the connection pools > set up and working in the context.xml but the password is in plain text. > Does anyone know of a way to encrypt the password and username to the > database? This is nearly always pointless. A cou

Re: Session timeout

2007-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: > I haven't used Struts so I don't know if that > changes the session handling somehow. FYI: Struts doesn't tough session management, so it should act normally. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Ming

Re: Configuring mod_jk with Apache on Linux.

2007-04-30 Thread Christopher Schultz
Shaline, shaline omprakash wrote: > The Apache version is 2.0.52. The mod_jk I have picked up is > mod_jk-1.2.21-apache-2.2.x-linux-i686.so. You have mismatched versions. Your Apache version is 2.0.x and your mod_jk is for Apache 2.2.x. You need to pick up a mod_jk version that has "...apache-2.0

Re: Tomcat as a windows service

2007-04-30 Thread Len Popp
No, you do not need to set those variables. I'm running 5.5, and I don't set them. I use the Tomcat configuration utility to specify the location of the JRE and Tomcat. -- Len On 4/30/07, Will Holmes <[EMAIL PROTECTED]> wrote: We are upgrading from 5.0 to 5.5. Previously I was using windows env

Re: session time out

2007-04-30 Thread Christopher Schultz
Martin, Martin Gainty wrote: > On the connectionTimeout = "0" for indefinite timeout > > also a keepAliveTimeout on the Sender which I believe defaults to 60 sec > http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Once again, irrelevant and incorrect. The OP is asking about the sessio

Encrypting passwords in the connection pool setup

2007-04-30 Thread Kelly J Flowers
I'm using Tomcat 5.5 to run a web application. I have the connection pools set up and working in the context.xml but the password is in plain text. Does anyone know of a way to encrypt the password and username to the database?

Redirecting URL request to Tomcat to folder containing Cruise Control

2007-04-30 Thread Robert Segal
I have Cruise Control setup to run my machine and am able to access it through Tomcat using... http://localhost:8080/cruisecontrol/ I would like to be able to access this same URL using the format... http://localhost:8080/standard/ Is this possible under Tomcat? And if so how might I go ab

Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread Filip Hanik - Dev Lists
working directory is the "bin" directory Filip [EMAIL PROTECTED] wrote: In the working directory of the process. Of course you need enough free disk space. working directory means something like: /TomcatServer/work/Catalina/localhost/webapp_name/ ? because there is nothing there :( and

Re: Access logging, multiple web applications, single virtual host

2007-04-30 Thread Martin Gainty
differing ValveClasses for same Host works Same ValveClass for differing Hosts I dont know if you can use the same AccessValve for same Host Anyone else? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email me

RE: Access logging, multiple web applications, single virtual host

2007-04-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Access logging, multiple web applications, single > virtual host > > Everything appears to be working as it should, the logs are all being > created. The problem is that when I hit www.example.com/Web1 or > www.example.com/Web2 the

Access logging, multiple web applications, single virtual host

2007-04-30 Thread Monica . Riggins
Hello everyone, I am attempting to create access logs on a per web application basis, using a single virtual host in my server.xml file. Here is what I have so far: www.example.com Everything appears to be working as it should, the logs are all being created. The problem is that w

jni not working with Tomcat 5.5

2007-04-30 Thread César Leonardo Blum Silveira
Hello all, I am new to using Tomcat. I have installed (on Windows XP) Apache 2.2 and Tomcat 5.5. I am using the mod_jk connector. I have the following Tomcat-related configuration in my httpd.conf: # Load mod_jk module LoadModulejk_module modules/mod_jk.so # Declare the module for (remove

Re: Access logging, multiple web applications, single virtual host

2007-04-30 Thread Rashmi Rubdi
Hi Monica, We are unable to see your message, instead we see a set of pipes | It could be that your e-mail client is using Rich Text , please change it to Plain Text and try again. -Regards Rashmi On 4/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Re: Session timeout

2007-04-30 Thread Rashmi Rubdi
On 4/30/07, orn amental <[EMAIL PROTECTED]> wrote: How do I limit the amount of messages I receive? Please create a new thread instead of hijacking this one I'd like to be able to "turn on and off" the reception of messages of the mailing list without having to unsubscribe. Unfortunately the

Re: How to set keep alive on the TCP socket?

2007-04-30 Thread Alexey N. Solofnenko
Thank you. But it looks like in 5.5 the parameter is only in the protocol: apache-tomcat-5.5.20-src/connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java: public void setKeepAlive(boolean keepAlive) { apache-tomcat-5.5.20-src/connectors/http11/src/java/org/apache/coyote/h

Re: .hprof and jhat

2007-04-30 Thread [EMAIL PROTECTED]
i knew how to start jhat, i don't know how to analyze the data i see. > I found this site helpful > http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html > JHat -J NameOfHeapDumpFileToRead > > M-- > This email message and any files transmitted with it contain confidential > information

Re: Session timeout

2007-04-30 Thread orn amental
How do I limit the amount of messages I receive? I'd like to be able to "turn on and off" the reception of messages of the mailing list without having to unsubscribe. Unfortunately the mailing list FAQ email is empty. Thanks a lot :)

Re: Access logging, multiple web applications, single virtual host

2007-04-30 Thread Monica . Riggins
Can anyone tell me is the below possible? Thanks, Monica [EMAIL PROTECTED] ats.com

Re: Session timeout

2007-04-30 Thread Len Popp
If the user is clicking a submit button on the form, then the browser is sending a request to the server, and that should reset the timer for the session timeout. I haven't used Struts so I don't know if that changes the session handling somehow. With my own webapp, the session stays active as lon

Re: How to set keep alive on the TCP socket?

2007-04-30 Thread Martin Gainty
good info-- Also take a look at http://eip.gp.gov.tw/tomcat-docs/catalina/docs/api/org/apache/coyote/tomcat5/CoyoteConnector.html#setConnectionLinger(int) also setKeepAlive() method for CoyoteConnector M-- This email message and any files transmitted with it contain confidential information inten

Re: Tomcat as a windows service

2007-04-30 Thread Martin Gainty
Microsoft (more specifically the Windows registry) has god rights so any information entered into Windows registry is considered "system wide" Of course you can overwrite the SAME ENVIRONMENT VARIABLE locally (e.g. %CATALINA_HOME%) in your cmd.exe command shell by SET CATALINA_HOME=new_var HTH

.hprof and jhat

2007-04-30 Thread [EMAIL PROTECTED]
I got a .hprof file with the -XX:+HeapDumpOnOutOfMemoryError option. I opened it with jhat but understand how to find the bottleneck is quite difficult. Is there any guide or anybody that could help me finding the problem please? -- Leggi GRAT

How to set keep alive on the TCP socket?

2007-04-30 Thread Alexey N. Solofnenko
We (and some of our customers) have firewalls that disconnect "inactive" connections, so all requests that take more than some time to complete get silently disconnected and never return. I think soKeepAlive is supposed to fix that problem, but I do not see how to configure it. The only referen

RE: Tomcat as a windows service

2007-04-30 Thread Bryan Rood
Will, I run Tomcat as a window's service. My understanding is that when you run Tomcat as a window's service, setting an env var in the Tomcat service options that also exists as part of windows will supersede the windows var. As long as you have it set somewhere before the service needs the var

RE: run two versions of tomcat as windows services at the same time

2007-04-30 Thread Bryan Rood
Charles, I wanted to thank you for your help as your tips helped me find the right solution. I was trying to use the .exe instead of the zip and with the zip I was able to correctly change the environment variables. Thanks for your time. Bryan Rood IT Manager Quantros Inc. [EMAIL PROTECTED] www.

Configuring mod_jk with Apache on Linux.

2007-04-30 Thread shaline omprakash
Hi, I am trying to configure mod_jk with Apache on Linux machine ( Redhat Linux 4.0) . The Apache version is 2.0.52. The mod_jk I have picked up is mod_jk-1.2.21-apache-2.2.x-linux-i686.so. When I try to start the httpd I get the Error message that the mod_jk.so is garbled. Could someone let m

Re: Server redirected too many times (20)

2007-04-30 Thread Martin Gainty
Hi John in your init() method System.setProperty( "http.maxRedirects", Integer.toString( DEFAULT_MAX_REDIRECTS ) ); //whereas DEFAULT_MAX_REDIRECTS defaults to 20 M-- This email message and any files transmitted with it contain confidential information intended only f

Re: Server redirected too many times (20)

2007-04-30 Thread Rashmi Rubdi
Hi John, On 4/30/07, John Pedersen <[EMAIL PROTECTED]> wrote: Hi, I can't understand why Tomcat gives me this error message when I try to reload my app: Server redirected too many times (20) Is my app getting too big ( 400 files) ? The conversation on this http://bugs.sun.com/bugdatabase/v

Re: Session timeout

2007-04-30 Thread Rashmi Rubdi
On 4/30/07, Chris Edwards <[EMAIL PROTECTED]> wrote: Hi. I have my session-timeout set to 60 minutes in web.xml. The page in question is dynamically rendered based on what's currently in the session and the user adds items one at a time. So they fill out a form, submit it to a Struts Action which

Server redirected too many times (20)

2007-04-30 Thread John Pedersen
Hi, I can't understand why Tomcat gives me this error message when I try to reload my app: Server redirected too many times (20) Is my app getting too big ( 400 files) ? It seems to happen more and more often. Usually a server restart fixes it. Sometimes I have to restart my machine. At the

Re: Exception with Comet in Tomcat with high load

2007-04-30 Thread Sebastiaan van Erk
Hi, I had the same problems. It was a synchronization issue with me. What I did was make a synchronized output stream wrapper (see attached file) which wraps all access to the output stream, and I synchronized on this output stream whenever I called event.close() on the Comet event (especiall

Re: Class is not a servlet

2007-04-30 Thread Luca Sabbio
Ok, thank you all very much. I'm still too newbie to make my servlet work (some problems with xindice) but I've changed my java code and now it's really a servlet! Grazie ancora, bye - Original Message - From: "Pid" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, April 2

RE: PLZ Help with "java.net.SocketException: Connection reset"

2007-04-30 Thread Caldarale, Charles R
> From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] > Subject: PLZ Help with "java.net.SocketException: Connection reset" > > I have this error over and over again, but I have no clue > about its meaning or where to start? > > ClientAbortException: java.net.SocketException: Connection reset Look

Re: PLZ Help with "java.net.SocketException: Connection reset"

2007-04-30 Thread Frank W. Zammetti
This generally means that the client aborted the connection before the server completed its response. Most of the time that means a user clicking Stop as a page loads, but I have seen it other times due to resource loading issues. For example, Dojo, at least through 0.3.1, was notorious for causi

Re: session time out

2007-04-30 Thread Tomcat
Hello Martin, my main question was : Does application WEB-INF/web.xml override default conf/web.xml setting? I mean in a container containing several applications, can each of them set session time out in their /WEB-INF/web.xml and is that over ride the default setting which is set in /conf/we

PLZ Help with "java.net.SocketException: Connection reset"

2007-04-30 Thread Lorenzo Jiménez
Hello. I have this error over and over again, but I have no clue about its meaning or where to start? Can anyone help me? After the error is my web.xml. I am using Tomcat 5.5.16. Thanks very much, Regards, Lorenzo ERROR - 2007-04-30 00:16:26,395 [http-198.64.153.30-80-Processor34] WARN

Re: session time out

2007-04-30 Thread Rashmi Rubdi
On 4/30/07, Tomcat <[EMAIL PROTECTED]> wrote: Hello Does application WEB-INF/web.xml override default conf/web.xml setting? specifically session time out , but want to know if other setting is overriden. Specifically the session time out in /WEB-INF/web.xml overrides /conf/web.xml Don't know a

Re: Runtime.getRuntime().****Memory()

2007-04-30 Thread [EMAIL PROTECTED]
On my box if i use the Xms20m and Xmx20m the Runtime.getRuntime().totalMemory() gives: Total Memory: 20840448. Free Memory left: 1618328 I see from remote box (where the webapp should work) log that the memory results, just after the application is started, gives: Total Memory: 15679488. Free Me

Re: session time out

2007-04-30 Thread Martin Gainty
On the http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html also a tcpSelectorTimeout on the Receiver which I believe defaults to 100 sec web.xml (webapp) specific 30 HTH M This email message and any files transmitted with it contain confidential information intended only

Tomcat as a windows service

2007-04-30 Thread Will Holmes
We are upgrading from 5.0 to 5.5. Previously I was using windows env variables to set the java home and catalina home paths. In version 5.5 do I still need to use env variables or can I use the Tomcat service configuration "Java" options? Thanks Will Holmes Programmer Analyst Fremont Insuranc

Re: How to share static content across multiple tomcat webapps

2007-04-30 Thread Rashmi Rubdi
Hi Martin, On 4/30/07, Martin Jones <[EMAIL PROTECTED]> wrote: Hi, This seems like an obvious question but I'd appreciate any answers. I have several webapps running under tomcat that need to be able to include the same sidebar in their .jps. if the sidebar is within the context, this works fi

Session timeout

2007-04-30 Thread Chris Edwards
Hi. I have my session-timeout set to 60 minutes in web.xml. The page in question is dynamically rendered based on what's currently in the session and the user adds items one at a time. So they fill out a form, submit it to a Struts Action which adds it to the Session object and then forwards ba

session time out

2007-04-30 Thread Tomcat
Hello Does application WEB-INF/web.xml override default conf/web.xml setting? specifically session time out , but want to know if other setting is overriden. and can we disable this through server.xml ? Thanks Adam - To start

Exception with Comet in Tomcat with high load

2007-04-30 Thread Martin Perez
Hi all, I have been testing Tomcat comet support during the last days. I've created a test application that simulates data streaming to multiple clients. Clients open a connection to the server and the connection is hold open. In the server there are several "sender" threads that leverage comet s

Re: One login only

2007-04-30 Thread Martin Gainty
Greetings from across the Pond I thought this was rather an ingenious solution http://www.simongbrown.com/blog/2004/11/04/1099588633312.html Create a Principal object Authenticate Principal object to Tomcat Realm via 'Role' then use SSOValve to create Principal from supplied RequestHeaders Does

How to share static content across multiple tomcat webapps

2007-04-30 Thread Martin Jones
Hi, This seems like an obvious question but I'd appreciate any answers. I have several webapps running under tomcat that need to be able to include the same sidebar in their .jps. if the sidebar is within the context, this works fine: <%@ include file="sidebar.html" %> However this requires me

Re: Runtime.getRuntime().****Memory()

2007-04-30 Thread Martin Gainty
You will need to enable GC Stats for your JVM either on command line or set in JVM_OPTS env variable or handcode in %JAVA_HOME%/jre/lib/i386/jvm.cfg e.g. java -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails and then use a GCStatAnalyzer to look at ObjectAllocation and ObjectPromotion/youn

Re: Tomcat - problem when using SSL connector only

2007-04-30 Thread Mike Grandmaison
What does tomcat say on startup? Does it claim to be listening on 8443 when you can not connect? - Original Message From: Subscriber <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Monday, April 30, 2007 1:18:48 PM Subject: Tomcat - problem when using SSL connector only Problem:

Re: Context started twice

2007-04-30 Thread Rashmi Rubdi
I tested your code, the init is called exactly once, when Tomcat starts. Try one of these: 1) Change log.info("TestServlet init"); log.info("TestServlet destroy"); to something else like log.info("TestServlet init ## "); log.info("TestServlet destroy ##")

Re: Context started twice

2007-04-30 Thread Rashmi Rubdi
On 4/30/07, sc <[EMAIL PROTECTED]> wrote: As you suggested, I started from scratch. I downloaded tomcat 6 from apache.org. changed $catalina_home to point to the new directory. Under $catalina_home/webapps, I created a new folder, which only has one servlet TestServlet Do a global search on y

Tomcat - problem when using SSL connector only

2007-04-30 Thread Subscriber
Problem: I have a Tomcat server with only one webapp. When deploying the server with only the SSL connector defined the webapp cannot be contacted with the browser (404 in both IE and firefox). Now: the 1st strange thing is that the webapp has no problems whatsoever when the non-ssl connect

One login only

2007-04-30 Thread Jamie.Osborne
Hi, I'm currently trying to configure Tomcat to only allow a user to log in once. If the same user tries to log in when already logged in (from another machine for example) I want to cancel the login request and present an explanation to the user. I'm using the FORM based authentication and h

Runtime.getRuntime().****Memory()

2007-04-30 Thread [EMAIL PROTECTED]
As i wrote in my previous messages i'm experiencing OutOfMemory heap problems. I added a Runtime.getRuntime().totalMemory() and Runtime.getRuntime().freeMemory() at the end of the main client thread that is created when a client connects to the webapp. I noticed that when i deply the webapp i got

query on Embedded Tomcat

2007-04-30 Thread robingandhi21
Hi all, I am trying to execute some servlets in the embedded tomcat. But some of the servlets which have a function getParameter(the function the the value of parameter from query string) are not getting executed properly while the same servelts when executed in standalone Tomacat are getting ex

Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread [EMAIL PROTECTED]
> > In the working directory of the process. Of course you need enough free > > disk space. > > > > > working directory means something like: > /TomcatServer/work/Catalina/localhost/webapp_name/ ? > because there is nothing there :( and there is enough free space. > > > > There is also > > > > -XX:

Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread [EMAIL PROTECTED]
> In the working directory of the process. Of course you need enough free > disk space. > working directory means something like: /TomcatServer/work/Catalina/localhost/webapp_name/ ? because there is nothing there :( and there is enough free space. > There is also > > -XX:HeapDumpPath=DIRECTORY

Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread Rainer Jung
In the working directory of the process. Of course you need enough free disk space. There is also -XX:HeapDumpPath=DIRECTORY_OR_FILE (Caution: I don't know, if all JVM versions that implement -XX:+HeapDumpOnOutOfMemoryError, implement this one too). You should check in the process table (if it'

-XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread [EMAIL PROTECTED]
I specified that parameter in JAVA_OPTS variable, but after the first "java.lang.OutOfMemoryError: Java heap space" error, no dump file was created. Where should that file be created by default? any clue? Thanks -- Leggi GRATIS le tue mail con

RE: Context started twice

2007-04-30 Thread Raghupathy, Gurumoorthy
Can you post your dummyservlet Code ? Thanks Guru -Original Message- From: sc [mailto:[EMAIL PROTECTED] Sent: 29 April 2007 06:21 To: users@tomcat.apache.org Subject: Context started twice There was a thread on this "http://www.nabble.com/Context-starts-twice-t1351694.html";.

RE: WAR File loaded into embedded Tomcat not reachable

2007-04-30 Thread Reich, Matthias
Hi, you did not tell us about how you load the war file. If the extension is correct (mynewwar.ZIP) I think it won't be loaded automatically. If it is named mynewwar.war and e.g. available in directory "C:\mywebapps" this should work: Context ctxt = embedded.createContext("/mynewwar" , "C:\my