Re: New to tomcat and jsp

2010-02-10 Thread stuart4487
The installation is pretty straightforward. It used to be a pain in the neck to set up, but now they made it easier to get up and running. Check out http://jakarta.apache.org/tomcat/ and for installation: http://jakarta.apache.org/tomcat/tom...doc/setup.html These are two good places to get

redeploying war files

2010-02-10 Thread Jan Van Besien
Hi all I'm using tomcat-6.0.18 with java-1.6.0-18 on ubuntu-9.10. I have a question about the feature to automatically deploy war files when they are dropped in the webapps directory. Sometimes, this doesn't work as I would expect it to work, and I want to find out if this is expected or if

Re: Tomcat JULI resets JDK logging?

2010-02-10 Thread Henning
Chris, yes I did. The code below was meant to be a simplified example. I created a bug report on that in the meantime: https://issues.apache.org/bugzilla/show_bug.cgi?id=48716 As far I understand now, once the default LogManager of the JDK got used (i.e. by retrieving a logger or setting

Re: redeploying war files

2010-02-10 Thread Mark Thomas
On 10/02/2010 09:08, Jan Van Besien wrote: Hi all I'm using tomcat-6.0.18 with java-1.6.0-18 on ubuntu-9.10. I have a question about the feature to automatically deploy war files when they are dropped in the webapps directory. Sometimes, this doesn't work as I would expect it to work, and

Re: redeploying war files

2010-02-10 Thread Mark Thomas
This time with the response... On 10/02/2010 10:12, Mark Thomas wrote: On 10/02/2010 09:08, Jan Van Besien wrote: Am I making wrong assumptions? Yes. The documantation [1] explicetely says ... and it is newer than the exploded web application, the exploded directory will be removed and the

Re: redeploying war files

2010-02-10 Thread Jan Van Besien
Mark Thomas wrote: If you redeploy a WAR file while Tomcat is stopped you need to deleted the exploded directory as well. Ok, thanks for clarifying that for me. Can I safely delete the exploded files if tomcat is still running as well? In that case, I could do it always, without checking if

Re: redeploying war files

2010-02-10 Thread Peter Crowther
On 10 February 2010 10:39, Jan Van Besien janvanbes...@gmail.com wrote: Can I safely delete the exploded files if tomcat is still running as well? In that case, I could do it always, without checking if tomcat is running. You shouldn't get any errors in your RPM if you delete the files. Tomcat

Re: Tomcat JULI resets JDK logging?

2010-02-10 Thread Mark Thomas
On 10/02/2010 09:47, Henning wrote: Chris, yes I did. The code below was meant to be a simplified example. I created a bug report on that in the meantime: https://issues.apache.org/bugzilla/show_bug.cgi?id=48716 As far I understand now, once the default LogManager of the JDK got used

Re: redeploying war files

2010-02-10 Thread Mark Thomas
On 10/02/2010 10:39, Jan Van Besien wrote: Mark Thomas wrote: If you redeploy a WAR file while Tomcat is stopped you need to deleted the exploded directory as well. Ok, thanks for clarifying that for me. Can I safely delete the exploded files if tomcat is still running as well? In that

Re: Tomcat HTTP Connector Threads Hung

2010-02-10 Thread Anurag Kapur
Thank you for your response Chuck. Got your point and have started investigating this problem at the web app level. Regards Anurag On Wed, Feb 10, 2010 at 3:45 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Anurag Kapur [mailto:anuragka...@gmail.com] Subject: Tomcat HTTP

problem with tomcat realm

