RE: is this a bug ?

2002-10-18 Thread Shapira, Yoav
Hi, There should have been a root cause and another stack trace attached to that message... Yoav Shapira Millennium ChemInformatics -Original Message- From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com] Sent: Thursday, October 17, 2002 10:15 AM To: [EMAIL PROTECTED] Subject:

RE: is this a bug ?

2002-10-18 Thread Shapira, Yoav
Hi, Can I use the jdk1.3.1 with Tomcat4 or not ? Yes. Download the heavier, non -LE-jdk14 version. If you want to use tomcat 4 with JDK 1.4+, download the lighter, -LE-jdk14 version. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business

RE: Subclassing the Session object

2002-10-18 Thread Shapira, Yoav
Hi, I don't know the direct answer to your question. But I'm curious as to the use-case that's requiring you to subclass HttpSession. As opposed to, for example, binding your (Serializable) objects to the session? Thanks, Yoav Shapira Millennium ChemInformatics -Original Message-

RE: Log Tomcat 4.1 - OK

2002-10-18 Thread Shapira, Yoav
Hi, I disturb you again... :-) It doesn't disturb me ;) Like everyone else on the list, I answer if a I feel like it, have time, am interested in the topic, or any combination of those factors ;) How i write in another file? For example, in my log app (myapp_log). Do i put the entry valve.../

RE: symlinks in WEB-INF/lib directory

2002-10-18 Thread Shapira, Yoav
Hi, I want to use symlinks for all my jar files in the WEB-INF/lib directory of my webapp. Tomcat can't handle those symlinks. That's not part of the specification. In fact, all tomcat's required to handle is a WAR file containing your entire webapp. That tomcat allows you to deploy an

RE: Out of memory errors

2002-10-18 Thread Shapira, Yoav
Hi, I'me sure this one has been done to death but does anyone have any guidelines on the settings of -Xms and -Xmx ($CATLINA_OPTS), or how to derive the optimal setting for these ? Yes, it has been asked many times. That's because everyone seems to think there's a magical guideline

RE: Tomcat crashes with special URL

2002-10-18 Thread Shapira, Yoav
Hi, Sweet error. A couple of things to check: - Does your server have the proper OS patches for JDK 1.4? - Have you tried JDK 1.4.1 (with the patches)? - What's this kyudo module, and is there a newer version of it? Have you contacted the vendor / author of kyudo to ask about this error? Yoav

RE: is this a bug ?

2002-10-18 Thread Shapira, Yoav
, Compiled Code) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject

RE: serverName_access_log too cryptic

2002-10-21 Thread Shapira, Yoav
Hi, $CATALINA_HOME/logs/cacophonix_access_log.date has this consistent message : 192.168.100.8 -- [date/time stamp] POST saysit/servlet/RemotedemoServer HTTP/1.1 500 3919 This is standard ACCESS log format. It's sometimes useful for debugging, too. I wouldn't call this cryptic at all ;) It's

[OFF-TOPIC] - RE: How to capture the ROOT cause of EXCEPTION

2002-10-21 Thread Shapira, Yoav
Hi, Did you try: try { ... do something... } catch(Exception e) { Throwable cause = e.getCause(); ... do whatever you want with the cause ... } By the way, as this is not a tomcat question, please either post somewhere appropriate (comp.lang.java.help for example), or at least add

RE: ARG! catalina.out suddently grows to 6mb at server start

2002-10-24 Thread Shapira, Yoav
Hi, Are any of the debug=n in your $CATALINA_HOME/conf/server.xml set to something other than debug=0. What you quoted looked like tomcat internal debugging output. Yoav Shapira Millennium ChemInformatics -Original Message- From: Carson, Chuck [mailto:Chuck.Carson;syrrx.com] Sent:

RE: configuring access and event logging in Tomcat 4.0

2002-10-24 Thread Shapira, Yoav
Hi, I am using my own logger(logger.jar file used in many projects , in fact) to log the different types of events[in the servlets and Java beans that I have used.]. However , somehow my logger does not write logs although it creates the log file every day(my logger rotates daily.) Since

RE: Java Logger problem with Tomcat4 web apps on Unix platforms...

