Réf. : Missing JMX.jar in Tomcat 5.5.23?

2007-07-05 Thread jean-louis . mateo
Hello, maybe you have to download from here but I'm not sure http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp

Re: how to manipulate static content

2007-07-05 Thread lior grinfeld
Thanks Pierre, for sure i will use that info, but now i am not writing a server, as i wrote earlier, i use tomcat to test a proxy. i am interested to see how my proxy behave when i send it the data chunked or zip the data. and i want this to be in reference to regular files. so basically all i

Re: how to manipulate static content

2007-07-05 Thread lior grinfeld
Thanks Pierre, for sure i will use that info, but now i am not writing a server, as i wrote earlier, i use tomcat to test a proxy. i am interested to see how my proxy behave when i send it the data chunked or zip the data. and i want this to be in reference to regular files. so basically all i

Re: how to manipulate static content

2007-07-05 Thread Girish Havaldar
Hi, we have an application developed using the following components as listed below mysql 5.0.27 jdk 1.5.0_06 jre 1.5.0_06 tomcat5.5.20 Apache 2 phpMyAdmin 2.9.2 Servlets 2.3 JSP1.2 Our application is

Tomcat Version problem

2007-07-05 Thread Girish Havaldar
Hi, we have an application developed using the following components as listed below mysql 5.0.27 jdk 1.5.0_06 jre 1.5.0_06 tomcat5.5.20 Apache 2 phpMyAdmin 2.9.2 Servlets 2.3 JSP1.2 Our application is

Re: Tomcat Version problem

2007-07-05 Thread Gregor Schneider
Sorry, my cristal ball just f'd up, therefore I'm neither able to see the errors thrown up nor a possible solution for them. Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Re: Tomcat Version problem

2007-07-05 Thread Girish Havaldar
On 05/07/07, Girish Havaldar [EMAIL PROTECTED] wrote: Hi, we have an application developed using the following components as listed below mysql 5.0.27 jdk 1.5.0_06 jre 1.5.0_06 tomcat5.5.20 Apache 2 phpMyAdmin 2.9.2

Re: Tomcat Version problem

2007-07-05 Thread Gregor Schneider
well, the error-log is giving you pretty good hints: An error occurred at line: 67 in the jsp file: /classification.jsp Generated servlet error: Type mismatch: cannot convert from Integer to int An error occurred at line: 67 in the jsp file: /classification.jsp Generated servlet error: The

Re: Tomcat Version problem

2007-07-05 Thread Girish Havaldar
Thanks man, On 05/07/07, Gregor Schneider [EMAIL PROTECTED] wrote: well, the error-log is giving you pretty good hints: An error occurred at line: 67 in the jsp file: /classification.jsp Generated servlet error: Type mismatch: cannot convert from Integer to int An error occurred at

Re: Tomcat Version problem

2007-07-05 Thread Peng Tuck Kwok
Sounds like that are a lot of type mis-match in the generated servlets, I'd have a look at the JSP's to see if there's anything like that in there and correct it. On 7/5/07, Gregor Schneider [EMAIL PROTECTED] wrote: well, the error-log is giving you pretty good hints: An error occurred at

Re: Missing JMX.jar in Tomcat 5.5.23?

2007-07-05 Thread Johnny Kewl
No, that stuff is not relevent, in the BAT (SH) files, the TC guys having given you the ability to make a digest or a hash of passwords to hide them in the realm, if u want to. And all they saying is that you dont have to use the whole of TC to make them (hashes), and can just use a few

Re: how to manipulate static content

2007-07-05 Thread David Delbecq
The easiest way is to subclass HttpServletResponseWrapper. Override the methods 'getOutputStream' and 'getWriter()' (not sure getWriter is really used by static content serving, so you may not have to code something there). Basically, make a ByteArrayOutputStream as the result of getOutputStream,

Re: Tomcat Version problem

