Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-06 Thread Konstantin Kolinko
2009/10/7 srinivas2828 : > > Hi Deepa > I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) then i got > and I am facing one problem that when I start Tomcat server it came with one > error message which says "Starting Tomcatv6.0 Server at localhost has > encoutered a problem, Port 80 re

Tomcat gets hanged and sessions not releasing

2009-10-06 Thread sudip pattanayak
Hi, In our web application we have a design of allowing one user to login from one instance at any point of time. In case his earlier session is active while he tries to login from another instance the earlier instance gets forcefully logged off. But it so happens that if due to some problem o

JspServlet Issue

2009-10-06 Thread Mercy Ma
Hi there, I did write some code to create dynamic compiler for JSP pages, because our application sets development options parameter to be false for JspServlet. In order to fulfill the requirement, I viewed the correlative code of Japser engine. At first, I implemented the Options , JspRuntimeCon

Re: alias problem in tomcat6.0 + apache1.3

2009-10-06 Thread partha_ctc
Pid Ster wrote: > > On 6 Oct 2009, at 14:49, partha_ctc > wrote: > >> Hi, >> we have tomcat5.0 and apache1.3. my aim is instead of >> http://localhost:8085/DOMAIN, how can i call http://partha16/DOMAIN. >> for >> that i have mdified server.xml and httpd.conf file. but it says page >> not >> f

Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-06 Thread srinivas2828
Hi Deepa I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) then i got and I am facing one problem that when I start Tomcat server it came with one error message which says "Starting Tomcatv6.0 Server at localhost has encoutered a problem, Port 80 required by Tomcat v6.0 server at loca

RE: Re:Tomcat6.0.16 is too easily to be OutOfMemory compared withTomcat5.5

2009-10-06 Thread Caldarale, Charles R
> From: kalpanab [mailto:kalpanab_2...@yahoo.com] > Subject: Re: Re:Tomcat6.0.16 is too easily to be OutOfMemory compared > withTomcat5.5 > > I am also having the same issue. Does any one have solution > for this issue? You resurrected a thread that was nearly 18 months old... and since the OP d

Re: Re:Tomcat6.0.16 is too easily to be OutOfMemory compared with Tomcat5.5

2009-10-06 Thread kalpanab
Hi All, I am also having the same issue. Does any one have solution for this issue? Thanks, Kalpana kana-s wrote: > > > Thank you for replying. > > -Xms and -Xmx were 256MB. I changed 512MB but the result was same. > > As session in implicit object in JSP , > if I don't set <% session.in

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Peter Crowther
2009/10/6 Joe Hansen : > Andre, you are right. Memory is cheap. However, the machine has 8GB of > memory already. I am thinking that it should be sufficient. You might wish to dedicate more of that 8 Gbyte to Java, though. It depends on the performance characteristics of your application - looks

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
I changed the session-timeout for the CAS webapp to 1 hour and restarted Apache/Tomcat to see if that changes anything. If the issue manifests again, I will surely check the memory and cpu usage using the top command. Rainer, I somewhat doubt that getAllFotosets() is causing the problem. Because I

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread André Warnier
Rainer Jung wrote: On 06.10.2009 21:44, Joe Hansen wrote: ... It seems your application is CPU heavy. Either the data objects handled are to heavy weight (maybe some user having huge Fotoset or Email list) or the request rate is simply to large. Is the CPU saturated during the problems? I wou

Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)

2009-10-06 Thread Nada O'Neal
Hi Chris, Thanks for responding to my question! I don't have an EV cert, it's just a standard cert signed by Equifax. I have similar certs working on other servers. Again, it's the upgrade from one java to another that seems to cause the problem - running java 1.5, I don't have this issue.

RE: Tomcat training at ApacheCon

