RE: APPLET using Text File
Hi Alberto, I have been working with Applets since 1995 (don't laugh) and never had an issue with reading a file from the directory of the (Web or App) server the Applet was downloaded from. Just know that there are security issues involved if you try to read files not in the same directory (or sub directories) of the Web or App server. And yes I am using Tomcat and having no issues with reading files under the conditions specified above. Good Luck, -Tony -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 9:35 AM To: Tomcat Users List Subject: APPLET using Text File ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am using TOMCAT in a Linux Machine, i have to develop a Applet, that have to access to a text file in the Linux Machine. It is possible? Thanks
Tomcat Caching Files?
Hi All, I changed a html file and noticed I am still getting the old html file intermittantly. I restarted Tomcat (4.1.18) and still have the older html pop up intermittantly. I deleted my content from the browser (i.e. 5.5) and even restarted my client machine where I was viewing the html remotely. Is there some cache in Tomcat I should/can clear out or perhaps I should check into my proxy server? Many Thanks, Tony
RE: JVM and Browser are crashing
Hi Christian, I did not read your previous messages. I am using a browser with applets and have had some success. Can I help somehow? I am testing using the following configuration: Client Side- 1st client config : I.E. 5.5 sp2, Browser jvm using Sun JRE 1.4.1_01-b01, Windows NT 4.0 SP6, CPU is P3 900MHz, 500MB RAM 2nd client config : I.E. 5.5 sp2, Sun Plug-in JRE 1.4.1_01-b01, Windows 2000, CPU is P3 900MHz, 500MB RAM 3nd client config : I.E. 5.5 sp2, Sun Plug-in JRE 1.3.1_06, Windows 98, CPU is AMD K6 1.1GHz, 500MB RAM Server Side - Tomcat 4.1.18, JVM 1.4.1_01-b01, Axis 1.0, Windows 2000 SP2, CPU is AMD K6 500MHz Notes: 1. On the server side applet is setup under the webapps directory of Tomcat. 2. So far for the three client configs #1 has been the biggest problem due to the size of the Axis Jar(s) and the fact I am going over the internet to get to the server that has a 384Kb connection. The other two clients (#2 #3) are on the same intranet as the server and the jar sizes for axis and it's support jars is not an issue. 3. I have had issues with JRE 1.4.1_01-b01 due to it does not redraw the JTree and JToolbar correctly so I am testing using 1.3.1_06. Also, JRE 1.4.1_01-b01 has a memory leak problem. I am hoping the JRE 1.4.1_02 or JRE 1.4.2 will fix those problems. 4. I get connect timeouts over the internet when using the browser. Id does load jars into plugin cache. Seems happen around the time of Axis 1.0 service class instantiation. 5. If you are using Axis 1.0 the service and call object instantiations take a while (~20 seconds for service and ~2.4 sec for call on intranet). I am still looking into those issues. 6. The RAM for the clients is big because it was cheap at the time of purchase. Hope that helps, Tony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:23 AM To: Tomcat Users List Subject: Re: JVM and Browser are crashing Do not worry. Thanks for your suggestions. If I find the problem I will let you know. If I could avoid to use applets I would. But this is really not possible and also the customer wants it like this. Well life is going on. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JVM Question
Hi All, Has anyone tried BEA JRockit with Tomcat? Does anyone know if Tomcat is certified with it? Many Thanks, Tony
RE: JVM Question
Hi Peter, Many thanks for that cliff hanger on Linux. From what I have heard JRockit is optimized for Windows environment so I would not be surprised if it is slower on Linux or Solaris. Many Thanks, Tony -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 10:48 AM To: Tomcat Users List Subject: Re: JVM Question remy recently posted a comment about jrockit on linux. for windows it is faster than sun and ibm VM. look for remy comment about jrockit on linux. it's good for a laugh, I won't spoil it for you. peter --- Anecito, Anthony (HQP) [EMAIL PROTECTED] wrote: Hi All, Has anyone tried BEA JRockit with Tomcat? Does anyone know if Tomcat is certified with it? Many Thanks, Tony __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Performance Concerns
Hi All, I am looking at Tomcat for production and seeing some things that make me question its use for production. I believe what Jakarta group is doing is a great thing for all of us looking for cheaper alternatives but there is may be a serious issue to using Tomcat. I have seen and now read concern about Tomcat's performance. I found an interesting tidbit in a newsgroup about Tomcat performance and a reference to some benchmarks. The benchmarks were done in 2001 and are out of date but even today I still hear of concerns regarding Tomcat performance and even my peers are saying it is a reference implementation only. The links are as follows: http://groups.google.com/groups?q=performance+vs+tomcat+weblogic+websphereh l=enlr=ie=UTF-8scoring=dselm=HOEFIONAHHKFEFENBMNOAEPPCBAA.rsanford%40nol imitsystems.comrnum=4 http://www.orionserver.com/benchmarks/benchmark.html If anyone knows of some more up to date information regarding this issue please let me know. I would really appreciate the feedback!
RE: Tomcat Performance Concerns
Hi Shapira, Many thanks for the reply. I agree with your list below but am looking for some simple benchmarks to start with. Also, a previous response to this posting by John Turner indicated a tuning book that may resolve some of the concerns by my peers about performance and I look forward to reading the book and trying some of its suggestions myself. Again, I am not trying cause a Holy War but just looking for some help. I really do believe in what is being done by Jakarta group but want to quell some rumblings by my peers. Many Thanks, Tony -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 10:09 AM To: Tomcat Users List Subject: RE: Tomcat Performance Concerns Howdy, Tomcat performance and a reference to some benchmarks. The benchmarks were done in 2001 and are out of date Very out of date. Referring to a previous (3.x) generation of Tomcat, which is much slower than the current (4.1.x) implementation. I haven't used Orion, but looking at their front page (http://www.orionserver.com/) I see a couple of things relevant to this discussion: - Current release of Orion is a full J2EE server. Tomcat isn't and doesn't try to be. - Current release of Orion supports the Servlet 2.2 (and the Public Draft) of Servlet 2.3 standards. That is too funny to even comment on. - Current release of Orion is $1500 per physical server for commercial use. Not Weblogic-level pricing at least ;) Their benchmark page (http://www.orionserver.com/benchmarks/benchmark.html) Claims One of the main goals for the Orion Application Server has been to outperform everything else on the market. Very nice goal. Why haven't they bothered to update their benchmarks in a long time? but even today I still hear of concerns regarding Tomcat performance and even my peers are saying it is a reference implementation only. Your peers are not up to date on this particular question. Tomcat is a reference implementation in the sense that it strives to implement the servlet and JSP specifications as closely and strictly as possible. However, it adds many features above and beyond the specification. And being a reference implementation does not necessarily mean a slow implementation. Like the Orion benchmark page says, and the several discussions per year we have on this list all conclude, it comes down to: - Establishing the required performance level for your application - Creating stress tests to simulate real stress - Running the stress tests with your application on various containers - Tweaking / tuning whatever possible - Repeat until satisfied. Personally, and I can't share the actual numbers due to legal restrictions in my company, we've benchmarked our app with extensive tuning on Orion, Resin, and Jetty and found Tomcat to be superior. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Performance Concerns
Peter, I also look forward to the book and have the same questions that Sean has. Also, 1. Will it cover Apache (i.e. clustering)? 2. JVM Tuning requirements for Tomcat or best JVM to use (i.e. IBM, JRocket)? 3. Performance monitoring using JMX? 4. Any recommended optimizations/patches that the OS should have for Tomcat Many Thanks, Tony -Original Message- From: Sean Dockery [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 3:40 PM To: Tomcat Users List Subject: Re: Tomcat Performance Concerns I look forward to getting a copy of your book. What will be the book's title? Who will be your publishing company? What is the scheduled release date? At 11:10 2003-02-06 -0800, you wrote: Most of this stuff is covered in the book with an example webapp and benchmarks to show the trade off in performance. peter lin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Urgent: Tomcat dies with socket exceptions !
Hi Sylvain, I do not know what the problem is but I discovered just recently that it helps to run Tomcat in a separate console (JVM) instance. I am operating under Win/NT and had the same error message when running Tomcat 4.1.18 as a service. My SOAP client which uses Axis when run was giving me disconnect errors. I turned off the launching of Tomcat as a Win/NT service and ran it in a cmd window and started getting meaningful error messages. The socket disconnect error would turn up in the cmd window as a later part of a trace but the actual cause was displayed at the very beginning of the trace. Hope it helps, -Tony -Original Message- From: Sylvain Beaumont [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 12:12 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Urgent: Tomcat dies with socket exceptions ! Hi, We developped a GIS server, in which a embedded Tomcat serves JSP / Servlet requests. Since we upgraded Tomcat 3.x with 4.1.x (currently 4.1.12), Tomcat dies with a SocketException. Here is the exception: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.d oWrite(InternalOutputBuffer.java:652) at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOu tputFilter.java:160) at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff er.java:523) at org.apache.coyote.Response.doWrite(Response.java:513) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java: 380) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:413) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:394) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.ja va:110) I started my server in debug mode (-debug + jdb) and I reproduce the problem twice. Here is the stack trace of a Tomcat thread trying to serve a page: [1] java.net.SocketInputStream.socketRead0 (native method) [2] java.net.SocketInputStream.read (SocketInputStream.java:129) [3] org.apache.coyote.http11.InternalInputBuffer.fill (InternalInputBuffer.java:767) [4] org.apache.coyote.http11.InternalInputBuffer.parseRequestLine (InternalInputBuffer.java:428) [5] org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:382) [6] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection (Http11Protocol.java:380) [7] org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:508) [8] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:533) [9] java.lang.Thread.run (Thread.java:536) Our demo server (Linux, 1.4.1), which in not under heavy loads ( 100 requests / day), hangs every week. It also happened on 3 development PC (Win XP, 1.4.1) after a couple of hours of tests. - It is not related to SSL problems reported lately - It doesn't seem to be related to database access: - it happened on simple JSP pages displaying live memory data (no DB access) - the same setup was working using Tomcat 3.x (not sure about 4.0.x) Any ideas / suggestions would be appreciated, thank you, Sylvain -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems with RMI and Axis in Tomcat??
Hi All, I am a newbe to Tomcat Axis but learned a lot over the past couple of evenings. I did solve the problem! I learned the following: 1. Do not trust the error messages coming back to the Axis Client. They are filtered such that the root cause may not be displayed. 2. Launch Tomcat in a separate console window instead of as a service under Win/NT so you can see the entire trace of exceptions. This is what helped me A LOT. 3. If using rmi from inside a Axis service be very careful since the demarshaling of objects at the client will fail with malformed URL because of the space in the folder name Tomcat 4.1. 4. RMI failures inside a Axis service will cause Tomcat to crash and you will not know it because you get the same socket disconnect error regardless of the true problem. 5. Always make sure the RMI classes for both client and server are the same package structure otherwise the registry will not send the classes to the client or server. In Tomcat the Axis service will throw the exception in the cmd window. Hopefully I will not lose more time now that I have a working methodology for troubleshooting these interesting problems. Hope this message helps others. -Tony Hi All, Has anyone tried using rmi calls inside of a Axis service on Tomcat? Using Tomcat 4.1.12 on Windows NT. I get errors about access permissions at 127.0.0.1:1099 showing up in the stdout log file in the common/logs directory. I have set permissions on my dev machine for tomcat in catalina.policy to allow for all permissions. Am I the first to try rmi calls (client-side) inside a Axis service?? Many Thanks
Problems with RMI and Axis in Tomcat??
Hi All, Has anyone tried using rmi calls inside of a Axis service on Tomcat? Using Tomcat 4.1.12 on Windows NT. I get errors about access permissions at 127.0.0.1:1099 showing up in the stdout log file in the common/logs directory. I have set permissions on my dev machine for tomcat in catalina.policy to allow for all permissions. Am I the first to try rmi calls (client-side) inside a Axis service?? Many Thanks