re: Starting and stopping Tomcat as non-root

2002-09-06 Thread Michael E. Locasto
Alternatively, is there a way to make Linux so that it lets any user bind to any port? So you don't mind one of your machine's users (or a cracker who has guessed a bad password) installing their own little fake webserver on port 80 that does {pick your poison}? The practice of allowing only

Re: Where should i put dynamically generated graphics

2002-08-30 Thread Michael E. Locasto
I can think of a couple of ways offhand: -process the request -generate your image -store your image somewhere (optional) - either - write the image directly out to the servlet's underlying outputstream as a buffered byte output stream (I don't think PrintWriter

Re: one last plea for help

2002-08-27 Thread Michael E. Locasto
Peter, Your last comment is a little unclear - do you mean that you request 1 URL and it gets redirected to another, or that you see some page that you think shouldn't be in the current web app? I think more information is in order, specifically, your relevant configuration information,

Re: javax directory

2002-08-27 Thread Michael E. Locasto
What exactly are the errors? If you are writing a servlet (or some other class that imports something from the javax.servlet package) you need servlet.jar in your CLASSPATH so your java compiler knows where to find the class definitions. The Java 2 SDK does not come with the 'javax.servlet'

Re: one last plea for help

2002-08-27 Thread Michael E. Locasto
Pretty much. See: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/AJPv13.html Adding support for SSL, so that isSecure() and geScheme() will function correctly within the servlet container. The client certificates and cipher suite will be available to servlets as request attributes. Regards,

Re: Tomcat Installation on linux

2002-08-26 Thread Michael E. Locasto
try 'sh ./catalina.sh start' from jakarta-tomcat-4.0.4/bin regards, michael - Original Message - From: khozaima shakir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 11:23 AM Subject: Re: Tomcat Installation on linux Hi Randall, Sorry, guess the way i typed

Re: Strange message compiling a JSP in Tomcat 4.0.4

2002-08-26 Thread Michael E. Locasto
Nome, Although I'm not sure exactly what the problem is, this has happened to me before when I've replaced some class files or jars that a JSP uses while Tomcat was running, and then updated the JSP so Tomcat had to recompile it. A restart of Tomcat fixed the problem. regards, Michael -

Re: Design Questions..

2002-08-26 Thread Michael E. Locasto
Michael, I'm sure everyone else is gonna tell you this too, but here are some pointers from just glancing over the code. - set up your db connection in the init() method, not doGet(). doGet() is executed every time the servlet is called with an HTTP GET. So, effectively, you are loading the

Re: Design Questions..

2002-08-26 Thread Michael E. Locasto
] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 26, 2002 8:00 PM Subject: Re: Design Questions.. thanks, I think I'm starting to understand how all this stuff is supposed to work... Michael On Monday, August 26, 2002, at 05:59 PM, Michael E. Locasto wrote: Michael, I'm

Re: Requested resource is not available

