Re: Re: Performance problem on HTTP PUT of large binary data

2007-07-26 Thread Daniel Hagen
Hi Christopher, thank you for your reply. From: Christopher Schultz<[EMAIL PROTECTED]> > Daniel Hagen wrote: > > I am currently developing an application that handles uploads of big > > files using HTTP PUT. > > > The client is a Java client writing 32K blocks to the server using > > chunked st

Quality check mod_jk 1.2.24-dev

2007-07-26 Thread Rainer Jung
Hi all, The next version of mod_jk is approaching its release. A code snapshot (revision 59730) is available at: http://people.apache.org/~rjung/mod_jk-dev/ It is in the same format as a release download, so easy to build. Under the same URL you can find the updated documentation. It would b

Tomcat 5 and 6 Security advise

2007-07-26 Thread Peter Stavrinides
Hi all, I need some advice with regards to Tomcat security, my company is not convinced about Tomcat's security, I work for a financial institution so you might understand their paranoia. My question is how best to secure a Java servlet that runs on Tomcat. Requests are routed through front

Re: Server Security

2007-07-26 Thread Craig Skinner
On Wed, Jul 25, 2007 at 01:37:03PM -0400, Len Popp wrote: > Yes, you can run Tomcat on port 80. Some OS's (Linux, UNIX) require > the process to have root privs to use port 80. Why not run it on 8080 as the _tomcat user, and use the packet filter to redirect the incoming port 80 traffic to port 80

Re: Tomcat with 8 GB memory

2007-07-26 Thread Joe Nathan
I would discourage to use such machine! 8GB means you are using 64 bit machine which will be much slower than 32 bit machines. Big memory is useful ONLY if you have applications that can benefit big memory such as database systems. In Java, if you use lots of memory and create lots of objects, you

Tomcat and cookies caching issue

2007-07-26 Thread Riccardo
Hi, I'm experiencing a problem with cookies cached - probably - in Tomcat for a couple of minutes. I'm running a webapp into Tomcat, which also connects to an apache proxy to embed an external page into the tomcat webapp. I need the apache proxy to get rid of the Javascript safety problems that oc

Re: Tomcat 5 and 6 Security advise

2007-07-26 Thread Craig Skinner
On Thu, Jul 26, 2007 at 10:51:01AM +0300, Peter Stavrinides wrote: > Hi all, > > I need some advice with regards to Tomcat security, http://www.oreilly.com/catalog/tomcat/chapter/ch06.pdf - To start a new topic, e-mail: users@t

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
What do you suggest to overcome this problem? On 7/25/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > > Subject: Re: Bean and Servlet > > > > I will tell you the procedure; At each time the user clickes > > the first page in the site, a ra

Re: Tomcat with 8 GB memory

2007-07-26 Thread Andrew Miehs
On 26/07/2007, at 10:57 AM, 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. Big memory is useful ONLY if you have applications that can benefit big memory such as database systems. In Java, if yo

Re: MySql Connector

2007-07-26 Thread David Smith
1. This can't be the complete jsp code. If it is, you need to minimally wrap it in <%%> markers to indicate it's raw java code, not jsp/html. Additionally your System.out.println() call would end up going to the JVM's standard output instead of the browser. 2. The listed exception is rea

Re: MySql Connector

2007-07-26 Thread Pid
ClassNotFoundException? Your JSP can't find one of the classes you refer to in the scriptlet. We can't tell which one, because we don't know what's at line 266 in the generated java file (you could look). Which of the classes you're using in the JSP haven't been imported at the top of the

Re: KLUDGE: WebDav - mapping question?

2007-07-26 Thread Johnny Kewl
Guys I like this so much, I couldnt wait for a patch, or possible fix. The problem with the above KLUDGE is that the fix is internal to TC, and if you try incorporate it, you will find you have to pull in half of Tomcats jars to make it work. Its never a good idea to include those jars directly i

Re: MySql Connector

