RE: Merging Multiple Web Apps

2003-06-03 Thread Shapira, Yoav
Howdy, I have two webapps running under different contexts. They are both fairly large and reference their context within the coding. Is there any way I can setup an alias for each of the old apps and point them both at a new context? What would the ideal solution be for you? You can always

RE: issues with war file deployment

2003-06-03 Thread Shapira, Yoav
Howdy, True to the reference my war file does not expand. But I am having a problem when using servlet.getServletContext().getRealPath( / ) in one of my startup servlets. This is returning null and so the app fails to load. Is there a way to solve this? Don't use

RE: How to display debug messages in English

2003-06-03 Thread Shapira, Yoav
Howdy, Maybe -Dfile.encoding=EN-US (or whatever the appropriate value is) in the java runtime arguments? Yoav Shapira Millennium ChemInformatics -Original Message- From: Julien Martin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 3:56 PM To: [EMAIL PROTECTED] Subject: How to

RE: -Xincgc, -Xms600, -Xmx600

2003-06-03 Thread Shapira, Yoav
Howdy, I assume that I would just add -verbose:gc to my registry as another option? Just like any other java runtime option. Unfortunatly I think I know where the source of my problem lie, one of the most just applications is writting pretty bad and doesn't ever close database connections,

RE: Issues with web.xml

2003-06-03 Thread Shapira, Yoav
Howdy, Check the tomcat logs: most likely it's telling you it failed to parse your web.xml (the one with the HelloWorld servlet) due to wrong element order. Yoav Shapira Millennium ChemInformatics -Original Message- From: Robert Seeger [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03,

RE: maxThreads Settingd

2003-06-03 Thread Shapira, Yoav
Howdy, Max threads for what? Request processor threads are controllable via minProcessors and maxProcessors in the HTTP/1.1 connector element. Yoav Shapira Millennium ChemInformatics -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 9:22 PM To:

RE: moving from Jrun to Tomcat

2003-06-03 Thread Shapira, Yoav
Howdy, I would add that you can try running your app on tomcat standalone first. Depending on your performance and other requirements, this may be sufficient. Then your overall configuration will be much simpler. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jason

RE: Is it safe to use Runtime.exec() from within a JSP

2003-06-03 Thread Shapira, Yoav
Howdy, Define safely ;) What attacks did you have in mind? If you're going to tie the Process streams from Runtime.exec to your JSP's streams, that's a potential risk. There are several others. Keep in mind that your JSP is supposed to serve a request, not be some long-running interactive

RE: Tomcat classpath issues.

2003-06-03 Thread Shapira, Yoav
Howdy, This comes up all the time. If I had a bit of money for every time I've explained the difference between a ClassNotFoundException and a NoClassDefFoundError... Search the archives on this issue. Furthermore, there are postings to the effect of the weblogic.jar is a giant piece of kludge

RE: -Xincgc, -Xms600, -Xmx600

2003-06-04 Thread Shapira, Yoav
Howdy, Sure, it is possible that the gc could run as long as your process is running, but it should stop after your process completes. If tomcat keeps running at 100% cpu forever, you have a problem ... something that looks like an infinite loop. Could be an infinite loop, or some threads

RE: using filters

2003-06-04 Thread Shapira, Yoav
Howdy, Let's say 10 people reply, five says there is some performance cost and 5 says there's none at all. What's the information value of that for your specific app? Close to zero. You will only get a definitive answer for your app with your filter on your server by writing and running load

RE: Tomcat Memory leaks!

2003-06-04 Thread Shapira, Yoav
Howdy, Umm, where's the memory leak? ;) Do you have any idea at all what could be causing it? Have you even once run your server with a profiler to see where memory is being allocated??? We'll need a lot more information if you want us to seriously look at this... Yoav Shapira Millennium

RE: Tomcat running as non root user as service...

2003-06-04 Thread Shapira, Yoav
Howdy, I've set up some ideas regarding that topic: http://www.klawitter.de/tomcat80.html Thank you for setting up and sharing information regarding this page. Pages like these add a lot of value and help many users in my experience. I have two comments regarding specific points in your

RE: Catalina Command Line Options

2003-06-04 Thread Shapira, Yoav
Howdy, What version of tomcat are you trying to run? Tomcat version 4.x do not allow setting ports via command-line parameter. The place to set the port for a given connector is in that connector's Connector element in $CATALINA_HOME/conf/server.xml. If you are trying to use tomcat version