2002-10-24 Thread Shapira, Yoav
Hi, On Unix platforms, the log file doesn't get created, though the application using Logger objects does not throw any exceptions. However, the same code works on other platforms like WinXP. Perhaps a permissions problem on the directory where the file is supposed to get created? Does the

RE: Logging - howto ?

2002-10-24 Thread Shapira, Yoav
Hi, Where can I find info about setting different logging options for Tomcat 4.1.12 ? Did you try the tomcat docs? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html Or for a complete external logging system, my fav is log4j: http://jakarta.apache.org/log4j Yoav Shapira

RE: Oracle connection pooling

2002-10-24 Thread Shapira, Yoav
Hi, parameter namemaxActive/name value5/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name

RE: Tomcat's connection pooling

2002-10-24 Thread Shapira, Yoav
Hi, One of the main points of connection pooling is to bound the number of connections you have. It's a bad design to define a connection pool that doesn't meet expected loads. If you know your app will need 10 connections concurrently, define 10 as maxActive. Don't define 5 and ask it to

RE: urgent:::Pls :Tomcat not working

2002-10-24 Thread Shapira, Yoav
Hi, Did you try starting tomcat without Apache, making sure you can see the tomcat home page and run the examples? It's often a good idea to verify the various components work well individually before trying them together ;) Yoav Shapira Millennium ChemInformatics -Original Message-

RE: YOAV: Tomcat's connection pooling

2002-10-24 Thread Shapira, Yoav
Hi, Please don't mention names in messages ;) There are a ton of people on this list who are at least as qualified as I am to answer any question... I have coded my own Oracle connection pool which which sets up a pool of physical db connections. A servlet or a thread can request a connection

RE: Tomcat Scalability - Long

2002-10-24 Thread Shapira, Yoav
Hi, Does anyone have any solid information about the scalability of Tomcat? It seems very limiting to me, but that is hopefully due to improper What are you looking for by solid information? ;) Here are some details about one of our environments: An 18-CPU Sun Ultra Enterprise-class server,

RE: Help Needed to configure servlets

2002-10-25 Thread Shapira, Yoav
Hi, webapps --- AppDir - JSP file --- Web-inf - web.xml file -- classes - My Servlet Class files http://localhost:port/AppDir/Servletclass In the above configuration, if you have the invoker servlet mapping enabled

RE: Oracle connection pooling

2002-10-25 Thread Shapira, Yoav
Hi, Did you mean setting maxWait to 0 ? No. I meant that setting maxActive to 5, maxIdle to 3, and maxWait to -1 does not mean there will be 3 connections on startup. It's up to the connection pool implementation to decide if it wants to pre-create the connections on startup, or not. Some

4.1.x In Production [Was: Re: Tomcat Scalability - Long]

2002-10-25 Thread Shapira, Yoav
Hi, I would say Tomcat 4.1.x probably would be good for you mainly if you uses lots of Taglibs, if they actually will work on it. Btw, I'm still using 4.0.x... how everybody is doing with 4.1.x? I heard is too much buggy for production right now. We're using 4.1.10-LE and 4.1.12-LE in

RE: Virtual Hosts

2002-10-25 Thread Shapira, Yoav
Hi, What exactly would I set that to? Depends on what you want to accomplish. We typically leave it as webapps and specify different (absolute) docBases for individual webapps as necessary. If you have several webapps under the same location, you can change just the appBase to point to that

RE: Servlet running/not running

2002-10-25 Thread Shapira, Yoav
Hi, I have installed Tomcat 4.1.12. I have this directory structure for a servlet. C:\Tomcat\webapps\myApp\WEB-INF\classes and the servlet name is test. OK. When I try to see this servlet by http://localhost:8080/myApp/servlet/test, I get this; The requested resource (/myApp/servlet/test) is not

RE: Retrieving info from conf/server.xml

2002-10-28 Thread Shapira, Yoav
Hi, You'll have to search for and parse the file yourself. Web applications are supposed to be self-contained, and being able to access things like the server's configuration would be a very big security risk. It's (almost always) bad design for an application to look for an do stuff from its

RE: start new thread from servlet?

2002-10-28 Thread Shapira, Yoav
Hi, Thread.join() can be very interesting and have non-obvious behavior in a servlet. Here's a simple alternative design: public class MyReportJob implements Runnable { private boolean done = false; ... public void run() { ... do work ... done = true; } public boolean