2010-02-10 Thread aaaaaa
Hi, I try to manage tomcat realms. In particular I need to authenticate a user (with role Developer for example) with form authentication in my webapp (and I specify the security constraint and role in web.xml and create a JDBC realm to do it and this first login doesn't have any problem). When

RE: (.:5486): Gtk-WARNING **: cannot open display:

2010-02-10 Thread Caldarale, Charles R
From: subbu.r...@gmail.com [mailto:subbu.r...@gmail.com] Subject: (.:5486): Gtk-WARNING **: cannot open display: I host a website in internet, Nowadays i am facing this kind of problem (.:5486): Gtk-WARNING **: cannot open display: once the above error comes, then the website is not

jaxb unmarshal breaks after webapp redeploy

2010-02-10 Thread Mark Shifman
I have a webapp that unmarshalls xmls prior to storing in my database. I have recently noted that after a redeploy, the unmarshalling of a dateTime element is null while the rest of the elements in my object seem to be unmarshalled fine. If I restart tomcat things seem to work again. I

Re: (.:5486): Gtk-WARNING **: cannot open display:

2010-02-10 Thread Fabien COMBERNOUS
subbu.r...@gmail.com wrote: Dear friends, I host a website in internet, Nowadays i am facing this kind of problem (.:5486): Gtk-WARNING **: cannot open display: once the above error comes, then the website is not running. then we need to restart the tomcat service. kindly tellme, this is

Re: jaxb unmarshal breaks after webapp redeploy

2010-02-10 Thread Mark Thomas
On 10/02/2010 16:05, Mark Shifman wrote: I have a webapp that unmarshalls xmls prior to storing in my database. I have recently noted that after a redeploy, the unmarshalling of a dateTime element is null while the rest of the elements in my object seem to be unmarshalled fine. If I

Re-deploying a war file

2010-02-10 Thread Joe Wallace
I have been working with Tomcat 6.0.20 running as a windows service for about a year. I update the application war file every few months. After reading the Tomcat 6.0 User Guide, Section 4, Deployer -Deploying on a running war Tomcat I expected to be able to just drop the updated war file

Deploying

2010-02-10 Thread Telles Nobrega
Im working with some webapp, and they were suppose to be running on tomcat, i got all together, put it all into the webapp folder, some worker, some didnt. can anyone explain the reason for that? -- -- Telles Mota Vidal Nobrega Undergraduated in Computer

Re: Deploying

2010-02-10 Thread David Smith
On 2/10/2010 11:47 AM, Telles Nobrega wrote: Im working with some webapp, and they were suppose to be running on tomcat, i got all together, put it all into the webapp folder, some worker, some didnt. can anyone explain the reason for that? Only the tomcat logs know ... you might want to

RE: Deploying

2010-02-10 Thread Joseph Morgan
Telles, It depends on what you deployed, where, and the configurations of the app or apps. If you have the Manager application, use that to tell you quickly which apps are not started. There is a logs folder in the tomcat installation. You might want to take a look at all of them to give you

Re: Deploying

2010-02-10 Thread Telles Nobrega
ok, thanks On Wed, Feb 10, 2010 at 2:57 PM, David Smith d...@cornell.edu wrote: On 2/10/2010 11:47 AM, Telles Nobrega wrote: Im working with some webapp, and they were suppose to be running on tomcat, i got all together, put it all into the webapp folder, some worker, some didnt. can

Re: problem with tomcat realm

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A, On 2/10/2010 8:36 AM, aa wrote: When the user goes in a particular page I need to ask him a new authentication because this page needs more privileges (this page infact is only for administrators and in web.xml I

Re: jaxb unmarshal breaks after webapp redeploy

2010-02-10 Thread Mark Shifman
Mark Thomas wrote: On 10/02/2010 16:05, Mark Shifman wrote: I have a webapp that unmarshalls xmls prior to storing in my database. I have recently noted that after a redeploy, the unmarshalling of a dateTime element is null while the rest of the elements in my object seem to be

Re: Tomcat JULI resets JDK logging?

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Henning, On 2/10/2010 4:47 AM, Henning wrote: Yes I did [use a separate ClassLoader]. The code below was meant to be a simplified example. I created a bug report on that in the meantime: https://issues.apache.org/bugzilla/show_bug.cgi?id=48716

Re: Http 505

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/9/2010 11:01 PM, Mohit Anchlia wrote: Tomcat 6 Tomcat 6.what? Our application non-java client (C/Java) are occasionally seeing Http 505. Do you know what the HTTP 505 response code means? It means that the HTTP version of the

Re: jaxb unmarshal breaks after webapp redeploy

2010-02-10 Thread Mark Shifman
I forgot to check catalina.out with the new tomcat. It showed: Feb 10, 2010 1:54:28 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A web application appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory

Re: jaxb unmarshal breaks after webapp redeploy

2010-02-10 Thread Mark Thomas
On 10/02/2010 19:20, Mark Shifman wrote: I forgot to check catalina.out with the new tomcat. It showed: Feb 10, 2010 1:54:28 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A web application appears to have started a thread named [Timer-0] but has failed to

JSP Page hangs... clues?

2010-02-10 Thread Jordan Michaels
We have an interesting situation and I'm wondering if anyone has any ideas on where we could look for possible solutions. We have a JSP page that performs a large mysql query of product titles (just the names). The list is then spit out on the page with drill-down links. Pretty simple really.

RE: JSP Page hangs... clues?

2010-02-10 Thread Joseph Morgan
Jordan, It sounds to me like a memory issue as well, but you should see an OutOfMemory error in the logs, or so I would think. Is the page (or the actions within it) caching anything in the context or session? Joe -Original Message- From: Jordan Michaels [mailto:jor...@viviotech.net]

Re: JSP Page hangs... clues?

2010-02-10 Thread Jim Cox
Can you truss/strace Tomcat, or watch the network traffic between MySQL and Tomcat? Comparing captures from those tools between successul and hung page generation might show what the issue is, or at least suggest other areas to look at. On Wed, Feb 10, 2010 at 2:53 PM, Jordan Michaels

Re: JSP Page hangs... clues?

2010-02-10 Thread Jordan Michaels
Hey Joseph, Honestly I'm not sure about the code. We didn't write the code for it and I haven't dug around in that part of it because the first few requests seem to go through without a hitch. We doubled the Xmx value from 512 to 1024 and added the MaxPermSize so I've been going under the

Re: JSP Page hangs... clues?

2010-02-10 Thread Jordan Michaels
We haven't performed either of those. I will try that. We did watch the packet flow between the browser and the server using wireshark in order to rule out something weird with the network. You could see where Tomcat responded with the partial page, the browser returns the packet

RE: JSP Page hangs... clues?

2010-02-10 Thread Joseph Morgan
Depends on if your machine can handle the memory load of everything on it. Is it hanging indefinitely... ie., does it ever come back?? I also suspect that you've verified that Tomcat is actually hanging and it's not just that the browser is, for some reason, not displaying everything. That

405 error?

2010-02-10 Thread Ken Bowen
I feel silly, but... Using Tomcat 6.0.20 (ordinary Apache download) with Java 1.6 on Mac OS X 10.5.8. As a step towards examining what's going on in my main app, I created a simple auxilliary servlet; here's the web.xml entry: servlet servlet-namesbtester/servlet-name

Re: JSP Page hangs... clues?

2010-02-10 Thread Jordan Michaels
Yeah, it's hanging permanently. We've let it sit there for what... 15 mins or so? Which should be plenty since no one is using it right now except us. Yeah, I know what you mean about the logs too. I'm very familiar with that happening and how to address it, but this time there's nothing in

Re: JSP Page hangs... clues?

2010-02-10 Thread Mark Thomas
On 10/02/2010 19:53, Jordan Michaels wrote: Does anyone have any clues as to where we might look for what is happening to make this one page hang? It still feels like a memory issue, but with nothing in the logs and no indicators other then the problem itself, we'd appreciate any suggestions

RE: JSP Page hangs... clues?

2010-02-10 Thread Joseph Morgan
Now I'm thinking request timeout.. but that would happen on all requests, right? Unfortunately, Mark Thomas' approach might be the way and I don't envy you for a second that you'll be walking that road! -Original Message- From: Jordan Michaels [mailto:jor...@viviotech.net] Sent:

Re: 405 error?

2010-02-10 Thread Kris Schneider
don't call super.doGet... On Wed, Feb 10, 2010 at 3:20 PM, Ken Bowen kbo...@als.com wrote: I feel silly, but... Using Tomcat 6.0.20 (ordinary Apache download) with Java 1.6 on Mac OS X 10.5.8. As a step towards examining what's going on in my main app, I created a simple auxilliary

Re: 405 error?

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 2/10/2010 3:20 PM, Ken Bowen wrote: I feel silly, but... protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { super.doGet(req, resp); Heh, that /is/ silly. The javadoc for

RE: JSP Page hangs... clues?

2010-02-10 Thread Martin Gainty
inside a jsp class references have to be qualified e.g. ArrayList becomes java.util.ArrayList dont be afraid to jump into %CATALINA_HOME%/work/Catalina/%hostname%/WebApp/org/apache/jsp folder .. find the jsp and compile it manually from command line javac index_jsp.java Martin Gainty

Re: 405 error?

2010-02-10 Thread Konstantin Kolinko
2010/2/11 Christopher Schultz ch...@christopherschultz.net: By calling the superclass's doGet method, you get the default implementation, which is to /not/ support GET (sorry, I can't find the source for HttpServlet quite yet, so you'll have to read bytecode): For 6.0.20 the source will be

Re: Http 505

2010-02-10 Thread Mohit Anchlia
There is a proxy F5 in between. But this server sends 100s of request per sec. to the same URL. Essentially it's the same code. Only few of them fail. This application is non browser based application. On Wed, Feb 10, 2010 at 11:13 AM, Christopher Schultz ch...@christopherschultz.net wrote:

Re: 405 error?

2010-02-10 Thread Ken Bowen
Arrrgh -- absolutely correct. Moral of the story: /Think/ about what your tool (Eclipse) automatically fills in for you before you start adding code! Thanks much. On Feb 10, 2010, at 4:06 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 2/10/2010 3:20

Re: Http 505

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/10/2010 5:28 PM, Mohit Anchlia wrote: There is a proxy F5 in between. But this server sends 100s of request per sec. to the same URL. Essentially it's the same code. Only few of them fail. This application is non browser based

Re: Http 505

2010-02-10 Thread Mohit Anchlia
Yes I have been asking for it. But clients are not wiling to make a code change. I might have put a sniffer. Strange thing is that we are not seeing the request but they see it as Apache/Coyote 1.1 Thanks On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz ch...@christopherschultz.net wrote:

RE: JSP Page hangs... clues?

2010-02-10 Thread John Wiles
One thing I'd look for is a null pointer that isn't being taken care of properly in the code. I've seen these cause jsp pages to not complete and appear to have caused any javascript in the page to hang as well. -Original Message- From: Jordan Michaels [mailto:jor...@viviotech.net]

RE: tomcat can not work on vista sometimes

2010-02-10 Thread chenll
Thank all of you! i have resolved the problem according to your suggestion, which is turn off UCA in control panel. From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 9 Feb 2010 11:40:12 -0600 Subject: RE: tomcat can not work on vista sometimes From: chenll

RE: tomcat can not work on vista sometimes

2010-02-10 Thread Martin Gainty
unless you have the 64bit JDK setup and properly configured you may want to repoint to 32bit JDK (v6) and set startup(sh/bat) as win32 compatible .. Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note

RE: Java heap size limit

2010-02-10 Thread Hadole, Nishant IN BOM SISL
For 32 bit system, maximum memory pool can easily increased upto 2 GB. 1. If using batch start-up file Add set CATALINA_OPTS=-Xms64M -Xmx128M in catlina.bat 2. If running as windows service, Using tomcat monitor -- java -- initial maximum memory pool With best regards, Nishant Hadole Siemens

RE: Java heap size limit

2010-02-10 Thread Hadole, Nishant IN BOM SISL
For catlina.bat changes, value for Xms corresponds to initial memory pool Xmx to maximum memory pool. Set the values accordingly. With best regards, Nishant Hadole -Original Message- From: Hadole, Nishant IN BOM SISL [mailto:nishant.had...@siemens.com] Sent: Thursday, 11 February,

Re: Http 505

2010-02-10 Thread Mohit Anchlia
On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/10/2010 5:28 PM, Mohit Anchlia wrote: There is a proxy F5 in between. But this server sends 100s of request per sec. to the same URL.