Re: Tomcat's Admin servlet

2003-03-21 Thread Jake Robb
Sorry... I figured it out. I needed to change the reference in $CATALINA_HOME/webapps/admin.xml. -Jake - Original Message - From: "Jake Robb" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 4:38 PM Subject: Tom

Tomcat's Admin servlet

2003-03-21 Thread Jake Robb
blem. What do I need to do to make the default admin servlet show up when I go to http://hostname/tomcatadmin/? Thanks, Jake Robb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Connection drops with tomcat-based game server (very short version)

2003-03-21 Thread Jake Robb
This is an interesting proposition! I read both of your posts. Personally, if I were you, I would create a custom server. David Flanagan's Generic Multithreaded Server (as given in O'Reilly's Java Examples in a Nutshell) would be a good starting point (if you're using it commercially, there's a

Re: Need help with tomcat running as service with ajp13

2003-03-20 Thread Jake Robb
The very first thing I'd try is upgrading to the latest version of the JDK (1.4.1_01). I thought Tomcat 4.x required it -- I'm surprised you got as far as you did! -Jake - Original Message - From: "Strecker, Mark" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thur

Re: tomcat stops when logout

2003-03-19 Thread Jake Robb
Sorry I'm a little late to this thread, but you could also have Tomcat start on system startup. I don't know exactly how to do this in Solaris, but in Linux it involves placing the startup script (or a link to it, or a script that calls it) in /etc/rc.d/ directory. It's more complex than that, ho

Re: Netscape navigator

2003-03-19 Thread Jake Robb
In order to be HTML 4.01 compliant, you need to specify a charset and content type. I find that the easiest way to do that is to include the following on all my pages (I typically make a common include page to generate it for me). Or similar, if you're using a different charset. -Jake - O

Re: JSP Issue with tomcat 4.1.18

2003-03-17 Thread Jake Robb
JSTL, while new to me, appears to be a good approach. I, however, just do the following. I'm using request.getAttribute() as the source of my possibly-null string, as that's where it seems to arise most often for me. String sParam = request.getAttribute("param"); if (sParam == null) sParam = "";

Re: Starting Tomcat results in multiple Java processes

2003-03-11 Thread Jake Robb
All but two of those are commented out, you know. -Jake Chris Dodunski wrote: > Thank you very much for the reply! > > Should I, say, reduce minProcessors=1 and maxProcessors=2 to each of the > following then? Would this low value have undesirable consequences should > more than two Servlets g

Re: question

2003-03-09 Thread Jake Robb
I have heard that Apache is much more robust than Tomcat, in particular from a security standpoint (i.e., it is harder to hack). I run a site in which there are almost no static resources -- one logo image at the top of the page gets cached, and most of the rest is dynamic JSP content. We use Apa

Re: How to debug Tomcat 4.0.6 remotely?

2003-03-07 Thread Jake Robb
I'm not 100% familiar with Solaris, but I think you can do the following: 1. set up secure shell (SSH) access on the Solaris box so that you can log into it remotely on the network 2. download and install PuTTY on your Windows machine (get it from www.versiontracker.com) 3. Use PuTTY to connect

Re: [OT] Caching problems with IE after download

2003-03-07 Thread Jake Robb
Seems to me that the problem is with the means you are using to send us the file. Can you show us that code? -Jake - Original Message - From: "Prashanth Pushpagiri" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 12:31 PM Subject: [OT] Caching

web.xml

2003-03-07 Thread Jake Robb
Where might I find good documentation on what exactly the contents of web.xml need to be? I've found a basic syntactical description, but is there something that gives examples, describes what exactly the purpose of web.xml is, what you can accomplish with it, when it is read, etc.? My current pr

Re: Mysql connector/j

2003-03-04 Thread Jake Robb
I just installed this today with 4.1.18 on RedHat 8. Put it in /usr/java/tomcat/lib (where /usr/java/tomcat is CATALINA_HOME). The Driver classname is com.mysql.jdbc.Driver The connect string is the usual JDBC format: jdbc:mysql://SERVERADDRESS:3306/DATABASENAME?user=USER&password=PASS Where th

mod_jk2

