Re: Deploy 1st Service to Tomcat proper

2009-01-29 Thread Toriacht
Hi Michael, Thank you for your reply. I should hasve pasted the error. The reason I didn't wa sthat I assumed that my method of export.wardeploy was incorrect. When i click on the application in my Tomcat Manager page I get a HTTP Status 404 error telling me that my web service (requested

RE: Tomcat getting stopped automatically

2009-01-29 Thread Peter Crowther
From: Javed420 [mailto:javed.inam...@gmail.com] I am doing processing over data from xls file on perticular request. But Tomcat gets automatically stopped in middle of execution. If anybody know reply. Does any of your code contain System.exit() when it encounters an error? Don't

Re: problem regarding JK Connector

2009-01-29 Thread meetali dey
Hi, I am trying to use JK connector, but at http://tomcat.apache.org http://www.tom/ site , many documentation links are not opening/working - eg 1) http://tomcat.apache.org/connectors-doc/webserver_howto/workers.html 2) http://tomcat.apache.org/connectors-doc/reference/worker.html

Re: problem regarding JK Connector

2009-01-29 Thread meetali dey
Hi, I am trying to use JK connector, but at http://tomcat.apache.org http://www.tom/ site , many documentation links are not opening/working - eg 1) http://tomcat.apache.org/connectors-doc/webserver_howto/workers.html 2) http://tomcat.apache.org/connectors-doc/reference/worker.html

Re: problem regarding JK Connector

2009-01-29 Thread André Warnier
meetali dey wrote: [...] Hi. Kindly check the archives of this list, particularly in the last 2 days. There was a thread named Connecting Apache Tomcat to Apache which would probably be of great help. On this page : http://tomcat.apache.org/lists.html under Archives, you find a series of URLs

Re: Graceful Stop

2009-01-29 Thread Mark Thomas
Mohit Anchlia wrote: tomcat 6: Is there a way to gracefully stop tomcat similar to apache? Yes, depending on how you started it: - stop the windows service - use shutdown.(sh|bat) - kill the process - CTRL-C with focus on the DOS window Note with all of these any request that takes too

Re: SECURITY breach in Tomcat

2009-01-29 Thread Mark Thomas
Toby Kurien wrote: Seems like the infection was related to the loose (default) password of the manager app. I suppose changing that fixed the problem. There is *no* default password for the manager application. You have to configure it yourself. If you have a Tomcat distribution that does have

Re: problem regarding JK Connector

2009-01-29 Thread André Warnier
meetali dey wrote: Hi, I am trying to use JK connector, but at http://tomcat.apache.org http://www.tom/ site , many documentation links are not opening/working - eg 1) http://tomcat.apache.org/connectors-doc/webserver_howto/workers.html 2)

Re: Specific Tomcat version for Java6

2009-01-29 Thread Mark Thomas
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Specific Tomcat version for Java6 No. I believe all versions of Tomcat can be run on all versions of Java from 1.2 onward Don't think so. Tomcat 6 requires Java 1.5 or newer (seems to

Re: Java/Tomcat 5 CPU utilization very high under low load