RE: where to set CATALINA_OPTS?

2002-10-28 Thread Shapira, Yoav
Hi, $CATALINA_HOME/bin/catalina.sh is one good place. Setting it as a user environment variable will probably just lead you to confusion and, eventually, anger ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Peng Annie [mailto:Annie.Peng;KONE.com] Sent: Monday,

RE: Anyone running 4.1.12 with SDK 1.4.1 on Solaris 7?

2002-10-28 Thread Shapira, Yoav
Hi, We're running 4.1.12-LE, JDK 1.4.1, Solaris 8. Vanilla install, no problems. Don't forget to install the Sun Solaris OS patches for JDK 1.4.1. Yoav Shapira Millennium ChemInformatics -Original Message- From: Madere, Colin [mailto:colin.madere;ieminc.com] Sent: Monday, October 28,

RE: Anyone running 4.1.12 with SDK 1.4.1 on Solaris 7?

2002-10-28 Thread Shapira, Yoav
with SDK 1.4.1 on Solaris 7? Yoav, Is there a patch for Solaris 7 or just Solaris 8? If there's one for Solaris 7 could you point me to it... going in circles on Sun's site and the search is giving a server error :( Colin -Original Message- From:Shapira, Yoav [SMTP:[EMAIL

RE: where to set CATALINA_OPTS?

2002-10-28 Thread Shapira, Yoav
Hi, Yoav is using a windows machine, I believe, so $CATALINA_HOME/bin/catalina.sh is not available. Most -OPTS can be set in the workers2.properties file if you are using mod_jk2. Actually I'm using Solaris and Linux machines ;) But your point is still valid. I use tomcat-standalone and it

RE: Servlets deployment directory location

2002-10-28 Thread Shapira, Yoav
Hi, The WEB-INF/classes and WEB-INF/lib directories are where you can deploy servlets and other compiled Java things for your web application. This is not a tomcat-specific structure, it's part of the Servlet Specification. And it hasn't changed from tomcat 4.0 to 4.1. However, some other

RE: [urgent]Help pleeeeez--context problem--logfiles attached

2002-10-29 Thread Shapira, Yoav
Hi, Without looking at your files, what happens if you don't add your context to the server.xml? What non-default context properties are you using? It would be helpful if you could post only the relevant portions of your configuration, i.e. just your Context entry. A lot of people, including

RE: Tomcat losing connection capabilities/not being able to shutdown

2002-10-29 Thread Shapira, Yoav
Hi, able to access MySQL databases from other servers with the servlets that I've programmed. However, after a time, it cannot seem to connect to the Are there any error messages? databases through servlets, yet when I run Java standalone equivalents of the servlets, they connect to the

RE: tools to monitor a tomcat application

2002-10-29 Thread Shapira, Yoav
Hi, Try radar... http://radar.sourceforge.net/ Is Radar still in active development? It says on their site they support Tomcat 3.2, which is old. Whether they are or not in active development, perhaps the folks who helped with Radar could put up their hands and help with the tomcat admin

RE: tomcat speed

2002-10-30 Thread Shapira, Yoav
Hi, the server.xml looks fine... will chk it out again slowly...(wud also appreciate more suggestion..:)) Also check any of your webapps for things that load on startup, i.e. listeners, filters, and load-on-startup servlets. All these init() and contextInitialized() methods will be called on

RE: Tomcat 4.1.x not allowing symlinks for static content.

2002-10-30 Thread Shapira, Yoav
Hi, Other people have run into this. The allowLinking attribute goes inside the Context element. For example, from someone's else's server.xml: Context path=/myapp docBase=myapp debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger

RE: Tomcat Hangs and cannot be shut down

2002-10-31 Thread Shapira, Yoav
Hi, It's very likely your app has an infinite loop or a thread lock somewhere. Check that very carefully. Tomcat, from time to time, starts processing and locks into some loop or Can you reproduce this reliably? This happens for a while and then when the session is terminated, I believe, then

RE: problem with first servlet

2002-10-31 Thread Shapira, Yoav
Hi, What version of tomcat are you using? If you're using 4.1.12, make sure the invoker servlet mapping the tomcat_home/conf/web.xml file is uncommented. The invoker servlet in that release is disabled by default due to a security-related bug. See the release notes for details. Yoav Shapira

RE: logging

2002-10-31 Thread Shapira, Yoav
Hi, You can turn off the access logging by commenting out the AccessLogValve in server.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Pearsall, Kyle [mailto:Kyle.Pearsall;cda.canon.com] Sent: Thursday, October 31, 2002 4:39 PM To: Tomcat Users List Subject: RE:

RE: How to allocate memory to JVM

2002-10-31 Thread Shapira, Yoav
Hi, Edit $CATALINA_HOME/bin/catalina.sh to have JAVA_OPTS include -Xmx. For example, to allow a 512MB heap, add -Xmx512m to your JAVA_OPTS. Full details can be found in the VM options page at: http://java.sun.com/docs/hotspot/VMOptions.html By the way, searching the list archives for this

RE: logging

2002-10-31 Thread Shapira, Yoav
to stderr.log and stdout.log? Thanks, Kyle P. -Original Message- From: Shapira, Yoav [mailto:Yoav.Shapira;mpi.com] Sent: Thursday, October 31, 2002 1:41 PM To: Tomcat Users List Subject: RE: logging Hi, You can turn off the access logging by commenting out the AccessLogValve in server.xml

RE: [4.1.12] Why is JNDI Tree readonly?

2002-11-01 Thread Shapira, Yoav
Hi, If you want a read-write JNDI context, you have to create your own. You can't use tomcat's build-in comp/env context. Furthermore, it's your responsibility to persist it. For more information, see http://java.sun.com/products/jndi/tutorial/objects/storing/index.html Yoav Shapira

RE: Log rotation in Tomcat 4.1.12

2002-11-01 Thread Shapira, Yoav
Hi, It's not a problem for us. But here's an idea, if you're hell-bent on having monthly files instead of daily ones: cat them all together ;) So on the last day of a given month, cat all the files from that month (e.g. cat catalina_log.2002-[month]-*.txt Catalina_log.2002-month.txt) into one

RE: setting up a servlet.

2002-11-01 Thread Shapira, Yoav
Hi, Can anyone can help me in getting the servlet running? Probably ;) What problems are you running into? How do you know tomcat 4.x is running great? Make sure all the examples work. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business

RE: Off-Topic: Runtime

2002-11-01 Thread Shapira, Yoav
Hi, p.waitFor(); Yoav Shapira Millennium ChemInformatics -Original Message- From: Lindomar [mailto:lindomar.silva;bol.com.br] Sent: Friday, November 01, 2002 1:56 PM To: Tomcat Users List Subject: Off-Topic: Runtime Hi everybody!! Sorry, because i ask this question to you. But i have

RE: Tomcat bug - chokes on # when redirecting

2002-11-05 Thread Shapira, Yoav
Hi, This is the most obscure bug I have ever seen: OK ;) Wait a while ;) If you use the redirect from IE6, Tomcat displays foo bar#123 rather than the expected foo bar. If you hit refresh at the new URL, Tomcat gets foo bar right. When this experiment is tried from Mozilla, Tomcat works

