Is it possible to bind to EJB-s in a J2EE-complient way with Tomcat 4?

2002-02-07 Thread Anton Tagunov
Hello, tomcat community! I have a question regarding ejb-s and the J2EE-isms. I know that the J2EE datasources are now available with Tomcat. I may just configure conf/server.xml, describe the datasource and go ahead. Very good. 1) What about EJB-s? I understand that J2EE 1.3 mandates that

Re[2]: Running Tomcat as Non-Root

2003-07-19 Thread Anton Tagunov
Hello Gabriel! LG So I'm going to take that as a no. No one has bothered to pester sun LG about this. LG So I realize that its possible that you could only drop privs down to a LG single user in the vm, but gee wouldn't that be hugely better then what LG we have today, where if I want to run

Re[2]: (How to) Tomcat as a Linux service

2003-07-20 Thread Anton Tagunov
Hello All! AW to the original subject: have not used it myself, but looks like jakarta-commons/sandbox has a daemon subproject that may also provide usefull support code. -Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re[2]: Running Tomcat as Non-Root

2003-07-27 Thread Anton Tagunov
Hello Ralph! RE You can run a java service on ports 1024 without being root with RE portmappers, proxies, iptables and several other tools Hmm.., but won't this make the request.getRequestURI() and alike create incorrect URL-s, like http://smth.smth.smth:8080/aaa/b.jsp instead of

Re[2]: Tomcat refresh configuration

2003-07-27 Thread Anton Tagunov
Hello Bill! BB response.setDateHeader(Expires, 1); probably response.setHeader(Expires, -1); to prevent caching? -Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: NullPointerException/Connection pool gets exhausted very quickly

2003-07-27 Thread Anton Tagunov
Hello Lior! LS with conn.close() at the bottom of each page conn.close() at the bottom not enough, what you need is conn= .. try{ }finally{ conn.close(); } LS and initCtx.close() to release the connections has nothing to do with closing connections -Anton

Re[2]: Can I get the webapp context path from the init method of a servlet

2003-07-29 Thread Anton Tagunov
Hello All! Stephen Ince [EMAIL PROTECTED] write to tomcat-dev: SI I am trying to get the context path ... for a SI servlet when it is being initialized (init) SI Here is the solution that I implemented. SI s_contextPath = SI config.getServletContext() SI .getResource(/).getPath(); SI

Re[2]: [Q] Is it safe to create threads in Tomcat web-apps?

2003-07-29 Thread Anton Tagunov
Hello Riaan! RO (I have no idea what cron +wegt is???) As John has explained JT cron = scheduler Unix world I would add to this :-) And on the files (or directories involved is named crontab, see bellow) JT wget = command line HTTP/HTTPS client both Unix and Windows I just wanted to say that

Re[2]: [Q] Is it safe to create threads in Tomcat web-apps?

2003-07-29 Thread Anton Tagunov
Hello Srevilak! sgn However, if the three steps are IO-bound, using multiple threads to sgn run them concurrently can lead to a big improvement. One might also consider using some kind of thread pooler in this setting. Perhaps one could be crafted on top of jakarta-commons-pool -Anton

Re[2]: mysql connection pool

2003-07-29 Thread Anton Tagunov
Hello Hans! HW my pool is specified exactly the same as the mysql pool on: HW http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html HW why is the datasource.getNumActive() value always 0 even though I have HW multiple connections open ? 1) Short-term solution. Use

Re: Clashing JNDI names? Maybe?

2003-07-31 Thread Anton Tagunov
Hello Andoni! A ResourceParams name=jdbc/live A parameter AnamedriverClassName/name Avalueoracle.jdbc.driver.OracleDriver/value A /parameter A parameter Anameuser/name Avaluelive/value A /parameter A parameter A

Re[2]: ThreadPool misbehavin

2003-09-02 Thread Anton Tagunov
Hello Yoav, and All! Since it's a user mail list, plz let one STUPID question, just want to know everything in the world =) SEVERE: Unexpected exception message in the logs from ThreadPool:652. I like the comment at line 651 that says, can never happen, .. Does SY Are you doing

Re: Character Encoding problem (umlauts, etc).