2007-07-26 Thread David Smith
Oh and just one more thing -- use com.mysql.jdbc.Driver as org.gjt.mm.mysql.Driver is ancient. --David David Smith wrote: 1. This can't be the complete jsp code. If it is, you need to minimally wrap it in <%%> markers to indicate it's raw java code, not jsp/html. Additionally your S

Re: MySql Connector

2007-07-26 Thread Mohammed Zabin
It's already wrapped man, i just copied the code snippet from within <%%> marker ;), and for System.out, or out.println, It's still the same problem. If you looked at the exception you will find ClassNotFoundException at line 66 in the generated servlet, and this occurs withing the try block, so, i

Re: MySql Connector

2007-07-26 Thread Mohammed Zabin
This is my jsp code: try { Class.forName("org.gjt.mm.mysql.Driver"); String url = "jdbc:mysql://localhost:3306/exam"; Connection con = DriverManager.getConnection(url,"root", "exam"); Statement stmt = con.createStatement(); ResultSet rs = stmt.

Re: Tomcat with 8 GB memory

2007-07-26 Thread Peter Stavrinides
Our 64 bit machines outperform our 32 bit machines like night and day using Tomcat 5, I can only imagine the difference with Tomcat 6... in any event there is no difference for Tomcat it depends entirely on the virtual machine. >> Big memory is useful ONLY if you have applications that can benef

Re: Tomcat 5 and 6 Security advise

2007-07-26 Thread Peter Stavrinides
It makes for interesting reading, however it was written for Tomcat 4... how current is it?? and nothing is mentioned about the benefits of running Apache with Tomcat for securing Tomcat in a purely Java environment, please read the question Craig! Craig Skinner wrote: On Thu, Jul 26, 2007

Execute method each request

2007-07-26 Thread Trumml
I want to execute a method each time a request is performed to my jsf site. The implementation for this request should remain in a jar file which is packed into the WAR file under WEB-INF/lib directory. I guess there is no solution to do this with a valve, because the class (jar) for the valve mus

Execute method each request

2007-07-26 Thread Trumml
I want to execute a method each time a request is performed to my jsf site. The implementation for this request should remain in a jar file which is packed into the WAR file under WEB-INF/lib directory. I guess there is no solution to do this with a valve, because the class (jar) for the valve mus

URIEncoding

2007-07-26 Thread Frederic Bastian
Hi folks :) I need my URI to be in UTF-8. In server.xml, I added to the Connector the attribut : URIEncoding="UTF-8" This works well. But my question is : Is there a way to define the URIEncoding in the application itself ? For instance, you can modify the session timeout in the application

RE: Tomcat5.0.28 character encodingg problem

2007-07-26 Thread Russo, Joe
I tried various ways as suggested to correct the character encoding issue. I wanted to provide another view of the output in case it may give any other suggestions. I have also tried setting the character encoding to UTF-8 in Firefox. Thanks again for any input. Joe Tried using the request a

RE: Tomcat with 8 GB memory