RE: Logging UserAgent (browser)

2002-11-06 Thread Shapira, Yoav
Hi, What version of tomcat are you using? In 4.x, changing the pattern from common to combined is all you need to do. Yoav Shapira Millennium ChemInformatics -Original Message- From: neal [mailto:nealcabage;yahoo.com] Sent: Thursday, November 07, 2002 1:44 AM To: Tomcat Users List

RE: Logging UserAgent (browser)

2002-11-06 Thread Shapira, Yoav
Hi, I it worked. Cool, thanks. Something I noticed though ... while the logging of Netscape-related agents is rpetty good, the Micrsoft IE browsers are logged very vaguely. For instance, MSIE 6.0 is logged as Mozill 3.1 Compatible. Any way to change this? No, this is a client-side setting.

RE: USing JAVA_OPTS -Xmx

2002-11-06 Thread Shapira, Yoav
Hi, Scary. All you have to do is add one line at the top of the file: JAVA_OPTS='-Xmx256m' Don't mess with the individual targets, like start, run, stop, etc. And be careful specifying these properties: -Xmx255mB != -Xmx256M != -Xmx256m. Yoav Shapira Millennium ChemInformatics -Original

RE: USing JAVA_OPTS -Xmx

2002-11-07 Thread Shapira, Yoav
Howdy, It is so difficult to scale this. using vmstat, I can see my free memory shrinking and shrinking . It is really a case of suck and see. The free memory will keep going down until the VM feels it has to garbage-collect. You can tune this behavior using other non-standard options, for