RE: How SessionID works?

2003-06-04 Thread Shapira, Yoav
Howdy, If your browser will not allow cookies, tomcat will add the jsessionid to the URL. See the Servlet Specification, v2.3, SRV.7.1.3 for details. If your browser does accept cookies, tomcat just uses the normal, standard HTTP cookies mechanism. Per the spec, the cookie name must be

RE: Tomcat 4.1.18 Can't find any files

2003-06-04 Thread Shapira, Yoav
Howdy, Does your application require the invoker servlet -- i.e. do you rely on tomcat mapping URLs like http://host/context/servlet/com.yourcompany.yourservlet to the appropriate servlet? If so, you may need to comment in the invoker servlet or map the relevant servlets in your web.xml.

RE: How SessionID works?

2003-06-04 Thread Shapira, Yoav
Howdy, this is my doubt too !! What is your doubt? So, should i always create a cookie? What should i No, let the server handle it. do if i just need to avoid direct http request and know where (original URL) the http request came from? This is a very strange scenario. What is the

RE: Catalina Command Line Options

2003-06-05 Thread Shapira, Yoav
Howdy, But is there a working variable substitution system ? I've read that port=${server.port} should work, but i did not manage to make it work, any sample/doc/idea ? Whatever you read is wrong if it talks about tomcat 4.x. To change ports, edit server.xml. If you are using embedded tomcat,

RE: Counting Threads

2003-06-05 Thread Shapira, Yoav
Howdy, Search the archives. I posted a SystemThreadList.java utility several times to this list, and it does everything you want. Yoav Shapira Millennium ChemInformatics -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 1:48 AM To: Tomcat Users

RE: Fail to load webapp's jar files using Tomcat 4.1.x

2003-06-05 Thread Shapira, Yoav
Howdy, Are you sure the account running the tomcat server has write access to $CATALINA_HOME/work? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:49 AM To: [EMAIL PROTECTED] Subject: Fail

RE: Question about JavaBeans

2003-06-05 Thread Shapira, Yoav
Howdy, It gave me error.) What error? Also I have some doubts to clarify. 1) Do I need to have the WEB-INF folder in every context directory? No. One WEB-INF per webapp, under the webapp docBase. 2) Do I need to create a web.xml at this stage where I just making use of this

RE: NotSerializableException on webapp restart

2003-06-05 Thread Shapira, Yoav
Howdy, You're probably putting non-Serializable objects as session attributes... Yoav Shapira Millennium ChemInformatics -Original Message- From: Boris Folgmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:14 AM To: Tomcat Users List Subject: NotSerializableException on

RE: NotSerializableException on webapp restart

2003-06-05 Thread Shapira, Yoav
Howdy, Yes, you are right. For tracking all logged in users I store a reference to every users HttpSession in his user object which is itself in the session context. HttpSession is org.apache.catalina.session.StandardSessionFacade in tomcat and this class does not implement

RE: jar ressource pb

2003-06-05 Thread Shapira, Yoav
Howdy, Use the thread context class loader instead of the system classloader. ClassLoader tcl = Thread.currentThread().getContextClassLoader(); tcl.getResource(...); This will work on both the servlet container and command-line applications. See the docs page Classloader HOW-TO for more

RE: WEB-INF with War Files

2003-06-05 Thread Shapira, Yoav
Howdy, You need a web.xml in the WEB-INF directory. You don't have write permission normally to files on the classpath, including your own property file. A .war file is just the congolomeration of everything under your docBase jarred together. If you expand it (jar xvf app.war) and remove it,

RE: Different shutdown behavior of httpConnector in TC403 (graceful) and TC406 (reckless)

2003-06-05 Thread Shapira, Yoav
Howdy, One possible way it to use Runtime#addShutdownHook(Thread hook) ... Try to stay container-independent and therefore as portable as possible, by not using tomcat-specific listeners, unless necessary. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk

RE: connection pooling

