Re: Bean and Servlet

2007-07-27 Thread Mohammed Zabin
Ok, in the first page, which use a tag, I generate 10 random numbers. and generate a SQL statement containing this numbers like the following: SELECT * FROM table WHERE id in ( 2, 3, 5, 10, etc). I use a string to hold the in statement and bound it to the whole query string. After

Re: broker start up in Tomcat

2007-07-27 Thread suchitha koneru
Thank you Len for the suggested approach . The web apps should be abstracted from the procedure of starting the broker, otherwise I'll end up adding a servlet context listener for every new web app added to our application. If possible, Iam looking for a way , in which Tomcat would start the

Re: Bean and Servlet

2007-07-27 Thread Mohammed Zabin
On 7/27/07, Mohammed Zabin [EMAIL PROTECTED] wrote: Ok, in the first page, which use a tag, I generate 10 random numbers. and generate a SQL statement containing this numbers like the following: SELECT * FROM table WHERE id in ( 2, 3, 5, 10, etc). I use a string to hold the in

Re: MySql Connector

2007-07-27 Thread Mohammed Zabin
Ok guys, here we are. I have define the new resource inside a Context tag inside a Host tag, as suggested by Tomcat documentation. I removed it and put it inside GlobalNamingResources tag like the following: 1. Configure naming Resource: inside GlobalNamingResources i put the following:

Re: broker start up in Tomcat

2007-07-27 Thread Johnny Kewl
I dont know ActiveMQ but I think you will have to allow any WebApp that needs it, to start it, if its not already running I think you have 2 options, create a custom JNDI object or create a singleton start up object in common/lib, here is an article

registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread dileep_sivaraman
Hi , I am trying to register a com.ibm.db2.jcc.DB2ConnectionPoolDataSource datasource in tomcat 5.5.4. I am not getting any exception's while doing a context lookup and gives me the datasource. However the paramaeter's that are set with that Resource are always null. Server.xml

Re: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread Mohammed Zabin
I didn't work on DB2 before, but i have configured Oracle and MySql database in the same way. First, you have to get the ideal connector for DB2, jar file, and place it inside CATALINA_HOME/lib, or JAVA_HOME/lib/ext. Second, Define your resource name, you already did. Thrid: Add extra

Re: Bean and Servlet

2007-07-27 Thread Pid
Mohammed Zabin wrote: On 7/27/07, Mohammed Zabin [EMAIL PROTECTED] wrote: Ok, in the first page, which use a tag, I generate 10 random numbers. and generate a SQL statement containing this numbers like the following: SELECT * FROM table WHERE id in ( 2, 3, 5, 10, etc). I use a string to

Re: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread dileep_sivaraman
Hi, Thrid: Add extra information in your web.xml file like the following: resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/db2universal/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref

Re: Http Header Cache-Control

2007-07-27 Thread gerocoma-forophp
Hi, I'm still studying this problem. While checking the HTML SPEC (http://www.w3.org/TR/html4/struct/global.html#h-7.4.4), I find the following: --- META and HTTP headers The http-equiv attribute can be used in place of the name attribute and

Tomcat and Terracotta

2007-07-27 Thread Scott McClanahan
I know this is a tomcat mailing-list but I'm just curious if anybody has used tomcat with terracotta. How well do the features of session replication and the idea of a distributed jvm pan out. Just curious if anybody has done it and how they feel about it. I'd be running tomcat 5.5.23 and sun's

Tomcat dead but subsys locked

2007-07-27 Thread Jeffrey C. Baldwin
Has anyone ran into this problem before? I found a few items via Google... they most/all reference removing the /var/lock/subsys/tomcat then restarting Tomcat and everything being fine. Well, I've tried that, restart Tomcat, and run 'service status tomcat' and receive the same error tomcat

How to support JTA Transaction in tomcat to use JBoss Tree cache

2007-07-27 Thread Umar Zubair
I am using hibernate. I am looking to use JTA Transaction because i want to use JBoss tree cache for cluster environment. My hibernate.cfg.xml files contains session-factory property name=connection.datasourcejava:comp/env/MykDS/property !-- SQL dialect -- property

Re: Tomcat 5.0.28 - SSL Setup

2007-07-27 Thread Jeffrey C. Baldwin
Lyallex, That worked! Thank you! I had copied and pasted from the TomCat SSL HowTo, but that didn't work... I appreciate your time! Now, on to other TomCat problems this server failure is killing me! -jeff Lyallex wrote: The first thing that strikes me is that you have not defined

Re: Tomcat with 8 GB memory

2007-07-27 Thread Ron Wheeler
This is what Microsoft has to say on 64 bit using Websphere. Basically 32bit better for small volume servers that can live with a 2GB memory ceiling. Fundemental problem is that a process can only use 2GB no matter how much memory you have. Java VM only gets to see 2GB no matter how much