2007-07-05 Thread Girish Havaldar
wht i think is a version problem, how to check versions of servlets,jsp, how 'll come to kn which version v r using On 05/07/07, Peng Tuck Kwok [EMAIL PROTECTED] wrote: I have no idea where your line numbers are but the jsp compiler is already asking you to look at 67, 223, 226 in your JSP.

Tomcat, Girish Havaldar has invited you to open a Google mail account

2007-07-05 Thread Girish Havaldar
I have been using Gmail and thought you might like to try it out. Here is an invitation to create an account. it 'll be of greate use during Discussion on any topic --- Girish Havaldar has invited you to open a free Google Mail

Re: Tomcat Version problem

2007-07-05 Thread Peng Tuck Kwok
I have no idea where your line numbers are but the jsp compiler is already asking you to look at 67, 223, 226 in your JSP. Possibly you get cast exceptions because whatever you are trying to cast to isn't cast-able or converted. Also please double check the types of the objects you are passing

Re: Tomcat Version problem

2007-07-05 Thread Girish Havaldar
ths is the jsp page: [EMAIL PROTECTED] import=java.sql.*,java.util.*,logcheck.settings errorPage= errorpage.jsp% html head title classification/title/head script type=text/javascript src=dropdown.js/script body bgcolor=#FF LINK rel=stylesheet href=style.css

Re: Form authentication with captcha...

2007-07-05 Thread rpr_listas
Hi David, I don't like realm because I don't want to implement a new authentication repository, I only want to implement a new authentication method. Doing this at the realm level limit the possibilities of the form, i want to do captcha validation when the user has has tw consecutive errors

Re: Tomcat Version problem

2007-07-05 Thread Johnny Kewl
Ha, that will teach you to use the latest and greatest template collections ;) If you using Netbeans, just right click on the project and move the source level down to 1.4... I think you going to find all your problems - Original Message - From: Girish Havaldar [EMAIL PROTECTED]

Re: Tomcat Version problem

2007-07-05 Thread Johnny Kewl
I see one problem.. see note below - Original Message - From: Girish Havaldar [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, July 05, 2007 10:00 AM Subject: Re: Tomcat Version problem ths is the jsp page: [EMAIL PROTECTED]

Re: Form authentication with captcha...

2007-07-05 Thread David Smith
I think what you are after is well beyond tomcat's realm authentication/authorization implementation. You could implement your own login page and filter (notice I didn't mention realm). The login page/servlet can validate users, track the error rate and opt for showing CAPTCHA as necessary.

Re: Tomcat Version problem

2007-07-05 Thread David Smith
Your code: userid= Integer.valueOf(+session.getAttribute(uid)); Try: userid = ((Integer)session.getAttribute(uid)).intValue() ; Essentially typecast the Object returned from the session to Integer before attempting to get the int. As to this error: The method setAttribute(String, Object) in

Using the Tomcat API to Change the Context