2003-03-04 Thread Jake Robb
Is there an easy way to keep tabs on the progress/status of mod_jk2 development? I'd like to use it, but I'm understandably wary about using development-quality stuff in a production environment. In the little use I've given it on my test machine, jk2 has worked well, but I can't deploy it withou

Re: Objects in JSP PLEASE HELP.

2003-02-27 Thread Jake Robb
Can you show us the errors that were reported when the JSP failed to compile? Full stacktraces are best. -Jake Jason Johnston wrote: > Ok, I'm trying to use a custom object inside a JSP and I'm just doing > something wrong. > > I have an editor.jsp file that is a little text editor with some

Re: mod_jk load balancing not evenly distributed

2003-02-27 Thread Jake Robb
There's a setting... I think it's in workers.properties, called lbfactor, which allows you to control the balancing factors. -Jake Mike Bradford wrote: > Has anyone else had experience with mod_jk (and mod_jk2) not evenly > distributing requests across systems? It seems that the first system >

Re: problems compiling and using mod_jk

2003-02-26 Thread Jake Robb
I had a similar problem trying to build mod_jk2, where it didn't create the .so file. I don't remember it very well, but I believe the problem was that I had upgraded Apache, but had missed the copy of apxs in /usr/bin. By removing /usr/bin/apxs and /usr/bin/apachectl, plus my entire Apache2 inst

Re: UnsupportedClassVersionError: java 1.3 -to- 1.4

2003-02-26 Thread Jake Robb
My best guess is that Tomcat isn't using your JAVA_HOME environment variable, and is therefore still running with Java 1.3. Check out your Tomcat startup script and look for references to your Java 1.3 installation. You could also move or remove your Java 1.3 installation and see if Tomcat contin

classfile availability for applets while maintaining restricted access

2003-02-24 Thread Jake Robb
Weird problem here. Any help or suggestions would be greatly appreciated. This is slightly off-topic, but is still relevant to Tomcat users. I have a large package of Java classes, which contains half a dozen subclasses, each with several classes. Total class count is about 150. I have Apache l

Re: Mac os x and class files

2003-02-21 Thread Jake Robb
The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: > Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default > configuration for OS X is to use 1.3.1, and you

Re: where can i servlet api specification?

2003-02-21 Thread Jake Robb
Obviouisly, if you want the spec for a different version, just change the 2.2. For instance: http://java.sun.com/products/servlet/2.3/javadoc/ - Original Message - From: "Jake Robb" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: F

Re: where can i servlet api specification?

2003-02-21 Thread Jake Robb
http://java.sun.com/products/servlet/2.2/javadoc/ - Original Message - From: "Xiongfei Wang" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 9:05 AM Subject: where can i servlet api specification? > > > servlet api specification is not inc

Re: OT: Is it ok to close connection in finalize() ?

2003-02-20 Thread Jake Robb
f any issues. Details on issues with finalize() would be appreciated, if that is indeed the case. -Jake Jake Robb wrote: > I apologize for not being familiar with this, but I have some insight to > offer. Bear with me: > > Is ConnCache your own class (i.e., did you write it)? If

Re: OT: Is it ok to close connection in finalize() ?

2003-02-20 Thread Jake Robb
I apologize for not being familiar with this, but I have some insight to offer. Bear with me: Is ConnCache your own class (i.e., did you write it)? If it is, I'd put a call to close() in the finalize method of that ConnCache, not GeneralConn. If it's not, I would expect that has already been don

Re: [OT] free Database with Transaction (Sorry for the noise)

2003-02-19 Thread Jake Robb
Internal and External refer to whether you compile the mySQL source into your program and distribute that (internal), or you just distribute mySQL along with your software (external). The only important part is that you have to *distribute* the mySQL software in order to incur charges. As I said

Re: [OT] free Database with Transaction (Sorry for the noise)

2003-02-18 Thread Jake Robb
According to MySQL's licensing page, you only need to worry about the software license at all if you are distributing MySQL code. If you are only using it (for instance, to serve data to your web application), you do not have to license MySQL, even if your web application's code is not distributed

Re: Static content and http.conf