RE: Why does Tomcat not set HTTP_Referer?

2002-11-07 Thread Shapira, Yoav
Hi, You're wrong ;) From RFC 2616, the HTTP specification, section 14.36: 14.36 Referer The Referer[sic] request-header field allows the client to specify, for the server's benefit snip Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED]

RE: Using -Xmx128m cause BindException Error ???

2002-11-07 Thread Shapira, Yoav
Howdy, Your error is in putting JAVA_OPTS in the wrong place. They shouldn't be inside any of the commands in Catalina.sh, e.g. start / run / stop. Post your whole Catalina.sh... Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED]

RE: Using -Xmx128m cause BindException Error ???

2002-11-07 Thread Shapira, Yoav
ChemInformatics - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 07, 2002 01:56 PM Subject: RE: Using -Xmx128m cause BindException Error ??? Howdy, Your error is in putting JAVA_OPTS in the wrong place. They shouldn't

RE: Stuck, frustrated and in desperate need of help....

2002-11-07 Thread Shapira, Yoav
Howdy, A couple of things you could try: - First get it to start vanilla, not automatically, and make sure everything works. Then at least you know the tomcat setup is OK and its your boot script that needs work. - Once the vanilla, manual startup installation works well, comment out or remove

RE: Tomcat4 performance tuning documentation.

2002-11-08 Thread Shapira, Yoav
Hi, If there is such documentation, be very very careful about what you get out of it. Performance tuning will always be specific to your own apps. You need to figure out your goals (i.e. what level of performance is desired, acceptable). Then create tests to simulate the expected loads on your

RE: servlet as the default file

2002-11-08 Thread Shapira, Yoav
Hi, You can't right now. You will be able to once the servlet specification version 2.4 is out, and a supporting container (e.g. Tomcat 5.x) is available. For now, you have to do various workarounds, for example an HTML page with a meta http-equiv redirection to your servlet. Yoav Shapira

RE: how to exclude a jar from being deployed

2002-11-12 Thread Shapira, Yoav
Hi, Per the servlet specification, if a jar is in WEB-INF/lib it must be available to the classloader, i.e. deployed. If you don't want it deployed, don't put it there. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Etienne Deleflie

RE: ServletContextListener::Initial paramters

2002-11-12 Thread Shapira, Yoav
Hi, That's what context-parameters are for. Use context-param. Yoav Shapira Millennium ChemInformatics -Original Message- From: Reynir Hübner [mailto:reynir;hugsmidjan.is] Sent: Tuesday, November 12, 2002 8:42 AM To: Tomcat Users List Subject: ServletContextListener::Initial paramters

RE: ServletContextListener::Initial paramters

2002-11-12 Thread Shapira, Yoav
Hi, context-param's ARE set in web.xml ;) You're not correct when saying they must be specified in server.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Reynir Hübner [mailto:reynir;hugsmidjan.is] Sent: Tuesday, November 12, 2002 8:59 AM To: Tomcat Users List

RE: Unexpected results for minProcessors setting

2002-11-18 Thread Shapira, Yoav
Hi, I'm pretty sure, looking at the code, that the threads are pre-created and initialized, but not run. So they won't show up until needed, that is, until requests come in. Did you try this with a full load test and the threads still didn't show? Also, how are you checking? Yoav Shapira

RE: welcome-file-list

2002-11-18 Thread Shapira, Yoav
Hi, Searching the archives would've yielded many answers to this question. Not directly. You can have a JSP, which is compiled into a servlet. Or you can have a JSP or plain HTML page which redirect to a servlet. The next servlet specification, v2.4, which is getting very close to final, will

RE: welcome-file-list

2002-11-18 Thread Shapira, Yoav
Hi, That's not a bad initial design. A better alternative would be to have an Authentication filter (mapped to /*), a monitor filter (mapped to /*), and your servlet mapped to /ServletMappedName. That'll make things a lot simpler, decoupled, robust, etc. Yoav Shapira Millennium ChemInformatics

RE: welcome-file-list