2007-07-05 Thread Marius Preuten
I'm trying to write a Servlet which adds a Mapping on an existing Servlet-Class to ists own Context. Is this possible or are there any restrictions ? I tried this, but there wasn't a result: . public class Index extends HttpServlet implements ContainerServlet { protected

Re: Tomcat Version problem

2007-07-05 Thread Jon Wingfield
You are using jdk1.5 features (autoboxing, for example ) in your JSP pages. Early versions of the 5.5 tree bundled a jsp compiler (JDT) which didn't support these new language features. Later versions bundled an updated version of the compiler... For deploying on 5.5.9 just get rid of your

Making the Tomcat 6 Comet Example (ChatServlet) Work

2007-07-05 Thread Dominique Fotso
Hello: I have installed tomcat 6.0.13 on my windows xp machine, and I cannot get the chat example to work. I have switched the connector to the NIO http connector. I do not see any trace on the console. After I go past the login page, I get to the post page but typing something on the message

manipulating http header connection type

2007-07-05 Thread lior grinfeld
Hi how can i set which connection type tomcat use? (keep-alive, close) can i change it with the servlet code? response.setHeader(connection, keep-alive); if yes, why it did not work for me and tomcat send always connection: close ? and .. can i change the http version from servlet to servlet?

[AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Phi-Long LE
folks, has someone already experienced compiling mod_jk 1.2.23 on AIX 5.3 platform ??? when executing the command ./configure --with-apxs=/opt/apache_2.2/bin/apxs, an error occurs telling that it is a wrong path but am sure about that. any help would be appreciated, regards, Phi-Long LE

Tomcat 6 + Apache 2.0 with SSL

2007-07-05 Thread Roger
Hi there! I have some questions about how to setup Apache and Tomcat with SSL support. Currently I have the following setup: - Windows 2003 - Tomcat 6.0.13 - Apache 2.0.59 with - openssl 0.9.7j - mod_ssl - mod_proxy - mod_rewrite (not used) I have generated keys that work with Apache. So I

Apache httpd authentication before

2007-07-05 Thread Aldo Brucale
Hello, I'm using Tomcat 5.5.20 and Sun Java 1.5.0_10 under Debian Linux, using jk version 1.2.18 to connect from Apache. I would like to let Apache do HTTP autentication before forwarding the requests to Tomcat: is this possible? Thank you in advance Aldo

anybody has javascript code example for using tomcat comet ?

2007-07-05 Thread Szabolcs Márton
Hi! Has anybody got any workable code sample i javascript for use tomcat comet? - I tryed with pure xmlhttprequest, watching for state ready, but i got data after it has timeouted on server... - dojo.cometd is not usable, its need bayeux protocol - dojo.io.bind, i cannot make it could someone

Re: [AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Rainer Jung
No experience with AIX compilation, but 2 infos: a) usually this measage means, that /opt/apache_2.2/bin/apxs -q PREFIX returned an error or something wrong (here I have chosen the same path to apxs, which you have posted). You can check that without running configure. Choose the same user

Re: [AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Phi-Long LE
yes indeed, an error occurs when tryng the a) command... vhqun02# /opt/apache_2.0/bin/apxs -q PREFIX Can't locate strict.pm in @INC (@INC contains: /project/aix5l64/main/APACHE/perl/bin/AIX/Opt/lib/5.8.3/aix-thread-multi /project/aix5l64/main/APACHE/perl/bin/AIX/Opt/lib/5.8.3

Re: Apache httpd authentication before

2007-07-05 Thread David Smith
Yes just make sure you set tomcatAuthentication=false in the connector definition in server.xml for the AJP connector. That will allow the REMOTE_USER header to make it through to your webapps. --David Aldo Brucale wrote: Hello, I'm using Tomcat 5.5.20 and Sun Java 1.5.0_10 under Debian

Re: anybody has javascript code example for using tomcat comet ?

2007-07-05 Thread Bruno Simioni
Hey, Szabolcs. I'm looking for things about AIO Tomcat, using Comet technology, but I didn't get anything yet. I have already sent an email to tomcat users list, but no one answer. If you found something, please retrieve me. I'm trying to discover how an client can acess the manager of events

RE: Réf. : Missing JMX.jar in Tomcat 5.5.2 3?

2007-07-05 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Réf. : Missing JMX.jar in Tomcat 5.5.23? maybe you have to download from here but I'm not sure The necessary classes in jmx.jar are part of the standard 1.5 JRE. If you're using an older JRE, you can find jmx.jar in the JDK 1.4

Re: Missing JMX.jar in Tomcat 5.5.23?

2007-07-05 Thread Jesse Barnum
Hey Johnny, thanks for the help. I fixed the problem - stupid mistake, I was running 1.4 instead of 1.5 --Jesse Barnum, President, 360Works http://www.360works.com (770) 234-9293 On Jul 5, 2007, at 3:58 AM, Johnny Kewl wrote: No, that stuff is not relevent, in the BAT (SH) files, the TC

Re: Making the Tomcat 6 Comet Example (ChatServlet) Work

2007-07-05 Thread Dominique Fotso
Great! I do not have a webapp yet, i would like to see the example first before I venture with some code of my own. I saw talks that the example works only in telnet. I dont know how to do that yet, I will see. Maybe I'm just going to go ahead and write a test myself. Good to know you at least

Re: Apache httpd authentication before

2007-07-05 Thread Filip Hanik - Dev Lists
Aldo Brucale wrote: Hello, I'm using Tomcat 5.5.20 and Sun Java 1.5.0_10 under Debian Linux, using jk version 1.2.18 to connect from Apache. I would like to let Apache do HTTP autentication before forwarding the requests to Tomcat: is this possible? yes it is, and in tomcat's connector

Re: Making the Tomcat 6 Comet Example (ChatServlet) Work

2007-07-05 Thread Szabolcs Márton
HI! i cannot get use this example too. but my big mistake was that i put the webapp library the catalina.jar! the project need catalina.jar for comet stuff, but you cannot deploy it in your webapp. maybe check that.. If i removed i could use comet stuff. (but not the demo:) ) I connected to

Re: [AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Rainer Jung
Thanks for the feedback. Please don't overlook b). For worker MPM is definitely seriously broken, i.e. you will end up with currupted communication etc. Don't use 1.2.23 with worker MPM, even if it looks good in simple tests. Phi-Long LE wrote: I initially said that i did amend the code...

Re: [AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Phi-Long LE
I initially said that i did amend the code... however after thinking about the error I did prefer to amend the @INC to reflect the real path using perl -I path1:path2:path3... Le 05/07/2007 15:18, Phi-Long LE a écrit : yes indeed, an error occurs when tryng the a) command... vhqun02#

Re: Tomcat Farm Recommendation

2007-07-05 Thread Filip Hanik - Dev Lists
there is no right or wrong solution, but entertain this scenario 1. few very large machines (or) 2. many very inexpensive machines in the case of one machine breaking, using 1) will have a larger impact on your performance than 2) however, in the case of 2) you may have more failures. take

