setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
Hi, I must start Tomcat setting a value for this attribute com.sun.CORBA.transport.ORBTCPReadTimeouts (it set a Timeout for a corba socket). I've tried to add com.sun.CORBA.transport.ORBTCPReadTimeouts in JAVA_OPTS Tomcat variable in catalina.sh script: JAVA_OPTS=$JAVA_OPTS

Re: setting JAVA_OPT in Tomcat

2008-06-06 Thread David Delbecq
En l'instant précis du 06/06/08 09:42, luke l s'exprimait en ces termes: Hi, I must start Tomcat setting a value for this attribute com.sun.CORBA.transport.ORBTCPReadTimeouts (it set a Timeout for a corba socket). I've tried to add com.sun.CORBA.transport.ORBTCPReadTimeouts in JAVA_OPTS Tomcat

Changing port 8080 to load as a folder after domain name

2008-06-06 Thread Joyce Leong
Hi, I am a newbie in all these, and have installed jdk1.6.0_06, and Tomcat 6, and running Nutch 0.9 on tomcat, everything seems to setup nicely. But I have an issue, supposed my domain name is domain.com, I can't view my Nutch Search using http://www.domain.com/nutch, I could only view it under

Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
*Don't forget to add a space between $JAVA_OPTS and your additionnal option. In your case, you joined -J and -D parameters without a space, as a result the jvm does not recognize an option named J-D :)* I've again an error Unrecognized option:

Re: Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread David Delbecq
En l'instant précis du 06/06/08 10:23, luke l s'exprimait en ces termes: *Don't forget to add a space between $JAVA_OPTS and your additionnal option. In your case, you joined -J and -D parameters without a space, as a result the jvm does not recognize an option named J-D :)* I've again an error

Re: Environment Variables

2008-06-06 Thread David Delbecq
Tomcat does not use CLASSPATH. The list of variables used by tomcat is written at the top of catalina.sh script. En l'instant précis du 06/06/08 10:46, [EMAIL PROTECTED] s'exprimait en ces termes: Hi, Can anybody tell me which environment variables tomcat uses? I am pretty sure it uses

Re: Changing port 8080 to load as a folder after domain name

2008-06-06 Thread André Warnier
Joyce Leong wrote: Hi, I am a newbie in all these, and have installed jdk1.6.0_06, and Tomcat 6, and running Nutch 0.9 on tomcat, everything seems to setup nicely. But I have an issue, supposed my domain name is domain.com, I can't view my Nutch Search using http://www.domain.com/nutch, I

Environment Variables

2008-06-06 Thread paul.ockleford
Hi, Can anybody tell me which environment variables tomcat uses? I am pretty sure it uses JAVA_HOME for core java, and I am guessing it uses the web application directories for classes belonging to web apps under it. The reason I am asking this is that I have a jar file clash on my development

Re: Changing port 8080 to load as a folder after domain name

2008-06-06 Thread André Warnier
Mark Thomas wrote: Joyce Leong wrote: Hi, I am a newbie in all these, and have installed jdk1.6.0_06, and Tomcat 6, and running Nutch 0.9 on tomcat, everything seems to setup nicely. But I have an issue, supposed my domain name is domain.com, I can't view my Nutch Search using

RE: Environment Variables

2008-06-06 Thread paul.ockleford
Brilliant thanks for that. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: 06 June 2008 07:49 To: Tomcat Users List Subject: Re: Environment Variables Tomcat does not use CLASSPATH. The list of variables used by tomcat is written at the top of catalina.sh script.

Re: Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread David Delbecq
I see several errors below: 1) you put at what look like random magic places. Just put a in the begin and a in the end. 2) you problem is the you didn't put a space between $JAVA_OPTS and the first argument following it when you construct the new JAVA_OPTS 3) you don't want a linefeed

Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
setting in catalina.sh: JAVA_OPTS=$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10 it seems doesn't solve my problem Unrecognized option: -J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10 Could

RE: Environment Variables