2002-08-25 Thread Michael E. Locasto
Mike, Make sure you have WEB-INF/ directories (and web.xml) for those webapps. Also, try restarting Tomcat. In addition, you can use the manager app to deploy new webapps. Regards, Michael - Original Message - From: Mike Markovich [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday,

Re:[OT] Requested resource is not available

2002-08-25 Thread Michael E. Locasto
Michael, Thanks for your response, I thought I was doing all the things you suggested, but just to make sure I recreated web.xml and restarted tomcat and now things work as expected. Oh well, only a couple of hours lost because I was doing something different then what I thought I was

Re: preconfigured persist sessions?

2002-08-13 Thread Michael E. Locasto
Maia, In 4.0.4 and 4.1.7 (and probably all of 4.x), there is a commented out entry in server.xml (with explanatory comments right before it). So it looks like persistent sessions are _not_ enabled by default. !-- Manager className=org.apache.catalina.session.PersistentManager

Re: Quick Question

2002-08-13 Thread Michael E. Locasto
Alex, Probably the current working directory, which is whatever directory Tomcat was started out of (probably bin/, but not necessarily so). You can provide a full file name in the code, or use your web.xml to set a context parameter that indicates a base path to do read/write relative to in

Re: Memory alloc on tomcat 4.0.4

2002-08-13 Thread Michael E. Locasto
Hi, I believe that the reason you have so many java threads is due to the way the jdk/jre is implemented for linux, you'll see basically every thread in top or ps. http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux- 4.html#ss4.2 Michael - Original Message -

Re: Re[4]: Quick Question

2002-08-13 Thread Michael E. Locasto
Check out the API too. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/servletapi/index.html Regards, Michael - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 1:08 PM Subject: Re: Re[4]: Quick Question Hi, Alex. Since JSP's

Re: apache+tomcat?

2002-08-13 Thread Michael E. Locasto
- Original Message - From: Lee Zhao [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 7:30 PM Subject: apache+tomcat? Can someone please explain why one needs or wants to use apache in addition to tomcat? Can one just use tomcat as plain web

Re: new to tomcat

2002-08-12 Thread Michael E. Locasto
Amit, But when i create TESTJSP directory under Tomcat4.0 - webapps --- TESTJSP --- HelloWorld.jsp did you restart Tomcat after you created that directory and put the jsp in it? You don't need a Context entry in server.xml for

Re: tomcat + apache

2002-08-12 Thread Michael E. Locasto
We can at least make a best effort ... :) Carlos, el documentoRoot de apache esta en /usr/local/httpd/htdocs. Como puedo hacer andar en el puerto 80 unas paginas jsp que estan el: /usr/local/httpd/htdocs/admin ? Que necessita hacer es aƱadir un contexcto en

Re: new to tomcat

2002-08-12 Thread Michael E. Locasto
, 2002 8:25 AM Subject: Re: new to tomcat hi Is it necessary to deploy the application under webapps directory only. Regards Vishal - Original Message - From: Michael E. Locasto [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 12, 2002 6:04 PM Subject

Re: help with server.xml

2002-08-03 Thread Michael E. Locasto
Mona, I'm assuming you are running Tomcat 4.04 standalone, on :8080. Not quite sure exactly what the issue is here, but I have some suggestions: Just for fun, try a different browser to see if the problem is client side. Does the user Tomcat is installed as have permissions to read those

Re: Servlet directory

2002-08-03 Thread Michael E. Locasto
And you've provided appropriate servelet and servlet-mapping entries in your web.xml? -Michael - Original Message - From: Daliso Zuze [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 4:51 AM Subject: Servlet directory I have put some servlet

Re: nullpointer (on forward) in tomcat (both 331 332)

2002-08-03 Thread Michael E. Locasto
Jeff, The Javadocs for ServletContext.getRequestDispatcher( String pathname ): The pathname must begin with a / and is interpreted as relative to the current context root. Use getContext to obtain a RequestDispatcher for resources in foreign contexts. This method returns null if the

[OT] re: And I LOVE you too, John!

2002-08-02 Thread Michael E. Locasto
Steve, You _do_ have to admit that answering repeated queries on the same topic gets a little frustrating...and your email has a pissed off tone too. quote Does anyone out there have the download link to access and then install this file WHICH I STILL DON'T HAVE! I am getting sick and

Re: URL configuration.

2002-07-31 Thread Michael E. Locasto
This may be a bit basic, but besides setting the port to 80 in server.xml, make sure you've got a valid DNS record to point your domainname to that IP address. I got the impression from your message that they weren't linked. Regards, Michael - Original Message - From: Turner, John

Re: Finding the servlets

2002-07-31 Thread Michael E. Locasto
Toby, Not sure about the 'reserved' bit, but webapps is the default starting point for Tomcat to look for directories that conform to the specs. Each subdirectory should be a complete Context. I'm not sure if the name 'webapps' is actually specified, but that is beside the point. Tomcat will

Re: memory management

2002-07-31 Thread Michael E. Locasto
Brian, % path/to/your/jdk/bin/java -X will print out the help for non-standard command line argument extensions for the JVM. You can increase the amount of heap space and other good stuff available to the whole JVM. AFAIK, Tomcat sets no limit on the amount of memory a servlet consumes.

Re: Apache + mod_jk + Tomcat + Internet

2002-07-31 Thread Michael E. Locasto
I'm not so sure you want to do this anyway; besides the security considerations, you're going to take an extra performance hit where every request for dynamic content has to go back out over the web to your Tomcat machine and come back ... Why can't you just put Tomcat on the Linux box too? or

Re: TC and applicationwide beans

2002-07-29 Thread Michael E. Locasto
Tomcat 3.3.x provides the lib/apps directory (see the README file in there) for Jar files that contains classes to be shared among all webapps. Sessions are not cross-context. Sessions are specific to the webapp they are created in for security reasons. Sessions are created via a

Re: runaway queries with tomcat and Progress database using JDBC driver.

2002-07-28 Thread Michael E. Locasto
- Original Message - From: Nathan Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, July 28, 2002 7:28 PM Subject: runaway queries with tomcat and Progress database using JDBC driver. Does anybody have any ideas on how I might implement the best

Re: warp connector and number of connecionst

2002-07-28 Thread Michael E. Locasto
I'm assuming you're using some 4.0.x version, I think warp has been deprecated and replaced by Coyote in 4.1. This document isn't of much use... http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html but you can probably find out the answer in the source

Re: Tomcat developer or user documentation.

2002-07-28 Thread Michael E. Locasto
Nathan, There is pretty good documentation both on the website and contained within the distributions in the doc/ directory. There is no John Q's Chronicle of Setting Up Tomcat 3.3.1 to the best of my knowledge. However, I think that something like that would be a great thing to write and submit

Re: How to migrate for Tomcat 3.3.1 to Tomcat 4.x?

2002-07-28 Thread Michael E. Locasto
Nathan, The Tomcat homepage says that Version 4.0 implements the final released versions of the Servlet 2.3 and JSP 1.2 specifications. As required by the specifications, Tomcat 4.0 also supports web applications built for the Servlet 2.2 and JSP 1.1 specifications with no changes. So it looks

load balancing workers admin tool

2001-06-27 Thread Michael E. Locasto
Hey all, Are there any tomcat administration modules in the works or do i have to build my own? Specifically, I'm thinking about managing multiple JVM's/workers for load balancing. I'd also like to be able to manage contexts in a more secure manner than the current /admin context allows...