Question about linking remote files from a Host

2007-07-05 Thread Dave Shuck
All, I am quite new to Tomcat, but have run into a situation that I am having a hard time finding a solution too. We are working with some ColdFusion applications using Apache2 --jk_mod--Tomcat. We have set up 4 different CFML processors as Tomcat applications and created the hosts like this:

Tomcat 4.1.3 on Win2k Server: Context reloading itself, but no changes were made; why?

2007-07-05 Thread Eric B
Hi, all. I've got an odd situation with one of our applications that runs under Tomcat. The application will occasionally stop responding to incoming requests, and I believe I've traced the issue to a problem with Context reloads. Several times a day, the Tomcat log file indicates that the

RE: error messages, numbers

2007-07-05 Thread Propes, Barry L
never mind...I found it, thanks. -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 11:47 AM To: Tomcat Users List Subject: error messages, numbers This has probably been discussed here before, I'm certain, but I've been perusing the

error messages, numbers

2007-07-05 Thread Propes, Barry L
This has probably been discussed here before, I'm certain, but I've been perusing the archives for a bit and haven't come across it yet. When I get errors in the 400 series, the browser will show me specifically the numeric error in question - i..e 404 for a page not found, 403 for an invalid

Re: Tomcat 6 + Apache 2.0 with SSL

2007-07-05 Thread Arian Abrahantes
Hi: I think this has alraedy being discussed somewhere here. Why do you need double enchriptation? It is enough with the apache one. Use something like: broweser - https - Apache - http - tomcat pro: 1- Single enchiptation fast server response. cons (at least fo security): 1- none I may

Character encoding

2007-07-05 Thread lightbulb432
Why is the URIEncoding attribute specified on the connector rather than on a host, for example? Does this mean that the number of virtual hosts that can listen on the same port on the same box are limited by whether they all use the same encodings in their URIs? Now that I think about it,

Re: Tomcat 6 + Apache 2.0 with SSL

