Re: JDBC Realms

2001-09-14 Thread Tim O';Neil

Its a group (or a set) of configuration data controlled
by your jdbc driver), its extended from an actual "Realm"
class, and it sets up a few tables in your data source to
hold data for a particular class of objects; for instance,
say you are doing some kind of session-based service- you
could set up a "UserRealm", your security for this service
could a "SecurityRealm", your beans could be kept track of
in a "BeanRealm", etc. Its just a way to group a particular
bunch of properties together.

At 02:39 PM 9/14/2001, you wrote:
>Hello List,
>
>I am wondering what JDBC Realms are used for.  I successfully configured it
>with mysql and tomcat 3.2.3, but I dont know what its for or what to do with
>it.  I read
>
>http://jakarta.apache.org/tomcat/tomcat-3.2-doc/JDBCRealm.howto
>
>But it doesnt really say what it is.  Ive searched the archives and on
>google.  If anyone could offer an explanation of what its for, maybe a brief
>example on how to use it, or point me to a good reference on the net or even
>in a book, it would be much appreciated.
>
>Ryan Ford




Re: To all people who are mailing me.

2001-09-13 Thread Tim O';Neil

At 08:54 AM 9/13/2001, you wrote:
>Hi,
>
>>and what did u do?
>
>  My mail client had the mailing list address as bcc and was automatically 
> cc'ing peoples personal address.  I didn't notice until I got the usual flames.

It wasn't a big deal until we all started getting
cc'd on your emails to "Bethany"...





Re: Help: Tomcat 3.x/ 4.x and FreeBSD

2001-09-13 Thread Tim O';Neil

At 03:07 PM 9/12/2001, you wrote:
>Here is FBSD 4.4RC3, Tomcat 3.2.3, JDK 1.2.2. No problem at all.
>
>
>0) Upgrade to FreeBSD 4.3 (or wait few days for upcoming 4.4 Release)
>
>1) If possible, allways use ports !  They are ports, you know, something
>is ported, changed, specific to FreeBSD
>
>2) I'd suggest skipping JDK 1.1.8 ang go directly to 1.2.2 or 1.3/1.4
>(big difference!! see http://java.sun.com )


Right. Java 2 has been ported, see www.freebsd.org/ports




RE: file download servlet

2001-09-12 Thread Tim O';Neil

The server sends a header that describes the file type.
See mime types.


At 10:45 AM 9/12/2001, you wrote:
>But how exactly does web server instruct web browser
>to save the stream of bytes into a filename as
>
>filename on server?
>
>Does web server send any HTTP header like
>Content-Disposition to specify the file name to save?
>
>Since If i dont' set any HTTP headers in my servlet
>but just send the bytes.  Browser will save the
>
>file as servlet name.
>
>thanks again
>
>
>
>--- Alexander  Jesse <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > have you tried with different browsers? I remember
> > vaguely that
> > this kind of stuff can also be working in one
> > browser and
> > not work in another one...
> >
> > regards
> > Alexander
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 11, 2001 11:53 PM
> > To: [EMAIL PROTECTED]
> > Subject: file download servlet
> >
> >
> >
> > I asked this question before, but I didn't get any
> > reply. I post it again in hope someone could give me
> > some hint.
> >
> > I have a file download servlet serves web browsers.
> >
> > request to file is like this
> >
>http://192.168.1.105/download/servlet/download?filename=song.mp3
> >
> > The file on the server side is song.mp3.  But the
> > file
> > got download to
> > browser is the servlet name instead.  :(
> >
> > I heard i need to use the HTTP header
> > res.setHeader("Content-Disposition","attachment;
> > filename=\"" +
> > downloadFile + "\";");
> >
> > Is Content-Disposition a standard header in HTTP
> > spec?
> >  I heard i should use this whenever I don't want the
> > content display on browser (force Save as Dialog
> > box)
> >
> > Why everytime I download a file from the web server
> > like song.mp3.
> > there is no such HTTP header from web server? -->
> > Content-Disposition
> >
> > I think web server is just like a download servlet.
> > It
> > sends raw bytes to web browser. After browser get
> > the
> > bytes, It will not konw what name the file should
> > save
> > as.  Web server must send some kind of HTTP header
> > to
> > tell web browser what file name the file is saved
> > as.
> > right?
> >
> > How exactly is web server instruct web browser to
> > pop
> > up Save as Dialog box (on unknown mime type) and
> > save
> > the file with name = filename on server?  Does web
> > server use any special HTTP Header (like
> > Content-Disposition)
> >
> >
> > thanks.
> >
> > __
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant
> > messaging with Yahoo! Messenger
> > http://im.yahoo.com
>
>
>__
>Do You Yahoo!?
>Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
>http://im.yahoo.com




Re: Specify outbound port on tomcat

2001-09-07 Thread Tim O';Neil

At 04:05 PM 9/7/2001, you wrote:
>On Fri, 7 Sep 2001, Joe Pearse wrote:
>
> > Date: Fri, 07 Sep 2001 15:53:33 -0700
> > From: Joe Pearse <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: Specify outbound port on tomcat
> >
> > Hi List-
> >   I'd like to specify what outbound ports are chosen when running my
> > application.  Currently, I can specify the inbound port for SSL (443) to
> > receive a message.  When my application responds, it (seemingly)arbitrarily
> > picks a port between 1024 and (about) 5000 to send out the reply.
> >   My client refuses to open up their firewall between 1024 and 5000, even
> > though it is for the outbound traffic only, I must specify (restrict) the
> > ports used for outbound traffic.  Is anyone aware if this is something that
> > I could configure in Tomcat (or Apache), and if so, what is it?  (If 
> that is
> > not possible to configure, please let me know also.)  Thanks for the help.
> >
>
>Tomcat (or Apache, or any other TCP based server) sends responses back on
>the same port that it received your request on (in fact, on the exact same
>connection).  Is your application itself generating outbound TCP
>connections (for example, to connect to a database)?  Or is the arbitrary
>port possibly the one created by your *browser* running on the same
>machine and connecting to Tomcat?
>
>Craig McClanahan

Not true in some cases. HTTP sends its response info on the same port,
protos like ftp open another port. (Which is the reason for http being
a stateless protocol, you need to open a second port to do things like
random stream access.) But that his application is wanting to open another
port has nothing to do with tomcat, or at least I doubt it. Is your app
a CORBA or JNI app by chance Joe?




Re: I admit it -- I'm too lazy to read the documentation

2001-09-06 Thread Tim O';Neil

Or hire a consultant at $100 an hour to do it for you.

At 11:38 PM 9/6/2001, you wrote:
>Since you are lazy, why stop with reading at all, just grep the config files
>for 8080 and hope it's the right one.
>
>- Original Message -
>From: "Brent Hughes" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, September 06, 2001 7:32 AM
>Subject: I admit it -- I'm too lazy to read the documentation
>
>
> > I have the thing running...
> > It only works on localhost:8080 though...
> > I need to get rid of this 8080 thing.
> > If you guys could point me to the right
> > section of the docs it would be a big help.
> >
> > Thanks,
> > Brent
> >




Re: New nt_service

2001-09-06 Thread Tim O';Neil

Can you sign those before you send em like that?




Re: HP and Compaq Merger makes Linux a huge winner

2001-09-06 Thread Tim O';Neil

At 08:46 AM 9/6/2001, you wrote:
>"Nael Mohammad" <[EMAIL PROTECTED]> wrote:
> >
> > http://www.businessweek.com/investor/content/sep2001/pi2001096_399.htm
>
>Quoting: "HPUX (Hewlett-Packard's version) and Tru64 (Compaq's entry), Sun's
>Solaris, and IBM's AIX. Except for Solaris, all are slowly losing market
>share. No one thinks proprietary Unix systems have much of a future, save
>the folks at Sun Microsystems (SUNW )."
>
>My note as a fellow Solaris 8 advocate: "Just because it's so freakin'
>beautiful compared to ANY other Unix-based operating system out there"...

Some might even offer that Solaris isn't exactly top of the heap
any more.





Re: ThreadPool: Pool exhausted with 100 threads

2001-09-05 Thread Tim O';Neil

At 12:56 PM 9/5/2001, you wrote:
>Hello,
>
>We are seeing many many 'ThreadPool: Pool exhausted with 100 threads'
>errors.  Ive seen that you can modify the server.xml to customize threadpool
>access (max_threads value=x max_spare_threads vaule=x, min_spare_threads
>value=x), but Ive also heard that its hard coded in
>org.apache.tomcat.util.ThreadPool.java in Tomcat 3.2.2.  This is our
>production env so Id hate to impliment this and have the prolem become
>bigger.  What do you guys suggest?  We are using Tomcat 3.2.2, Apache 1.3
>(with ssl mod) as our webservers, on Solaris 7, with Oracle 8 via jdbc.

You could up the values and re-compile.





Re: browsing web pages served by Tomcat 3.2.3 using a MACINTOSH ?

2001-09-05 Thread Tim O';Neil

At 02:02 PM 9/5/2001, you wrote:
>has anyone accessed webpages served by tomcat, using IE or Netscape ?
>I tried to access a simple JSP page served by tomcat 3.2.3 and in IE, I got
>back the page without images, and on Netscape I got the actual JSP file !

Yes. no problems.

>any ideas ?

Site error. Time to debug.




Re: New to Tomcat -- Logging

2001-09-04 Thread Tim O';Neil

At 02:54 PM 9/4/2001, Craig wrote:
>Tomcat 4 (when run in standalone mode) already produces access log files
>compatible with analysis tools like Webtrends.  Alternatively, you can run
>Tomcat behind a web server, and let the web server provide the log files
>for you.

You can also run a servlet that records the
ips of all requesters and redirects them to
your index page real easily.




Re: Content-Length limited to 2^31-1???

2001-08-30 Thread Tim O';Neil

At 02:47 PM 8/30/2001, you wrote:
>The problem I am having is that tomcat 3.2.3 seems to (kind of) limit 
>content length to Integer.MAX_VALUE (2^31-1 or 2GB).
>
>If I want to serve very large objects things do not work so well.
>
>I seems that ServletResponse.SetContentLength(int) is the prefered manner 
>to sent the content length of a servlet response and that the default 
>implemtation for the "HEAD" method in HttpServlet also is limited to the 
>range of int values.
>
>My reading of the HTTP/1.1 spec does not indicate that there are any 
>limitations to content length in the HTTP protocol.
>
>So my question is:  Am I all messed up, or is Tomcat and the servlet 
>spec/implementation sub-optimal?

The limit of an int is an int, right?
The setContentLength() method takes an int. What
do you want? Rather than try to stuff all your
data in one go you should treat it like the stream
that it is and feed your data into a buffer a blob
at a time, send that data down the pipe when you get
one full blob, and replenish the buffer with a new
blob of data from your source, like most anyone else
would do. Then you don't worry about how much data
you have to send. It could be gigs * gigs. Plus
you have the ability to resend any blobs (records,
frames) that get garbled on the way over, if any.

Much more efficient than trying to stuff your entire
wad down the wire.




Re: Permission Denied Error in Linux

2001-08-30 Thread Tim O';Neil


$ chmod +x startup.sh



At 08:45 AM 8/30/2001, you wrote:
>You need to set execute permission on your startup.sh and shutdown.sh.  They
>are not set as executable by default.
>
>--David Smith
>
>On Thursday 30 August 2001 02:54 am, you wrote:
> > Hi,
> >
> > I tried to install Tomcat 3.2 in Linux. But when I run
> >   shell> bin/startup.sh
> > I got a "Permission Denied" error.
> >
> > These are the steps I did:
> > 1) installed JDK 1.2.2 for Linux as "root".
> > 2) included JDK path in .bash_profile
> > 3) set JAVA_HOME env variable in .bash_profile
> > 4) installed Tomcat 3.2 as "root"
> > 5) included Tomcat path in .bash_profile
> > 6) set a TOMCAT_HOME in .bash_profile
> >
> > See th settings of .bash_profile below:
> >
> > PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.
> >3/bin ENV=$HOME/.bashrc
> > TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
> > JAVA_HOME=/usr/local/jdk1.2.2
> > USERNAME="root"
> >
> > export USERNAME ENV PATH TOMCAT_HOME
> >
> >
> >
> > Thanks,
> > Lester