2003-09-06 Thread Anton Tagunov
Hello Robert! Robert Priest [EMAIL PROTECTED] wrote: RP I am requesting file : RP /38CF278C0186B466222FC48571080B83/51/dms00051/รครครค.txt RP but what is coming across in the request is: RP /38CF278C0186B466222FC48571080B83/51/dms00051/???.txt Probably your browser is sending it that way? I guess

Re: Charset encoding issue

2003-09-06 Thread Anton Tagunov
Hello Lima! lccb I have a jsp page with some form fields. I don't know how is the right way lccb to set the charset (because we're using portuguese characters). This is lccb the only configuration that have worked for me : lccb %@ page contentType=html/text; charset=UTF-8% To the best of my

Re[2]: Tomcat as an in-process Servlet container?

2003-09-06 Thread Anton Tagunov
Hello Carlos! CCH My confusion comes from the fact that when using channelSocket to connect Apache and Tomcat I can type the URL of any WebApp without specifying Tomcat's listening port because the CCH mapping/forwarding is handled in the config files, but after configuring ChannelJni to

Re: Mac/zip stream problem

2003-09-06 Thread Anton Tagunov
Hello Jan! To me looks a Mac IE trouble? Does it not handle the ZIP stream at all? BTW, isn't IE Mac being put off service replaced by Safari? WBR, Anton JA ... setting the response content type to application/zip and wrapping the JA response stream to a zipoutputstream and then writing

Re[2]: Charset encoding issue

2003-09-06 Thread Anton Tagunov
Hello, Lima! AT if you want the form data to be encoded with charset XXX AT you need your page to have content type with charset XXX. LIMA form (...) enctype=multipart/form-data AT As far as I know enctype here is not required. LIMA But why when i modify or remove the enctype from form tag,

404 leaks (was: PROBLEMS: memory / cpu usage - Tomcat 3.2.1)

2003-09-07 Thread Anton Tagunov
Hello, All! SS once the 404 is logged, the apache - tomcat connection does not SS terminate. it stays running, and starts to consume cpu time Is this a known issue? What connector + Tomcat versions are vulnerable? Anton -

Re[4]: Charset encoding issue

2003-09-07 Thread Anton Tagunov
Hello, Lima! lccb I've found a message (at lccb http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00547.html) : lccb Tomcat follows the HTML standard, Hmm.., to me it looks like a browser issue, not Tomcat. Hence its a bit OT here, but still we have started the discussion :-) (again, as I have

Re[2]: Deployment problems in tomcat 4.1.27 : jdbc and properties files

2003-09-08 Thread Anton Tagunov
Hello Shailesh! SM properties files(configuration files) for my web-app are not getting SM picked up. I have tried following ways one by one: SM 1. kept them in \WEB-INF\classes folder the right move SM 2. kept them in \WEB-INF\lib won't work, it's for jars only SM 3. made the jar out of them and

Re[2]: Character Encoding problem (umlauts, etc).

2003-09-08 Thread Anton Tagunov
Hello Robert! RP Thanks for the information Anton. But just getting rid of umlauts or other RP international characters is not an option when you have clients that use RP your software in other countries, that have those special characters. We RP cannot rename user files or changed that data.

Re: mod_jk.conf-auto