2007-07-05 Thread Arian Abrahantes
Hi Filik: I understood what he wanted to do. My post is about how needed is this for him?. If it is a company requirement ok. But if there is no requirement why to slow the server down?. IMHO, in a properly set apache proxy configuration nobody except apache will interact with the

RE: Redirection

2007-07-05 Thread Propes, Barry L
request.setAttribute and cast the string variables that are currently set in the servlet. then request.getAttribute in the JSP. Actually thoughyou might need to make the hyperlink a form button. -Original Message- From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: Tomcat 6 + Apache 2.0 with SSL

2007-07-05 Thread Filip Hanik - Dev Lists
Arian Abrahantes wrote: Hi Filik: I understood what he wanted to do. My post is about how needed is this for him?. If it is a company requirement ok. But if there is no requirement why to slow the server down?. IMHO, in a properly set apache proxy configuration nobody except apache will

RE: a question about user athentication

2007-07-05 Thread Propes, Barry L
to prevent the other users to be signed on? Do you mean prevent from locking them out? I've got a similar deal in my db with the users table, a column called user_dbflag, which, like your status column, uses a simple int value of -1 or 0 to see who's active. Actually, it also has a timestamp

Error starting Tomcat 5.5 as a Windows service

2007-07-05 Thread Tony Fountain
Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable,

Re: Error starting Tomcat 5.5 as a Windows service

2007-07-05 Thread Daniel Stephens
Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new

Re: Error starting Tomcat 5.5 as a Windows service

2007-07-05 Thread David Smith
java.lang.Object is the core ancestor of all java classes. Given it's pretty much available by default regardless of classpath or anything else I suspect your JVM install is messed up in some manner. Try reinstalling your JVM and start tomcat again. --David Tony Fountain wrote: Hi, I am

RE: a question about user athentication

2007-07-05 Thread is_maximum
Thank you all for replying I wanted to prevent the users who were deleted already to logging in. I resolve my problem by extending a class from JDBCRealm and override the getConnection() method (I'm not sure about the method name) and put my select statement with my favorite where clause where

RE: Error starting Tomcat 5.5 as a Windows service

2007-07-05 Thread Randy Bumgardner
Tony, We had the same issue recently. Copying msvcr71.dll into the $CATALINA_HOME/bin directory fixed the issue... Here's a thread with more background: http://forum.java.sun.com/thread.jspa?threadID=5121172 Hope this helps! -randy Randy Bumgardner Software Engineer 1400 Marina Way South

Re: Tomcat Version problem

2007-07-05 Thread hanasaki
Did you per-complile the JPS's? - don't - in this case Ensure the jsp version you coded against is the same as that supported by the hosting company. Jon Wingfield wrote: You are using jdk1.5 features (autoboxing, for example ) in your JSP pages. Early versions of the 5.5 tree bundled a jsp

https in Tomcat 5.5 via basic JKS keytool keystore..not doing what it should !

2007-07-05 Thread Ben Iggulden
Bit of a maddening problem this one. I'm setting up https on Tomcat 5.5. Following the how-to closely I've generated a keystore using keytool and uncommented/modified the port 8443 connector in the server.xml. But the https connector just fails to work, the logs report these errors: 1.

Re: Tomcat Version problem

2007-07-05 Thread Girish Havaldar
Thnks for the resplone, now v r doing that only GS. On 06/07/07, hanasaki [EMAIL PROTECTED] wrote: Did you per-complile the JPS's? - don't - in this case Ensure the jsp version you coded against is the same as that supported by the hosting company. Jon Wingfield wrote: You are using jdk1.5

Re: Tomcat Version problem

2007-07-05 Thread hanasaki
What do you mean v r? Please do not post shortcut English ;) When you get things working... Please post the solution to the problem so we can all learn. Girish Havaldar wrote: Thnks for the resplone, now v r doing that only GS. On 06/07/07, hanasaki [EMAIL PROTECTED] wrote: Did you