2003-06-05 Thread Shapira, Yoav
Howdy, Tomcat uses DBCP by default for connection pooling, although you can use other packages as well. DBCP supports evicting idle connections with a configurable timeout on how long the connection must be idle before eviction. DBCP also supports configurable validation queries (checking for

RE: connection pooling

2003-06-05 Thread Shapira, Yoav
Howdy, Thanks, but do you know what is abandoned connection? As I understand it, abandoned connection is the one that has not been used in some time but it still could be a live connection. I need to go through all the connections in the pool and check if every connection is a valid, live

[OFF-TOPIC] RE: IBM Command and Log History

2003-06-05 Thread Shapira, Yoav
Howdy, Please mark off-topic threads as such in the subject line. This list generates more than enough traffic already. Yoav Shapira Millennium ChemInformatics -Original Message- From: Hari Om [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:13 PM To: [EMAIL PROTECTED]

RE: Tomcat Server Configuration. HTTP 1.0

2003-06-05 Thread Shapira, Yoav
Howdy, One idea: write a filter mapped to /*. Have the filter check the HTTP version header of the request. If it's 1.0, redirect the request to some error page or whatever other page you want. Otherwise, pass the request on. This would be a lightweight, high-performance filter. Also make

RE: Web.xml File

2003-06-05 Thread Shapira, Yoav
Howdy, Does the order of parameters in your web.xml file matter...? I'm getting this error in stderr.log file.what could this mean? Yes to the first question. You have them in the wrong order, and that's why you get that error message. Yoav Shapira This e-mail, including any

RE: Tomcat 5

2003-06-09 Thread Shapira, Yoav
Howdy, Tomcat doesn't take into account changes made to jsp. If I delete the So if you just change the JSP, tomcat doesn't re-translate and re-compile? You shouldn't have to touch tomcat's work directory yourself. Yoav Shapira This e-mail, including any attachments, is a confidential

RE: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Shapira, Yoav
Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image

RE: Hyperthreading and performance

2003-06-09 Thread Shapira, Yoav
Howdy, I haven't gotten around to benchmarking this, although I'm curious. It's not as much a tomcat issue as it is a general JVM performance one. Would you be able to benchmark your system with and without hyperthreading, and hopefully sharing the results with the list? Yoav Shapira Millennium

RE: Servlet thread safety

2003-06-09 Thread Shapira, Yoav
Howdy, You didn't miss it. No such guarantee exists for normal servlets. See the javax.servlet.SingleThreadModel interface for one approach to this issue. However, many people will tell you to avoid SingleThreadModel for various reasons. I tend to agree. The design and implementation of your

RE: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread Shapira, Yoav
Howdy, FYI, I do the same thing: JNDI calls from a ServletContextListener's contextInitialized() event -- no problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: James Lewis [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:43 AM To: Tomcat Users List

RE: Is possible to run JAX-RPC under Tomcat?

2003-06-09 Thread Shapira, Yoav
Howdy, Tomcat is a servlet container. It doesn't support all the web services APIs by itself. You can download JAX-RPC and a JAX-RPC implementation and use them in your tomcat-served webapp by putting the relevant jars in the WEB-INF/lib directory of your webapp. In the future, if JAX-RPC (the

RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav
Howdy, Perhaps you should place Dica in a package: http://tomcatfaq.sourceforge.net/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:18 PM To: '[EMAIL

RE: question on creating a file download servlet

2003-06-09 Thread Shapira, Yoav
Howdy, Use the content-disposition header: http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark W. Webb [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: question

RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav
Howdy, I did it. I ve created a package ( named euc ) under my app directory, but TomCat didnt find it - package euc does not exist... - TomCat returns me. Classpath is setted correctly. Under your webapp root, you have a WEB-INF directory, which has a classes directory, which has a euc

RE: ClassNotFoundException and FileNotFoundException

2003-06-09 Thread Shapira, Yoav
Howdy, Question: Is there a tag I need to place in a config file, web.xml file, or somewhere else to allow an applet access to use/find data/class (non-servlet) files in a local (non-ROOT) WEB-INF subdirectory? No such option exists: it would be a violation of the servlet specification for an

RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav
PM To: 'Tomcat Users List'; Shapira, Yoav Subject: RES: What does this crazy error message mean? Dear Yoav, i ve already done it. But i always get the following error: HTTP Status 500 - --- - type Exception report

RE: Tomcat classpath problem

2003-06-10 Thread Shapira, Yoav
Howdy, How does one make additional jars available to tomcat? I understand one can add them to WEB-INF/lib,but there are sometimes that approach does not work. Here's a scenario: I'm using tomcat 4.1.24 with jdk 1.4.1_02. One of the required libraries for my web app is oc4j.jar. If I put that

RE: What am I missing

2003-06-10 Thread Shapira, Yoav
Howdy, I have a web.xml containing : servlet servlet-nameLogin/servlet-name description Deze servlet checked het opgegeven naam en password. Indien correct dan wordt het NawBean in de sessie geplaatst.

RE: win2000 issue with tomcat4.1.24

2003-06-10 Thread Shapira, Yoav
Howdy, Can you please restate the original exception? If you have logs showing the stack trace, post those as well... Yoav Shapira Millennium ChemInformatics -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 12:29 PM To: 'Tomcat Users

RE: Rotating catalina.out.

2003-06-10 Thread Shapira, Yoav
Howdy, Can you submit your proposed modification to the script, and what it would require (e.g. downloading rotatelogs and placing it somewhere)? I think catalina.out rotation is a generically useful enough feature to make its way into the tomcat distribution eventually... Yoav Shapira

RE: Rotating catalina.out.

2003-06-10 Thread Shapira, Yoav
the results. Jeff -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 11:40 AM To: Tomcat Users List Subject: RE: Rotating catalina.out. Howdy, Can you submit your proposed modification to the script, and what it would require (e.g. downloading rotatelogs

RE: NotSerializableException on webapp restart

2003-06-10 Thread Shapira, Yoav
Howdy, I tried it this way. But the problem is, that since the listener itself is not in a session context, the Map is empty when the application is reloaded. You're right. If you want to do it this way, you have to take care of serializing and de-serializing your listener yourself on your

RE: OutOfMemoryError under high load

2003-06-11 Thread Shapira, Yoav
Howdy, How much have you played around with the JVM tuning parameters? Yoav Shapira Millennium ChemInformatics -Original Message- From: Ian McFarland [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 8:05 AM To: Tomcat List Cc: Ian McFarland Subject: OutOfMemoryError under high

RE: Code Red

2003-06-11 Thread Shapira, Yoav
Howdy, Last I checked tomcat wasn't vulnerable, but it's been a couple of years so my memory is fuzzy on this issue... Yoav Shapira Millennium ChemInformatics -Original Message- From: Reis, Tom [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:26 AM To: Tomcat Users List

RE: NullPointerException

2003-06-11 Thread Shapira, Yoav
Howdy, This is much more likely to be a coding problem in your JSP than a configuration or tomcat internal problem. Post the JSP source code if you can, and you'll likely get more exact advice. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris

RE: tomcat linker error

2003-06-11 Thread Shapira, Yoav
Howdy, i'm trying to simply setup and retrieve an environment variable and i Then what's all this JNI stuff ;) Consider using the System.getProperty() approach, and launching java with the environment variable as a system property. For example, say you want to retrieve the value of the PATH

RE: startup error

2003-06-12 Thread Shapira, Yoav
Howdy, It looks like you're passing a Throwable to something that expects a subclass, Exception. Check you index.jsp page to make sure you pass exceptions, or throws exception, or whatever you do to get the handlePageException method doesn't give it a Throwable. Yoav Shapira Millennium

RE: webapp outside of CATALINA_HOME/webapp

2003-06-12 Thread Shapira, Yoav
classes available under your docBase (c:\med..) WEB-INF\classes\... or WEB-INF\lib directory ;) Yoav Shapira = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com

RE: Help neede on QueryString

2003-06-12 Thread Shapira, Yoav
Howdy, Could it be the form parameters are being passed in the HTTP headers, i.e. your form is submitted via a POST rather than GET requests? Post the form element from your HTML, and your servlet that processes it. Yoav Shapira Millennium ChemInformatics -Original Message- From:

RE: JVM Profilers

2003-06-12 Thread Shapira, Yoav
Howdy, We are not using runtime-controllable logging at this time. It seems that log4j is the de facto standard, so I suppose that's what I'll try first. How does the JDK 1.4 logging facility compare to log4j? There have been extensive discussions on this issue on the log4j-user mailing list.

RE: webapps stopped à startup

2003-06-12 Thread Shapira, Yoav
Howdy, You can't. You can stop them after they start using the manager app. You can ensure their startup doesn't do much by not having anything in init() methods of servlets and filters, and not having anything in the contextInitialized method of a ServletContextListener. But if you have a

RE: Getting Tomcat Port from servlet

2003-06-12 Thread Shapira, Yoav
Howdy, No. The reason is webapps are supposed to work independently of what host/port they're deployed to. This has been discussed in detail on this list in the past: search the archives for more information. Yoav Shapira Millennium ChemInformatics -Original Message- From: Winifred

RE: can i send emails using servlets to yahoo or hotmail addresses

2003-06-12 Thread Shapira, Yoav
Howdy, See the JavaMail Sessions section of the Tomcat JNDI How-To here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm l Or you could just read the JavaMail API/tutorial and do it yourself. Yoav Shapira Millennium ChemInformatics -Original Message- From:

RE: rotating catalina.out

2003-06-12 Thread Shapira, Yoav
Howdy, Why not use the nightly rollover mechanism used for servlet logs, localhost logs, etc. also for catalina.out? Yoav Shapira Millennium ChemInformatics -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:04 PM To: Tomcat Users List

RE: rotating catalina.out

2003-06-12 Thread Shapira, Yoav
the catalina.out will just stop logging after the first rotation, since you cause an IOException in Tomcat. filip -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:12 PM To: Tomcat Users List Subject: RE: rotating catalina.out Howdy, Why

RE: _Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Shapira, Yoav
Howdy, Does specifying a mail.smtp.port work? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kyle Lange [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:50 AM To: [EMAIL PROTECTED] Subject: _Not_ Port 25. Configuring Tomcat for sendmail Hi, If this has come

RE: common-logging.jar

2003-06-13 Thread Shapira, Yoav
Howdy, Why don't you go and download it like everyone else? ;) http://jakarta.apache.org/commons/logging.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Sohail Muhammad [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 7:52 AM To: Jakarta Mailing List (E-mail)

RE: NoClassDefFoundError: org/xml/sax/InputSource

2003-06-13 Thread Shapira, Yoav
Howdy, You have mismatching versions of the XML (specifically SAX in this case) parsing APIs. What do you have in WEB-INF/lib? I suggest you search the archives of this list before posting questions. This question, as well as the one about the logger error, are asked frequently and you will

RE: _Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Shapira, Yoav
Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:01 PM To: Tomcat Users List Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail Howdy, Does specifying a mail.smtp.port work? Yoav Shapira Millennium ChemInformatics -Original Message- From

RE: Tomcat 5 - validation and compilation

2003-06-13 Thread Shapira, Yoav
Howdy, It's still a work in progress. You can look at the CVS HEAD for tomcat 5 if you'd like. The main deployer implementation is pretty much done, the standalone deployer with validation is not 100% done yet. The documentation for either is not 100% done yet. Yoav Shapira Millennium

RE: Tomcat 5 - validation and compilation

2003-06-13 Thread Shapira, Yoav
release? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 14:47 To: Tomcat Users List Subject: RE: Tomcat 5 - validation and compilation Howdy, It's still a work in progress. You can look at the CVS HEAD for tomcat 5 if you'd like. The main deployer

RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav
Howdy, I'm not getting any errors that would prevent Tomcat from starting. Are you getting any errors at all? Specifically, is there really a 401 when people are trying to access index.jsp? That would cause your behavior. Consult tomcat's access log (enable it if it's disabled, as is the

RE: Valve, set/get http header attributes

2003-06-13 Thread Shapira, Yoav
Howdy, Why do this in a valve (tomcat-specific) when you can do it in a Filter in a container-independent way? public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { if(req instanceof HttpServletRequest) {

RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav
Howdy, Here's the only entry in the log: 127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200 428 Clean your browser's cache and repeat the test. The above shows the index.jsp was requested and returned without a problem. If I remove the error-page element from the

RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav
this correctly? Once again thank you in advance Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:40 AM To: Tomcat Users List Subject: RE: Customizing 401 Error Page (this should be easy) Howdy, Here's the only entry in the log

RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav
[mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:59 AM To: 'Tomcat Users List' Subject: RE: Customizing 401 Error Page (this should be easy) Okay here you go. I've also included the custom error page JSP. Good luck. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED

RE: Antwort: RE: Valve, set/get http header attributes

2003-06-13 Thread Shapira, Yoav
Howdy, The Tomcat authenticator expects this attribute to be set. But the filter is called after the authenticator. Ahh, that's a bit more complicated. Can you state the complete flow? - User makes request to a resource that in your web.xml is specified to require authentication, right? -

RE: Strange Problem with Tomcat 4.1.24

2003-06-13 Thread Shapira, Yoav
Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange Problem with Tomcat 4.1.24 Hello I've

RE: Dumb Tomcat question

2003-06-13 Thread Shapira, Yoav
Howdy, It's not a dumb question ;) I need to run 2 instances on Tomcat 4.1.24 on one unix physical host. Could you pl. let me know 1) What are the environment variables that need to be set for both the instances ? - CATALINA_HOME , PATH CLASSPATH 2) Can I set CATALINA_HOME for both instances

RE: Strange Problem with Tomcat 4.1.24

2003-06-13 Thread Shapira, Yoav
(home) % Roland Shapira, Yoav wrote: Howdy, Do you import the Israel class appropriately in your JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Kaeser [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:03 PM To: [EMAIL PROTECTED] Subject: Strange

RE: Strange Problem with Tomcat 4.1.24

2003-06-13 Thread Shapira, Yoav
Howdy, Really? I whole applications contains more than 10'000 lines of code (java code). This will take me more then 4 days to changes everything. Not if you know any perl or other efficient text processing languages. Or have access to an IDE which will repackage classes for you: this is a one

RE: Strange Problem with Tomcat 4.1.24

2003-06-13 Thread Shapira, Yoav
Howdy, I'm currently using eclipse but there are around 25 classes which depending to each other. This main classes are the framework and there are severeral Applications which was written with this framework. Isn't there a possibility to downgrade the handling of the jsp files? Eclipse will

RE: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Shapira, Yoav
Howdy, *But* this did not work, which I guess is a relative issue: ... public void init(ServletConfig config) throws ServletException { super.init(config); try { this.passwordFile = config.getInitParameter( passwordFile ); this.passwords = new Properties();

RE: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Shapira, Yoav
Howdy, Oh and by the way, it's a good habit to override the init() method for a servlet rather than the init(ServletConfig) one. Simply so you don't accidentally forget to call super(config). Yoav Shapira Millennium ChemInformatics -Original Message- From: Shapira, Yoav Sent: Friday

RE: servlet reloading question

2003-06-13 Thread Shapira, Yoav
Howdy, Could it be there's only one class file loaded (the one correctly updated by tomcat) and the other one is a cached version? It could be cached by Apache or by your browser... Yoav Shapira Millennium ChemInformatics -Original Message- From: Bill T [mailto:[EMAIL PROTECTED] Sent:

RE: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Shapira, Yoav
Howdy, You got it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:56 PM To: Tomcat Users List Subject: Re: getResourceAsStream and relative paths in web.xml 1. Certainly, using a FileXXX class

RE: login timeout

2003-06-13 Thread Shapira, Yoav
Howdy, Or you could have add a simple HTML HTTP-EQUIV refresh to your web pages, e.g for 30 minutes (= 30 * 60 = 1800sec) HTML HEAD META HTTP-EQUIV=refresh content=1800;URL=http://www.yoursite.com/timedout; TITLEyour page/TITLE /HEAD BODY whatever /BODY /HTML That way after 30min users will be

RE: Embedding Tomcat with Java App and JRE only

2003-06-16 Thread Shapira, Yoav
Howdy, Yes with two big BUTs: 1. You will no longer have the tomcat stated requirements, i.e. you will not have a standard usage of embedded tomcat, making it harder for you to receive accurate support for your questions. 2. You will of course lose the ability to deploy new JSPs to your app ;)

RE: JNDI DataSource

2003-06-16 Thread Shapira, Yoav
Howdy, Now, it works only if I put both the Resource and Resource-params tags inside the Context element of my application. I find this rather limiting, because most of the time, I don't wanna create a Context element for my application. I think there must be some other way to do this, but I

RE: OFFTopic: Jsp vs velocity templates

2003-06-16 Thread Shapira, Yoav
Howdy, Of course, it would be possible to come up with a test page that heavily favors one product, e.g. by iterating in a particular way over a particular collection. As always, caution reigns supreme with performance comparisons ;( Yoav Shapira Millennium ChemInformatics -Original

RE: RE: Restart program

2003-06-16 Thread Shapira, Yoav
Howdy, That sounds great does anyone have any code examples or know where to find it? That would really help me to see structure and so on beacause I'm rookie when it comes to java programing. See the JavaDoc for javax.servlet.ServletContextListener, and the java.lang.Thread class. A skeleton

RE: Reloading a webapp?

2003-06-16 Thread Shapira, Yoav
Howdy, Use the Manager app. See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html Yoav Shapira Millennium ChemInformatics -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:17 PM To: Tomcat Users List Subject: Reloading a

RE: ClassNotFoundException

2003-06-16 Thread Shapira, Yoav
Howdy, I use the following software: + Tomcat 4.1.24 or Tomcat 4.0.6 Let's stick to one ;) Tomcat 4.1.24. When the web application tries to read the blob from the database a ClassNotFoundException is thrown in the com.mysql.jdbc.ResultSet.getObject method while wading the object input

RE: Separate List (FKA: Re: Running Tomcat3 on port 80)

2003-06-16 Thread Shapira, Yoav
Howdy, Has the process stabilized at all? I've put off the the integration until our app is closer to being released because I didn't want to spend a lot of time on it just to find out that the process has changed after I finished. Does anyone know if there has been talk of enabling the Tomcat

RE: Separate List (FKA: Re: Running Tomcat3 on port 80)

2003-06-16 Thread Shapira, Yoav
Howdy, So it's possible? I'd love to be part of the effort if it isfor some reason, I didn't think it was. Nothing is impossible technically ;) It's just varying degrees of cleanliness. Tomcat just runs inside a JVM, not much to do there in so far as root privileges. But there are many

RE: Embedding Tomcat with Java App and JRE only

2003-06-16 Thread Shapira, Yoav
? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 16, 2003 9:28 PM Subject: RE: Embedding Tomcat with Java App and JRE only Howdy, Yes with two big BUTs: 1. You will no longer have the tomcat stated requirements, i.e. you

RE: debug levels??

2003-06-16 Thread Shapira, Yoav
Howdy, The numbers have no well defined meaning per-se. It's just a relative meaning, 0 meaning no debug information and 99 (not 9) meaning the most debug information. Check the source code to see what I mean, if you're that interested in it. There may be a few exceptions, but the above is a

RE: CD Drive as webapps (EmbeddedTomcat)

2003-06-16 Thread Shapira, Yoav
Howdy, What error do you get? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lee Peik Feng [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 12:38 PM To: Tomcat Users List Subject: CD Drive as webapps (EmbeddedTomcat) Hi, I would like to set my CD Rom drive

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Shapira, Yoav
Howdy, The return; that Tim added is just as important as the null check... Yoav Shapira Millennium ChemInformatics -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 3:09 PM To: Tomcat Users List Subject: Re: RequestDispatcher anomolies

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Shapira, Yoav
Shapira Millennium ChemInformatics -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 3:36 PM To: Tomcat Users List Subject: Re: RequestDispatcher anomolies (Tomcat v4.1.24) Shapira, Yoav wrote: Howdy, The return; that Tim added is just as important

RE: Screen refresh

2003-06-17 Thread Shapira, Yoav
Howdy, Other people have suggested some solutions, e.g. http meta-refresh. I'm curious to know how you reached your conclusion. The default tomcat session timeout is 30 minutes, not 20. HTTP connections rarely last that long without special processing at either end point. Yoav Shapira

RE: unable to start tomcat4.1.24

2003-06-17 Thread Shapira, Yoav
Howdy, All tomcat 4.x versions require the JDK officially. Yoav Shapira Millennium ChemInformatics -Original Message- From: Paridhi Bansal [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:19 AM To: Tomcat Users List Subject: Re: unable to start tomcat4.1.24 Thanx it worked..i

RE: unable to start tomcat4.1.24

2003-06-17 Thread Shapira, Yoav
Howdy, All tomcat 4.x versions require the JDK officially. That's strictly true, because of the officially word in there. Is this strictly true? Is it true, for example, if I don't have any JSPs in my application? There have been many discussions about this: search the archives. You can run

RE: Tomcat Class Loader (parent/child tree)

2003-06-17 Thread Shapira, Yoav
Howdy, It's only contradictory in appearance when you don't quote (or read) the whole page ;) Hello, According to the tomcat documentation: Normally, when a class loader is asked to load a particular class or resource, it delegates the request to a parent class loader first, and then looks in

<    9   10   11   12   13   14   15   16   17   18   >