2007-07-26 Thread Caldarale, Charles R
> From: Joe Nathan [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat with 8 GB memory > > 8GB means you are using 64 bit machine which will be much > slower than 32 bit machines. Neither conclusion is true. We have 8 GB machines using 32-bit CPUs, and proper 64-bit systems (those that are not IA

Re: Server Security

2007-07-26 Thread Len Popp
There's no "handicap" under Windows - you can run a server on port 80 with no problem, even if it's running under a user account. On the other hand, for a demo site it's not such a big deal to use a different port. Just makes the URL look a little uglier. -- Len On 7/26/07, Craig Skinner <[EMAIL

Re: Something other than localhost on OS X

2007-07-26 Thread Larry Meadors
Why not just add that host name in /etc/hosts? Larry On 7/24/07, Colin H <[EMAIL PROTECTED]> wrote: Hi, I am trying to do something that I figure should be pretty simple - accessing my tomcat container from something other than localhost. So far as I can tell, I should be adding a entry

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Thx a lot Pulkit, it works just fine. But my aim is to make portability easier ; What happens if the URIEncoding of the Connector is not "UTF-8" or "ISO-8859-1", but a different char encoding ? Your pseudo-code won't work anymore :( Is there a way to get the value of the param URIEncoding of

Re-writing

2007-07-26 Thread Jurian Botha
We're currently using squid to re-write to a tomcat instance. For example we've got requests coming in to 'http://sample.host.name.com/tomcat/' which are then rewritten to point to 'http://localhost:8080/'. The problem is that relative URL's are not taking this rewrite into account. '/manager/d

Having both Manager and non-default webapps as root

2007-07-26 Thread dracus
Greetings, all, I am setting up a Tomcat server for the developers I work with, and am having a problem getting the config to work the way they requested. They want their own custom webapp to be the default webapp, and have the manager available to allow deploying new versions of their webapp, s

RE: Bean and Servlet

2007-07-26 Thread Caldarale, Charles R
> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > Subject: Re: Bean and Servlet > > My Problem is that, I want to pass these numbers, Questions > IDs, from the first page, which i have made it as a tag class, > to Results page, which was made as servlet. Rather than hanging onto the ID within

Re: How to Verify

2007-07-26 Thread Rainer Jung
Hi, if Mladen's informati9on is to short for you, various more explicit descriptions are available at: http://www.apache.org/dev/release-signing.html#check-integrity http://people.apache.org/~henkp/md5/doc.html http://www.apache.org/dist/httpd/README.html Regards, Rainer Varuna Seneviratn

Re: Tomcat with 8 GB memory

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, 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? Even better: why would either

Re: Tomcat 5.0.28 - SSL Setup

2007-07-26 Thread Lyallex
The first thing that strikes me is that you have not defined a connector for port 8443, here's one of mine (Tomcat 5.5.23) I think you probably need this because (at the very least) you have 'redirectPort="8443"' in your non ssl Connector config Rgds Duncan On 7/26/07, Jeffrey C. Baldwin

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederic, Frederic Bastian wrote: > The point is that I need to use the java.net.URLEncoder.encode() method, > e.g. java.net.URLEncoder.encode(myParam, "UTF-8"). You ought to be using the response's character encoding, not whatever Tomcat (or the bro

Re: How to do this

2007-07-26 Thread Varuna Seneviratna
On 7/27/07, Varuna Seneviratna <[EMAIL PROTECTED]> wrote: > > Hi Greger would you please elaborate on this I can't understand anything > of this verifying process please explain from the tiniest detail to the end > including how this verification helps to ensure the integrity of the > downloaded fi

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Christopher Schultz a écrit : You want to do this: java.net.URLEncoder.encode(myParam, request.getCharacterEncoding()); This does not work :) request.getCharacterEncoding() is different from URIEncoding. The request character encoding determines in wich character encodig the parameters v

Re: Tomcat/AJP Client Abort Socket Errors - Leads to File Descriptor Leak

2007-07-26 Thread Rainer Jung
Hi Andrew, this snapshot looks normal. There are 11 connections used and both sides have the same idea about their state. Web server to Tomcat connections are managed by mod_jk via pools. The pool can grow, and if you configure a connection pool idle timeout, it will also shrink. Each web se

Re: Tomcat/AJP Client Abort Socket Errors - Leads to File Descriptor Leak

2007-07-26 Thread Andrew Lee Rubinger
Hi. Rainer Jung wrote: Do you have special evidence, that the broken piepe errors correlate to the increase in file descriptors? Or are you only assuming this, because you can't find any other errors in the logs? Assuming. Should have made this more clear. Can you see the connections for th

Tomcat 6.0.13 and Windows Vista - Unable to open the service Tomcat6

2007-07-26 Thread Thimo Buchheister
Hi, I have tried to install Tomcat 6.0.13 under Windows Vista Business (32-Bit). I used the Windows Service installer which can be found at the Tomcat Website (Tomcat is installed as automatic service). After setup completed, Tomcat works properly; the service is running, I can browse to the Tomca

RE: Tomcat with 8 GB memory

2007-07-26 Thread Caldarale, Charles R
> From: lightbulb432 [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat with 8 GB memory > > The last is at the following link, several performance > graphs for Linux show a slight or sharp decrease in > performance for a given Tomcat instance beyond a certain > number of users! Why is this? > htt

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederic, Frederic Bastian wrote: > Christopher Schultz a écrit : >> You want to do this: >> >> java.net.URLEncoder.encode(myParam, >> request.getCharacterEncoding()); >> > > This does not work :) request.getCharacterEncoding() is different > from

Re: Tomcat and cookies caching issue

2007-07-26 Thread Rainer Jung
Hi Riccardo, if I understood your description correct, your Tomcat server itself communicates with another backend to get the report. In this sentence it is important, that Tomcat and not the browser talks to this backend. I expect that you do this via HTTP as well. Note that there is no HTTP

Re: How to do this

2007-07-26 Thread Varuna Seneviratna
Hi Greger would you please elaborate on this I can't understand anything of this verifying process please explain from the tiniest detail to the end including how this verification helps to ensure the integrity of the downloaded files and also what is the logic behind this method of verification wh

Re: Tomcat/AJP Client Abort Socket Errors - Leads to File Descriptor Leak

2007-07-26 Thread Andrew Lee Rubinger
Thank you so much for all your help. Will post back if a conclusion is determined, or if it's ruled out that AJP/Tomcat is not the cause. S, ALR Rainer Jung wrote: Hi Andrew, this snapshot looks normal. There are 11 connections used and both sides have the same idea about their state. Web

Re: Tomcat with 8 GB memory

2007-07-26 Thread lightbulb432
When I asked this question I had in mind a few potential downsides to one 8 GB Tomcat. One is memory leaks: if Tomcat starts to leak memory (not sure if this happens too often, if ever, but I'm speaking purely hypothetically) then you'd rather not want your single Tomcat to eat up all the memory.

Re: Bean and Servlet

2007-07-26 Thread Pid
Caldarale, Charles R wrote: From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Subject: Re: Bean and Servlet My Problem is that, I want to pass these numbers, Questions IDs, from the first page, which i have made it as a tag class, to Results page, which was made as servlet. Rather than hanging

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Caldarale, Charles R a écrit : Once again, it's available via the MBean that Tomcat creates for each element. I'm sorry i should have missed your reply. Could you tell me a bit more about how MBean can solve my problem ? I never used it. -

Re: Comet example at Tomcat 6

2007-07-26 Thread Martin Gainty
Enable debugging for your tomcat instance http://tomcat.apache.org/faq/development.html be sure to install and configure either commons-logging OR Log4J Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email

Re: Comet example at Tomcat 6

2007-07-26 Thread john x
Tanks all of you ! I have success run it ; But there still some problems; The chat pape http://localhost:8080/examples/jsp/chat can't visit by other clients,and the page visit speed on local is very slow. Additional,I run ok at tomcat6.0.10, it didn't work at tomcat6.0.13 the tomcat6.0.13

Re: Invoker Not Invoking in 5.5.9

2007-07-26 Thread Bill Barker
>"W Strater" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >I know that the servlet invoker is not popular but that is what I have to >deal with. > >All of the servlets are invoked as >http://localhost:8080/servlets/com.domain.servlets.ServletName where the >/servlets is >the we

broker start up in Tomcat

2007-07-26 Thread suchitha koneru
Hello Tomcat Users, I am using Tomcat server 5.5.20 along with Java 1.6, and Active MQ 4.1.1. There are two web applications A and B which communicate via the active mq broker. Our application has a requirement of starting the broker before any of the web apps. Where shoul

Re: Http Header Cache-Control

2007-07-26 Thread gerocoma-forophp
I've got a great link for solving this problem. Take a look at it. Hope that helps somebody. http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html --- Christopher Schultz <[EMAIL PROTECTED]> escribió: > To whom it may concern, > > [EMAIL PROTECTED] wrote: > >> Something is wrong with t

RE: URIEncoding

2007-07-26 Thread Caldarale, Charles R
> From: Frederic Bastian [mailto:[EMAIL PROTECTED] > Subject: Re: URIEncoding > > how to know the Connector URIEncoding value, inside > your application ? :) Once again, it's available via the MBean that Tomcat creates for each element. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL A

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Christopher Schultz a écrit : I'd agree that reading a URI is different, but not writing one. Where are you writing your URI? Into the response, I'm guessing. In fact, I'm guessing you're writing it into the response /body/, which ought to be encoded using the response's declared Content-Type (in

Re: Tomcat and cookies caching issue

2007-07-26 Thread Riccardo
On 7/26/07, Rainer Jung <[EMAIL PROTECTED]> wrote: Hi Riccardo, if I understood your description correct, your Tomcat server itself communicates with another backend to get the report. In this sentence it is important, that Tomcat and not the browser talks to this backend. You are right, when

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederic, Frederic Bastian wrote: > I'm sorry but I think you don't get it :) Reading and writing URI is > totally different from writing the response output. I'd agree that reading a URI is different, but not writing one. Where are you writing your

Re: Tomcat with 8 GB memory

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lightbulb, lightbulb432 wrote: > When I asked this question I had in mind a few potential downsides to one 8 > GB Tomcat. One is memory leaks: if Tomcat starts to leak memory (not sure if > this happens too often, if ever, but I'm speaking purely hypo

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Christopher Schultz a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederic, Frederic Bastian wrote: Christopher Schultz a écrit : You want to do this: java.net.URLEncoder.encode(myParam, request.getCharacterEncoding()); This does not work :) request.getCharacterEnc

Re: Tomcat and cookies caching issue

2007-07-26 Thread Riccardo
On 7/26/07, Len Popp <[EMAIL PROTECTED]> wrote: I don't think Tomcat caches cookie values. I could be wrong about this, but it seems to me that Tomcat just gets the cookie value from the request sent by the browser. I did a test to check this. After running a report I deleted the cookie from Fi

Re: Tomcat 5 and 6 Security advise

2007-07-26 Thread Craig Skinner
On Thu, Jul 26, 2007 at 03:24:28PM +0300, Peter Stavrinides wrote: > It makes for interesting reading, however it was written for Tomcat 4... > how current is it?? and nothing is mentioned about the benefits of > running Apache with Tomcat for securing Tomcat in a purely Java > environment, plea

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Frederic Bastian [mailto:[EMAIL PROTECTED] >> Subject: Re: URIEncoding >> >> Is there a way to get the value of the param URIEncoding of the >> Connector, so your code will work, whatever the char encoding

Re: Execute method each request

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Trumml, Trumml wrote: > I want to execute a method each time a request is performed to my jsf site. > The implementation for this request should remain in a jar file which is > packed into the WAR file under WEB-INF/lib directory. > I guess there is n

Re: Mod_jk error

2007-07-26 Thread Filip Hanik - Dev Lists
also solves your problem +JkDisableReuse in httpd.conf Filip Rainer Jung wrote: André Vila Cova wrote: Red Hat Enterprise Linux AS release 4 (Nahant Update 5) Release : Jakarta-Tomcat 5.5.20 Modulo nativo APR: tomcat-connectors-1.2.20 JVM versão. : Sun JVM1.5.0_11 I th

Re: URIEncoding

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frederic, Frederic Bastian wrote: > The matter is that Tomcat won't get the correct values of the parameters > in the URL. For instance : > > If my URI looks like : http://host/?query=%C3%A9%C3%A8 > The URI encoding is UTF-8 > > By default, Tomcat w

Re: How to do this

2007-07-26 Thread Gregor Schneider
http://www.gnupg.org/ -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org

RE: Having both Manager and non-default webapps as root

2007-07-26 Thread Caldarale, Charles R
> From: Propes, Barry L [mailto:[EMAIL PROTECTED] > Subject: RE: Having both Manager and non-default webapps as root > > Ok, Chuck...get ready. And I'm trying to get out of here to go to Oshkosh... > From: dracus [mailto:[EMAIL PROTECTED] > Subject: Having both Manager and non-default webapps a

Tomcat/AJP Client Abort Socket Errors - Leads to File Descriptor Leak

2007-07-26 Thread Andrew Lee Rubinger
Hi. I am running Apache HTTPD 2.2.4 with ModJK 1.2.21, both compiled from source on CentOS 4.4. I have a workers.properties file configured to send requests to Tomcat 5.5 on a separate machine within the internal network. When receiving a ClientAbortException from Tomcat (shown in "tomcat_

Re: Tomcat with 8 GB memory

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lightbulb, lightbulb432 wrote: > If you have a gigantic server with something like 8 GB of memory, what would > be the best way to run Tomcat 6 on it? One instance, multiple instances, or > divide it up into two or more virtualized servers each with o

RE: URIEncoding

2007-07-26 Thread Caldarale, Charles R
> From: Frederic Bastian [mailto:[EMAIL PROTECTED] > Subject: Re: URIEncoding > > The point is that I need to use the > java.net.URLEncoder.encode() method, > e.g. java.net.URLEncoder.encode(myParam, "UTF-8"). O.k., so now it appears you need to know the encoding in order to do it properly on

Re: How to Verify

2007-07-26 Thread Varuna Seneviratna
I don't know how to do what you are telling.Please instruct me step by step of verifying the integrity of the downloaded file from the moment after downloading Thanks Varuna On 7/26/07, Mladen Turk <[EMAIL PROTECTED]> wrote: > > Varuna Seneviratna wrote: > > How to Verify the int

Re: content header missing using IIS, tomcat and axis

2007-07-26 Thread Rainer Jung
Can you check, if the attachment to the request has been received completely by your Tomcat webapp? Regards, Rainer Daniel Dang wrote: Hi there, I am using IIS version 6.0 talk to tomcat version 5.5.16 with mod_jk and axis version 2.4 client recieved xml soap message fine. The problem is w

How to Verify

2007-07-26 Thread Varuna Seneviratna
How to Verify the integrity of the downloaded files using the pgp signatures and mds checksums and also what is the method used to calculate the checksum Thanks Varuna -- Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620

Re: Tomcat and cookies caching issue

2007-07-26 Thread Len Popp
I don't think Tomcat caches cookie values. I could be wrong about this, but it seems to me that Tomcat just gets the cookie value from the request sent by the browser. Maybe you should log the value of the cookie in various different spots so you can follow the cookie's progress and see where it g

Re: Did anyone had problems with JspWriter in Tomcat 5.5.17?

2007-07-26 Thread Borut Hadžialić
I found the cause of the problem. Tomcat's implementation of javax.servlet.http.HttpServlet implements the doGet method like this: protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { NoBodyResponse response = new No

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Caldarale, Charles R a écrit : From: Frederic Bastian [mailto:[EMAIL PROTECTED] Subject: Re: URIEncoding Is there a way to get the value of the param URIEncoding of the Connector, so your code will work, whatever the char encoding of the Connector is ? I'm confused. If the already ha

Re: MySql Connector

2007-07-26 Thread David Smith
CATALINA_HOME/lib implies this is tomcat 6 and that would be the proper place for the mysql jar file. However the poster should NEVER mess with the classpath in tomcat as it does cause s many headaches. --David Propes, Barry L wrote: did you also have the Oracle jar file in that lib dir

Re: Tomcat 5.5.23

2007-07-26 Thread Len Popp
Sorry, it was a joke (or maybe not). This problem has come up many many many times on this mailing list. People have asked for those useful files to be included in the .exe download. I haven't heard of a reason why it would be difficult to do so. Yet, the issue has persisted for years. I tried to

Re: Bean and Servlet

2007-07-26 Thread David Smith
That clarifies a lot :-) ! You are indeed dealing with two separate requests from client to server. As such the Request object won't be the same between the jsp and the servlet and is the reason your storage of an attribute in the request didn't work. Sessions are buit for just this reason.

Re: Tomcat 5.5.23

2007-07-26 Thread David Smith
:-D ... I believe it's a joke. --David Varuna Seneviratna wrote: I can't understand what Len is trying to say what is meant by minimum level of traffic on this mailing list How is it related to the Tomcat distribution On 7/26/07, Len Popp <[EMAIL PROTECTED]> wrote: On 7/26/07, Caldarale,

Invoker Not Invoking in 5.5.9

2007-07-26 Thread W Strater
I know that the servlet invoker is not popular but that is what I have to deal with. All of the servlets are invoked as http://localhost:8080/servlets/com.domain.servlets.ServletName where the /servlets is the web app name. I would like to acheive to things. 1) Ensure that only servlets withi

RE: MySql Connector

2007-07-26 Thread Propes, Barry L
did you also have the Oracle jar file in that lib directory? I would have thought you'd want it in the common/lib dir. -Original Message- From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 12:52 AM To: Tomcat Users List Subject: Re: MySql Connector In cotrast

Re: Tomcat 5.5.23

2007-07-26 Thread Varuna Seneviratna
I can't understand what Len is trying to say what is meant by minimum level of traffic on this mailing list How is it related to the Tomcat distribution On 7/26/07, Len Popp <[EMAIL PROTECTED]> wrote: > > On 7/26/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > For some obscure > > reason,

RE: creating security roles automatically

2007-07-26 Thread Propes, Barry L
you ultimately will read these roles from the database, namely the user roles table, as in the userRoleTable attribute. -Original Message- From: Okan Çetin [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 8:35 AM To: users@tomcat.apache.org Subject: creating security roles automa

Tomcat 5.0.28 - SSL Setup

2007-07-26 Thread Jeffrey C. Baldwin
Hello All, I'm in a bit of a pinch here. Just had an old Solaris server fail that housed our TomCat environment and now I'm trying to put the pieces back together on a new server. I have a few of the applications up and running.. but now I've run into an app that wants to run over ssl and I

How to do this

2007-07-26 Thread Varuna Seneviratna
Can somebody tell me How to do what is described below you *must* verify the integrity of the downloaded files. We provide PGP signatures for every release file. This signature should be matched against the KEYS file which contains the PGP

Cannot create resource instance

2007-07-26 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? javax.naming.NamingException: Cannot

Re: Tomcat 5.5.23

2007-07-26 Thread Len Popp
On 7/26/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > For some obscure > reason, whoever packages Tomcat chose to leave out the very useful > scripts from the .exe installer. The reason is quite simple. It's to guarantee a minimum level of traffic on this mailing list. Concerns about utili

RE: Having both Manager and non-default webapps as root

2007-07-26 Thread Propes, Barry L
Ok, Chuck...get ready. -Original Message- From: dracus [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 11:48 AM To: users@tomcat.apache.org Subject: Having both Manager and non-default webapps as root Greetings, all, I am setting up a Tomcat server for the developers I work wit

Re: Mod_jk error

2007-07-26 Thread Rainer Jung
André Vila Cova wrote: Red Hat Enterprise Linux AS release 4 (Nahant Update 5) Release : Jakarta-Tomcat 5.5.20 Modulo nativo APR: tomcat-connectors-1.2.20 JVM versão. : Sun JVM1.5.0_11 I think that apache web server don't receive response from tomcat and don't send final ack

Re: Mod_jk error

2007-07-26 Thread André Vila Cova
Red Hat Enterprise Linux AS release 4 (Nahant Update 5) Release : Jakarta-Tomcat 5.5.20 Modulo nativo APR: tomcat-connectors-1.2.20 JVM versão. : Sun JVM1.5.0_11 I think that apache web server don't receive response from tomcat and don't send final ack to tomcat and tomcat do

RE: Comet example at Tomcat 6

2007-07-26 Thread Reich, Matthias
Perhaps you should add this to the example: protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.sendError( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "you must be using the APR or NIO connector to get

RE: URIEncoding

2007-07-26 Thread Caldarale, Charles R
> From: Frederic Bastian [mailto:[EMAIL PROTECTED] > Subject: Re: URIEncoding > > Is there a way to get the value of the param URIEncoding of the > Connector, so your code will work, whatever the char encoding of the > Connector is ? I'm confused. If the already has the proper URIEncoding va

Re: Mod_jk error

2007-07-26 Thread Rainer Jung
Hi, you didn't give us your versions, you platform or any configuration info. André Vila Cova wrote: > Hello! > > Apache mod_jk returns following error (frequently...): > > [Thu Jul 26 11:07:52 2007] [2703:1120] [error] > ajp_connection_tcp_get_message::jk_ajp_common.c (948): (app02_aol) can't >

Tomcat clustering and nightly processes

2007-07-26 Thread Rizwan Merchant
Hi, We have a server in production currently and are thinking about implementing clustering to achieve load balancing and scalability. Currently we have some processes that run nightly, for example 1. Users upload files that are processed later at night. 2. order updates (we retrieve all order

Mod_jk error

2007-07-26 Thread André Vila Cova
Hello! Apache mod_jk returns following error (frequently...): [Thu Jul 26 11:07:52 2007] [2703:1120] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (948): (app02_aol) can't receive the response message from tomcat, network problems or tomcat is down (192.168.40.11:8007), err=-104 [Thu J

Tomcat 5.5.23

2007-07-26 Thread Varuna Seneviratna
I downloaded and installed Tomcat 5.5.23 using the binary distribution in windowsXp. The problem is the information in the Documentation that came with the installation and what is in the installation is different. The documentation says there are files in the bin as startup.bat, shutdown.bat and n

Re: Comet example at Tomcat 6

2007-07-26 Thread Filip Hanik - Dev Lists
you must be using the APR or NIO connector Hi! I just run the chat example ,but ,it seems did not work ; the code seems can't reach the line begin(event, request, response) please help me fix that,thanks; john No

Re: URIEncoding

2007-07-26 Thread Pulkit Singhal
How about: String queryString = HttpServletRequest.getParameter("query"); queryString = new String(queryString.getBytes("iso-8859-1"), "UTF-8"); Its not very graceful so you can even make a 1-line-method for doing this and have: decodeURIParams(a, b, c) { return new String((HttpSer

Re: Something other than localhost on OS X

2007-07-26 Thread Hassan Schroeder
On 7/25/07, Colin H <[EMAIL PROTECTED]> wrote: > Thanks Hassan - just couldn't get it working - figure there must be some > reason that 8080 isn't accessible - the firewall is off though in system > preferences. I'm sure it is something extremely simple, but i got sick of > trying to find out what

Re: Tomcat 5 and 6 Security advise

2007-07-26 Thread Peter Stavrinides
Thanks Chuck, I have done most of these, I already run Tomcat as a daemon using a non-privileged account, and use a JDBC realm to authenticate users. I will check for any loose ends like connectors in the config files. Peter Caldarale, Charles R wrote: From: Peter Stavrinides [mailto:[EMAIL

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Hi Pulkit, thanks for your answer. The matter is that Tomcat won't get the correct values of the parameters in the URL. For instance : If my URI looks like : http://host/?query=%C3%A9%C3%A8 The URI encoding is UTF-8 By default, Tomcat will read this url in ISO-8859-1. So HttpServletRequest.g

RE: Tomcat 5 and 6 Security advise

2007-07-26 Thread Caldarale, Charles R
> From: Peter Stavrinides [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5 and 6 Security advise > > and nothing is mentioned about the benefits of > running Apache with Tomcat for securing Tomcat > in a purely Java environment Adding layers generally doesn't improve security - it just provide

  1   2   >