Re: (sin asunto)

2001-08-28 Thread Tim O';Neil

At 01:04 PM 8/28/2001, you wrote:
>subscribe

BTW, can I get a double latte over here?




Re: Any idea?

2001-08-23 Thread Tim O';Neil

At 04:02 PM 8/23/2001, you wrote:
> >
>
>Has anywone know where can i download and burn Microsoft Office XP.
>Thanks.

Smart request dude. Why don't you ask us to help you stick
up a bank too.




Re: Mozilla and Tomcat

2001-08-21 Thread Tim O';Neil

At 01:50 PM 8/21/2001, you wrote:
>I've ran into similar problems with Internet Explorer. Not exactly though.
>Basically, I've seen IE display a cached page, even if you have caching
>turned off. What I do is completely exit and restart my browser each time I
>test a change to a servlet.

Yeah, IE has a wicked sticky cache.




Re: Cookies and IE5.5

2001-08-17 Thread Tim O';Neil

At 08:28 AM 8/17/2001, you wrote:
>I am trying to set a cookie that can be picked up from a different server to
>the one setting it. They both belong to the same domain (daves.domain.com
>and daves2.domain.com).
>The first server sets the cookie and redirects to the second server where
>the cookie is read.
>On IE5.5 and above the cookie does not get set, but it works fine for IE5
>and Mozilla.
>Is this a bug with later versions of IE or am I doing something wrong.

You may not be doing anything wrong, I think that's how cookies
are supposed to work. Reading ftp://ftp.isi.edu/in-notes/rfc2109.txt
doesn't (to me) explicately say "Servers within the same domain may
not share cookies", but what it does say is a particular server may set
a cookie that is only accessible by itself, which implies to me that
this is not allowed. The RFC also indicates past and present behavior,
and Netscape by name. It's entirely possible that while you were able
to do this before, it was taken out in later clients and servers to
comply with the RFC's final form. But like I said, I have a hard time
interpreting RFC's for particular questions. Maybe some one else has
a better handle on all this?




Re: Version

2001-08-16 Thread Tim O';Neil

At 01:05 PM 8/16/2001, you wrote:
>At 12:38 PM 8/16/2001, you wrote:
>>Folks,
>>How do I know what version of tomcat I have on my apache server?  This dude
>>who installed tomcat for us, I think, he installed only the beta release of
>>tomcat.  Now, he is asking $10,000 to fix it.  "Oh holly cow!" was my bosses
>>reaction.:)
>>
>>I used the command:
>>
>>openssl version -a
>>
>>But it only gave me the ssl version.
>>
>>Any help will be appreciated!
>
>./httpd -version

Damn, screwed up again. Tomcat... I meant... "I dunno..."




Re: Version

2001-08-16 Thread Tim O';Neil

At 12:38 PM 8/16/2001, you wrote:
>Folks,
>How do I know what version of tomcat I have on my apache server?  This dude
>who installed tomcat for us, I think, he installed only the beta release of
>tomcat.  Now, he is asking $10,000 to fix it.  "Oh holly cow!" was my bosses
>reaction.:)
>
>I used the command:
>
>openssl version -a
>
>But it only gave me the ssl version.
>
>Any help will be appreciated!

./httpd -version




Re: Trouble running a servlet

2001-08-15 Thread Tim O';Neil

At 02:46 PM 8/15/2001, you wrote:
>   I'm trying to run Tomcat on W2K disconnected from
>the Internet.  In asking for help, I got one reply
>which said
>What solved the last of my disconnected-laptop
>issues (on Win98 at least)
>was adding a LOCALHOST entry in
>"c:\windows\hosts" (create it if needed):
>
>   127.0.0.1 localhost
>
>Win98 looks here first before it tries accessing
>your configured DNS
>servers, which is when it would try to access the
>network.
>
>Unfortunately, my system already has hosts files and
>they all include 127.0.01 localhost.  Thanks.

No, it MUST be "127.0.0.1", what you have there is
a typo. Also, there's only one file it should be in,
"hosts". Anything else is a mistake or a Microsoft
machination (LMHOSTS is not a traditional network config
file). If that's not working for you try addressing
your server as "http://127.0.0.1/"; + your tomcat examples
dir, that will work.




Re: db connection denied access

2001-08-15 Thread Tim O';Neil

At 11:49 AM 8/15/2001, you wrote:
>If you're going to be using MySQL, do yourself a favor and buy this book:
>
>http://www.amazon.com/exec/obidos/ASIN/0735709211/qid=997901246/sr=2-2/107-4
>535935-5049369