2009-10-06 Thread Martin Gainty
bit of a stretch for folks on the east coast or midwest thanks filip, Martin Gainty __ Please do not alter/modify or disrupt this transmission. Thank You > Date: Tue, 6 Oct 2009 13:45:53 -0600 > From: devli...@hanik.com > To: users@tomcat.apache.o

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Rainer Jung
On 06.10.2009 21:44, Joe Hansen wrote: > Thanks for your feedback, Rainer. > > The DAO objects/methods that you've mentioned are used for almost > every page on our website. So I am not surprised to find them in the > thread dumps. However, as you pointed out, the parameters to these > methods cha

Re: Tomcat training at ApacheCon

2009-10-06 Thread Filip Hanik - Dev Lists
On 10/06/2009 10:55 AM, Martin Gainty wrote: sounds great..any sessions for chicago,ny,boston or dc? for ApacheCon? none planned that I know of. thanks, Martin Gainty __ Date: Tue, 6 Oct 2009 07:30:20 -0600 From: devli...@hanik.com To:

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
Thanks for your feedback, Rainer. The DAO objects/methods that you've mentioned are used for almost every page on our website. So I am not surprised to find them in the thread dumps. However, as you pointed out, the parameters to these methods change depending on the page they are on and if the us

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Rainer Jung
On 06.10.2009 19:44, Joe Hansen wrote: I will only comment the threads for the AJP pool. Everything else seems not relevant: Dump 1: 20 threads connected to Apache, waiting for the next request 3 threads idle in the pool 1 thread waiting for the next connection 0 threads working on requests D

RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-06 Thread Law, Christopher
Thanks for the reply. A little more information: 1. The app always works after it starts up (assuming I didn't introduce any errors). 2. If, after the app starts up (whether I exercise it or not), I shutdown Tomcat, remove the exact same stuff from Tomcat (WAR, exploded WAR, work/Catalina/localh

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
There were 29 httpd processes running when the websites crashed. One thing that was clear from the thread dumps was there were lots of entries for org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner: Starting cleaning of expired tickets from ticket registry at ... Does that indicat

Re: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-06 Thread Rainer Jung
On 06.10.2009 17:41, Christopher Schultz wrote: > Christopher, > > On 10/6/2009 10:50 AM, Law, Christopher wrote: >> Hello, I'm running Tomcat 6.0.18 using Java 1.6.0_12 on Windows XP >> professional. > >>> I have a problem that occurs during startup deploying a WAR file. >>> Tomcat deploys the W

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
Rainer, I spoke to soon! As I suspected, the problem isn't fixed yet and the websites crashed again. This time I took three thread dumps at the time tomcat was down. Here they are: http://pastebin.com/m2a7e1198 I will learn from your previous analysis of the thread dumps and I try to understand w

Re: alias problem in tomcat5.0 + apache1.3

2009-10-06 Thread Pid Ster
On 6 Oct 2009, at 14:49, partha_ctc wrote: > Hi, > we have tomcat5.0 and apache1.3. my aim is instead of > http://localhost:8085/DOMAIN, how can i call http://partha16/DOMAIN. > for > that i have mdified server.xml and httpd.conf file. but it says page > not > found. > i have attached the httpd.c

Re: Tomcat Repsonse question...

2009-10-06 Thread Tony Anecito
Thnaks Chritopher. I am running JBoss and Apache on the same box so not sure if the TCP/IP stack is bypassed in that case. What I am trying to do is find out where my bottlenecks are. In my code I instrument the response time for my web service and I am below 1msec and if visualvm is right mor

Re: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-06 Thread Pid Ster
Does the app perform normally when it does start up? I recently experienced this when I inadvertently placed the same jar in two places - the app displayed other errors when it finally loaded. p -- On 6 Oct 2009, at 15:52, "Law, Christopher" wrote: > Hello, I'm running Tomcat 6.0.18 using Jav

RE: Expiration date on static content?

2009-10-06 Thread Jeffrey Janner
http://onjava.com/pub/a/onjava/2004/03/03/filters.html -Original Message- From: pieroxy [mailto:pier...@gmail.com] Sent: Tuesday, October 06, 2009 12:03 PM To: Tomcat Users List Subject: Expiration date on static content? Hello, I do have a tomcat working for several years on my producti

Expiration date on static content?

2009-10-06 Thread pieroxy
Hello, I do have a tomcat working for several years on my production servers, and I am trying to optimize a thing or two. I already use the gzip compression, and this works very well. However, I noticed that all my static content is served with no expiration date at all. This doesn't tell browsers

RE: Tomcat training at ApacheCon

2009-10-06 Thread Martin Gainty
sounds great..any sessions for chicago,ny,boston or dc? thanks, Martin Gainty __ > Date: Tue, 6 Oct 2009 07:30:20 -0600 > From: devli...@hanik.com > To: users@tomcat.apache.org > Subject: Tomcat training at ApacheCon > > In addition to the Tomca

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
Rainer, Thanks for looking at those long thread dumps for me!! I am sorry. I did NOT take these dumps at the right time (i.e. when Tomcat was inundated with requests and couldn't cope with the load). After I increased the heap size to 512MB (from 64MB default), I am not getting the OutOfMemoryErr

Re: Tomcat Repsonse question...

2009-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/4/2009 10:13 PM, Tony Anecito wrote: > What class method for Tomcat would show the response time? I am using > the jvirtualvm to profile the code (simplest and easy to use) but I > need to know the name/method that would be closest to the

Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)

2009-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nada, On 10/1/2009 4:36 PM, Nada O'Neal wrote: > I'm stuck on Tomcat 5.5.26 to support a specific application. This is a > Solaris 9 server with no Apache - tomcat is handling its own webserving. > We're hoping to upgrade the JDK. I can use JDK-1.5.0_

Re: shutdown.sh and graceful shutdown

2009-10-06 Thread Marcoi
Chris, Christopher Schultz-2 wrote: > > If you look at the documentation for Context, you'll see that > "unloadDelay" is a configurable attribute of your webapp's > element: > > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > Exactly what I was looking for. Thanks. Marco --

Re: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christopher, On 10/6/2009 10:50 AM, Law, Christopher wrote: > Hello, I'm running Tomcat 6.0.18 using Java 1.6.0_12 on Windows XP > professional. > >> I have a problem that occurs during startup deploying a WAR file. >> Tomcat deploys the WAR file but

RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-06 Thread Caldarale, Charles R
> From: Law, Christopher [mailto:chris@snapon.com] > Subject: Tomcat hangs for minutes between ContextConfig and > StandardContext (Starting the app) > > It almost seems like Tomcat is blocked waiting for a reply > from some request. Quite possible. Could be DNS resolution, or references in

RE: How to Map domain to a context using Mod_jk

2009-10-06 Thread Caldarale, Charles R
> From: gpike [mailto:gop...@gmail.com] > Subject: RE: How to Map domain to a context using Mod_jk > > I thought a restart was needed because VirtualHost config is in the > server.xml. Tomcat has APIs for pretty much everything, and these are used by the parser for server.xml to create the inter

RE: alias problem in tomcat5.0 + apache1.3

2009-10-06 Thread Martin Gainty
i did'nt see where port 8085 specified in your connector setting? i also would suggest specifying protocol in this case HTTP/1.1 the configuration for webapps appears incorrect i would suggest change D:/software/Tomcat 5.0/DOMAIN/DOMAIN to D:/software/Tomcat 5.0/webapps //reflect the new appBa

Is ready the cluster deployer object?

2009-10-06 Thread Paolo Santarsiero
Hi, I need to deploy many applications on a Tomcat's cluster, so I'm looking for an easy solution to do it. I had read about element in ; the idea here is that if you have a cluster of Tomcat nodes that are communicating together, the administrator may deploy distributable webapps to one of the n

Re: shutdown.sh and graceful shutdown

2009-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcoi, On 10/5/2009 8:07 AM, Marcoi wrote: > I have a servlet with the following code: > > for (int i = 0; i < 50; i++) { > System.out.println("waiting " + i); > Thread.currentThread().sleep(500); } PrintWriter

Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-06 Thread Law, Christopher
Hello, I'm running Tomcat 6.0.18 using Java 1.6.0_12 on Windows XP professional. > I have a problem that occurs during startup deploying a WAR file. > Tomcat deploys the WAR file but then there is a delay of minutes > before it tries to start the application. > > During the delay, there is no CPU

RE: How to Map domain to a context using Mod_jk

2009-10-06 Thread gpike
Really great. So just so I understand, I want to host users sites where they have their own domain. I want to be able to deploy their webapp, for their domain in my server without the restarting the Tomcat server. I also want to automate the process. I thought a restart was needed because Virtu

Re: Sharing webapps folder in tomcat cluster

2009-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo, On 10/5/2009 10:04 AM, Paolo Santarsiero wrote: > Load balancing works fine, but when I shutdown a tomcat with a open > session, replication sessions doesn't works. What do you think? You should post another question so folks on the list with

RE: How to Map domain to a context using Mod_jk

2009-10-06 Thread Caldarale, Charles R
> From: gpike [mailto:gop...@gmail.com] > Subject: Re: How to Map domain to a context using Mod_jk > > In tomcat adding a VirtualHost would require a restart. Not true; use the supplied host-manager (not manager) webapp to manipulate entries on the fly. The only caveat is that it does not upda

alias problem in tomcat5.0 + apache1.3

2009-10-06 Thread partha_ctc
Hi, we have tomcat5.0 and apache1.3. my aim is instead of http://localhost:8085/DOMAIN, how can i call http://partha16/DOMAIN. for that i have mdified server.xml and httpd.conf file. but it says page not found. i have attached the httpd.conf file. first i tried with virtual host , but it has not w

Re: How to Map domain to a context using Mod_jk

2009-10-06 Thread gpike
I want to be able to add new domains without restarting Tomcat. In tomcat adding a VirtualHost would require a restart. I believe I can add a VirtualHost in Apache without a restart. If I could redirect that to a webapp context in Tomcat I think I can add those without a restart. Is that the way t

Tomcat training at ApacheCon

2009-10-06 Thread Filip Hanik - Dev Lists
In addition to the Tomcat Track, http://us.apachecon.com/c/acus2009/schedule#tomcat , we are also putting on a 2 day Tomcat training, http://us.apachecon.com/c/acus2009/sessions/452 , It's a great track for both administrators and developers and goes above and beyond just the configuration fil

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Rainer Jung
On 05.10.2009 18:58, Joe Hansen wrote: > Thank you so much for your tips, Rainer! > > The websites went down yet again. Increasing the java heap size took > care of the OutOfMemoryError, but the number of httpd processes keep > increasing until the websites crash. I haven't added any new code in >

Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-06 Thread srinivas2828
Thanks for your Help and I will go through the material and I will let you know what happen... again thanks a lot Deepa Annamalai wrote: > > Follow this tutorial, > > http://www.coreservlets.com/Apache-Tomcat-Tutorial/ > > -Deepa > > 2009/10/6 srinivas2828 > >> >> hi friends does anybody k

Re: How to Map domain to a context using Mod_jk

2009-10-06 Thread Rainer Jung
On 06.10.2009 06:56, gpike wrote: > > I have Virtual Hosts defined in Apache for each domain. I want to map the > domain to a context in Tomcat. For instance I would like mysite.com to map > to /mysite_com in Tomcat. Would it be something like: > > > ServerName mysite.com > Rewr

Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-06 Thread Deepa Annamalai
Follow this tutorial, http://www.coreservlets.com/Apache-Tomcat-Tutorial/ -Deepa 2009/10/6 srinivas2828 > > hi friends does anybody know how to integrate tomcat with tomcat with > eclipse > thanks in advance > -- > View this message in context: > http://www.nabble.com/how-to-integrate-tomcat-w

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-06 Thread Rainer Jung
I know I'm late in this discussion. Besides the very good mentioning of mod_remoteip, RemoteIpValve and XForwardedFilter I guess there's a way of doing it in case you are using mod_jk. mod_jk (and mod_proxy_ajp) use the AJP protocol between the web server and the backend, e.g. Tomcat. This protoco

RE: InvocationTargetException results OutOfMemory issue ascodecache is full in tomcat 5.5

2009-10-06 Thread Caldarale, Charles R
> From: subrahmanyam [mailto:venkata.ad...@genpact.com] > Subject: RE: InvocationTargetException results OutOfMemory issue > ascodecache is full in tomcat 5.5 > > Is there any setting in JAVA_OPTS to refresh the codecache > once it reaches to maximum? No, but you can raise the maximum via the -X

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Rainer Jung
On 05.10.2009 18:58, Joe Hansen wrote: > Thank you so much for your tips, Rainer! > > The websites went down yet again. Increasing the java heap size took > care of the OutOfMemoryError, but the number of httpd processes keep > increasing until the websites crash. I haven't added any new code in >

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Rainer Jung
On 05.10.2009 22:04, André Warnier wrote: > André Warnier wrote: > ... > and still wants to add something : > > - a new KeepAlive connection is made from the browser to Apache (httpd). > - then a request comes in on that connection, and it happens to be one > that gets forwarded to Tomcat. So a m

RE: InvocationTargetException results OutOfMemory issue as codecache is full in tomcat 5.5

2009-10-06 Thread subrahmanyam
Thanks to all for your reply. Today also we have received same issue. After Continuously monitoring probe found that codecache reached 48MB and after that 3 users faced issue. Is there any setting in JAVA_OPTS to refresh the codecache once it reaches to maximum? -- View this message in contex

Re: Alias URL

2009-10-06 Thread André Warnier
Johnson, Rob E wrote: Andre thanks for all your help that worked. I can use the alias, and I can still hit the other webapps. Also thanks to Martin Gainty and his help. No thanks required, we live to help. Martin and I, the winning team... :-) ---