2003-02-18 Thread Jake Robb
You can not delegate static content to Apache using any currently-available version of mod_webapp (aka the warp connector). You need to use mod_jk or mod_jk2. Mod_webapp is supposed to gain that ability some time in the future. -Jake - Original Message - From: "Duma Rolando" <[EMAIL PRO

Re: A problem with Tomcat and port 8080

2003-02-16 Thread Jake Robb
To me, the obvious answer is that your old version of Tomcat is still running. To kill a process that won't die, use `kill -9 [PID]`. -9 is the "strongest" kill signal you can send. The kernel won't let the process ignore or catch the signal. What I would do, though, is remove your old Tomcat i

Re: Whats a good way to solve this ... ?

2003-02-14 Thread Jake Robb
Session variables! When your user logs in, set a session variable (session.setAttribute(...)). On all other pages (or in an included file), check for that session variable. If it's not present and set properly, redirect (I think it's response.sendRedirect("login.jsp")). It can also be helpful t

Re: Determine Presentation?

2003-02-14 Thread Jake Robb
Try to access a file that doesn't exist, but that should be served by Tomcat if it did (i.e. foo.jsp in one of your servlet directories). You should get an error page from Tomcat. Then do the same with another file that doesn't exist, but that should be served by IIS if it did (i.e. foo.html, or

Re: Tomcat Quickstart [WIP]

2003-02-13 Thread Jake Robb
I thought Coyote WAS mod_jk2. :-) -Jake Chong Yu Meng wrote: > Greetings, everyone ! > > I started writing a kind of Tomcat HOWTO exactly a week ago for > publication on a site called the Linux StepByStep. This document is a > Work-In-Progress (WIP) at present, and I'm working as fast as I ca

Re: Network Monitor

2003-02-13 Thread Jake Robb
Extra machine? What's wrong with running it on your current machine? If you really need to keep win2k around, just dual-boot. -Jake tomcat guy wrote: > No extra machine at the moment. Although it wouldn't take much of a machine > to run it... > > - Original Message - > From: "Nicole

Re: NEW POST: How do I view this jsp???

2003-02-13 Thread Jake Robb
Well, you forgot to attach the code. I'm going to assume it looks something like this: Today's date is: <%= (new Date()).toString() %> And that you saw only "Today's date is:" in the browser window. By your description, I'm guessing that Tomcat isn't actually parsing the JSP, and that you'r

Re: jk2 config -- uri directive for root context?

2003-02-13 Thread Jake Robb
mcat 4.0.3 with mod_webapp. -Jake - Original Message - From: "Brett Neumeier" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 5:24 PM Subject: RE: jk2 config -- uri directive for root context? > Jak

Re: Basic Auth with Apache+Tomcat

2003-02-13 Thread Jake Robb
it works via a plug-in to the web server -- Tomcat isn't an option. > > Any way to access a REMOTE_USER variable set in Apache from Tomcat? > > Thanks again for your time, and anyone else who can weigh in, > > Tim > > On 2/13/03 2:04 PM, "Jake Robb" <[EMAIL PROT

Re: jk2 config -- uri directive for root context?

2003-02-13 Thread Jake Robb
ED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 5:17 PM Subject: RE: jk2 config -- uri directive for root context? > Jake Robb writes: > > Do I have to use the manager app to do something to set up my context, or > > c

Re: Basic Auth with Apache+Tomcat

2003-02-13 Thread Jake Robb
I'm quite sure you can have Tomcat do the auth instead of Apache, and then you'll have access to the variable. Try checking the configuration file (web.xml) of the built-in admin servlet. It should contain an example of exactly what you want to do. -Jake - Original Message - From: "Tim O

Re: jk2 config -- uri directive for root context?

2003-02-13 Thread Jake Robb
Okay, I think I might have figured out my mistake, but I still need help here. I enabled the port 8080 direct connection, and I get the same behavior as before, so my problem is with Tomcat, and not with JK. I set debug="10" in several places, and the Tomcat error logs look normal. None of my si

Re: Network Monitor

2003-02-13 Thread Jake Robb
I use the CGI/Perl-based AWStats. I like it a lot. http://awstats.sourceforge.net/ -Jake - Original Message - From: "tomcat guy" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 4:54 PM Subject: Network Monitor What are people using for

Re: Problem: Processes java open in linux red-hat / Tomcat 4.1.18

2003-02-13 Thread Jake Robb
If you're using a connector, some threads may remain until you stop the web server application itself. - Original Message - From: "Jon Roberts" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 4:05 PM Subject: Re: Problem: Processes java ope