Or, do yourself a bigger favor and use Postgres.




RE: Newbie: How do I rebuild Tomcat under Win2k

2001-08-15 Thread Tim O';Neil

At 12:38 PM 8/15/2001, you wrote:
>Having just been through this, start here:
>
>http://jakarta.apache.org/tomcat/index.html
>
>Download what you need and install/configure according to the information
>presented therein.

Michael, what did you use, DevStudio, or something like
Ming32 or GNU for Win32 or...?





RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-15 Thread Tim O';Neil

At 03:10 PM 8/14/2001, you wrote:
>Look for MEGA and nuke'm

> >Maybe enabling filtering by headers will help. That message had
> >'Precedence: bulk' header.

Nah, you have to use the headers, a legitimate
message could contain the string "MEGA" in its subject
header. Unfortunately you can't count on spammers to be
so gracious as to be sure to include the bulk header
either. Only the technically incompetent ones.




Re: IBM JDK

2001-08-14 Thread Tim O';Neil

At 09:36 AM 8/14/2001, you wrote:
> Works very well for me running tomcat 3.2.3, rh 6.2 and IBMJava2-13
>(build 1.3.0, J2RE 1.3.0 IBM build cx130-20010329 (JIT enabled: jitc)

The IBM JVM is supposed to be considerably faster than Sun.





Re: Control the number of request's

2001-08-13 Thread Tim O';Neil

At 03:18 PM 8/13/2001, you wrote:
>Hello all.
>
>Can anyone explain me (and to all people of the list) how control the number
>of request that one client can do? I'm using Tomcat 3.2.3 and if one client
>with IE or NN push Reload several times, my server does one connection to
>the DataBase in all the requests. Then, the Oracle 8i crash becouse the
>other server creates several process, one per thread of the session of the
>Tomcat. I would like to respond only the last request, and cancel the
>previous one.
>Is it possible with Tomcat?


It'd probably be a lot easier to simply up the Oracle configuration.
It's a little of putting the cart before the horse by attempting to
control the number of requests. If the requests exceed the capacity
of your web server the worst that happens is the excess requests get
things like 404's (I think). But an Oracle server crashing means you
probably have aspect of it's configuration set too low. Trying to
solve the problem by some how limiting the requests doesn't sound
like the optimal solution to me. You may be running the server with
default settings. Look at the config file and up whatever it is that
deals with connections to the data base and threads. I used to know
but its been a long time.




RE: Error Log

2001-08-13 Thread Tim O';Neil

At 01:46 PM 8/13/2001, Jeff wrote:
>Nope.


> >Jeff,
>
> >This "code_red" virus seems a Microsoft IIS issue.  Do you think this virus
> >also could attack an apache server?

Well, yes, it can attack an Apache server all it wants,
the good thing is that this vulnerability doesn't exist
on Apache. The worst that happens is that your poor Apache
server has to continually attempt to service requests
for a resource it doesn't have.





Re: JDBC

2001-08-09 Thread Tim O';Neil

At 01:47 PM 8/9/2001, you wrote:
>Does Tomcat have all the necessary JDBC drivers installed to successfully
>connect to a mysql database?  I will be installing Tomcat on Linux Mandrake
>8with Apache shortly.  And I will be developing JSP programs that use MySql.

Michael;

You can get a driver for mySQL here:

http://www.mysql.com/downloads/api-jdbc.html




RE: Redirection and Load Balancing

2001-08-08 Thread Tim O';Neil

At 03:51 PM 8/8/2001, you wrote:

>Is it possible to use mod_jk with standalone tomcat ?

No, mod_jk is an apache binary module. How could tomcat
alone use it?




Re: Getting the user environment variable::Need help

2001-08-07 Thread Tim O';Neil

You write a shell script that loads the variable into a
java parameter to the jvm;

#!/bin/sh
java -DMYVAR=$MYVAR myCoolClass

Use the root shell if possible, not the k shell, your code
below looked like K Shell parlance.

At 09:41 AM 8/7/2001, you wrote:
>Hi,
>
>I basically want to load the shell variables. Can you tell me how I can do 
>that?
>What is the wrapper class all about you mentioned?
>
>Thanks for your help.
>
>Thanks,
>Nilanjan
>***********
>
>Tim O'Neil wrote:
>
> > That said, do this:
> >
> > Properties props = System.getProperties();
> > props.put("MYVAR", "MYVALUE");
> > System.setProperties(props);
> >
> > Then later on in your program you can get the value
> > to your hearts content. Or even in another class or
> > package.
> >
> > Or use a wrapper to load shell variables. But if all
> > you want to do load your own defined variables use the
> > above code.
> >
> > At 07:33 AM 8/7/2001, you wrote:
> > >1) This isn't a Tomcat question: if you'd done the same in a java
> > >application, you'd have found the same thing.  There are forums, 
> newsgroups,
> > >and mailing lists for Java questions.
> > >
> > >2) You're confusing environment variables with properties.  Properties are
> > >defined either by loading them from a properties file, or by 
> specifying them
> > >on java's command line (with "-D").
> > >
> > >3) There is a method, System.getenv(), to get environment variables, but
> > >it's deprecated (the whole concept of environment variables is incredibly
> > >OS-specific).  So you really _should_ be using properties, or
> > > elements defined in your application's web.xml.  Look at
> > >java.util.Properties for the former, and the servlet spec for the latter.
> > >
> > > -- Bill K.
> > >
> > > > -Original Message-
> > > > From: Nilanjan Das [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, August 07, 2001 7:12 AM
> > > > To: tomcat jakarta
> > > > Subject: Getting the user environment variable::Need help
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I am on HP-UX and trying to access one user environment varaible from
> > > > the Java code using
> > > > System.getProperty() method but it is returning NULL. Can anyone point
> > > > out why? This is what I did:
> > > >
> > > > $export TEST=testing
> > > > $echo $TEST
> > > > testing
> > > >
> > > > But when I execute System.getProperty("TEST") from my code, it returns
> > > > NULL.
> > > >
> > > > Can any of you help?
> > > >
> > > > Thanks,
> > > > Nilanjan
> > > >
> > > >




RE: Getting the user environment variable::Need help

2001-08-07 Thread Tim O';Neil

That said, do this:

Properties props = System.getProperties();
props.put("MYVAR", "MYVALUE");
System.setProperties(props);

Then later on in your program you can get the value
to your hearts content. Or even in another class or
package.

Or use a wrapper to load shell variables. But if all
you want to do load your own defined variables use the
above code.

At 07:33 AM 8/7/2001, you wrote:
>1) This isn't a Tomcat question: if you'd done the same in a java
>application, you'd have found the same thing.  There are forums, newsgroups,
>and mailing lists for Java questions.
>
>2) You're confusing environment variables with properties.  Properties are
>defined either by loading them from a properties file, or by specifying them
>on java's command line (with "-D").
>
>3) There is a method, System.getenv(), to get environment variables, but
>it's deprecated (the whole concept of environment variables is incredibly
>OS-specific).  So you really _should_ be using properties, or
> elements defined in your application's web.xml.  Look at
>java.util.Properties for the former, and the servlet spec for the latter.
>
> -- Bill K.
>
> > -Original Message-
> > From: Nilanjan Das [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 07, 2001 7:12 AM
> > To: tomcat jakarta
> > Subject: Getting the user environment variable::Need help
> >
> >
> > Hi,
> >
> > I am on HP-UX and trying to access one user environment varaible from
> > the Java code using
> > System.getProperty() method but it is returning NULL. Can anyone point
> > out why? This is what I did:
> >
> > $export TEST=testing
> > $echo $TEST
> > testing
> >
> > But when I execute System.getProperty("TEST") from my code, it returns
> > NULL.
> >
> > Can any of you help?
> >
> > Thanks,
> > Nilanjan
> >
> >




Re: install probs

2001-08-06 Thread Tim O';Neil

At 04:34 PM 8/6/2001, you wrote:
>Then if I try to start Tomcat I get:
>
>C:\tomcat\bin>startup
>Out of environment space

As the message says, you're out of environment space,
process space. Increase it by either clicking the
control button of a command window and increasing
it through the options tab or pass a command line
switch that increases the environment... (can't tell
you witch one, I don't have win98 handy.) Issue
a "cmd /?" in a command prompt.





Re: ref: JRE

2001-08-04 Thread Tim O';Neil

At 01:14 PM 8/2/2001, you wrote:
>Let me elaborate about my requirements. I have created a set-up that uses
>the jre 1.3 but when I start tomcat I get errors about class files not being
>instantiated. If I install tomcat using the jdk then I do not get those
>errors. This lead me to believe that you need the full jdk to install and
>run Tomcat.
>
>Is this correct?


Yeah. You need javac, jsp's are compiled on the fly.





RE: cannot reuse port

2001-08-03 Thread Tim O';Neil

Well he seems to think he's on Win2K. One big
clue is there is no port of IIS for Linux that
I'm aware of.

At 01:24 PM 8/3/2001, you wrote:
>I think he's on Linux.

> >Don't know I'm running Windows 2000 & IIS with Tomcat 3.2




Re: Is there a way to get the Referrer information from a request?

2001-08-02 Thread Tim O';Neil

At 03:35 PM 8/2/2001, you wrote:
>Tim O'Neil at [EMAIL PROTECTED] wrote:
>
> > Your web server must not be setting it then. What server
> > are you using? Write a quick perl script that prints out
> > all the headers.
>
>Can't believe you are suggesting to use PERL here...
>Use the SnoopServlet... It does the job for you... :)


Oh whatever. I get yelled at by people who refute all
code but java, people who think perl is fine and hate
java, think pgp is the answer, believe in python as
the future... you name it, I've met some one who uses
only that. You can't win. I just try to get the project
done. Sometimes java isn't the answer.






RE: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bri dge on linux)

