a question about user athentication

2007-07-02 Thread is_maximum
Hi experts I am using Tomcat 5.5 and struts framework and security filter in order to authenticate users like the others I am using j_security_check action but my problem is that I have a field in my user table namely status which represent whether the user is available or deleted by

change/set tomcat encoding

2007-07-02 Thread Vaduvoiu Tiberiu
I'm having problem with tomcat encoding. I have some xml files that have encoding utf-8 but when I do a slide search, I get some errors because(or at least I think because) by default, Tomcat uses ISO-8859-1 character encoding. Googling the problem, I've read a couple of articles on mailing

Tomcat Administration Package Download?

2007-07-02 Thread Stephen . Morris
Hi, Can anybody tell me where I can find the administration package for Tomcat 6? I have gone to the archive.apache.org/tomcat site, but it does not have the package in the relevant Tomcat 6 directory as it does for the earlier Tomcat Versions. I have tried using the version for Tomcat

Re: WEB.XML file parsing

2007-07-02 Thread Johnny Kewl
This guy has reckons you can turn off DTD checking http://www.isocra.com/blogs/index.php?/archives/5-Making-Xerces-ignore-a-DTD.html Tools like Xerces and Xalan are very good, but pretty heavy. If you google you will also find some very light weight sax parsers out there. Most of them dont even

Re: Trouble with java.util.Timer in Tomcat 5.5