Re: Tomcat with 8 GB memory

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Nathan wrote: Otherwise 64bit machines suck! That;s why 64bit Windows is not popular. I don't them many shops selling! 64-bit Windows is not popular because it costs much more than the 32-bit versions (though MS will send you a 64-bit

Re: Cannot create resource instance

2007-07-27 Thread Amol Chaudhari
Can't any of the gurus help me on this? I tried to follow the steps given in one thread: http://www.nabble.com/UserTransaction%2C-JOTM-and-Tomcat-5.5.x-tf1073172.html#a10830695 but now the problem has worsened. Now my Navigation is also not working leave alone the adding of new record. I am stuck

javax.naming.NamingException: Cannot create resource instance

2007-07-27 Thread Amol Chaudhari
Hello Everyone, I am trying to migrate a sun java studio creator JSF (which uses Sun App Server 8) project to Netbeans 5.5 + inbuilt Tomcat 5.5.17. While trying to add a new record to my screen i am getting the following exception. Can anyone help me on this? I already have tried a few

Apache Portable Runtime

2007-07-27 Thread James Rome
When Tomcat starts, I get: Jul 27, 2007 10:06:11 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

Servlets Sending WEBDAV Requests(i.e. PROPPATCH) Work in Tomcat 4.x but not Tomcat 5.x +