2001-07-31 Thread Tim O';Neil

At 04:02 AM 7/31/2001, you wrote:
>At 12:32 PM 31/07/01, you wrote:
>> >  - text/x-vcard
>
>
>What, no vcards??? I used to be able to waste hours tracking down and 
>deleting the little buggers from my hard drive! Now what am I going to do 
>on a Friday afternoon... after defrag, anti-virus, cleanup etc.

Hey, those vcards things I actually find useful. If a guy or
gal whose info I want to put into my palm V has one of those,
I can just drag it onto the latest palm desk top and it will
get loaded into the palm on the next sync. Very handy imo.
Would never use them for Outlook though, since I never use
Outlook, or Virus Construction Kit v... what are they up to,
"2000" or something? That's a lot of virii...





Re: How to "alias out" port 8080?

2001-07-31 Thread Tim O';Neil

At 01:47 PM 7/31/2001, Pier P. Fumagalli wrote:
>Unless you bind to two different IP addresses on the same machine.

If he has a multi homed machine, which was not mentioned and
is effectively two different machines anyway, as far as IP is
concerned.




RE: How to "alias out" port 8080?

2001-07-31 Thread Tim O';Neil

At 12:43 PM 7/31/2001, you wrote:

> No.  You can think of it as having two butlers trying to answer the
>same door - it just doesn't work because they fight with each other to
>answer the door.  (Its not quite that straight forward, but you probably get
>the idea)

Actually, it is that strait forward. Ports are locked once
claimed by a process. That's it.




Re: How to "alias out" port 8080?

2001-07-31 Thread Tim O';Neil

At 12:48 PM 7/31/2001, you wrote:
>I have the similar question: What if we have Apache run on port 80 and don't
>want to config Apache to work with Tomcat? So can we have both Apache and 
>Tomcat
>standalone run on port 80 so users don't need to type the port number? Thanks.

Can't do that. You can't have both processes use the same
port at the same time. You can write/find a proxy server/
load balancer that will forward requests to the appropriate
process however.




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Tim O';Neil

At 05:19 PM 7/30/2001, you wrote:
>Of course, there are many non-performance-related reasons you might be
>required to use Apache in conjunction with Tomcat (if you need the other
>functionality that it provides).  But, if you don't, you owe it to
>yourself to see if Tomcat stand-alone runs fast enough before undertaking
>the extra pain it takes to configure them to run together.

I don't consider it that painful. It's hardly a pain at all.
It involves adding an include to apache's httpd.conf. You still
have to do all the configuration stuff in tomcat anyway.
But I've heard from more than one that Tomcat is faster. So
there's that. But if security is an issue for you I have a hard
time believing that Tomcat is as secure as Apache.




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Tim O';Neil

At 02:04 PM 7/30/2001, you wrote:
>Are there any advantages running Tomcat with Apache
>versus running Tomcat standalone and listening on port
>80.  I am running only *.jsp files on my webserver.

Added security if you use Apache.




Re: Preventing System.exit(0)

2001-07-30 Thread Tim O';Neil

At 08:54 AM 7/30/2001, you wrote:
>Imagine if someone who is authorized to publish JSP's on your site
>invadvertently included the following in their JSP:

Well, I think I asked that question. As far as I'm concerned
allowing users to run jsps on your server is black box code.





Re: Very OT for a lot of you put just asking.

2001-07-30 Thread Tim O';Neil

At 04:36 AM 7/30/2001, you wrote:
>OK, sorry if you feel this is WAY OT.
>
>I am wanting to compile a list of the best one-liner Linux commands out
>there.  So all you admins and users out there feel free to send me a copy of
>your best one-liner commands with a brief explanation as to what they
>accomplish.

Here are some commands that accomplish nothing:
(Enter in a shell to see the effect)

man: why did you get a divorce?

got a light?

%blow

^How did the sex change^ operation go?




Re: Preventing System.exit(0)

2001-07-30 Thread Tim O';Neil

At 06:24 AM 7/30/2001, you wrote:
>Is it possible to configure Tomcat to avoid shutdown
>in case the jsp page contains the code:
>
><% System.exit(0); %>

Java SERVER pages are server-side code. Why is having
a system object issue an exit method an issue for you?
Do you plan on having your server run black box code?




RE: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bri dge on linux)

2001-07-29 Thread Tim O';Neil

At 08:57 PM 7/29/2001, you wrote:
>[X] +1 -> Plain Text only. Strip HTML on the mailing list.
>[ ]  0 -> I don't give a damn shit.
>[ ] -1 -> You mad? I love HTML in messages and want to keep using it.
>
>New subscribers should be POLITELY (he he he!) directed to read the FAQ upon
>subscription.

Hell, add a direct url to the faq as a mail list footer.




Re: RONGCHENG BEST CHEER GRANITE CO., LTD

2001-07-29 Thread Tim O';Neil

Stripping these out would be good too, but I'm fundamentally
a realist...

At 07:50 PM 7/29/2001, you wrote:
>ÈôҪȡÏû£¬Çë»Ø¸´:  [EMAIL PROTECTED]
>ZL
>RONGCHENG BEST CHEER GRANITE CO., LTD




Re: VOTE: HTML in Messages and politeness

2001-07-29 Thread Tim O';Neil

At 09:44 AM 7/29/2001, you wrote:
>On 29 Jul 2001 15:42:01 +0100, Pier P. Fumagalli wrote:
>
> > One thing I can ask to you guys is, do you want me to strip HTML out of 
> your
> > messages and reject emails only with HTML content type? Plenary vote open
> > until 11:59 PM GMT of Monday 07/30/2001.
> >
>
>[X] +1 -> Plain Text only. Strip HTML on the mailing list.

If the above means "Yeah, do that, strip out the html" I have
nothing but love for that move.




Re: how to connect a remote MS-SQL server?

2001-07-28 Thread Tim O';Neil

At 10:59 AM 7/28/2001, you wrote:
>but, the client is on a linux machine...then How?

I came up with this after simply entering "mssql linux client"
in google: http://www.freetds.org/, looks promising after a
glance.
Want more? Do the same.




Re: how to connect a remote MS-SQL server?

2001-07-28 Thread Tim O';Neil

At 10:52 AM 7/28/2001, you wrote:
>Hi All,
>
>How to connect to a remote (Not at the same machine) MS-SQL database using 
>JDBC-ODBC bridge?
>
>looking for a simple sample code

Do you have the ms-sql client on your client machine? If so
configure it for tcp/ip and then connect with the same jdbc
code you would use for any data source.




Re: PWS tomcat problem-UCBUS

2001-07-28 Thread Tim O';Neil