2003-09-08 Thread Anton Tagunov
Hello Armenio! AP Is there any way to control the automatic generated mod_jk AP configuration script? The problem is that I need some specific commands AP (like JkMount /*.do apj12), and when Tomcat restarts these commands are AP removed... Thanks in advance, submitting this as a patch to

Re: Re [ 4 ] : Charset encoding issue

2003-09-08 Thread Anton Tagunov
Hello Daniel! Great to know you name at last, have not seen it in your other posts! :-)) Sorry to have been addressig you by your surname! DHAL How can i spy the traffic between Tomcat and the browsers ? Just the question I've been waiting for =) There's view on it in my

Re: Memory Leak with static content

2003-09-13 Thread Anton Tagunov
Hello Seth! SN All, SN OS: Sparc-Solaris 9 SN JDK: 1.4.0_02 SN Tomcat: 4.1.27 SN Problem: SN I start tomcat and it takes up about 45MB of RAM. I wrote a script to email me every ten minutes the amount of memory it's taking up. The results are showing me that it gains about 1MB every 10 SN

Re: Generating huge reports via servlets

2003-09-14 Thread Anton Tagunov
Hello Vijay! VK I have a servlet that generates reports in CSV format. When the content size VK of the report is small, it works fine. But if the content size is 4MB, I get VK a 404 error but no exceptions. I tried setBufferSize(4MB) and contentSize to VK the actual size of the report but that

Re: JNDI lookup from console app

2003-09-15 Thread Anton Tagunov
Hello James! JD I'm trying to lookup a DataSource using JNDI configured within Tomcat (I'm JD not using JBoss) from an application that isn't in the container (i.e. a JD console app). JD 1. Is Tomcat's JNDI available to application outside of the container? No they are not. BTW, how you would

Re: Character Set Issues (windows vs. Unix)

2003-09-16 Thread Anton Tagunov
Hello Hans! HL When the application is installed on the windows server the particular HL character (which is some kind of spacing character in word) gets read out of HL the database as HL Ascii code 160, HL BUT on the Linux server the exact same routine reads it as ascii code 65533 HL Same

Re[2]: Memory Leak with static content

2003-09-16 Thread Anton Tagunov
Hello Yoav! Seth Newton [EMAIL PROTECTED] wrote: SNVirtual Size: 112592 SNReal Size: 61880 SNTime Up(days-hours:minutes:seconds): 01:05:20 SY You realize these numbers are meaningless to anyone except you, as we SY don't know what you're measuring, how you're measuring it, what the SY proper

Re: A Hebrew Problem

2003-09-16 Thread Anton Tagunov
Hello Yair! YZ I have this hebrew problem: YZ I'm trying to include a html in a jsp page: YZ jsp:include page=relativePath/fileName flush=true / YZ When it comes to a hebrew html the browser displays question marks YZ instead of hebrew (no matter what charset do I choose in the browser). YZ The

Re[2]: A Hebrew Problem

2003-09-20 Thread Anton Tagunov
Hello Yair! Sorry about responding with such delay, I only read the list periodically in large gulps. I'm still very interested. YZ My Goal: including a hebrew html inside a jsp page. YZ The Problem: hebrew is viewed by browser as question marks (no matter YZ charset). YZ //moving the html

Re[2]: Character Set Issues (windows vs. Unix)

2003-09-20 Thread Anton Tagunov
Hello Hans! Sorry about responding with significat delays, I'm reading the list only periodically, in gulps AT String s = rs.getString(x); AT char c = s.charAt(y); AT out.print((int)c); HL Thats exactly what I am doing. HL same result What result? What codes do you get for non-ascii

Re[2]: Tomcat and native libs.

2003-09-20 Thread Anton Tagunov
Hello Daniel! Can it be that the native code is plainly crashing? Or may it be related to reloading a web application? DK Unexpected Signal : 11 occurred at PC=0xFE0EAFE8 DK Function=[Unknown. Nearest: JVM_FindPrimitiveClass+0x1BB8] DK Library=/usr/j2sdk1.4.1_04/jre/lib/sparc/client/libjvm.so DK

Re: IE 6 causes broken pipe exception

2003-09-20 Thread Anton Tagunov
Hello Chris! CR IE 6 is sending two GET requests for each .mp3 file. I haven't tested the CR behavior on IE 5.x or other plugin-handled mime types. CR The first GET sets the request header: CR user-agent = contype CR and is a Microsoft (ie, non-standard) attempt at data-sniffing intended to CR

Re: error-page directive

2003-10-05 Thread Anton Tagunov
Hello Carlos! CP IE shows it's default Error 500 - Internal Server Error page. I recall there was an issue with some version of IE: it had a feature: if the error page is less then x bytes then IE showes its ugly default error page. But if the error page is large enough (in terms of bytes) then

Re[2]: contextInitialized() called twice

2003-10-05 Thread Anton Tagunov
Hello Jean-Paul! JPLF It does not depend on the detail of the configuration : I have JPLF tested many different approaches. The problem occurs when JPLF there is one default host and one virtual host. Please, could you still post the simplest set of configuration files you can figure that

Re[2]: Datasource connections not released when reloading context

2003-10-05 Thread Anton Tagunov
Hello Jose! Friday, October 3, 2003, 2:30:12 AM, you wrote: JAM On Wed, Oct 01, 2003 at 11:37:39AM -0500, Matt Raible wrote: I already do this, but when I reload my context, I get two database connections, rather than one. So each time I reload, I get an additional connection - eventually