Re: Session size

2003-02-13 Thread Jake Robb
Nevermind -- that brings about ridiculous complications (i.e. you'd have to extend the HttpSession object and implement Serializable, and then you'd have to alter Tomcat to use your extended class). - Original Message ----- From: "Jake Robb" <[EMAIL PROTECTED]> To: &

Re: Session size

2003-02-13 Thread Jake Robb
Serialize it? That would give you an approximate answer. - Original Message - From: "Tim Funk" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 3:49 PM Subject: Re: Session size > There is no way. Unless you iterate through all session

Re: Class location? - Solved

2003-02-13 Thread Jake Robb
gt; To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jake Robb" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 1:52 PM Subject: RE: Class location? - Solved > Good, although you probably still have a problem. Putting them under > WEB-INF/lib or WEB-INF/

Re: Class location? - Solved

2003-02-13 Thread Jake Robb
n/lib? > > --mikej > -=- > mike jackson > [EMAIL PROTECTED] > > > -Original Message- > > From: Jake Robb [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 13, 2003 10:41 AM > > To: Tomcat Users List > > Subject: Class location? > >

Class location?

2003-02-13 Thread Jake Robb
I think I've seen this question on the list several times, with answers, but the answers aren't working for me. What am I doing wrong? I have a large set of Java classes. I jarred them up and put them in $CATALINA_HOME/shared/lib/myjar.jar, but Tomcat can't find them. Then I unjarred and put th

Re: Tomcat as root and security issues

2003-02-13 Thread Jake Robb
Use Apache and a connector like mod_jk. In this setup, Tomcat typically runs on port 8009, and Apache uses the connector to send relevant requests to Tomcat. -Jake - Original Message - From: "McBrayer, Roy" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday,

Where is the admin context defined?

2003-02-13 Thread Jake Robb
I have a directory called /admin/ that has a lot of JSP pages in it. It is in my $CATALINA_HOME/webapps/ directory. When I go to http://my.address/admin/, I am taken to Tomcat's built-in admin servlet, which is located at $CATALINA_HOME/server/webapps/admin/. How do I get it to use mine instead?

Re: jk2 config -- uri directive for root context?

2003-02-13 Thread Jake Robb
RE: jk2 config -- uri directive for root context? > Jake Robb writes: > > From server.xml > > - > > > > > > > ... *** unchanged from original form > > > >

Re: Need help building connectors for Apache 2.0.40 and Tomcat4.0.6 on RedHat 8.0

2003-02-13 Thread Jake Robb
I used that as well. I am using Apache 2.0.44, Tomcat 4.1.18, and RedHat 8, with mod_jk2 as a connector. However, I compiled Apache myself. It only took about ten minutes, once I figured out the right arguments to the configure script. -Jake - Original Message - From: "Andy Richards" <

Re: index.html and ipaddress ?

2003-02-13 Thread Jake Robb
apneel and something else points to ROOT. - Original Message ----- From: "Jake Robb" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 11:26 AM Subject: Re: index.html and ipaddress ? > Is there a reason you can

Re: index.html and ipaddress ?

2003-02-13 Thread Jake Robb
Is there a reason you can't put your index.html file in the ROOT directory? - Original Message - From: "Swapneel Dange" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 11:24 AM Subject: index.html and ipaddress ? > hi there ! > > i am running a TOMCAT succes

Re: Fw: Fight war

2003-02-13 Thread Jake Robb
An army recruiter? - Original Message - From: "Sterin, Ilya" <[EMAIL PROTECTED]> To: "'Rasputin '" <[EMAIL PROTECTED]>; "'Tomcat Users List '" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 11:05 AM Subject: RE: Fw: Fight war > What if you don't want to stop t

Re: jk2 config -- uri directive for root context?

2003-02-13 Thread Jake Robb
ify in [uri]. For > example, $CATALINA_HOME/webapps/examples translated into uri is > [uri:/examples/*] > > Regards, > > > PQ > > "This Guy Thinks He Knows Everything" > "This Guy Thinks He Knows What He Is Doing" > > -Original Message--

Re: Fw: Fight war

2003-02-13 Thread Jake Robb
As Rasputin pointed out, the message is a virus (please see his message and follow the link). As such, it is indeed "crap". Out of politeness and respect, I request that viruses not be freely, deliberately distributed on the Internet. Please. -Jake - Original Message - From: "Vermeulen

Re: Apache-Tomcat configuration on Win2k

2003-02-13 Thread Jake Robb
Arun, Try putting the paths to JkWorkersFile, JkLogFile, and your examples directory in quotes, i.e.: LoadModule jk_module libexec/mod_jk-1.3.26.dll AddModule mod_jk.c JkWorkersFile "C:/Tomcat4_1_12/conf/workers.properties" JkLogFile "C:/Tomcat4_1_12/logs/mod_jk.log" JkLogLevel debug Alias

jk2 config -- uri directive for root context?

2003-02-12 Thread Jake Robb
at: /usr/java/jakarta-tomcat-4.1.18/webapps/ I tried putting them in webapps/ROOT, but that didn't help. Do I have the source location wrong, or the URI directive? Or both? Any help is much appreciated. Thanks, Jake Robb -

Re: failing installation server.xml file

2003-02-12 Thread Jake Robb
I tried using the Tomcat RPM, and have had nothing but bad luck. Removing it (rpm -e ) and then installing using a normal binary has helped a lot. -Jake - Original Message - From: "Turner, John" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, February 1

Re: newbie installation problem

2003-02-12 Thread Jake Robb
RPM is "RedHat Package Manager" -Jake - Original Message - From: "Steve Burrus" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 12, 2003 2:59 PM Subject: RE: newbie installation problem > Excuse my ignorance please, but what does RPM stand for e

Re: Where to put workers2.properties?

2003-02-12 Thread Jake Robb
I've been searching for good documentation on setting up jk2, with no luck. Apache's documentation is poor and incomplete. I went out and bought a book on Tomcat, and it has mod_jk information, but it's pretty limited on jk2. Does anyone have a good online reference? -Jake - Original Messag

Re: Apache/Tomcat and pdf files

2003-02-12 Thread Jake Robb
Do PDFs served from other servers open the plugin? If so, your server is probably providing a bad content type. If not, then you should probably just reinstall the PDF plugin. - Original Message - From: "Duma Rolando" <[EMAIL PROTECTED]> To: "Tomcat Mailing List" <[EMAIL PROTECTED]> Se

Re: How do setup tomcat on www.domainname.com/~username/some.jsp

2003-02-12 Thread Jake Robb
I sort my email messages by date, and yours is appearing out of order -- this is slightly annoying. Thanks! -Jake Robb Alex K. wrote: > Hello, > > Any ideas? > > Best Regards, > > Alex Korneyev > > > --

Re: automatically redirect http to https in tomcat

2003-02-11 Thread Jake Robb
The only way I can think of to do that is to mirror your secure content with nonsecure matching pages with either META or Javascript redirects, or using JSP (PHP and other server-side languages could do it too) to do a header write. - Original Message - From: <[EMAIL PROTECTED]> To: <[EM

Re: tld files not found

2003-02-11 Thread Jake Robb
I am using several custom TLDs, and I keep them all in WEB-INF/, outside of any JAR files. No trouble! -Jake - Original Message - From: "Peter Lin" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 3:46 PM Subject: Re: tld files not found

Re: Connector issues - jk2, 4.1.18, 2.0.44

2003-02-11 Thread Jake Robb
ldn't matter), check here: http://www.johnturner.com/howto > NOTE: I don't use JK2, I built that one for someone else who was having > problems building one and decided to post it to the website, since there > isn't one available from the Jakarta site that's built with

Re: java/jsp & dynamic data

2003-02-11 Thread Jake Robb
You can have your users turn down their browser security settings, and then the applet has free reign. Of note: I have an applet that accesses data from a remote host, and Internet Explorer lets it run with normal security settings. -Jake - Original Message - From: "Jeff Ousley" <[EMAIL

Connector issues - jk2, 4.1.18, 2.0.44

2003-02-11 Thread Jake Robb
e 2.0.44. Is this true? I've been unable to confirm that anywhere. Should I remove Apache and go back to 2.0.40 or something, or am I just doing something wrong? Maybe I need to build in a special module in Apache? Any help is appreciated! Thanks, Jake Robb