At 07:59 AM 7/28/2001, you wrote:
>Could somebody help me on this.
>I have IIS and Tomcat on NT4.0 and could configure successfully. Means 
>that the "examples " example is working fine. However when I am trying to 
>add my MQ wOrkflow application as a web application I am getting the 
>following error. The web-appliction need to work in separate directory. 
>ANy help in this regard is higly appreciated
>
>404- page not found and the isapi log says
>
>[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
>NULL
>parameter
>[jk_uri_worker_map.c (185)]: In k_uri_worker_map_t::uri_worker_map_free,
>NULL parameters
>[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
>[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to
>server
>[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
>[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to
>server
>
>Could somebody help me
>UCBUS

You add a copy of your server.xml and .properties file so we can
see what it's lacking.





Re: Tomcat on FreeBSD

2001-07-28 Thread Tim O';Neil

At 06:32 AM 7/27/2001, you wrote:
>Hello all,
>
>I try to install Tomcat on a Freebsd 5.0 and i don't find a recent jdk.
>
>Could you tell me what version you use if you're on FreeBSD ?
>[only jdk1.18 is available for FreeBSD no ?]
>
>(for exemple i will try the JDK + Linux emulation but i'm afraid by
>the performance : if somebody could give me a feedback i will greatly
>appreciate).
>
>Thanks per advance,
>
>--
>  [EMAIL PROTECTED]
>
>  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
>  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
>
>PS : I have already sign the petition for porting a recent version of
>the
>JDK under BSD.

Well, there may not be a port, ever, and it has nothing
to do with the will of the fBSD proting team. Read
http://www.freebsd.org/cgi/url.cgi?ports/java/jdk12-beta/pkg-descr
So you can have Java 2 on fBSD now, you'll simply have to build it.




Re: Not another servlet based BBS?

2001-07-24 Thread Tim O';Neil

At 01:17 PM 7/24/2001, you wrote:
>Do you mean something like or better than the software
>here:
>
>http://www.jivesoftware.com/

Yes, that is one of the two products I was talking about.





Not another servlet based BBS?

2001-07-24 Thread Tim O';Neil

I know, there are two that I've played with. And
we all know the problems with the ones written
in CGI. Does anyone think there could be interest
in a new offering, not only servlet-base but
also packed with features I can't seem to find on
the existing products?




RE: Servlet web hosting?

2001-07-24 Thread Tim O';Neil

At 08:51 PM 7/23/2001, you wrote:
>Hi all:
>
> Along the same lines, you might consider getting a DSL or cable modem
>setup, then using a dynamic DNS service like http://easydns.com (there are
>others, that's just the one I use) to point the domain to your home machine.
>The downside is that if your IP address does change (e.g. at reboot), you
>can be off the grid for an hour or so at a time because of IP address
>caching.  But you did say you were more interested in technology than
>stability.  You might also want to read the DSL provider's service agreement
>carefully, as some don't want you running a server.

If you want to run a server though make sure you get a
static ip assignment. It's a real pain to run a server
with a dynamic ip.




Re: Servlet web hosting?

2001-07-23 Thread Tim O';Neil

At 03:24 PM 7/23/2001, you wrote:
>No personal experience, but I've heard of people talk about
>www.iwantjava.com.

Must be just talk, 'cause their server isn't running.




Re: Run tomcat as root ?

2001-07-20 Thread Tim O';Neil

At 03:04 PM 7/20/2001, you wrote:
>Currently we are running Tomcat as root on a  linux machine , are there any
>know security risks by doing so? SHould i rather run tomcat as another,
>restricted user ?

If you want to run tomcat on a port below 1024 you
have no choice.





Re: help!

2001-07-19 Thread Tim O';Neil

At 07:06 AM 7/19/2001, you wrote:
>Roger Ruan wrote:
>
>>Dear Sir,
>>
>>I am using tomcat on windows 2000.
>>I have a problem:
>>  For IIS of Windows 2000 professional version only support 10 
>> connections,I want to replace IIS with Apache,but I do not know if 
>> Apache supports the ASP or not.Our codes are developed in JSP/servlets and ASP.
>
>
>Happy to help someone convert from proprietary to free software!
>
>http://freshmeat.net/projects/apacheasp/
>http://freshmeat.net/projects/instantasp/

No doubt. But don't you need to get advanced server
to go over 10 client connections? I thought the limit
was imposed by the os, not just iis.

Oh, and if you insist on using M$ as a server platform
get ready to pay a regular fee and the os locked to the
hardware config of the machine (whatever that means, some
kind of license enforcement or something) and other great
features.




RE: classpath?

2001-07-17 Thread Tim O';Neil

At 03:26 PM 7/17/2001, you wrote:
>didn't you forget the $ sign?
>
> >PATH=jsdk_directory/bin:{$PATH}
>   ^
> >export PATH


Sure did. My excuse is my back is in massive pain
as I type this.





Re: classpath?

2001-07-17 Thread Tim O';Neil

At 03:15 PM 7/17/2001, you wrote:
>Hi all!
>
>I hope somebody can help me..
>In Windows, when you install jdk and jsdk (to compiling applets and
>servlets) you have to add or modified the variables PATH and CLASSPATH
>in autoexec.bat file. but in Solaris I don't know where (I think
>.profile) and how configure it...
>When I type   JAVAC SOMESERVLET.JAVAI want the javac command invoke
>at jsdk_directory/bin/javac and use the libraries of jsdk_directory.

You might need to know which shell you're running,
but you're right, you'll probably get away with adding
this line to your .profile:

PATH=jsdk_directory/bin:{PATH}
export PATH




Re: How to change the IP address

2001-07-16 Thread Tim O';Neil

At 04:57 PM 7/16/2001, you wrote:
>What do you m ean by change the IP address.  Does the machine have
>multiple IP addresses?  You should be able to determine IP info on a
>windows box using winipcfg - I think that's right for NT, can never
>remember.  Whatever IP address the box listens on tomcat will respond
>to.  Is this what you want?

You determine the ip on any Win95 and later machine w/ipconfig;
no params.





Re: find the NT account name with tomcat for IIS

2001-07-12 Thread Tim O';Neil

At 08:34 AM 7/12/2001, you wrote:
>hi,
>
>i would like to get the NT account name of the person browsing the web page.
>i'm using jsp pages with tomcat for IIS.
>
>does anyone know how can i do it?

You'll need to write a nt domain auth client (native code) and a jni
driver. Its not going to be a simple matter, but people have done
it, I used to work for a web portal vendor and that product did it.
I think there's a third party product out there too somewhere that
will do it for you.




Re: jk_nt_service and NT error 2140

2001-07-12 Thread Tim O';Neil

At 08:38 AM 7/12/2001, you wrote:
>---> NT says: Error 2140
>
>Did I forgot something or did I misunderstood something or is there a real
>problem with jk_nt_service.exe?


Start it in a command box; type "net start  and send the output to the list.





RE: Installation of mod_jk.so at AIX 433

2001-07-11 Thread Tim O';Neil

At 03:37 PM 7/11/2001, you wrote:
>Are you using gcc or C for AIX / VisualAge?
>
>I'm using visualage 5.0, and needed to hack apxs thus:
>
>my $CFG_CFLAGS= q( -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT
>-U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp
>-DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE
>-D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT
>-I../lib/expat-lite `../apaci`);# substituted via Makefile.tmpl
>
>my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bexpall
>-bI:/usr/local/apache/libexec/httpd.exp -lc); # substituted via
>Makefile.tmpl
>
>note: I'm not an apxs expert so most of these options probably
>   depend on the options you built apache with.
>   I've not tried gcc.

I've *generally* had fewer problems using gcc to do things
than when using the hardware vendor's tools. Sparcworks 4
(for sun work stations obviously) had a notorious rep in a
shop I worked at a few years ago. Visualage too, for AIX
but I often wonder if the problems I experienced weren't due
more to AIX's archaic shared memory model than to the compiler.





Re: There is no disk in the drive!

2001-07-11 Thread Tim O';Neil

At 10:48 AM 7/11/2001, you wrote:
>Hi,
>
>It could be trying to get a lock on a used file.
>
>No idea how to fix it though 8o)


Whatever it is it's a pretty poor design flaw.
Sometimes these programs get over it if you simply
put a disk in the drive. Or if you know what file
its looking for create an empty file of the same
name on a floppy and stick that in the drive.





Re: Problems when importing a SSL certificate

2001-07-11 Thread Tim O';Neil

Assuming your using Tomcat standalone, make sure your key store
pass word and your key pass word are the same. Yes, which means
you can store one key in your keystore. I ran into this little
hitch myself. I wasn't able to get tomcat standalone to work ssl
any way though. If you do let me know how you did it.


At 05:25 AM 7/11/2001, you wrote:
>Hi,
>
>   I´ve got the Tomcat/SSL Howto from the jakarta Project webpage. In the
>last step of "Importing SSL certificates", i´ve got some trouble. The
>output of the command "keytool -import -v -trustcacerts -alias tomcat
>-file CERT.pem" was this:
>
>Enter keystore password:  changeit
>keytool error: java.lang.Exception: Public keys in reply and keystore
>don't match
>
>
>What happened? How can I fix it?
>
>I hope you can help me...
>
>Thanks beforehands
>--
>Antonio Terceiro
><[EMAIL PROTECTED]>
>--
>Bolsista do projeto SIDOC
>CPD/UFBA - Divisão de Projetos




Re: Does Tomcat needs jdk 1.2.2

2001-07-03 Thread Tim O';Neil

At 04:17 PM 7/3/2001, you wrote:
>Whatever, if you are having a bad day let's talk off list. We've wasted enough
>bandwidth.  My point concerned Java JDK distribution not being free.

I'm not having a bad day. I'm always an ass. If your point
was "JDK distribution not being free" then make it plainly.
As for JDK not being free, not too sure what your talking about.
There's a ton of java based products out there, many of them
require a jvm for use that they don't distribute. I guess
they're all in some kind of license violation? And if that's
not your point QUIT PUSSYFOOTING AROUND and just SAY IT.




Re: Does Tomcat needs jdk 1.2.2

2001-07-03 Thread Tim O';Neil

At 03:17 PM 7/3/2001, you wrote:
>Believe me, we never give anything away!

Right. Making your point pointless. Why don't
people believe in making sense anymore?




Re: Does Tomcat needs jdk 1.2.2

2001-07-03 Thread Tim O';Neil

At 02:47 PM 7/3/2001, you wrote:
I work for a US Defense contractor and we do this sort of "here's what we want
>>your product to do" thing all the time.
>
>I've never heard of a defense contractor that was giving
>away their product.

One more thing; did you actually read my post? Doesn't seem like it...




Re: Does Tomcat needs jdk 1.2.2

2001-07-03 Thread Tim O';Neil

At 02:25 PM 7/3/2001, you wrote:
> > Not really. You either use tools and standards that other people
> > before have developed, and agree to their terms and give them
> > due credit where appropriate, or re-invent the wheel all over
> > again. That's not sad at all, that's fair trade. How would you like
> > it if a "customer" (maybe I'm alone in this but I've never worked for
> > a company that paid Sun a dime for the JDK itself) came up to you
> > and said "I want to redistribute your product and not only that I
> > want you to re-engineer it so that it works to MY specifications, and
> > if you bill me I'm going to tell you to get lost."
>
>Tim,
>
>I work for a US Defense contractor and we do this sort of "here's what we want
>your product to do" thing all the time.

I've never heard of a defense contractor that was giving
away their product.




RE: Does Tomcat needs jdk 1.2.2

2001-07-03 Thread Tim O';Neil

At 08:41 AM 7/3/2001, you wrote:
>Thanks for this very important legal note.
>
>It is very sad to here that you can't deploy a product without relying on
>the user to install before another product ( which is a development tool ).

Not really. You either use tools and standards that other people
before have developed, and agree to their terms and give them
due credit where appropriate, or re-invent the wheel all over
again. That's not sad at all, that's fair trade. How would you like
it if a "customer" (maybe I'm alone in this but I've never worked for
a company that paid Sun a dime for the JDK itself) came up to you
and said "I want to redistribute your product and not only that I
want you to re-engineer it so that it works to MY specifications, and
if you bill me I'm going to tell you to get lost."




RE: Does Tomcat needs jdk 1.2.2

2001-07-03 Thread Tim O';Neil

At 06:35 AM 7/3/2001, you wrote:
>Thanks Randy,
>
>Can you please direct me to the place were SUN says that tools.jar may not
>be redistribute?

He's right, I remember reading that too. I think it's in the javadocs/tools
section, and possibly in the agreement blurb they put over the "agree"
radio button you have to click to download the jdk.





Re: J2SDK 1.3.1 on Linux Segmentation Fault

2001-07-03 Thread Tim O';Neil

At 05:55 AM 7/3/2001, you wrote:
>A while ago I posted a question about a segmentation fault error I was 
>getting with Tomcat.  The machine is SuSE Linux 7.1 and the application 
>was fine with J2SDK 1.3 but when I switched to J2SDK 1.3.1 it aborted with 
>a segmentation fault.  It turns out that it was aborting in the call to 
>new DOMParser() in Xerces so it's not a Tomcat problem per se, but I still 
>think it's worth mentioning what I found.
>
>I have discovered that this is a documented problem (Sun Java bug database 
>ID 4466587).  The problem appears when an exception is thrown inside a 
>deeply recursive call and seems to be related to glibc-2.2-x.  I gather 
>that glibc-2.1-x enforced a 2M stack size limit but glibc-2.2-x does not, 
>but it can only handle larger stacks if it's compiled with 
>--enable-kernel=2.4.0 .  The workaround is to set 'ulimit -s 2048' in your 
>bash shell or 'limit stacksize 2048' in tcsh before starting the VM.  I 
>have not tried recompiling glibc.

To add more possibly useless comments to this it seems like a good
idea generally to up the limits in the descriptor table for most of
the params in a production system. I myself have encountered a number
of problems that have been solved by increasing the number of file
descriptors for example. A lot of unices ship with a default value
of 64 for this; way to low for a production system. I typically edit
(or create) startup scripts that use the root shell (sh) to kick off
processes by adding ulmit command the increase the handles and descriptors
to various production levels that seem to be useful, it also helps to
know and be comfortable with setting the heap size settings in the jvm,
although I see in my 1.3.1 copy running on 2K the -mx and -sx options
seem to be missing...




RE: Determining if Tomcat is running

2001-07-02 Thread Tim O';Neil

At 04:27 PM 7/2/2001, you wrote:
>I'm not really familiar with Linux or the ps command.
>Could you give a short description of what this does:
>
>ps -aux --cols 500 |grep $TOMCAT_HOME

execute the process status command using arguments
that tell it to return a list of all the processes
regardless of owner, and widen margins of the logical
output device, masking out any delimited lines that
don't have the contents of the variable $TOMCAT_HOME
as a substring.




Re: Determining if Tomcat is running

2001-07-02 Thread Tim O';Neil

At 03:36 PM 7/2/2001, you wrote:

>Probably not foolproof, but off the top of my head:
>
>  ps -aux --cols 500 |grep $TOMCAT_HOME

ps aux <--- BSD options. You'll want "ef" for
SysV variants like Linux.

I KNOW, Linux isn't a sys V kernel, but the ports,
like ps seem to be.




Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread Tim O';Neil

At 04:03 PM 7/1/2001, you wrote:
>It also helps to be able to see the mails from the tomcat list if they are 
>mixed in with the rest - i use several mail clients to read mail on my 
>IMAP server, and not all of them do automatic filtering.
>
>Is there any good reason not to prefix tomcat-user mail with [tomcat-user]?


Some one has to configure it. Good reason #1.






Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread Tim O';Neil

At 03:12 PM 7/1/2001, you wrote:
>Is it possible for the list admin to apply a '[tomcat-user] ' or similar 
>prefix to all mails sent from the mailing list?
>
>This helps a lot in separating list traffic from other traffic.

My client allows filtering via one or all of the incoming mail
headers, I filter the tomcat mail list with the "Any Recipient"
header. I don't know that this header is an rfc 821 compliant one
(In fact I can't find it in the rfc) but it works for me. Surely
you can filter out tomcat mail list messages through one of the
other ones though.






Re: Pity poor Petra

2001-06-29 Thread Tim O';Neil

At 11:39 AM 6/29/2001, you wrote:
>The poor lass is going to get back in ten days time to find herself the
>subject of hatemail from every list she's ever subscribed to (and not
>welcome back on a lot of them). This is something which could happen to
>anyone of us who entrusts the administration of their mail server to
>someone else. Cut her a little slack - it's (probably) not her fault.

May not be her fault. Even so, this doesn't happen to me. I only
subscribe to this list, and when I switch mail servers or go somewhere
I unsub. I did it last December in fact, I was switching isps. Did the
right thing- unsubbed. The only thing I can really say in her defense
is that unsubbing from this list is a bit of a pain.





Re: receiving lots emails from "Petra Horta"!!!

2001-06-29 Thread Tim O';Neil

At 10:15 AM 6/29/2001, you wrote:
>I'm receiving lots mails from Petra Horta with the subject always with a 
>prefix "AntW:" and with the body of the message:
>
>"
>Ich bin bis 9.7.2001 auf Urlaub. Bitte wenden Sie sich in dieser Zeit an 
>meine Kollegen im Team EW2
>
>Mit freundlichen Grüßen
>Petra Hora
>"
>
>I don't know why but I'm starting having a few problems with lots email 
>coming in this list by him with no content in those mails.
>
>Please, anyone contact the support of this list or send it to me, because 
>they're lots mails coming with nothing useful!
>
>thx,
>Pedro Salazar

The idiot set his email client to reply to any message with
an out of the office reply or something and didn't unsub from
the list first. Just do what I do and filter out his stupid
crap.




Re: out of environment space

2001-06-28 Thread Tim O';Neil

At 04:55 PM 6/28/2001, you wrote:
>Hello, after scaling back to tomcat 3.2.2 from tomcat 4.0 beta 5, after i
>was informed that my jsp pages wouldnt refresh in the winX plat due to a
>bug, my jsp page no longer works. when i enter the command tomcat run it
>says "out of environment space".  Here is what i currently have in my
>autoexec:


increase the environment space in the dos command box.
[open a dos box, click on properties, click on memory
and up the environment from 'auto' to something big
(i set mine up to the largest value in the combo)]
after applying the change, you'll need to exit the dos
box and start another one. the good thing is you'll
only need to do this once.




Re: TomcatBook - was TOMCAT SUCKS

2001-06-28 Thread Tim O';Neil

At 04:18 PM 6/28/2001, you wrote:
>I believe there is a project (yes there is, I thought I'd check before
>sending this) called tomcatbook at sourceforge
>(http://tomcatbook.sourceforge.net).  Perhaps that would be a good place to
>a) look for advanced answers, and b) suggest questions.

Its not a good place to look yet. Neither the "browse online"
or "download" links go anywhere. I guess its really not ready
yet.





Re: Providing access to X11 server Using AWT in Linux.

2001-06-28 Thread Tim O';Neil

At 02:26 PM 6/28/2001, you wrote:
>Where do I set DISPLAY, is it in the /etc/profile file
>where I have to set 'DISPLAY=0.0' ?
>And how about setting the xhost access?

In your login script.




Re: TOMCAT SUCKS

2001-06-27 Thread Tim O';Neil

At 01:53 PM 6/27/2001, Nick wrote:
>Hi guys,
>
>I really think that TOMCAT SUCKS so bad. I'm not against the open source
>community but this is why I think that TOMCAT sucks:
>
>1. The documentation for Tomcat is so bad and it covers only the basic
>server installation. HELL - usually for production purposes people have
>load balancers, virtual hosts, etc.

The open source community doesn't have the resources necessary to dedicate
a team to maintaining documentation.

>2. Virtual hosting for Tomcat is almost impossible - especially if you have a
>load balancer in front of the web server.

In my opinion you shouldn't be using tomcat as your web server.

>3. The integration with apache (using mod_jk) sucks. It slows down the
>productivity of the web server with at least 1000%

Not even close to true. You must have one f'd up system.

>4. And guess what is the hell you have to go through if your virtual hosts
>have different servlets mappings. You waste time and you know - time is money.

Again, use Apache with tomcat.

>5. And what if you have a problem that is not in the documentation (99% of
>the problem with Tomcat are not even mentioned in the documentation)? I guess
>the only way is to post in the mailing list. And guess what happens if nobody
>has experienced this problem before? You have to start wasting your time
>again.

See point 1.

>I really think that TOMCAT is OK for testing purposes. Trust me - for complex
>configurations it sucks.
>If you want to use a good production application server - take a look at
>WebLogic, Resin, Allaire JRun, etc.

Ha ha ha ha... how can you say JRun is a "good production server" with a
strait face? If they spent more time working on the code than using it by
taking all the flat file editing you need to do to configure it (like any
product of this type) and putting it all into a ridiculous gui that doesn't
make that configuring any easier they might shock me by having a real
product on their hands. And don't get me started on the rest of those.





Re: una pregunta

2001-06-27 Thread Tim O';Neil

At 12:36 PM 6/27/2001, you wrote:
>That sounds like "thank you" in Mandarin,

Well, there you have it. It simply doesn't pay to
try to learn Chinese from watching Jackie Chan movies.





Re: una pregunta

2001-06-27 Thread Tim O';Neil

At 11:29 AM 6/27/2001, you wrote:
>What's "cantonese"?
>And how do you say "thank you"?
>
> > I know how to say "thank you" in Cantonese. That's it.
> > And that I learned from a movie. Not much help. Want the
> > name of the movie?

Cantonese, the language spoken in Canton. I think its
the dialect they speak in Hong Kong, as opposed to the
mandarin that is the "offical" dialect supposedly.

You know how many dialects there are? Like ten or more I
think. The one word I know, thank you, is shi-shi.




Re: una pregunta

2001-06-27 Thread Tim O';Neil

At 10:55 AM 6/27/2001, you wrote:
>On Wed, 27 Jun 2001, Martin Mauri wrote:
>
> > Eu no falo portugues, eu sou do Argentina.
>
>Hey, I'm trying to learn Chinese, anybody want to help me out with
>that? :-)

