registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-26 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 In my code

Re: MySql Connector

2007-07-26 Thread Mohammed Zabin
Ok guys, here we are. I have define the new resource inside a tag inside a tag, as suggested by Tomcat documentation. I removed it and put it inside tag like the following: 1. Configure naming Resource: inside i put the following: 2. Inside web.xml: Oracle Datasource example

Re: broker start up in Tomcat

2007-07-26 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 http://www.javacoffeebreak.com/articles

Re: broker start up in Tomcat

2007-07-26 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 broke

Re: Bean and Servlet

2007-07-26 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: Bean and Servlet

2007-07-26 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 submitt

Re: How to do this

2007-07-26 Thread Varuna Seneviratna
Hi 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 which ma

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

Re: broker start up in Tomcat

2007-07-26 Thread Len Popp
Write a function in your shared lib that checks if Active MQ has been started yet, and starts it if not. Then, in each webapp add a ServletContextListener with a contextInitialized method that calls the aforementioned function. Thus, Active MQ will be initialized when the first webapp starts up, wh

Re: URIEncoding

2007-07-26 Thread Frederic Bastian
Thanks for your help, that answers my question pretty well :) Caldarale, Charles R a écrit : From: Frederic Bastian [mailto:[EMAIL PROTECTED] Subject: Re: URIEncoding Could you tell me a bit more about how MBean can solve my problem ? I never used it. Tomcat creates MBeans for most of

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 > > Could you tell me a bit more about how MBean can solve my problem ? I > never used it. Tomcat creates MBeans for most of its internal objects, including connectors: http://tomcat.apache.org/tomcat-6.0-doc/mbeans-d

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: 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: 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 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

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: 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: 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: 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: 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

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 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: Tomcat/AJP Client Abort Socket Errors - Leads to File Descriptor Leak

2007-07-26 Thread Rainer Jung
Andrew Lee Rubinger wrote: 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 fro

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: Tomcat with 8 GB memory

2007-07-26 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat with 8 GB memory > > Why would a 64-bit machine run slower than a 32-bit machine? Try an IA64 - the sooner we forget about those the better. > I don't think JVMs have used stop-the-world GC for some time, now. Strictly

Re: MySql Connector

2007-07-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammed, Mohammed Zabin wrote: > 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 > think it's a problem of Connector. You are seriously confused,

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: 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: 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 refuses to return dynamically generated images from TCD-deployed war

2007-07-26 Thread Steve Widmar
I'll end the suspense. For this use case (5.5.23, TCD, filesys R/W), direct access on the webapps subdirs seems inadvisable. Using the container (spec. ServletContext) for every abs path access (R,W) proved the solution. I thank me for my help on this - Cheers, Steve -Original Message---

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 Mladen Turk
Varuna Seneviratna wrote: I don't know how to do what you are telling. Do you know what PGP is? Please instruct me step by step of verifying the integrity of the downloaded file from the moment after downloading My instructions was clear thought. Sorry if that doesn't rings you any bell. L

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: 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: 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 Mladen Turk
Varuna Seneviratna wrote: 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 Download KEYS file, see: http://tomcat.apache.org/download-

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

content header missing using IIS, tomcat and axis

2007-07-26 Thread Daniel Dang
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 when axis setting a attachments client recieved http error 500 The same server code working fine for apache but not for IIS here is a conten

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: Tomcat clustering and nightly processes

2007-07-26 Thread Len Popp
A couple of possibilities: The nightly jobs aren't really related to serving web pages, so they could be separate programs that are each installed on one server - thus no synchronization needed. These programs could be implemented as web apps if you want, so they can be administered through the we

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
Well, I will descript the problem exactly. the first page use a tag class to render a random question from database, and their possible answers, the user must choose the right answer and submit the form for processing. I need the random question numbers, which are question ids to *Results*servlet

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

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: 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

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

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

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

RE: Tomcat 5.5.23

2007-07-26 Thread Caldarale, Charles R
> From: Varuna Seneviratna [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5.23 > > The documentation says there are files in the bin as startup.bat, > shutdown.bat and number of other files but the bin doesn't contain any > of them Grab the .zip download rather than the .exe one. For some obscur

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: 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: 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: Bean and Servlet

2007-07-26 Thread Caldarale, Charles R
> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > Subject: Re: Bean and Servlet > > What do you suggest to overcome this problem? In the seven messages you've posted in this thread, you've never really explained what this attribute is being used for; nor have you answered the question of whethe

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: 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   >