2002-11-18 Thread Shapira, Yoav
Hi, ok...bear with my skill level here...you're suggesting the Authentication filter and monitor filter would be separate servlets? Then when the user No. I'm suggesting they be proper filters, per the servlet spec v2.3. Specifically, you'd have two things that implement javax.servlet.filter:

RE: welcome-file-list

2002-11-18 Thread Shapira, Yoav
Howdy, What do you think the learning curve is on using filters and would it be The learning curve for these types of filters (authenticators, loggers) is short and not steep. This is a good place to start: http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html worth the effort

RE: access to servlets

2002-11-19 Thread Shapira, Yoav
Hi, Disable the invoker servlet mapping in the main web.xml (conf/web.xml). Yoav Shapira Millennium ChemInformatics -Original Message- From: Oded Hasidi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 8:49 AM To: [EMAIL PROTECTED] Subject: access to servlets How can I

RE: init parameters acces

2002-11-21 Thread Shapira, Yoav
Hi, Check the tomcat logs on startup: if you posted your entire web.xml, then your web.xml is incomplete and you'll see errors in the tomcat logs. Furthermore, as a matter of good design, don't override init(ServletConfig config). Override init() instead. That way you don't have to call

RE: proper use of servlet contexts

2002-11-21 Thread Shapira, Yoav
Hi, A couple of suggestions. Basically, we develop all of our applications under contexts. Each one a separate context. When they go live, they go to the default context so users don't have to request everything with /context/blah. This means that if Don't do this. Deploy them to their own

RE: Tomcat 4.1.12 ArrayIndexOutOfBoundsException in InternalOutputBuffer.write()