I know how to say "thank you" in Cantonese. That's it.
And that I learned from a movie. Not much help. Want the
name of the movie?




Re: tomcat on a home machine???

2001-06-27 Thread Tim O';Neil

At 06:18 AM 6/27/2001, you wrote:
> > Good luck.
>Thanks I may need it :)

All you really need is to make sure your local
hosts table has an entry for "localhost." If you
can enter a url of 127.0.0.1 and get what
you expect to see then you can map it to
"localhost" in the table. If not, then your
network layer would seem to be hosed.




Re: running on 80 as user

2001-06-27 Thread Tim O';Neil

At 08:23 AM 6/27/2001, you wrote:
>Can I run Tomcat as standalone on port 80, as a user instead of as
>root? Thanks.

No, regular users aren't supposed to have access to any
ports below 1024 on a unix machine. Which is posix standard.
Before you mention it apache (and netscape and etc) can do it
because they run a native administrative process that runs
under root.




Re: Spaces in JAVA_HOME (was RE: una pregunta)

2001-06-26 Thread Tim O';Neil

At 03:22 PM 6/26/2001, you wrote:
>My problems with spaces in JAVA_HOME have nothing to do with IE or RFC
>conventions.


Then I'll take that as a "no" to my question.

Shoot.





RE: una pregunta