2007-07-27 Thread Jason Kong
Greetings My Company has a number of servlets that communicate with each other using Webdav requests, in particular Requests containing the PROPPATCH verb. Under the tomcat 4.x environment, there is no issue, but once under tomcat 5.x or even tomcat 6.x, the requests fail (although no exceptions

Re: COMET - Delays in output

2007-07-27 Thread Sebastiaan van Erk
What kind of environment are you testing in? Does the servlet run on your local development machine or over the network. Are there possibly transparent proxies between the two endpoints? You could try testing with network tools such as netcat to debug what's happening. Regards, Sebastiaan

Re: Apache Portable Runtime

2007-07-27 Thread Rainer Jung
The APR libs are not enough for the APR connector. Have a look at http://tomcat.apache.org/tomcat-5.5-doc/apr.html Regards, Rainer James Rome wrote: When Tomcat starts, I get: Jul 27, 2007 10:06:11 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native

Tomcat with/without Tomcat native library

2007-07-27 Thread Petr Sumbera
Hi Guys, Does anybody have experience or even better some numbers comparing performance of Tomcat running with and without Tomcat native library (libtcnative-1)? I don't see any comparable difference so far (using TC 5.5.23, Native Library 1.1.10, Solaris/i386). Cheers, Petr

COMET - Delays in output

2007-07-27 Thread FelixG
Hi, I'm trying to implement the comet code-example from the Tomcat documentation, using Tomcat 6.0.13, Http11NioProtocol is working and my servlet is implementing CometProcessor. I am trying to write into the response's PrintWriter with this code in event(): if (event.getEventType() ==

Re: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread Mohammed Zabin
On 7/27/07, dileep_sivaraman [EMAIL PROTECTED] wrote: Hi, Thrid: Add extra information in your web.xml file like the following: resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/db2universal/res-ref-name res-typejavax.sql.DataSource/res-type

Re: Tomcat with 8 GB memory

2007-07-27 Thread Andrew Miehs
On 27/07/2007, at 12:19 PM, Joe Nathan wrote: Christopher Schultz-2 wrote: Joe Nathan wrote: I would discourage to use such machine! 8GB means you are using 64 bit machine which will be much slower than 32 bit machines. Huh? Why would a 64-bit machine run slower than a 32-bit machine?

RE: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan
Caldarale, Charles R wrote: I don't think JVMs have used stop-the-world GC for some time, now. Strictly speaking, they still do, but global suspends occur much, much less frequently and for much shorter periods, so in most environments it's of negligible impact.

Re: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan
Christopher Schultz-2 wrote: Joe Nathan wrote: I would discourage to use such machine! 8GB means you are using 64 bit machine which will be much slower than 32 bit machines. Huh? Why would a 64-bit machine run slower than a 32-bit machine? Overall performance depend on many things: CPU

problem with tomcat and web services

2007-07-27 Thread Andrew123
Hi All I have a server with apache and tomcat 5.5 with xfire, integrated together with mod_jk. When I strongly load this server, tomcat stops response any request. But it isn't write any exception to log file. I change parameter maxThreads to 2000 but it isn't help me (tomcat works with more than

Re: Tomcat with 8 GB memory

2007-07-27 Thread Leon Rosenberg
Could you provide some additional information? So far 64bit machines always outperformed 32bit machines in my personal benchmarks as well as in third party benchmarks I stumbled upon. So it would be great if you could provide some links or explanations. thank you leon On 7/27/07, Joe Nathan

Artemis : Michael Vingert est absent

2007-07-27 Thread Mickael . Vingert
I will be out of the office starting 27/07/2007 and will not return until 28/07/2007. Vous pouvez joindre l'équipe du Support Technique Artemis par mail à l'adresse [EMAIL PROTECTED] ou par téléphone au 33 1 46 90 15 85 - To

RE: Tomcat with 8 GB memory

2007-07-27 Thread Peter Crowther
From: Joe Nathan [mailto:[EMAIL PROTECTED] Overall performance depend on many things: CPU speed, number of CPUs, memory size, I/O, especially, virtual memory paging, network interface bandwidth 64bit machines come with better capacity except cpu computation speed! Please state your

Re: How to do this

2007-07-27 Thread Gregor Schneider
ok, this information is for free, the next one you'll have to pay me for: they keys of software.distributions are check-sums over the program-archives (like zip, tgz etc.). those check-sums usually are calculated using a program like pgp (pretty good privacy) or the free version from the

RE: Apache Portable Runtime

2007-07-27 Thread Lakshmi Venkataraman
You have to compile libtcnative as well. In addition to the documentation mentioned by Rainer, also look in the archives for the threads Tomcat native library Not found in Solaris 9 and Tomcat 5.5, IPv6, APR, HTTP and HTTPS Lakshmi -Original Message- From: Rainer Jung [mailto:[EMAIL

Re: Tomcat with/without Tomcat native library

2007-07-27 Thread Filip Hanik - Dev Lists
Petr Sumbera wrote: Hi Guys, Does anybody have experience or even better some numbers comparing performance of Tomcat running with and without Tomcat native library (libtcnative-1)? most definitely, the APR connector lets you do keep alive connections on more connections than you have threads

Question about File ownership file upload and HTTP Post

2007-07-27 Thread Josh Rountree
I have a servlet that processes requests for file uploads. When I write this file to disk, root is the owner? Is this the correct behavior? Since I do not have root access on the machine that the servlet executes I cannot remove these files. Any documentation that explains how to change the owner

Re: Question about File ownership file upload and HTTP Post

2007-07-27 Thread Filip Hanik - Dev Lists
Josh Rountree wrote: I have a servlet that processes requests for file uploads. When I write this file to disk, root is the owner? Is this the correct behavior? Since I do not have root access on the machine that the servlet executes I cannot remove these files. Any documentation that explains

Re: NamingContextBindingsEnumeration error from Tomcat 5.5 on Eclipse 3.3

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Koshy, Geevarghese, Koshy wrote: I'm trying to run a web application on Eclipse 3.3 with Tomcat 5.5. I configured the Tomcat 5.5 server in the eclipse server view and added my project to the server. I'm starting tomcat through the eclipse

Re: Question about File ownership file upload and HTTP Post

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, Josh Rountree wrote: I have a servlet that processes requests for file uploads. When I write this file to disk, root is the owner? You should not be running Tomcat as root. Are you doing that? Stop it! Is this the correct behavior? Unless

NamingContextBindingsEnumeration error from Tomcat 5.5 on Eclipse 3.3

2007-07-27 Thread Geevarghese, Koshy
Hi, I'm trying to run a web application on Eclipse 3.3 with Tomcat 5.5. I configured the Tomcat 5.5 server in the eclipse server view and added my project to the server. I'm starting tomcat through the eclipse server view and get the following error -

Re: Cannot create resource instance

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amol, Amol Chaudhari wrote: Can't any of the gurus help me on this? Perhaps. Can you post the code you are using near this line of code: test.Student.btnSave_action(Student.java:593) Also describe how you are configuring your JNDI DataSource. In

Verify the downloaded files integrity

2007-07-27 Thread Varuna Seneviratna
Hi I want to know how verify the downloaded Tomcat .zip version's integrity using pgp keys and cheksums and what is the theory behind it Varuna

RE: Tomcat and cookies caching issue

2007-07-27 Thread Nelson, Tracy M.
| From: Riccardo [mailto:[EMAIL PROTECTED] | Sent: Thursday, 26 July, 2007 16:10 | | Maybe I should define some headers management rule within the webapp.. | I haven't measured the time exactly, but i find quite interesting that | this caching effect lasts around 2 minutes, than disappears. I

Re: NamingContextBindingsEnumeration error from Tomcat 5.5 on Eclipse 3.3

2007-07-27 Thread Len Popp
To expand on Chris's comment, With Eclipse it is possible to compile for a newer version of Java and run with an older JRE, which will fail. Make sure it's both compiling and running the version of Java you want to use. I always have a hard time finding anything in the maze of Eclipse settings,

Re: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan
Leon Rosenberg-3 wrote: Could you provide some additional information? So far 64bit machines always outperformed 32bit machines in my personal benchmarks as well as in third party benchmarks I stumbled upon. So it would be great if you could provide some links or explanations. thank

Tomcat 6 equivalent of Tomcat 5's stateSessionTimeout

2007-07-27 Thread Anthony J Biacco
I'd like to change the default of 60 seconds in relation to the log This operation will timeout if no session state has been received within 60 seconds. Is there an equivalent? I'm running 6.0.13. Thanx! -Tony -- Anthony J. Biacco Senior Systems/Network Administrator Decentrix Inc.

Re: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan
ronatartifact wrote: This is what Microsoft has to say on 64 bit using Websphere. Basically 32bit better for small volume servers that can live with a 2GB memory ceiling. If you have applications that can benefit from memory bigger thab 2 or 4GB, your application is data intensive.

Re: Tomcat with 8 GB memory

2007-07-27 Thread Leon Rosenberg
On 7/27/07, Joe Nathan [EMAIL PROTECTED] wrote: Leon Rosenberg-3 wrote: Could you provide some additional information? So far 64bit machines always outperformed 32bit machines in my personal benchmarks as well as in third party benchmarks I stumbled upon. So it would be great if

Re: broker start up in Tomcat

2007-07-27 Thread suchitha koneru
Thank you so much Johnny for the idea. We have two web apps A and B namely. A is the front end of our application and B is the back end. Our application is web based, so we have a lot of https requests coming from the browser. We could have used a servlet for inter web app communication , but a

Re: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan
Christopher Schultz-2 wrote: 64-bit Windows is not popular because it costs much more than the 32-bit versions (though MS will send you a 64-bit upgrade disk for a small fee if you already own a copy of Vista). Also, most people out there don't know what the hell a 64-bit OS is. Next,

Re: Tomcat with 8 GB memory

2007-07-27 Thread Alexey Solofnenko
I was under impression that GC does not scale linearly. That means one 8GB process will be slower than two 4GB processes. There are other considerations too: multi-threading - global locks will lock less threads (maybe in GC, heap, application logic, ...), but cluster overhead may be

Re: Tomcat 6 equivalent of Tomcat 5's stateSessionTimeout

2007-07-27 Thread Filip Hanik - Dev Lists
Anthony J Biacco wrote: I'd like to change the default of 60 seconds in relation to the log This operation will timeout if no session state has been received within 60 seconds. Is there an equivalent? I'm running 6.0.13. stateTransferTimeout? Filip Thanx! -Tony

Re: Tomcat with 8 GB memory

2007-07-27 Thread David Smith
I had a processor design class and know very well the actual gate design in bit arithmetic. Aside from the propagation of the carry bit taking a teeny, tiny bit longer in 64 bit arithmetic, it still occurs in a single clock cycle. Further, primitive data type sizes in java are very clearly

Re: Tomcat with 8 GB memory

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Nathan wrote: Arithmetic operations on 64bit takes app. twice long as 32bits. You are out of your mind. Note that hardware clocking time also slower than 32 machines. Clock speed has nothing to do with integer width. - -chris

Re: Tomcat with 8 GB memory

2007-07-27 Thread Len Popp
On 7/27/07, Joe Nathan [EMAIL PROTECTED] wrote: It does in single operation, but it taks twices clock pulse than 32bit! You cannot perform binary adder operation in parallel. Speed of operation is measured with the number of clock pulse. 32bit adder may require something like 36 clock pulses

Re: Tomcat with 8 GB memory

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Nathan wrote: Leon Rosenberg-3 wrote: Sorry, this just sounds plain wrong. If a 64 bit processor comes with 64 bit register it means that it can make an integer 64 bit addition (long) in one operation, It does in single operation,

Serving ActiveX from Tomcat ?

2007-07-27 Thread Dick Eastin
Hi - Sorry to be asking a dumb question; but, maybe the answer is simple and fast and will save me even more hours. I'm serving a dll from webapps/ROOT to IE. I have added the mime type for the .dll as application/octet-stream to the server's web.xml (same as apache's mime type). The component

RE: Tomcat with 8 GB memory

2007-07-27 Thread Caldarale, Charles R
From: Alexey Solofnenko [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat with 8 GB memory I was under impression that GC does not scale linearly. That means one 8GB process will be slower than two 4GB processes. Not true. The time of a full GC using modern algorithms depends mostly on the

Re: Tomcat with 8 GB memory

2007-07-27 Thread Alexey Solofnenko
No, each of two 4GB processes will have only a half of the objects under the same load. And I heard that GC does not scale linear with heap size. And this is without multi-threading performance considerations. As usual, your mileage may vary and only tests can tell for sure. - Alexey.