Re: Alias URL

2009-10-06 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Alias URL (stop Tomcat first) Step 1 : you will need 2 sections in Tomcat's configuration file "server.xml". Currently, there is only one. Actually, the one will suffice, if the OP is willing to eliminate

Re: [OT] Alias URL

2009-10-06 Thread André Warnier
David Kerber wrote: Pid Ster wrote: YDHTVO ??? Haven't seen that one before. D Neither have I. You Don't Have To ... ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: user

how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-06 Thread srinivas2828
hi friends does anybody know how to integrate tomcat with tomcat with eclipse thanks in advance -- View this message in context: http://www.nabble.com/how-to-integrate-tomcat-with-IDE-tools-like-eclipse%2CNetbeans--tp25764753p25764753.html Sent from the Tomcat - User mailing list archive at Nabb

Re: InvocationTargetException results OutOfMemory issue as codecache is full in tomcat 5.5

2009-10-06 Thread subrahmanyam
Hi, Thaks for your replies. My server OS is : Windows 2003 server (by mistake above it is given as XP). JVM is 1.6.0 Both are 64 Bit We are not using JSP's . We are using orbeon3.7 (www.orbeon.com) xslt for web forms. In which using oxf:processor where our Java classes are build dynamically. Us

Re: [OT] Re: Alias URL

2009-10-06 Thread Peter Crowther
[Very off-topic] 2009/10/5 Caldarale, Charles R : >> From: André Warnier [mailto:a...@ice-sa.com] >> I was going to say "Evil Geniuses" (O'Reilly). >> But I don't know who was first. > > The book is just a collection of the User Friendly strips; excellent > reference manual. It's a good stage pr

Re: How to Map domain to a context using Mod_jk

2009-10-06 Thread Pid Ster
On 6 Oct 2009, at 05:56, gpike wrote: > > I have Virtual Hosts defined in Apache for each domain. I want to > map the > domain to a context in Tomcat. For instance I would like mysite.com > to map > to /mysite_com in Tomcat. Would it be something like: > > >ServerName mysite.com >