2007-07-02 Thread Ronald Klop
Could it be the Timer is waiting for a previous action to finish? Maybe the FTP connect 'hangs'. Ronald. On Fri Jun 29 16:41:13 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: I have an app running in Tomcat 5.5.12, with jre 1.5.0_12 (explicitly specified in the service

Unable to disable output buffering

2007-07-02 Thread Fabio Rossi
Hello. I need to disable output stream buffering. I tried with response.setBufferSize but i noticed that Tomcat does not permit to set a level lower than the standard 8k. Then I read that the solution is to specify the connector property socketBuffer=-1 in server.xml but again, it does not

Re: Tomcat adding files

2007-07-02 Thread coder5436uk
my web xml: jsp-config jsp-property-group url-pattern*.jsp/url-pattern include-prelude/WEB-INF/headers/v2header.jsp/include-prelude /jsp-property-group /jsp-config file does exist in location I get

Re: HTML error pages

2007-07-02 Thread Ingo Siebert
Hi, thank you for your answer. Sorry, it's quite possible that the 404 code was wrong, i think it was the 500 code. But I'm still wondering why Tomcat (5.5) doesn't log the error message(i.e. out of heap space) into a log file. My logging.properties file of Tomcat isn't modified. Ingo

Re: Tomcat adding files

2007-07-02 Thread Titi Wangsa
looks like the can't be included.. try zeroing the file of set the content to this is the header file or move the file to the root directory and try to access the file directly to see what kind of error you are dealing with i mean move the file so that you can view the header using

Re: Tomcat Administration Package Download?

2007-07-02 Thread David Smith
There is no admin webapp for tomcat 6 and there is no plan to implement it. This has been answered in the archives so you could do a search for more details on why if you need more info. --David [EMAIL PROTECTED] wrote: Hi, Can anybody tell me where I can find the administration

Re: Unable to disable output buffering

2007-07-02 Thread Johnny Kewl
Fabio, it just sounds all wrong I have a sneaky suspicion that if you made the buffer very large, your problems will fix themselves, but thats still not the solution. I actually think you are not telling the client the size of the data do you set response.setContentLength(How

Slightly OT: Which CMS?

2007-07-02 Thread Gregor Schneider
Dear list, among other things it's now my job to look out for CMS. I've asked auntie Google, however, browsing all hits that Google showed up would lead straight into my retirement (and I'm not *that* old...) What I've seen so far is, that most CMSs are based on PHP - something which is giving

Re: Slightly OT: Which CMS?

2007-07-02 Thread ben short
I asked auntie Google for 'java cms' and she found this [1]. She even gave me cucumber sandwiches :) [1] http://java-source.net/open-source/content-managment-systems On 7/2/07, Gregor Schneider [EMAIL PROTECTED] wrote: Dear list, among other things it's now my job to look out for CMS. I've

Re: a question about user athentication

2007-07-02 Thread Pid
is_maximum wrote: Hi experts I am using Tomcat 5.5 and struts framework and security filter in order to authenticate users like the others I am using j_security_check action but my problem is that I have a field in my user table namely status which represent whether the user is available or

Tomcat - Apache: IP replacement

2007-07-02 Thread Nino Ulsamer
Hello, I have a problem with finding out the IP address of requests in Tomcat. I'm using the HttpServletRequest.getRemoteAddr() function, but it returns 0.0.0.0. My server configuration is as follows: Apache receives all requests and forwards them to Tomcat via mod_jk. Probably in this step it

Re: Slightly OT: Which CMS?

2007-07-02 Thread Sebastian Himberger
Hi, we're using OpenCms (http://www.opencms.org) for many customers. It's a nice open source CMS solution and run's well with tomcat. Although it may be a bit hard to get into development it has a very intuitive user interface. I'll try to elaborate a bit on your requirements: able to somehow

Re: install

2007-07-02 Thread gregory hans
thanks mark for your reply. i've already know how to configure it Mark Thomas [EMAIL PROTECTED] wrote: gregory hans wrote: i have 2 web server in my local computer. one for php(apache2triad) adn one for jsp(tomcat). i installed tomcat using port 8080. i try to install my web application into

Re: Tomcat adding files

2007-07-02 Thread Johnny Kewl
Oh, it normally just a silly thing, like its picking up a relative link, not an absolute ref try... %@ include file=/thething.jsp % Also half the problem is you only picking up the hassle at run time... In Netbeans if you right click on the JSP file and compile it, you will see the problem

Re: Tomcat - Apache: IP replacement

2007-07-02 Thread Rainer Jung
Something is wrong with your configuration or box setup. request.getRemoteAddr() works for me, it shows the Apache server address used by the request. Regards, Rainer Nino Ulsamer wrote: Hello, I have a problem with finding out the IP address of requests in Tomcat. I'm using the

Re: Tomcat Administration Package Download?

2007-07-02 Thread GHOSTRIDER
This is a freeware Tomcat management app. that was posted here on the list some time ago that may prove to be useful to you Steve. *Tomcat Service Manager by David Boyer* *Link* http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview Good Luck Visit My Home

Re: Tomcat adding files

2007-07-02 Thread Tim Funk
2 problems 1) If you have *.jsp - don't make the include file a file that ends with jsp. Use jspf as your include extension. 2) Try access the include file all by itself. Sounds like a simple compile issue. -Tim coder5436uk wrote: my web xml: jsp-config

Re: HTML error pages

2007-07-02 Thread Tim Funk
If you get an OOM error - typically - all bets are off. Pack up the JVM - restart it and try again. Tomcat should the log the OOM error if it catches it. If something else if first catching and swallowing it - then tomcat doesn't have a chance to log it. -Tim Ingo Siebert wrote: Hi,

Re: 10 JSP tag libraries no programmer should be without

2007-07-02 Thread GHOSTRIDER
. This was included in a newsletter sent out by TechRepublic I thought it worth sharing.. hopefully the links contained will still work.. Regards, Rod GHOSTRIDER Visit My Home On The Web @ http://ghostradionet.com GHOSTRIDER INTERNET RADIO ..Rocking New YorkAnd The Web... *10 JSP tag

Re: Tomcat - Apache: IP replacement

2007-07-02 Thread ben short
I had an issue where getLocalAddr() would return 127.0.0.1 rather than the ip address of my linux box. Altering the /etc/hosts file to something like the following fixed that. I wonder what effect that might have for your problem. 192.168.6.173 box box.domain.com 127.0.0.1

Re: Slightly OT: Which CMS?

2007-07-02 Thread Martin Heiden
Gregor, have a look at www.cmsmatrix.org there are several java open source cms. I would give alfresco a chance (www.alfresco.org), but it may be overkill. You could try Daisy (www.daisycms.org) (it's more a wiki system but quite interesting) or Apache Lenya (lenya.apache.org). Both

Re: a question about user athentication

2007-07-02 Thread is_maximum
Pid-2 wrote: Have a look at JDBCRealm (or DatasourceRealm) in the Tomcat Source. You could alter the SQL statement for password or username so it fails when '... status = 0'. Upload a jar with your new realm in it to server/lib and configure the realm as a replacement for the one in

Re: Unable to disable output buffering

2007-07-02 Thread Fabio Rossi
Hi, thank you for the answer, but my problem in different. When I send the data, I specify the content lenght and the client knows if the download is completed or not. The problem is that, with output buffering, if the client crashes, for example, after it has downloaded 1MB of a 4MB file, the

parse parameters socket timeout exception

2007-07-02 Thread kz
Hi, I have attached this image file of the exception I had. I wanted to know what could be the reasons of timeout in pare parameters. I have Tomcat's embedded version running in a product. Thanks. Regards Khurram. - To

AW: Tomcat - Apache: IP replacement

2007-07-02 Thread Nino Ulsamer
Rainer, thanks for your comment. But I don't want to see the Apache server address, I want to see the address of the user who originally started the request! Nino -Ursprüngliche Nachricht- Von: Rainer Jung [mailto:[EMAIL PROTECTED] Gesendet: Montag, 2. Juli 2007 12:22 An: Tomcat Users

Re: Tomcat - Apache: IP replacement

2007-07-02 Thread Johnny Kewl
Ha ha you made me panic, no my load sharing stuff behind JK, is not doing that, ie getRemoteAddr is working. You know if you on a MS box, (guessing wildly here), the first time I ever saw 0.0.0.0 as a local address is when I was playing with IPv6. and only on the local IPV6 addresses,

AW: Tomcat - Apache: IP replacement

2007-07-02 Thread Nino Ulsamer
John, keep cool ;-) So that might be interesting. We indeed have a MS Box running here, so where exactly could we come across IPv6? Thanks, Nino -Ursprüngliche Nachricht- Von: Johnny Kewl [mailto:[EMAIL PROTECTED] Gesendet: Montag, 2. Juli 2007 13:21 An: Tomcat Users List Betreff: Re:

Re: Slightly OT: Which CMS?

2007-07-02 Thread Gregor Schneider
Guys, thanks a lot for the input! Cheers Gregor -- 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,

mod_jk playing with headers

2007-07-02 Thread Anton Melser
Hi all, We are running tomcat 5.5.23 on java 1.6.0 (suse 10.0 with addon java6 rpms for suse 10.1). These machines are load balanced behind an apache 2.2.2 with mod_jk jakarta-tomcat-connectors-1.2.15 (both compiled from sources). We have a page that is showing the html source instead of the page

Re: AW: Tomcat - Apache: IP replacement

2007-07-02 Thread Rainer Jung
I'm sorry, in fact that's what I wanted to tell you. I tested with Apache and Tomcat not on the same machine, but with the client on the Apache machine. If I move the client to another machine, the result is the wanted result, it shows the IP of the client. I tend to agree with Johnny Kewl,

Re: Appointment system

2007-07-02 Thread Asare Samuel
Thanks to all thoise that replied to my origianl post reagrding this web application. Sebastian Himberger [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, if you want to use Tomcat you can also use EJB by utilizing OpenEJB. Have a look at:

Re: [SOLVED] Re: How do I set maxage on the JSESSIONID cookie?

2007-07-02 Thread Jesse Barnum
I'm modifying the response by appending a session cookie whose maxAge has been configured to a positive value. I'm writing it as a Filter because 1) Eric suggested that (well, he suggested a Valve, but from my limited understanding, it seems like a Filter does the same thing and is not

RE: a question about user athentication

2007-07-02 Thread Caldarale, Charles R
From: is_maximum [mailto:[EMAIL PROTECTED] Subject: Re: a question about user athentication I mean is there any way to specialize this authentication method for one application and for the others it remains as its default Read the doc:

Re: Tomcat - Apache: IP replacement

2007-07-02 Thread Johnny Kewl
- Original Message - From: Nino Ulsamer [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, July 02, 2007 1:43 PM Subject: AW: Tomcat - Apache: IP replacement John, keep cool ;-) So that might be interesting. We indeed have a MS Box running here, so where

RE: change/set tomcat encoding

2007-07-02 Thread Caldarale, Charles R
From: Vaduvoiu Tiberiu [mailto:[EMAIL PROTECTED] Subject: change/set tomcat encoding I'm having problem with tomcat encoding. I have some xml files that have encoding utf-8 but when I do a slide search, I get some errors because(or at least I think because) by default, Tomcat uses

Tomcat Threads handling user Requests problem

2007-07-02 Thread Mirek Kopriva
Dear All, I have a problem when too few (only 2) Tomcat's threads is handling my requests. First a little background on what I'm trying to do: I have an web application, which loads a page. On loading the page there are Ajax script calls (DWR framework), requesting more data from the tomcat to be

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread David Delbecq
En l'instant précis du 02/07/07 15:55, Mirek Kopriva s'exprimait en ces termes: There can be as many as 100 separate requests (not usual but possible) per a page load via Ajax. Some of those requests can take a while because of waiting for another application, I'm trying to integrate with.

problems with mod_jk modifying headers

2007-07-02 Thread Anton Melser
(maybe a repost?) Hi all, We are running tomcat 5.5.23 on java 1.6.0 (suse 10.0 with addon java6 rpms for suse 10.1). These machines are load balanced behind an apache 2.2.2 with mod_jk jakarta-tomcat-connectors-1.2.15 (both compiled from sources). We have a page that is showing the html source

RE: Tomcat Threads handling user Requests problem

2007-07-02 Thread Caldarale, Charles R
From: Mirek Kopriva [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Threads handling user Requests problem Now the problem. I can see only 2 Tomcat Threads, handling all of these request, which as you can imagine can take a while. This is the result of the browser complying with the HTTP

Re: problems with mod_jk modifying headers

2007-07-02 Thread Richard Kaye
I saw your first post and was interested. I am running a very similar system with no problems (I take that back: there are problems, but not this problem). Q1. Is there something in your apache config file(s) to do with mimetypes that is messing things up? Q2. Are you working with strange

Internet Explorer not working correctly after installing Tomcat

2007-07-02 Thread Sue McKeown
Hi: I installed Eclipse (v.3.1.2) and Tomcat (v5.5) with a single installer that my professor distributed to a Client-Server Programming class I took. I rarely use IE (I use Mozilla and only use IE when absolutely necessary). So it was probably 2 months after the class until I even tried to

Fwd: Internet Explorer not working correctly after installing Tomcat

2007-07-02 Thread Sue McKeown
Sorry about this, but I forgot to mention in my earlier message that my computer is running Windows XP with SP2. --Sue Date: Mon, 02 Jul 2007 10:57:41 -0400 To: users@tomcat.apache.org From: Sue McKeown [EMAIL PROTECTED] Subject: Internet Explorer not working correctly after installing

Re: Fwd: Internet Explorer not working correctly after installing Tomcat

2007-07-02 Thread David Smith
So IE is working correctly, just pointing to an invalid page. Can't you simply change the homepage? Also verify the icon you are using to open IE isn't opening it with a specific location like http://localhost:8080/fwlink/ --David Sue McKeown wrote: Sorry about this, but I forgot to

Re: Problem about posting Chinese characters to tomcat server.

2007-07-02 Thread Kun Niu
Thank you for your excellent link. But what makes me feel strange is that how can I add the code String paramEncoding = application.getInitParameter(PARAMETER_ENCODING); request.setCharacterEncoding(paramEncoding); into my JSP file. And now to my JSP file, I turn to the fmt namespace. I added

Re: Problem about posting Chinese characters to tomcat server.

2007-07-02 Thread Kun Niu
It seems that get and post are treated differently. But thank you all the same.:) 2007/7/2, Mark Thomas [EMAIL PROTECTED]: Niu Kun wrote: Any help would be appreciated and thanks in advance. http://tomcat.apache.org/faq/misc.html#tomcat5CharEncoding Mark

Re: Unable to disable output buffering

2007-07-02 Thread Filip Hanik - Dev Lists
does calling response.flushBuffer not do anything for you? Filip Fabio Rossi wrote: Hi, thank you for the answer, but my problem in different. When I send the data, I specify the content lenght and the client knows if the download is completed or not. The problem is that, with output

AW: Tomcat - Apache: IP replacement

2007-07-02 Thread Nino Ulsamer
Hey, thanks for your support so far. I just played around with the settings some more and could find out more interesting stuff... First of all, about our configuration: we have an Apache and Tomcat running on the same machine, with JK 1.2 in between. If I log requests in Apache, the IP

tomcat compile failure on debian build.xml base.path for JDT eclipse jars et. al.

2007-07-02 Thread david
Hello Tomcat dev, gurus, ranters and ravers, I have downloaded the TC source (apache-tomcat-6.0.13-src.tar.gz) and the ant (1.6) build attempt fails with the following error condition (one of 67 errors): /usr/local/apache-tomcat-6.0.13-src/java/org/apache/jasper/compiler/JDTCompiler.java:86:

Re: Unable to disable output buffering

2007-07-02 Thread Fabio Rossi
No. I tried it but it seems to have no effect. ..and if i call getBufferSize() in my code I still get the default value of 8K even if I set the socketBuffer=-1 connector property in the server.xml Filip Hanik - Dev Lists [EMAIL PROTECTED] ha scritto: does calling response.flushBuffer not do

Re: problems with mod_jk modifying headers

2007-07-02 Thread Titi Wangsa
i'm guessing you need to modify the mime type in you httpd.conf to set .jsp as text/html just my guess... that's what i'd do if my system exhibited that symptom On 7/2/07, Richard Kaye [EMAIL PROTECTED] wrote: I saw your first post and was interested. I am running a very similar system with

Re: CGIServlet

2007-07-02 Thread Robert J. Carr
Both. You've made the incorrect assumption that made visible means made visible to web applications, which is incorrect. A classloader makes classes and resources visible to whoever has access to the classloader; webapps do not have access to the Catalina classloader. ... Tomcat is the one

RE: [OT] Tomcat Threads handling user Requests problem

2007-07-02 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Tomcat Threads handling user Requests problem There is a registry setting you can tweak in Windows to let IE6/7 open more than 2 at a time; there's probably something equivalent in Firefox, but I don't know what it is. For IE, look here:

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread Johnny Kewl
Can you believe that, IE only allows 2 files downloaded at the same time, and then you have to dig into the registry get OPERA ;) Now that I advertised my favorite browser I think its working and I have yet another theory ;) Modern browsers dont drop the connection, because establishing

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread Johnny Kewl
Here, I found a link so you can read about the PIPE stuff I'm waffling on about http://www.w3.org/Protocols/HTTP/Performance/ and it also give you a way to change it... If you trick Tomcat into making it think its a HTTP/1.0 connection dont ask me how but I imagine you can set the Ajax

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread Rainer Jung
Johnny Kewl wrote: Can you believe that, IE only allows 2 files downloaded at the same time, and then you have to dig into the registry get OPERA ;) The 2 connections are a recommendation for well-behaved http clients coming from the http spec in order to keep server load related to one

Re: Tomcat Threads handling user Requests problem

2007-07-02 Thread Johnny Kewl
- Original Message - From: Rainer Jung [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, July 02, 2007 8:24 PM Subject: Re: Tomcat Threads handling user Requests problem Johnny Kewl wrote: Can you believe that, IE only allows 2 files downloaded at the

Re: Fwd: Internet Explorer not working correctly after installing Tomcat

2007-07-02 Thread mckeownsw
Thanks, David. However, my IE home page was already set to my ISP's home page. I checked the URL that the icon I use to open IE and it is exactly the same as I use for Mozilla; only it works for Mozilla, but not for IE7 (and it worked the same for IE6 as well). The URL is

Re: Fwd: Internet Explorer not working correctly after installing Tomcat

2007-07-02 Thread David Smith
I think I'm getting a picture now. Have you run IE since the critical update to upgrade from IE 6 to IE 7? IE is trying to run an internal pref page for you to choose your default search provider and it's getting caught somehow. I seriously doubt this is a Tomcat/Eclipse problem as much as

Re: Tomcat Administration Package Download?

2007-07-02 Thread Stephen . Morris
Ghostrider, Thankyou. I have downloaded the zip file and will have a look at it. I will need to check to see if the application works under both windows and linux. regards, Steve Morris IT Security Access Management Technology Risk and Security Technology Australia National Australia Bank

RE: WEB.XML file parsing

2007-07-02 Thread Andrew Friebel
I apologise for my lack of information. What you have given me has helped, however a new issue has arisen from it. I did turn off validation as per the other suggestion from my post. This allowed me to parse the web.xml file, however, I still need to save the document declaration. When you

Re: WEB.XML file parsing

2007-07-02 Thread Bill Barker
Andrew Friebel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I apologise for my lack of information. What you have given me has helped, however a new issue has arisen from it. I did turn off validation as per the other suggestion from my post. This allowed me to parse the