2009-01-29 Thread Mark Thomas
Leon Rosenberg wrote: How best can I find the troubled thread on a running production system? kill -QUIT id_of_the_tomcat_process the thread dump will be printed into the catalina.out Best to take several (eg 30 thread dumps ~10 seconds apart. Mark Its best to restart the server after

Re: Tomcat getting stopped automatically

2009-01-29 Thread Mark Thomas
Peter Crowther wrote: From: Javed420 [mailto:javed.inam...@gmail.com] I am doing processing over data from xls file on perticular request. But Tomcat gets automatically stopped in middle of execution. If anybody know reply. Does any of your code contain System.exit() when it encounters

Advanced IO and Tomcat

2009-01-29 Thread Abromeit, Philipp
Hello everybody! I'm doing a research on the topic Does Comet scale?. I have already developed a solution using some Javascript and Wireshark measurements. During my research I was looking for people who did this already or could give me any idea of how to configure my setting and so on. But

Re: unwar and unjar an application

2009-01-29 Thread Ken Bowen
Often the following will unpack a jar or war (both): jar -xf the war or jar On Jan 29, 2009, at 12:45 AM, Mihamina Rakotomandimby (R12y) wrote: Kirk True wrote: A developer gave me just a .war file to deploy on a tomcat. I read [w|j]ar files are just zipped. The .war contains some .jar... I

Request queue menagement Tomcat 5.5 + Axis

2009-01-29 Thread Sergio Arrighi
Hello to everyone, I've developed a webApp on tomcat 5.5. This webapp consists of a bunch of webservices that i've created using axis. Is there someone who could help me to understand how tomcat or axis handle the request queue?? Thank you very much Sergio Arrighi -- *I.M.I.N.

RE: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-29 Thread Hamacher, Eric
Thanks Michael for the reply. No dice. Same error message with url. I forgot to mention that this is a fresh installation of Tomcat 6 so I haven't changed anything except for trying to insert this element. Eric -Original Message- From: Michael Ludwig [mailto:mil...@gmx.de] Sent:

Re: unwar and unjar an application

2009-01-29 Thread David kerber
Mihamina Rakotomandimby (R12y) wrote: Kirk True wrote: A developer gave me just a .war file to deploy on a tomcat. I read [w|j]ar files are just zipped. The .war contains some .jar... I would like to explode all the .war (and the contained jars) and have the full code source. I could do it

Re: Connecting Apache Tomcat to Apache

2009-01-29 Thread Mike Eller
This was also the answer for me (original poster). I placed the mount directives directly in the virtual host that I needed it in and all works well. Thank you for the assistance. I am sure I will be back with additional questions...so don't go far. Very Respectfully, Mike On Wed, 2009-01-28 at

Re: Tomcat 6.0 loading servlet twice

2009-01-29 Thread Stephen Souness
Hi, If you go in via Tomcat's Manager app, do you see more webapps than you expect? A long time ago I made the mistake of deploying apps under the webapps directory as well as configuring them with their own context - this resulted in those particular applications being loaded twice.

Re: Tomcat 6.0 loading servlet twice

2009-01-29 Thread Ani
What m I thinking was , I have entry in context tag of server.xml as Context docBase=C:\Program Files\Avaya/comp/website path=/website reloadable=false crossContext=true / where as I have two web applicatio folders named website and website_old in side C:\Program Files\Avaya/comp. These two web

Re: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-29 Thread Stephen Souness
Which lib did you put your jars in? The web app's or Tomcat's? -- Stephen Souness Hamacher, Eric wrote: Hello: This has been a truly frustrating problem. Here is what I did: Tomcat 6.0.18 JDK 1.5 u 16 Eclipse w/ WTP 3.4.1 Ojdbc14dms.jar Dms.jar I placed my drivers in lib. In web.xml, I

RE: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-29 Thread Hamacher, Eric
Tomcat's -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Stephen Souness Sent: Thursday, January 29, 2009 9:02 AM To: users@tomcat.apache.org Subject: Re: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Which lib did you put your jars

RE: Tomcat 6.0 loading servlet twice

2009-01-29 Thread Caldarale, Charles R
From: Ani [mailto:jadhao.anirud...@gmail.com] Subject: Re: Tomcat 6.0 loading servlet twice I have entry in context tag of server.xml Don't put Context elements in server.xml. For webapps placed in the Host appBase directory, the Context element belongs in the webapp's META-INF/context.xml

Indicator APR is loaded - TC 5.5

2009-01-29 Thread Gregor Schneider
Hi guys, I'm a bit puzzled: I'm running a few TC-instances, all of them using TC-native and APR. I'm used to that, once the APR is loaded, there's a line in the logs stating that the APR is being used , or, if mis-configured, that the APR cannot be found. On my Tomcat 6 on Debian this works

Re: Graceful Stop

2009-01-29 Thread Mohit Anchlia
When I perform tomcat stop on linux it doesn't look like it processes all the requests and then stops. It just stops right away. On Thu, Jan 29, 2009 at 2:39 AM, Mark Thomas ma...@apache.org wrote: Mohit Anchlia wrote: tomcat 6: Is there a way to gracefully stop tomcat similar to apache?

RE: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-29 Thread Hamacher, Eric
I solved the problem by putting java:/comp/env in the JNDI lookup in the code. That led me to an exception when I tried to use an ArrayDescriptor. So I tried to change my pooling form dbcp to oracle with: Resource name=jdbc/GFDataSource auth=Container

Re: enableLookups=true, getRemoteHost returns ip

2009-01-29 Thread otismo
Thanks, Konstantin, for the thorough response! I was failing to grasp that the forward lookup portion of the method was failing because there was no forward dns mapping. I thought it was failing locally inside the java code, not in the dns system. To confirm the lack of a dns mapping, I used

Re: logging outgoing requests from Tomcat to SQL

2009-01-29 Thread Gergely Paljak
Hi Christopher, thanks for the comment, it's really interesting! And it looks like more wrapping than before christmas, but I have never taken a close look on JDBC implementations (at least not this close). So, i'd be interested in that *super-sexy *class wrapper generator of yours! Also in any

Re: Indicator APR is loaded - TC 5.5

2009-01-29 Thread Gregor Schneider
Ok, since there's no comment by now, I'll try to rephrase my question: As I wrote, said Tomcat instance is fronted b Apache HTTPD via mod_jk. This means, that Tomcat in the current confuguration is only serving dynamic content, such as JSPs and Servlets, but no static HTML. I guess that the

Re: logging outgoing requests from Tomcat to SQL

2009-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gergely, Gergely Paljak wrote: And it looks like more wrapping than before christmas, but I have never taken a close look on JDBC implementations (at least not this close). So, i'd be interested in that *super-sexy *class wrapper generator of

Performance of APR

2009-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I often hear folks on the list mentioning that since the APR library is the same as that which runs under Apache httpd, the performance of the two ought to be the same for static content. I'm not so sure, so I'm asking about it. Since Tomcat's

Re: Performance of APR

2009-01-29 Thread David Boreham
Christopher Schultz wrote: I can't help but suspect that Apache httpd will outperform Tomcat even when it's running APR for static content, merely due to the overhead of the JVM, heap management, etc. (which I realize are fairly minimal). Can anyone give a non-flame comment or point to an

Re: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-29 Thread Pid
Hamacher, Eric wrote: I solved the problem by putting java:/comp/env in the JNDI lookup in the code. So you're not putting: java:/comp/jdbc/GFDataSource? p That led me to an exception when I tried to use an ArrayDescriptor. So I tried to change my pooling form dbcp to oracle with:

Re: Indicator APR is loaded - TC 5.5

2009-01-29 Thread Markus Schönhaber
Gregor Schneider: I guess that the APR-message usually showing up in the logs IMHO is triggered by the APRLifeCycleListener (true?) Yes. Could it be that the APRLifeCycleListener is loaded lazy, and since no static HTML is served, the APRLifeCycleListener ist not loaded and therefore no

RE: Performance of APR

2009-01-29 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Performance of APR due to the overhead of the JVM, heap management, etc. Actually, object allocation these days is quite a bit faster than a malloc(), and objects that quickly become unreachable quickly cost almost

Re: Request queue menagement Tomcat 5.5 + Axis

2009-01-29 Thread Mark Thomas
Sergio Arrighi wrote: Hello to everyone, I've developed a webApp on tomcat 5.5. This webapp consists of a bunch of webservices that i've created using axis. Is there someone who could help me to understand how tomcat or axis handle the request queue?? Tomcat will assign a new requests to

Re: Graceful Stop

2009-01-29 Thread Mark Thomas
Mohit Anchlia wrote: When I perform tomcat stop on linux it doesn't look like it processes all the requests and then stops. It just stops right away. And how are you stopping Tomcat? kill -9 will have the effect you describe. Mark On Thu, Jan 29, 2009 at 2:39 AM, Mark Thomas

Re: Graceful Stop

2009-01-29 Thread Mohit Anchlia
doing /etc/init.d/tomcat stop On Thu, Jan 29, 2009 at 1:01 PM, Mark Thomas ma...@apache.org wrote: Mohit Anchlia wrote: When I perform tomcat stop on linux it doesn't look like it processes all the requests and then stops. It just stops right away. And how are you stopping Tomcat? kill -9

RE: Indicator APR is loaded - TC 5.5

2009-01-29 Thread Caldarale, Charles R
From: Markus Schönhaber [mailto:tomcat-us...@list-post.mks-mail.de] Subject: Re: Indicator APR is loaded - TC 5.5 AFAIR there's no APRLifeCycleListener in Tomcat 5.5. There is in 5.5.23, but I don't know when it first appeared. I finally got around to looking at the source code; there is no

RE: Graceful Stop

2009-01-29 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Subject: Re: Graceful Stop doing /etc/init.d/tomcat stop Which is not a script supplied in a real Tomcat distribution. That one came from whatever 3rd-party repackaged version of Tomcat you're using. - Chuck THIS COMMUNICATION MAY

Re: Performance of APR

2009-01-29 Thread Leon Rosenberg
On Thu, Jan 29, 2009 at 9:34 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I often hear folks on the list mentioning that since the APR library is the same as that which runs under Apache httpd, the performance of the two

Re: Graceful Stop

2009-01-29 Thread André Warnier
Caldarale, Charles R wrote: From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Subject: Re: Graceful Stop doing /etc/init.d/tomcat stop Mohit, can you supply that script /etc/init.d/tomcat here ? Let's have a look. And remind us of the exact platform on which you're running this.

commons-logging problem

2009-01-29 Thread John Holman
I have a web application running in Tomcat 5.5.27 with JDK 1.5.0_16-b02 on Windows XP SP3. log4j-1.2.15.jar and commons-logging-1.1.1.jar are installed in WEB-INF/lib and there is a context.xml file in META-INF. When packaged as a war file this combination reliably produces the exception shown

Force loading a page on restart

2009-01-29 Thread Martin Dubuc
I would like to know if it is possible to force a user to a certain page when Tomcat restarts. In my application, if Tomcat is restarted after the user displays a page, the user is not aware of the restart until he/she clicks on a link or button on that page. Then, Tomcat will automatically

RE: commons-logging problem

2009-01-29 Thread Caldarale, Charles R
From: John Holman [mailto:j.g.hol...@qmul.ac.uk] Subject: commons-logging problem When packaged as a war file this combination reliably produces the exception shown below in the Tomcat console under the following circumstances: This is likely the result of a fix to prevent PermGen from

Excel file in Tomcat Virtual Dir has junk data in it.

2009-01-29 Thread uddav
Hello Everyone, I have set up a Virtual Directory (Directory Listing) in Tomcat. We use this to distribute documents and reports. The way we do is put the documents to be distributed in this directory on the server and all our user go to this virtual directory by accessing a URL and view/get

RE: Excel file in Tomcat Virtual Dir has junk data in it.

2009-01-29 Thread Caldarale, Charles R
From: uddav [mailto:adi.upr...@gmail.com] Subject: Excel file in Tomcat Virtual Dir has junk data in it. I have set up a Virtual Directory (Directory Listing) in Tomcat. How? While you're at it, you might want to tell us what version of Tomcat you're using, and perhaps the JVM vendor and

Re: Excel file in Tomcat Virtual Dir has junk data in it.

2009-01-29 Thread André Warnier
uddav wrote: [...] In the conf directory of your Tomcat installation is a file called web.xml. That file contains a section which tells Tomcat about the correspondence between file extensions and their mime type. Check if it contains a section like this one : mime-mapping

Re: commons-logging problem

2009-01-29 Thread John Holman
Thank you - disabling the PermGen fix by setting org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES to false stops the exception from appearing, as you suggested. Doing this does make me a bit nervous though, as we've had problems with PermGen memory exhaustion in the past.

RE: commons-logging problem

2009-01-29 Thread Caldarale, Charles R
From: John Holman [mailto:j.g.hol...@qmul.ac.uk] Subject: Re: commons-logging problem Doing this does make me a bit nervous though, as we've had problems with PermGen memory exhaustion in the past. I think your nervousness is quite justified. is it worth filing a bug report to pinpoint

Re: Performance of APR

2009-01-29 Thread Jess Holle
David Boreham wrote: I think you also need to factor in the labor cost to manage two different servers. I know that in our production deployments we could buy many many machines for the cost of the time we've spent trying to make AJP work. Tomcat could be 10x slower than Apache and I'd still

Installing Tomcat

2009-01-29 Thread michel
I have been trying to install Tomcat 4.1.39 and failing miserably. My fault, fair enough for that. But I am struck that when I installed Apache HHTP there was an installer that gave me some warnings about why it failed. I had messages that I could do a net search and learn to fix. The only

Re: Installing Tomcat

2009-01-29 Thread Jordan Michaels
What are you trying to install it on? We can help point you in the right direction. Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider michel wrote: I have been trying to install Tomcat 4.1.39 and failing

Re: Installing Tomcat

2009-01-29 Thread michel
Jordan, Much thanks for the response and thinking it over after I emailed this I have some idea where I went wrong, so I'll try to fix it. But I am just frustrated that installing Tomcat involves so much guess-work as oppossed to having some clues. The people who develop Tomcat are obviously

Re: Installing Tomcat

2009-01-29 Thread Jordan Michaels
The main rule of thumb is that with simplicity comes limitation, and with flexibility comes complexity. A Tomcat install may seem complex at first glance, but it's because it can do so much with it (IMO). There are *so many* things you can do with it, and so many different ways you can install

RE: Installing Tomcat

2009-01-29 Thread Caldarale, Charles R
From: michel [mailto:compu...@videotron.ca] Subject: Re: Installing Tomcat But I am just frustrated that installing Tomcat involves so much guess-work as oppossed to having some clues. I'm really confused by your statement. I have to admit that I've never installed the ancient level you're

RE: Installing Tomcat

2009-01-29 Thread Martin Gainty
many of the earlier bugs with TC 4 were fixed by the latest Tomcat Distro.. TC 6 http://tomcat.apache.org/download-60.cgi Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business

Re: Installing Tomcat

2009-01-29 Thread michel
Chuck, I am using the real Tomcat. I set up java and it runs, I added the different environment variables but it won't start. I will just go to 5.5 and see what happens. Thanks! - Original Message - From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List

RE: Installing Tomcat

2009-01-29 Thread Caldarale, Charles R
From: michel [mailto:compu...@videotron.ca] Subject: Re: Installing Tomcat I set up java and it runs What JVM? (The 4.1 version of Tomcat requires a JDK, not just a JRE.) What platform? Problem solving is pretty much impossible without specifics. I added the different environment

Re: Installing Tomcat

2009-01-29 Thread michel
Chuck, Thanks, and I'll go with 6.0 as you suggest. Right now I am just trying to learn how to get different servers and software systems set up and working. But at this time I am better to give up on Tomcat 4 anyway since I can't get it working and it's out do date anyway. -

RE: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-29 Thread Caldarale, Charles R
From: Nathan Potter [mailto:n...@opendap.org] Subject: Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called. Sorry for not responding earlier, things have been a little hectic this week. I just got try it today and here is what happened: I just tried the same

RE: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-29 Thread Caldarale, Charles R
From: Michael Ludwig [mailto:mil...@gmx.de] Subject: Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe) -Djava.library.path=C:\Server;C:\src\BerkeleyDbXml\dbxml-2.4.1 6\bin\debug;... Is *src* really the right place to find the DLLs? I realize it's long, but can you post the full

Re: Performance of APR

2009-01-29 Thread Mark Thomas
Jess Holle wrote: David Boreham wrote: I think you also need to factor in the labor cost to manage two different servers. I know that in our production deployments we could buy many many machines for the cost of the time we've spent trying to make AJP work. Tomcat could be 10x slower than

Re: Performance of APR

2009-01-29 Thread David Boreham
Jess Holle wrote: David Boreham wrote: I think you also need to factor in the labor cost to manage two different servers. I know that in our production deployments we could buy many many machines for the cost of the time we've spent trying to make AJP work. Tomcat could be 10x slower than

Tomcat Clustering trouble when starting up under high load

2009-01-29 Thread Mikel Ibiricu
Hello all I´m Mikel, and me and my workmates have already been a while testing our environment in order to establish a in memory session replication cluster for our servers. The thing is that our servers are often loaded with up to a thousand (1000) and more sessions (and now, we have three

Re: Performance of APR

2009-01-29 Thread Mladen Turk
Leon Rosenberg wrote: On Thu, Jan 29, 2009 at 9:34 PM, Christopher Schultz I can't help but suspect that Apache httpd will outperform Tomcat even when it's running APR for static content, merely due to the overhead of the JVM, heap management, etc. (which I realize are fairly minimal). Well,