RE: Need some pointers on how to troubleshoot performance problemsof an application running on tomcat and java

2007-03-01 Thread Nurul Zaman bin Mohamed Akbar
Thanks for the swift response. You did mention of a lambda tool. Can you direct me to a place where I can get more information on it? I too have the same fears that increasing the memory will just delay the inevitable memory problems. Is there any other suggestions that you might have on this

Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Rajendra Sakpal
Hi, I am using TOMCAT 5.5. I am creating a file in class that is called from a JSP. However, the relative path that I have specified in the class doesn't seem to work. The path that I have used is :/webapps/Jonathon/WEB-INF/etc/subscriber.txt. Can someone please let me know, what is wrong

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Pid
Rajendra Sakpal wrote: Hi, I am using TOMCAT 5.5. I am creating a file in class that is called from a JSP. However, the relative path that I have specified in the class doesn't seem to work. The path that I have used is :/webapps/Jonathon/WEB-INF/etc/subscriber.txt. Can someone please let

AW: Cannot run JVM in server mode with JSVC

2007-03-01 Thread Peter Neu
Hello, is this question better asked in the dev mailing list or where should I ask? Cheers, Pete -Ursprüngliche Nachricht- Von: Peter Neu [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 28. Februar 2007 08:01 An: 'Tomcat Users List' Betreff: AW: Cannot run JVM in server mode with

Tomcat and NetBeans IDE

2007-03-01 Thread Arshan Varsi
Hi , I am new to tomcat and be grateful for your reply and explanation. I have downloaded NetBeans which is bundled with Tomcat server . I use tomcat from within the environment to test my pages. Now I need to work with other applications that will be using Tomcat. My question

Re: page remembers data

2007-03-01 Thread Michal Glowacki
Yes, for sure. I've flushed browser cache and didn't help. Checked in FF and IE. Regards, Michal - Original Message - From: Pid [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 01, 2007 8:47 AM Subject: Re: page remembers data Michal Glowacki

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Pid
(Please reply to the list only, I don't need to get the message twice.) Rajendra Sakpal wrote: Am I right to say that / refers to the Tomcat directory ? No, you're wrong. Attempting to access / would result in an attempt to write to the root of the filesystem. If I mention the file path

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Rajendra Sakpal
Hi Peter, Thanks for your reply. Here are few more things in the context of the relative path: 1. I am gathering that / refers to the drive where my Tomcat is installed on Windows. (With file path as /subscribers.txt the file is created at the root of the drive.) 2. I am not using HTTP

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Rajendra Sakpal
Am I right to say that / refers to the Tomcat directory ? If I mention the file path as /subscribers.txt, I don't find the file in the TOMCAT directory once the class is instantiated. regards, Rajendra On 3/1/07, Pid [EMAIL PROTECTED] wrote: Rajendra Sakpal wrote: Hi, I am using

Re: page remembers data

2007-03-01 Thread Pid
(Please reply to the list only, I don't need to get the message twice.) I'm assuming you're not clicking back to get there, but if it's not your browser then it sounds like you aren't initialising the bean properly. Have you stored the bean in a static variable? Can you change the code of

Re: AW: Cannot run JVM in server mode with JSVC

2007-03-01 Thread Pid
java -server is the switch you need, not -jvm server Peter Neu wrote: Hello, is this question better asked in the dev mailing list or where should I ask? Cheers, Pete -Ursprüngliche Nachricht- Von: Peter Neu [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 28. Februar 2007 08:01 An:

SSL fails to work in tomcat 5.5.17

2007-03-01 Thread Sudarshan Prabhu
Hi, I have migrated tomcat from 5.0.28 to 5.5.17 with native dll support, after the migration SSL certificate in PKCS2 format does not work. I observe it is getting redirected to secure port (i can see https in the URL) but application fails to load. Tomcat5.5.17 is running with java

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Rajendra Sakpal
Hi Peter, 1. You are right: / refers to the root of file system. 2. What is the right way to make Tomcat write a file in the directory : /webapps/Jonathon/WEB-INF/etc/subscriber.txt ? I want to avoid specifying an absolute path to the file in my code. Rajendra On 3/1/07, Pid [EMAIL

AW: AW: Cannot run JVM in server mode with JSVC

2007-03-01 Thread Peter Neu
Hi, if I put his in the shell script case $1 in start) $DAEMON_BIN \ -java -server -user $TOMCAT_USER \ -home $JAVA_HOME1 \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \

Re: page remembers data

2007-03-01 Thread Michal Glowacki
No, I don't store bean in static variable (and it's not when 'back' is pressed :-) ). The code was unchanged and was working ok some time ago. That's why I've started to think it could be Tomcat issue. The problem should be this (from server logs, when web-app is accessed for the first time

Re: Need some pointers on how to troubleshoot performance problemsof an application running on tomcat and java

2007-03-01 Thread David Delbecq
En l'instant précis du 01/03/07 09:03, Nurul Zaman bin Mohamed Akbar s'exprimait en ces termes: Thanks for the swift response. You did mention of a lambda tool. Can you direct me to a place where I can get more information on it? I too have the same fears that increasing the memory will just

RE: create[8005]: java.net.BindException: error occured whilestartingtomcat on Ubuntu Plateform

2007-03-01 Thread hetal
Caldarale, Charles R wrote: From: hetal [mailto:[EMAIL PROTECTED] Subject: RE: create[8005]: java.net.BindException: error occured whilestartingtomcat on Ubuntu Plateform I have checked on my machine only one tomcat is running and I have also tried netstat command it is not listing

Lucene and DB speeds

2007-03-01 Thread Sriram Narayanan
Hi all: When I query for large datasets, I see a delay between the search and the results. For e.g., if I were to query a database containing about 2 GB of data, with a 400+ MB Licene index, then I get search results after anywhere between 5 seconds to 35 seconds. Any tips on how I could test

Re: page remembers data

2007-03-01 Thread David Smith
Michal Glowacki wrote: Hi I'm not sure if it's the problem of Tomcat, but I've spotted it after upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session scoped beans as I'm using request ones. When I enter some data, submit them and return back to that page, the data

[OT] Re: Lucene and DB speeds

2007-03-01 Thread Tim Funk
A common way is to add timers around the commands and then using a logging library to output those times (under info, debug, or trace) You'll probably get more help from the lucene user list -Tim Sriram Narayanan wrote: Hi all: When I query for large datasets, I see a delay between the

Informing Tomcat of proxy base URL?

2007-03-01 Thread Andy Buckley
I have a Tomcat server providing an application via an Apache proxy. User HTTP requests to http://myserver.example.com/server/ on port 80 get mapped by the proxy to http://localhost:8082, which is set up as a valid Tomcat provider for Apache. So far so good. However, I've noticed problems using

Re: create[8005]: java.net.BindException: error occured while starting tomcat on Ubuntu Plateform

2007-03-01 Thread David Smith
hetal wrote: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address I have installed j2sdk1.5 and tomcat-5.0.28 on ubuntu plateform. I have changed port no in server.xml also but still i am facing same problem.. error that is displayed in catalina.out is

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Pid
It's Pid, and PLEASE stop sending 2 emails, you only need reply to the list. I gave you an answer, in my first reply. Acquire the ServletContext, and use that to obtain a usable path from the webapp relative path you start with. In a Servlet you can acquire the context from the

Reloading shared classes

2007-03-01 Thread Yair Zohar
Hello, I'm using tomcat 5.0.28 on a Linux machine. My web applications are using some shared class. I put them under $CATALINA_HOME/shared/classes. The problem: When I make changes in the shared classes, restarting a web application by tomcat's manager is not enough for the changes to be

Re: page remembers data

2007-03-01 Thread Pid
Michal Glowacki wrote: No, I don't store bean in static variable (and it's not when 'back' is pressed :-) ). The code was unchanged and was working ok some time ago. That's why I've started to think it could be Tomcat issue. The problem should be this (from server logs, when web-app is

RE: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Peter Crowther
From: Rajendra Sakpal [mailto:[EMAIL PROTECTED] What is the right way to make Tomcat write a file in the directory : /webapps/Jonathon/WEB-INF/etc/subscriber.txt ? Use servletContext.getRealPath(/WEB-INF/etc/subscriber.txt). However, you should not be writing files in your webapp directory;

Re: AW: AW: Cannot run JVM in server mode with JSVC

2007-03-01 Thread Pid
OK, 1) Please ONLY reply to the list, you do not need to add my address as well - you're joining the merry band of new listers who seem to insist on sending me the same message twice. 2) -server, just -server, not java -server and 3) definitely not jvm anything or -jvm -server Note that I

Re: Reloading shared classes

2007-03-01 Thread Yair Zohar
You are right, I've just wanted to avoid multiple copies of the same classes. They are not really shared. If the classes are shared, all the web applications should be restarted, because the change affect all of them. Yair. Peter Crowther wrote: From: Yair Zohar [mailto:[EMAIL PROTECTED] My

RE: Reloading shared classes

2007-03-01 Thread Peter Crowther
From: Yair Zohar [mailto:[EMAIL PROTECTED] I've just wanted to avoid multiple copies of the same classes. They are not really shared. One of the web application philosophies (now copied by frameworks like .NET) is that an app should contain everything it needs for successful deployment.

RE: SSL fails to work in tomcat 5.5.17

2007-03-01 Thread Caldarale, Charles R
From: Sudarshan Prabhu [mailto:[EMAIL PROTECTED] Subject: SSL fails to work in tomcat 5.5.17 I have migrated tomcat from 5.0.28 to 5.5.17 with native dll support, after the migration SSL certificate in PKCS2 format does not work. If you're using the APR connector, SSL config is quite

Re: AW: AW: Cannot run JVM in server mode with JSVC

2007-03-01 Thread Peter . Neu
Hi, sorry for the email junk. They make me use Outlook which sometimes adds the list and the recepient to the repsonse. :o( I didn't notice when I hit reply. I don't know why this does not work but jsvc give me this again: jsvc error: Invalid option -server jsvc error: Cannot parse command line

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: From: Rajendra Sakpal [mailto:[EMAIL PROTECTED] What is the right way to make Tomcat write a file in the directory : /webapps/Jonathon/WEB-INF/etc/subscriber.txt ? Use

Re: [OT] Re: Lucene and DB speeds

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sriram, When I query for large datasets, I see a delay between the search and the results. For e.g., if I were to query a database containing about 2 GB of data, with a 400+ MB Licene index, then I get search results after anywhere between 5

Re: Session Info LOST in New Browser Window (Linux only)

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 FuzzyNavel, FuzzyNavel wrote: Except for the operating system, the rest of the environment is the same: Tomcat 5.0.24 Java 1.4.2_05 (for the Java Beans) Internet Explorer 5.50 How did you get MSIE running on Linux? In the development

embedded tomcat security problem

2007-03-01 Thread Tom Butts
Hello I am trying to get tomcat 5.0.28 running with the manager webapp but when I try to access any of the manager commands I get the following error. java.lang.SecurityException: Servlet of class org.apache.catalina.manager.ManagerServlet is privileged and cannot be loaded by this web

JavaServiceWrapper - Restart Tomcat in case of OutOfMemory

2007-03-01 Thread Matteo Turra
Hi, I'm using JavaServiceWrapper http://wiki.apache.org/tomcat/JavaServiceWrapper to launch Tomcat in production, I did configuration to restart tomcat if outOfMemory error occurs. Is this the only solution? The documentation is quite old and referred to tomcat 4.1.18. Tomcat newer

Re: Having trouble building mod_jk on Solaris 10 x86

2007-03-01 Thread Rainer Jung
The header files are unconditionally included by Solaris socketvar.h. I think there's nothing we should do on the mod_jk side. Since your compiler error shows, that the include chain goes through zone.h: there have been a couple of early Solaris 10 Bugs around zone installation. Are you

Re: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)?

2007-03-01 Thread Daniel Gresh
Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)? Is webapps/[appname], where [appname]=ROOT a web application? If so, I can just use reload when I deploy new .class files

Re: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat6.0.9)? [RESOLVED]

2007-03-01 Thread Daniel Gresh
Daniel Gresh wrote: Alright, here is where I am now. I edited my build.xml file to include a reload command to reload my $CATALINA_HOME/webapps/ROOT path. I go to the directory where my .java files are and type ant reload. Everything in the build.xml file works fine until it reaches reload.

Tricks for enabling manager host-manager via IIS

2007-03-01 Thread Dan Carwin
Are there tricks to getting IIS 6 to properly pass the auth check for manager and host_manager to the browser? - We have enabled the manager and host-manager apps, and they work through the http connector. - We have other apps working via isapi redirector. The difference between the working

how to setup multiple CATALINA_BASE

2007-03-01 Thread Rao Manekar
Hi can anyone tell me how to setup more than one CATALINA_BASE variable. I am using tomcat 4.0. I following running.txt instructions to setup CATALINA_HOME and CATALINA_BASE directories and variables. I am able to get the webapp in CATALINA_BASE. I want to have more than one CATALINE_BASE

RE: AW: AW: Cannot run JVM in server mode with JSVC

2007-03-01 Thread ScottAnders
An easier way to do it would be to add it in your $CATALINA_OPTS variable. So get rid of the extra stuff you added and instead add the '-server' to $CATALINA_OPTS. So it would be: CATALINA_OPTS=-server -Xmx1900m -Xms256m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m

Re: Having trouble building mod_jk on Solaris 10 x86

2007-03-01 Thread Chris Taylor
Thanks- yesterday I discovered that my version of Solaris 10 6/06 doesn't include the Trusted Solaris extensions, which are in /usr/include/sys/tsol, but later versions of Solaris 10 do. I installed the SunOS 5.10_x86: Trusted Extensions header files patch and now mod_jk compiles fine. I am

RE: The return type is incompatible with JspSourceDependent.getDependants()

2007-03-01 Thread Propes, Barry L [GCG-NAOT]
might be reflective of the JDK you're using and how that generated JSP was being written. What method, package was being used, etc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 3:29 PM To: Tomcat Users List Subject: The return type

Loader component nested in Context

2007-03-01 Thread Eric Guinois
Hi, I'm trying to use my own ClassLoader for my Web-Application. I google a long time and find that the Loader component in the Context component could help me to replace the ClassLoader of my web application (subclassing WebappClassLoader). In the first place, I tried to use the

RE: Loader component nested in Context

2007-03-01 Thread Caldarale, Charles R
From: Eric Guinois [mailto:[EMAIL PROTECTED] Subject: Loader component nested in Context 2007-03-01 16:37:19 org.apache.catalina.core.StandardContext start GRAVE: Error listenerStart 2007-03-01 16:37:19 org.apache.catalina.core.StandardContext start GRAVE: Erreur de dÚmarrage du contexte

RE: how to setup multiple CATALINA_BASE

2007-03-01 Thread Caldarale, Charles R
From: Rao Manekar [mailto:[EMAIL PROTECTED] Subject: how to setup multiple CATALINA_BASE Hi can anyone tell me how to setup more than one CATALINA_BASE variable. I am using tomcat 4.0. I following running.txt instructions to setup CATALINA_HOME and CATALINA_BASE directories and

Re: Loader component nested in Context

2007-03-01 Thread Eric Guinois
I just founded these messages and stack trace inside localhost.DATE.log. (a lot of times with different listeners) 2007-03-01 17:48:23 org.apache.catalina.core.StandardContext listenerStart GRAVE: Erreur lors de la configuration de la classe d'écoute de l'application (application listener)

RE: How To Upgrade JDK used by Tomcat 4.1

2007-03-01 Thread Eric Davis
Sun has released a new TZupdater that updates the existing java installation including the one I'm trying to update. You can go here to read about it. http://java.sun.com/javase/tzupdater_README.html To download the updater go here: http://java.sun.com/javase/downloads/index.jsp look for 'JDK

RE: how to setup multiple CATALINA_BASE

2007-03-01 Thread Rao Manekar
OK. Let's see how I can implement this. Say, I have registered two domain names www.website1.com mapped to IP1 and www.website2.com mapped to IP2. I have my tomcat installed on localhost with two Host elements, www.website1.com and www.website2.com and applications installed as described in

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder
On 3/1/07, Rao Manekar [EMAIL PROTECTED] wrote: . when I type www.website1.com in my browser, how does that request gets routed to Host1 on my local tomcat installation? Or to put it another way -- When I ask for www.website1.com, why does Tomcat give me the webapps associated with

RE: how to setup multiple CATALINA_BASE

2007-03-01 Thread Caldarale, Charles R
From: Rao Manekar [mailto:[EMAIL PROTECTED] Subject: RE: how to setup multiple CATALINA_BASE when I type www.website1.com in my browser, how does that request gets routed to Host1 on my local tomcat installation? The host part of the URL is extracted and matched against the set of

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Rao Manekar
First of all thank you for your reply. As a matter of fact I tried it. It did not work. I couldn't figure out the relation between Host element and its IP address. I will take your word for it and try it again. Thank you. -rao From: Hassan Schroeder [EMAIL PROTECTED] Reply-To: Tomcat

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder
On 3/1/07, Rao Manekar [EMAIL PROTECTED] wrote: As a matter of fact I tried it. It did not work. I couldn't figure out the relation between Host element and its IP address. You don't have to. :-) And in fact, it's really irrelevant whether the two hosts have different IPs or not -- the

Tomcat Persistent Session Issues

2007-03-01 Thread ddigmann
A note before I start: I have found quite a few people out there asking about this same question but have not found my solution. This might mean I have trouble with finding the correct search terms or something entirely different. The ultimate issue is that from time to time Tomcat (we are

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-01 Thread Shankar Unni
Rajendra Sakpal wrote: 1. I am gathering that / refers to the drive where my Tomcat is installed on Windows. (With file path as /subscribers.txt the file is created at the root of the drive.) That's right: 1. **there is no special meaning for /**. It's as if you went into a command-line

Re: Need some pointers on how to troubleshoot performance problems of an application running on tomcat and java

2007-03-01 Thread Mark Thomas
NurulZ wrote: I need help in finding out why this happens ? Are there any known issues in tomcat 4.1.31 http://svn.apache.org/repos/asf/tomcat/container/branches/tc4.1.x/RELEASE-NOTES-4.1.txt Is the Garbage collector in J2SDK1.4.2_11 buggy? Not to my knowledge If I were to monitor the

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Rao Manekar
Hi Charles and Hassan I tried it did not work. Let me ask this: We know that for sure that there is a domain name www.cnn.com registered in DNS. Let's say I create a Host element and add my application files under ${catalina.home}/www/appBase/www.cnn.com If any one in the world type

RE: how to setup multiple CATALINA_BASE

2007-03-01 Thread Caldarale, Charles R
From: Rao Manekar [mailto:[EMAIL PROTECTED] Subject: Re: how to setup multiple CATALINA_BASE If any one in the world type www.cnn.com would that request come to my server and get application under ${catalina.home}/www/appBase/www.cnn.com Of course not, unless you manage to hack the

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder
On 3/1/07, Rao Manekar [EMAIL PROTECTED] wrote: We know that for sure that there is a domain name www.cnn.com registered in DNS. Let's say I create a Host element and add my application files under ${catalina.home}/www/appBase/www.cnn.com ?! where did you get that path? Never mind, it doesn't

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Rao Manekar
Let's say I create a Host element and add my application files under ${catalina.home}/www/appBase/www.cnn.com ?! where did you get that path? Never mind, it doesn't matter because... http://wiki.apache.org/tomcat/CreateVirtualHosts If any one in the world type www.cnn.com would that

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder
On 3/1/07, Rao Manekar [EMAIL PROTECTED] wrote: Let me ask you this, Charles and Hassan, do you have an installation with tomcat referring to two websites with two different IP addresses? Sure, several. Some have one connector that listens on all addresses *configured on that host*, some have

Re: how to setup multiple CATALINA_BASE

2007-03-01 Thread Martin Gainty
so if your DNS name is www.fubar.com go to command line nslookup www.fubar.com will attempt to locate the CNAME records by authoritative DNS servers then non-authoritative DNS servers M-- --- This e-mail message

RE: how to setup multiple CATALINA_BASE

2007-03-01 Thread Caldarale, Charles R
From: Rao Manekar [mailto:[EMAIL PROTECTED] Subject: Re: how to setup multiple CATALINA_BASE Ok now you are talking IP address. Offcourse I am working with a registered domain name mapped to a specifi IP address. So, how do I make tomcat recognize it? Tomcat doesn't have to - only the

RE: how to setup multiple CATALINA_BASE

2007-03-01 Thread Rao Manekar
That's better explanation. I think my 'bulb' started lighting :-) I will try further from here and make it work. I will keep you guys posted. Caldarale, Martin and Hassan thank you for replying to my emails and enlightening me. -rao From: Caldarale, Charles R [EMAIL PROTECTED] Reply-To:

File Content Not Saved To Server

2007-03-01 Thread Teh Noranis Mohd Aris
Dear All, I want to save a file name and its content to the computer server at directory C:/temp/. I've passed the file name and file content parameter from the applet to the servlet. The problem now is that the file name is created in the computer server directory but a 'null' is

Re: [OT] Re: Lucene and DB speeds

2007-03-01 Thread Sriram Narayanan
On 3/1/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sriram, 400MB is not really that big of an index. A friend of mine runs a Lucene index at the US Library of Congress that is several GB and they search it /very/ quickly. Of course, they have