2002-11-21 Thread Shapira, Yoav
Hi, I had the EXACT same thing happen. A temporary solution, applied in 4.1.14-LE, was to increase the buffer size to 48K. But I've yet to test this, and I suspect it's not the perfect solution. Yoav Shapira Millennium ChemInformatics -Original Message- From: Neil Milne [mailto:[EMAIL

JMS / InitialContext question

2002-11-21 Thread Shapira, Yoav
Hi, Using tomcat's built-in JNDI support, and placing the JMS distribution (jms.jar from java.sun.com) in my WEB-INF/lib directory, I should be able to send a JMS message to a queue on a remote server, right? The remote server is a full server (weblogic) with a JMS implementation of its own. I

RE: The major.minor version '48.0' is too recent for this tool to understand.

2002-11-21 Thread Shapira, Yoav
Hi, The tomcat is 3.3a, the jdk is 1.4.1_01. I know that this error can occur if you are trying to use an old jdk with a jar (or rt.jar in particular) from a newer jdk. I wiped my box clean, installed only the 1.4.1_01 JRE, wiped the java.exe from winnt/system. Checked the system, no other

RE: The major.minor version '48.0' is too recent for this tool to understand.

2002-11-21 Thread Shapira, Yoav
Hi, This may sound silly, but why? It was working just fine with a 1.3 jre, I believe, and it does have its own tools.jar. I didn't think the JRE has its own tools.jar. The JDK includes javac, which the JRE doesn't. javac is required (unless you're using Jikes or some other setup) for

RE: Negatives to reloadable=true

2002-11-21 Thread Shapira, Yoav
Hi, Yes. Significant performance implications can be assumed. Don't set reloadable=true in a production server. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:45 AM To: Tomcat Users List

RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Shapira, Yoav
Hi, Where do the org.jnp classes come from? Thanks, Yoav Shapira Millennium ChemInformatics -Original Message- From: Becker, Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 9:35 AM To: Tomcat Users List Subject: RE: Tomcat with external JBoss (JNDI problems)... This

RE: Sun JDK 1.4 production quality?

2002-11-22 Thread Shapira, Yoav
Hi, It's good. Stability is the same as before, it seems. Speed has improved. GC has markedly improved, although we did have to experiment a bit with the new GC options. Our busiest system takes roughly 7000 hits a day, so not as busy as you, but not idle either ;) Yoav Shapira Millennium

RE: Displaying servlets and its memory usage

2002-11-25 Thread Shapira, Yoav
Hi, OptimizeIt 5.0, the newest, claims to be able to display this sort of thing, if your servlets are each a different class, which is normally the case. But keep in mind all you'll see, with any of today's tools that I know of, is the memory usage of the servlet instance itself, not including

RE: JDK is not enough. SDK is needed

2002-11-25 Thread Shapira, Yoav
Howdy, Whoa there skippy ;) Venting is good sometimes... According to this page, it references j2se which is the JRE, the runtime. If you're using Tomcat binaries and not compiling any Java, you would think you only need the runtime libraries and not the whole SDK.

RE: JavaMail problems on Tomcat4.0.6

2002-11-25 Thread Shapira, Yoav
Hi, So you didn't get any errors with 4.0.3 and now are getting them with 4.0.6? Would you be willing to try 4.0.6-LE and JDK 1.4.1? Minute 1: Default user is logged into mail server. See that messages are waiting. Attempt to invoke second sevlet. Exception is thrown:

RE: Sun JDK 1.4 production quality?

2002-11-25 Thread Shapira, Yoav
-Original Message- From: Nick Wesselman [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 4:28 PM To: Tomcat Users List Subject: Re: Sun JDK 1.4 production quality? On Friday, November 22, 2002, at 11:33 AM, Shapira, Yoav wrote: GC has markedly improved, although we did have

RE: Tomcat or JBoss?

2002-11-25 Thread Shapira, Yoav
Howdy, A couple of comments: 1. JBoss uses (or can use) Tomcat as its servlet/JSP container. We've used this setup in the past and like it. 2. If you need EJB support, or other J2EE features not offered by tomcat stand-alone, JBoss would be a good way to go. 3. While the initial thought behind

RE: Tomcat or JBoss?

2002-11-25 Thread Shapira, Yoav
Hi, If they are overkill for webapps, what sorts of situations would benefit from them? flame-bait NEVER http://www.softwarereality.com/programming/ejb/index.jsp /flame-bait (Just kidding) ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

RE: Tomcat 4.1.12 Logs??

2002-11-26 Thread Shapira, Yoav
Hi, In 4.1.x the AccessLogValve in server.xml is commented out by default. Comment it in if you'd like those access logs. You can also move it under a specific Context element to only log accesses to that Context. Yoav Shapira Millennium ChemInformatics -Original Message- From:

RE: Tomcat 4.1.12 Logs??

2002-11-26 Thread Shapira, Yoav
of the data being sent out. Sam is the case for request URI. I get html data instead of request details. Could it be another misconfiguration? Prashanth --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, In 4.1.x the AccessLogValve in server.xml is commented out by default. Comment it in if you'd

RE: Response.ContentType - not always setting contentType in Header

2002-11-26 Thread Shapira, Yoav
Howdy, I've notice that in a filter I have that the content length is sometimes zero. This never happens the first time a browser requests a particular page but will happen each time after that if the user hits reload. The browser just seems to reload from its own cache. The browser sends the

RE: Apache Tomcat 4.1 and RMI

2002-11-27 Thread Shapira, Yoav
Howdy, have a servlet which serves up a page that contains an applet. Tomcat 4.1 is my application server and I have it installed on my machine Terminology caution: usually application server refers to a J2EE (or .Not) server. Most people prefer to call tomcat a servlet/JSP container. A

RE: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Shapira, Yoav
Hi, java.lang.ArrayIndexOutOfBoundsException at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja snip The exception can be ignored (it might happen only in the case of a client disconnect, so at this point, what happens doesn't really matter anymore; this

RE: JDK is not enough. SDK is needed

2002-11-27 Thread Shapira, Yoav
Howdy, The very reason there are so many users how to's up on the web, and being used, tells you that the web site for Jakarta is poorly planned. You I disagree with that interpretation. It means the web site doesn't have all the information people want, that the documentation isn't as

RE: Search engine for the tomcat-user mailing list

2002-11-27 Thread Shapira, Yoav
Hi, My fav is AIMS, http://marc.theaimsgroup.com/?w=2 Yoav Shapira Millennium ChemInformatics -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 8:29 AM To: tomcat-user Subject: Search engine for the tomcat-user mailing list Hello

RE: servlet compilation

2002-11-27 Thread Shapira, Yoav
Howdy, That's strange. As a matter of practice, I would not install tomcat, or have on my classpath, any directory with a space in it, e.g. c:\...\tomcat 4.1\ It's been a long time since I compiled on the command-line, not using Ant or another tool, especially on windows. Did you try using

RE: How do I integrate my CLASSPATH on Tomcat?

2002-11-27 Thread Shapira, Yoav
Howdy, I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Put everything on your classpath (that's not already in tomcat's common/lib directory) in your webapp's /WEB-INF/lib directory. You may want to read:

RE: How do I integrate my CLASSPATH on Tomcat?

2002-11-27 Thread Shapira, Yoav
Howdy, Use a script or TC catalina script to include your CLASSPATH. While this may be simpler, it violates the spirit of the design of tomcat's classloader. In the long run, this will only lead to more problems. The app will be less container-independent, and less portable. I really think

RE: How do I integrate my CLASSPATH on Tomcat?

2002-11-27 Thread Shapira, Yoav
Howdy, What's the recommendation for Oracle JDBC drivers? Everyone I know turns the .zip into a jar (there's a reason the newer drivers are distributed as ojdbc14.jar, not ojdbc14.zip) and puts in their /WEB-INF/lib directory. That's because everyone I know wants their app to be

RE: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Shapira, Yoav
Howdy, You can do this in your app's web.xml: context-param param-namebaseDir/param-name param-value/foo/bar/param-value /context-param And then in your servlet: String baseDir = getServletContext().getInitParameter(baseDir); If iPlanet 4 has a feature tomcat doesn't, I'd be amazed. If it

RE: How do I integrate my CLASSPATH on Tomcat?

2002-11-27 Thread Shapira, Yoav
Howdy, I won't comment on the personal attack parts, although they are amusing. ;) I'm wondering how I should do to make tomcat use the paths that are in my CLASSPATH? Does it say or imply to move JARs or packages to a specific location? The question was simple and the my reply included a simple

RE: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Shapira, Yoav
Howdy, Lovely, that's the sort of mechanism I was looking for - is it portable between servlet containers though? For the record, the load-on-startup hack works pretty well. Cheers. Yes, it's portable. The ServletContextListener is part of the SRV 2.3 spec. Yoav Shapira Millennium

RE: error while running servlet undet tomcat in Linux Red Hat

2002-12-02 Thread Shapira, Yoav
Howdy, How many servlet.jar files do you have loaded? ;) You probably have an extra one somewhere, e.g. in your /WEB-INF/lib. You should remove those, and only keep the one that comes with tomcat. Moreover, it looks like your extra servlet.jar file is v2.2 (or maybe older)... Yoav Shapira

RE: how to set server.xml to show all info on Tomcat Server?

2002-12-02 Thread Shapira, Yoav
Hi, Do you mean log more verbosely? You can set debug=99 wherever debug=0 in server.xml and check you logs. You can enable the RequestDumper and AccessLog valves as well. If you mean to expose server.xml to webapps, you probably don't really want to do this ;) So please clarify your question

RE: multiple execution of a 'load-on-startup'

2002-12-02 Thread Shapira, Yoav
Hi, A couple of things: - Please post your log4j config. If you look in that list, you'll see a lot of why am I getting [n] copies of my logging statements questions. This is because all log4j loggers are additive by default, so if you define n appenders at a level matching your logger, you'll

RE: Tomcat classloads

2002-12-02 Thread Shapira, Yoav
Hi, I am wondering if there is any short-cut into seeing how much memory each webapp in tomcat is taking at runtime ? I know it's possible to wrap the classloader object for webapplications, and make it count the numbers of objects instanciated, aproxiate the memory taken by each object by

RE: Why does Tomcat not set HTTP_Referer?

2002-12-02 Thread Shapira, Yoav
Howdy, Please refer to RFC 2616, section 14.36, for an explanation of the referrer (misspelled) header. It is not set by the server, e.g. tomcat in your case. It is set by the client, probably a browser in your case (but could be a cell phone, mock objects, whatever). There are known bugs in

RE: Access denied... to /tmp !?

2002-12-02 Thread Shapira, Yoav
Howdy, Mr. Arcand already answered, but I wanted to add something: you can use the directory indicated by context property javax.servlet.context.tempdir as your temporary directory, rather than hard-coding /tmp. See the servlet spec, section 3.7.1, for details. Yoav Shapira Millennium

  1   2   3   4   5   6   7   8   9   10   >