2001-06-26 Thread Tim O';Neil

Jann;

That reminds me, would you just happen to know of an RFC that
describes the proper convention for file names and paths? Or
some definitive proof that IE breaks the standard with regard
to file names?

At 03:14 PM 6/26/2001, you wrote:
>NO NO!  DON'T use spaces in Java Home -- it could cause problems down the
>road
>
>if you must, use
>
>set JAVA_HOME=d:\progra~1\jdk1.3.0_02
>
>-Original Message-
>From: Krishna Muthyala [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, June 26, 2001 3:02 PM
>To: [EMAIL PROTECTED]
>Subject: Re: una pregunta
>
>
>perdon mi si mi espanol esta mal hace 4 anos wue no
>hablaba espanol(no soy un espanol o latino)usted tiene
>que poner classpath para java en su autoexec.bat de
>systema, y tam bien en tomcat.bat
>pon un linea asi
>
>set JAVA_HOME=d:\program files\jdk1.3.0_02 or
>cualquier
>
>buena suerte
>
>Kris
>--- alvaro pinto <[EMAIL PROTECTED]> wrote:
> > Buenas tardes,   quisiera saber como puedo usar el
> > jakarta-tomcat para windows98 , porque cuando lo
> > ejecuto me sale un mensaje en em ms-dos :
> >
> > < > development kit installations>>
> >
> > ese es el mensaje que sale , es por eso que
> > quiesiera
> > que me ayuden con ese problema.
> >
> > gracias
> >
> >
>_
> > Do You Yahoo!?
> > Obtenga su dirección de correo-e gratis @yahoo.com
> > en http://correo.espanol.yahoo.com
>
>
>__
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/




RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Tim O';Neil

Routers and fire walls may have settings in them that
decide that a connection has been idle too long and close
it. We had a problem with an installed product (ours)
that kept having problems connecting to other components.
(Distributed app). After months of finger wagging and
getting chewed out by the customer and getting the threats
of pull outs and all that their particular make of Cisco
router had this setting set to kill those idle connections
by default. When we set the setting to ignore how long a
connection was sitting idle, the problem went away.

At 11:16 AM 6/26/2001, you wrote:
>On Tue, 26 Jun 2001 16:20:27 +0200, GOMEZ Henri wrote:
>
> >What's you workers.properties file, could you send us a copy ?
>
>
>
> >in ajp12 you'll see a performance loss since Apache will loose
> >time to reestablish the connection.
>
>Yeah, but I figure that's better than what I'm getting now.  Based on
>the logs, I'm guessing it's having to do a lot of that already with ajp13.
>
> >Also did you have a firewall
> >between Apache and Tomcat, something which could drop connections
> >after a certain time of inactivity ?
>
>Actually, you may have hit part of the problem here.  I do have firewalls in
>there that could be shutting connections down and causing mod_jk to have
>to cycle through connections more often than it normally would.  I'll look 
>into
>that...thanks.
>
>Best Regards,
>
>Jason
>
> >>
> >>
> >>On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:
> >>
> In my mod_jk.log file, I'm getting a lot of different error
> messages that must
> be getting handled properly as this isn't happening as often
> as there are
> messages in the log. The one that looks to be of the
> >>frequency of this
> problem follows:
> 
> [Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error
> sending request try
>  another pooled connection
> [Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error
> sending request try another pooled connection
> >>>
> >>>You seems to be out of thread process on the java side.
> >>>Try to increase the number of Ajp13 threads (in server.xml
> >>but I didn't
> >>>remember how :)
> >>
> >>
> >>




Re: Apache won't start with Tomcat

2001-06-26 Thread Tim O';Neil

Might help to have the section of the conf file that
the error is talking about...

At 11:24 AM 6/26/2001, you wrote:
>Greetings:
>
>I have recently upgraded to Apache 1.3.14 with Tomcat 3.2.2. When I attempt
>to start Apache,
>I get the following error message:
>
>Syntax error on line 1 of
>/usr/local/jakarta-tomcat-3.2.2/conf/tomcat-apache.conf:
>Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
>not included in the server configuration
>./apachectl start: httpd could not be started
>
>
>Being a novice at this, I would appreciate any and all comments.
>
>
>Thanks!
>
>
>Greg Ferrara




Re: URL rewriting ad nauseum

2001-06-26 Thread Tim O';Neil

Session tracking without cookies is a huge engineering mess.
I don't quite understand what your choice of server platform
has to do with it. Have you taken a look at the HttpSessionObject?
Is that what you mean with the bug you mention? (I've used cookies
solely, I don't know much about HttpSession...)

At 08:55 AM 6/26/2001, you wrote:
>My site *has* to track sessions whilst allowing users to disable cookies.
>
>In development so far i've been using tomcat with apache (using mod_jk).
>This isn't going to work for the real thing (bug #1388)  As far as i can
>see and if i understand right, i have 3 options:
>
>1) Use Tomcat standalone
>2) Use mod_jserv
>3) Use something else other than Tomcat
>
>None of these appeal particularly, but in the meantime, I have to do
>something... so:
>
>Firstly, does anyone know of the approximate comparative performance
>difference between tomcat standalone and tomcat/apache with mod_jserv?
>(given that most of my pages are jsp pages...)  Is there a huge
>difference?
>
>Secondly, does anyone have any recommendations for (my least favourite)
>option three? (sorry)
>
>With many thanks for any advice,
>Rosario
>
>
>
>Do You Yahoo!?
>Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
>or your free @yahoo.ie address at http://mail.yahoo.ie




Re: Tutorial for JSP <--> JDBC <--> ProgreSQL 7.1 ??

2001-06-21 Thread Tim O';Neil

At 01:20 AM 6/21/2001, you wrote:
>I read in the book from Wrox, Prof JSP, it is a good sample.
>
>or you can download my script in 
>www.blueoxygen.org/project/cimande/download.html
>
>Contact me if you got a problem.

Frans; your url should be

http://blueoxygen.linuxindonesia.com/project/cimande/download.html

the above just gets users a 404.



-Tim




RE[2]: start up tomcat from a virtual terminal

2001-06-21 Thread Tim O';Neil

At 10:39 AM 6/21/2001, you wrote:
>Thanks for yours answers, sincerely. I can already close the window of the
>XTerminal usig "nohup" command, but the window of the Xterminal is opened by
>a client of Xterminal, when I close the client's instance, the tomcat shut
>down, or if I turn off my computer(when I star up the XTerminal), the tomcat
>falls too. It is as if the tomcat was connected somehow to the remote
>machine.
>
>Some idea?


And you tried issuing "nohup blablablab &" as the root user?

nohup terminated with a "&" should do it.




-Tim




Re: Servlet not in webapps directory

2001-06-21 Thread Tim O';Neil

At 12:17 AM 6/21/2001, you wrote:
>Hi ! It is possible to lauch a sevlet that is not in the TOMCAT_HOME
>directory ?
>Can I do that by configuring a Context for my servlet ? And how exactly ?


You don't actually lauch (I guess you mean "launch") a
servlet. Every who has a notion about a servlet life
cycle should make sure its correct by reading

http://www.java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html

I felt like mentioning it because I've seen so many
incorrect ideas about how servlets work and are run
on here its kinda funny.


-Tim




Re: AW: strange behavior with netscape browser

2001-06-19 Thread Tim O';Neil

At 12:20 PM 6/19/2001, Thomas wrote:
>There is no way. It is the first command I call in doGet and doPut.

Huh? You have no way of issuing setContentType("text/html");
through HTTPServletResponse in your doGet() method? As in

HTTPServletResponse.setContentType("text/html");


-Tim




Re: nt-service

2001-06-18 Thread Tim O';Neil

At 08:49 AM 6/18/2001, you wrote:
>Hello tomcat-user,
>
>   Please, could you help me:
>   i've made everything as described in NT-Service-howto.html but i've
>   got such results:
>
>E:\downloads\jakarta\tomcat3.2.2>net start tomcat
>System error 1311 has occurred.

What's the status of the Net Logon Service? If its
stopped, try starting it.




-Tim




RE: SSL handshake failure URGENT

2001-06-18 Thread Tim O';Neil

At 02:41 AM 6/18/2001, you wrote:
>I would try to do that following a document you wrote about SSL via 
>apache, but I was a little lost in your indication
>(for example some Jk... directives are not recognized, [JkExtractSSL, ...] 
>) and I don't have a mod_jk.so module to load)

I know that a real (or non-test) cert works
with Apache/tomcat. There's documentation on
the Apache site for using mod_ssl, and also
search the net for more info. I don't have
the urls handy, but I was able to mine the net
for urls to some good info on using ssl with
Apache, Tomcat, and others. Also, I was never
able to get Tomcat standalone to use a real cert.




Re: mail return

2001-06-15 Thread Tim O';Neil

At 01:38 PM 6/15/2001, you wrote:
>Sometimes I get weird message:

Sometimes I get weird message too.
But I ignore them by telling self
to shut up.




Re: Graceful Shutdown

2001-06-14 Thread Tim O';Neil

At 01:42 PM 6/14/2001, you wrote:
>To avoid confusion - let's step thru \bin\tomcat.bat script:
>
> >bin\tomcat.bat stop

Lemme ask you... what makes more sense; zero
in on the the script right next to tomcat.bat
that is titled "SHUTDOWN.BAT" and perhaps make
a "wild" leap of faith, or run to this list to
ask you how to "step through" a completely different
script? I'm glad you have the time. Avoid confusion
indeed.
I guess the difference between me and the vast
majority of neophytes who ask the most retarded
questions on here is that I take two seconds to
look around and get a little bit familiar with
something before I use it.




RE: Graceful Shutdown

2001-06-14 Thread Tim O';Neil

At 09:17 AM 6/14/2001, you wrote:
>"tomcat stop"  in a new command window
>
> >Hi,
> >Does anyone know how to do a graceful shutdown in Tomcat-3.2 ?

Shouldn't he be issuing a ./shutdown.sh in Unix and
"net stop Tomcat" (assuming he named the service
"Tomcat") in Windows?

I don't think "tomcat stop" is going to accomplish anything.





  1   2   3   >