2008-06-06 Thread Caldarale, Charles R
From: David Delbecq [mailto:[EMAIL PROTECTED] Subject: Re: Environment Variables Tomcat does not use CLASSPATH. The list of variables used by tomcat is written at the top of catalina.sh script. Note that the Tomcat code does not use *any* environment variables - only the scripts do. The

Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
... Just add, at top of your catalina.sh, just after defining JAVA_OPTS= echo JAVA_OPTS is $JAVA_OPTS .. wow.I set previously JAVA_OPTS in another temp script!!! now it's owrking properlyI'm sorry for so stupid question ! Thanks a lot David..have a nice weekend

RE: Memory Settings in Tomcat 5.5.25

2008-06-06 Thread Caldarale, Charles R
From: semaj2008 [mailto:[EMAIL PROTECTED] Subject: RE: Memory Settings in Tomcat 5.5.25 1. How do we view the memory settings if the tomcat server is not installed as a service? If you're running Tomcat via the scripts, you can set heap limits via the JAVA_OPTS environment variable.

RE: It¡¯s amazing, apache make TC performance decrease dramatically.

2008-06-06 Thread Caldarale, Charles R
From: Zufeng Huang [mailto:[EMAIL PROTECTED] Subject: Re: It¡¯s amazing, apache make TC performance decrease dramatically. but URL rewrite(www.b.comwww.a.com--www.b.com) is needed. http://tuckey.org/urlrewrite/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

MBeans and Lifecycle

2008-06-06 Thread Stront
Is it possible to identify what stage in it's Lifecycle (org.apache.catalina.Lifecycle) Catalina is in using MBeans? -- View this message in context: http://www.nabble.com/MBeans-and-Lifecycle-tp17692655p17692655.html Sent from the Tomcat - User mailing list archive at Nabble.com.

RE: Access static content (logs folder) ?

2008-06-06 Thread Caldarale, Charles R
From: karthikn [mailto:[EMAIL PROTECTED] Subject: Access static content (logs folder) ? My XFLDER.xml id as folows ?xml version=1.0 encoding=UTF-8? Context path=/XFLDER docBase=${catalina.home}/logs debug=0 / Where did you place the XFLDER.xml file? What part of leave out the path

net start Apache Tomcat fails with error 3523

2008-06-06 Thread JimDaley
I am running Apache Tomcat 5.0.25 on Windows 2003. When I reboot my system and go to a command prompt and type in net start Apache Tomcat after about 10 seconds I get an error that says service could not be started. MSG 3523. If I look in the services it shows the service is started. If I

Re: Problem regarding the connector..

2008-06-06 Thread ramya lekha
Hi, !-- Define an AJP 1.3 Connector on port 2004 -- Connector port=2004 enableLookups=false redirectPort= protocol=AJP/1.3 / whenever I am trying to add the protocol attribute in the connector tag in the server.xml file and start the tomcat server.. its not listening at the specified

Re: Problem regarding the connector..

2008-06-06 Thread André Warnier
ramya, you say that you attach the logfile, but it is not arriving with this post. That was the same with your first post, remember ? that's why we were telling you that we need more details. Can you resend, and make sure the logfile is attached ? or else, just paste the log messages in your

Re: Problem regarding the connector..

2008-06-06 Thread André Warnier
add-on : could you also start your Tomcat, and then go into a console or command window, and type this command : netstat -an This should show you all the ports on which something is listening. The interesting lines are the ones near the beginning, that end in the word LISTEN (or LISTENING).

Re: It¡¯s amazing, apache make TC performance decrease dramatically.

2008-06-06 Thread Rainer Jung
Zufeng Huang wrote: My steps: General remarks: Make sure, that you understand the bottlenecks of your test runs x.1 and x.2. E.g. is one of them slower, because it saturated available network bandwith, or is it slower, because there are not enough threads in the AJP connector's thread

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-06-06 Thread Rainer Jung
krusek wrote: I have Apache 2 with SSL, mod_jk connection, and Tomcat. Everything has worked peachy from one tomcat upgrade after another. However now I upgraded to tomcat 6 and I am loosing the session when switching from https to http within the same domain. For clarity, Apache 2 is

Re: jsp:include versus % include %

2008-06-06 Thread Johnny Kewl
- Original Message - From: Rogelio R. Vizcaino L. [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, June 03, 2008 7:35 PM Subject: Re: jsp:include versus % include % One is static (translation time) the other dynamic (runtime).

Jk connector stops working

2008-06-06 Thread Andrea Di Muro
Hi, I have a problem with the Jk Connector between Apache and Tomcat: when a jsp page uses a lot of memory and I get java.lang.OutOfMemory error the jk connector stops working. Even after the thread that was consuming all the allocated memory stops, I can't access the jsp pages via Apache on port

Re: Tomcat having problems under load

2008-06-06 Thread Johnny Kewl
- Original Message - From: Billy Ng [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, June 05, 2008 10:25 PM Subject: Tomcat having problems under load Hi folks, I am using Tomcat 5.5.20 on a Linux box with 8 CPUs and 8GB of RAM. I am seeing a really

Re: Jk connector stops working

2008-06-06 Thread Rainer Jung
Andrea Di Muro wrote: Hi, I have a problem with the Jk Connector between Apache and Tomcat: when a jsp page uses a lot of memory and I get java.lang.OutOfMemory error the jk connector stops working. Even after the thread that was consuming all the allocated memory stops, I can't access the jsp

Re: Jk connector stops working

2008-06-06 Thread Mark Thomas
Andrea Di Muro wrote: Hi, I have a problem with the Jk Connector between Apache and Tomcat: when a jsp page uses a lot of memory and I get java.lang.OutOfMemory error the jk connector stops working. Even after the thread that was consuming all the allocated memory stops, I can't access the jsp

Re: Jk connector stops working

2008-06-06 Thread Andrea Di Muro
Rainer Jung wrote: Andrea Di Muro wrote: Hi, I have a problem with the Jk Connector between Apache and Tomcat: when a jsp page uses a lot of memory and I get java.lang.OutOfMemory error the jk connector stops working. Even after the thread that was consuming all the allocated memory stops,

Re: mod_jk api?

2008-06-06 Thread Mike Dickson
What kind of API like SOAP or URL? MikeD On Fri, 2008-06-06 at 17:59 +0200, Rainer Jung wrote: Mike Dickson wrote: Is there any way/api to talk to mod_jk to tell it of a new Tomcat instance to register it automatically to take load? The only way I can see of doing this is to POST to

SSL redirect issue -

2008-06-06 Thread janet . barbeau
I have setup SSL on tomcat seems to be working fine- however, on my login page which I have specified in the web.xml with a security constraint to use ssl - I have to submit the page 2x - the first does the redirect to https:8443 then the second will actually submit the page. How do I

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-06-06 Thread krusek
We use tomcat forms authentication and it is cookies being used. There are 3 cookies, JSESSONIDSSO, test and JSESSONID. Not sure how you tell if its marked secure? The test cookie is for testing to assure cookies are enabled. Thanks for your help! Rainer Jung-3 wrote: krusek wrote:

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-06-06 Thread André Warnier
Hi. A couple of emails ago, I think you showed the code that was doing a redirect, and said that that was where it seemed to be losing the cookie. Let me get back to a couple of my oen emails ago, just to set matters straight : a cookie is a browser thing. If the browser has never seen the

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-06-06 Thread Mark Thomas
André Warnier wrote: A lot of speculation here, but who knows ? Indeed. And it is all wrong. To my knowledge, there exists no case where the browser would not send a cookie with every request, if it has it and it is valid. Well, there is the obvious example Rainer has already given of

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-06-06 Thread Len Popp
On Fri, Jun 6, 2008 at 15:11, krusek [EMAIL PROTECTED] wrote: There are 3 cookies, JSESSONIDSSO, test and JSESSONID. Not sure how you tell if its marked secure? Some browsers can tell you this. Check your browser's documentation. But what I don't understand is why it worked before - I thought

Re: mod_jk api?

2008-06-06 Thread Johnny Kewl
- Original Message - From: Mike Dickson [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, June 05, 2008 10:48 PM Subject: mod_jk api? Is there any way/api to talk to mod_jk to tell it of a new Tomcat instance to register it automatically to take load? The only way I can

Re: mod_jk api?

2008-06-06 Thread Mike Dickson
Thanks I may *have* to give it a try. It's a compute farm, and we need to be able to provision say 500 servers today to do something then turn them off two weeks from now. Needless to say, no one wants to do this by hand. I am working w/ our internal guys (You know them I assume.) to encourage

Re: mod_jk api?

2008-06-06 Thread Mike Dickson
Thanks I may *have* to give it a try. It's a compute farm, and we need to be able to provision say 500 servers today to do something then turn them off two weeks from now. Needless to say, no one wants to do this by hand. I am working w/ our internal guys (You know them I assume.) to encourage

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-06-06 Thread André Warnier
Mark Thomas wrote: André Warnier wrote: A lot of speculation here, but who knows ? Indeed. And it is all wrong. Is that proven, or mere speculation on your part ? To my knowledge, there exists no case where the browser would not send a cookie with every request, if it has it and it is

Re: realm login and user session are not the same

2008-06-06 Thread Pierrick Terrettaz
Since we clean the threadlocal after each requests, the issue is solved. We used a main filter which encapsulates the request processing and at the end of the filter, we set the threadlocal to null. something like : public void doFilter(..) throws .. { HttpServletRequest req =

Re: Tomcat having problems under load

2008-06-06 Thread Billy Ng
It is a Dell box. Only my IT knows the detail. The Linux is 64-bit and java has 5GB in the heap. It should be enough. The Tomcat never runs out of memory. Al least, I do not see it in the logs. I would not think it is a memory issue. We are using apache+mod_jk_+tomcat. I wonder if the

Re: Tomcat having problems under load

2008-06-06 Thread Johnny Kewl
Billy, nothing on TV so I playing here ;) You need to collect some info and explain the details... so if I guess wrong, the gurus can help you later ;) When you say Tomcat up for 15 mins and dies... does tomcat crash?... is there an error log, if so get it ready and post it? Or is it just a

Re: Access static content (logs folder) ?

2008-06-06 Thread karthikn
Hi Opps Sorry misspelled TOMCAT6014 as TOMCAT5523 ... But the problem still continues Where did you place the XFLDER.xml file? As per the form http://www.nabble.com/RE%3A-Access-static-content-%28%22logs%22-folder%29---p2063441.html I have placed the file XFLDER.xml at below