Source required for isapi_redirect.dll

2001-09-12 Thread Manjunath BHat

Hi,

where can one find source vc++ source for isapi_redirect.dll??

I had no luck with jakarta site.

TIA

M Bhat

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: tomcat has to be restarted every few hours (resent, mailserver errors)

2001-09-12 Thread Dinu Jose

Hi All,
I am also facing a similar problem.I need to restart the
tomcat every two hours.If the tomcat server and the database server are on
same machine,then there is no problem and it works fine .But if these two
are on different machines,then every two hours i need to restart tomcat in
order to make the application work fine.I am using tomcat3.2.2,oracle8i and
sun solaris5.8. Have anybody faced this situation before.Could somebody help
me to resolve this issue.

Thanks in Advance
Dinu.








Re: file download servlet

2001-09-12 Thread simon

I was using the path in a similar way but passing the whole URL:
e.g.
http://192.168.1.105/test1/servlet/test1/http://www.example.com/main/page1.html

This worked fine for tomcat v3.2.1 but when I upgraded to v3.2.3 the '//' got 
converted to '/'.  I realise this was for security
reasons but, out of interest, is the above URL really considered illegal or a security 
threat?

- Original Message -
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 1:48 PM
Subject: Re: file download servlet


> you could go a step further than that, and remove the query string
> altogether, extracting it from the request url.  That way the end user
> wouldn't even know it was being served by a servlet (well, the /servlet
> might give it away, but you could change that if it mattered)...
>
> cheers
> dim
>
> On Thu, 13 Sep 2001, Ketan Patel wrote:
>
> > Hi,
> > To download file with the specific file name like song.mp3 as your
> > following url
> > http://192.168.1.105/download/servlet/download?filename=song.mp3
> > changed it with following url-
> > http://192.168.1.105/download/servlet/download/song.mp3?filename=song.mp3
> > .
> > So while downloading the extrapath song.mp3 will be the filename.
> >
> > -Ketan
> >
> > chiuming wrote:
> > >
> > > 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 your free @yahoo.com address at http://mail.yahoo.com
> >
> >
>
>
>




Re: static class and JSP

2001-09-12 Thread Ketan Patel

Hi,
You can certainly use static class variables in jsp file using 
reference of  fully qualified classname.

[EMAIL PROTECTED] wrote:
> 
> Upon tomcat being started, I have a servlet populate a static class with
> configurations that are used by other servlets when they are invoked.  This
> works great!  But, now I'd like to have my JSP's use this static class but
> I'm getting the "Undefined variable or class name" error on the JSP.  How
> do I tell the JSP's where this file is?  It is in the web-inf/classes
> directory with my other servlets.
> 
> Thanks,
> 
> Jason E. Brawner

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: The pitfalls in restarting tomcat

2001-09-12 Thread Jonathan Eric Miller

I agree that there should be a restart.sh. However,  it is possible to
restart/reload a servlet without having to stop and start Tomcat, in version
4 that is, which is due for release any day now. I think you can do it in
Tomcat 3 as well. In 4, you can mark a Context as reloadable. Then, it will
check the files when they are requested, and if the time stamp is new, then,
it will automatically reload the servlet. Also, there is a management
servlet that allows you to restart other servlets in case you don't want to
have auto-reloading on.

Nonetheless, I still think a restart.sh command would be useful.

Jon

- Original Message -
From: "Jeff Turner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2001 9:55 PM
Subject: The pitfalls in restarting tomcat


> Hi,
>
> I was wondering how people who use Tomcat every day) do the stop/start
> cycle that's required whenever something in WEB-INF/lib changes.
>
> "./shutdown.sh ; ./startup.sh" is a bad idea, because Tomcat 3.x seems
> to shut down it's threads asynchronously. So after shutdown.sh has
> returned, Tomcat has not necessarily stopped. Then startup.sh comes
> along, finds that your port is in use, and gives you "Address already in
> use" errors.
>
> With Tomcat 3.3, it is very easy to confuse Tomcat into thinking that it
> has shut down (the ajp12.id file does not exist), but it actually
> running. In this (common) situation, there is no way to kill tomcat
> other than killing the processes ('killall java'). Killing tomcat in
> this way is *very* dangerous, because it sometimes leaves threads in the
> state described by 'man ps' as:
>
>   D   uninterruptible sleep (usually IO)
>
> Then you're plain screwed; the thread is completely unkillable even by
> root, and is holding onto your tomcat port (8080). The only option is to
> reboot the machine.
>
> So anyway, has anyone got a safer way of restarting tomcat? Perhaps a
> script that waits until Tomcat is *really* dead before restarting? It
> would be nice if there was direct support in Tomcat for this everyday
> task (a restart.sh script).
>
> --Jeff
>




Re: file download servlet

2001-09-12 Thread Dmitri Colebatch

you could go a step further than that, and remove the query string
altogether, extracting it from the request url.  That way the end user
wouldn't even know it was being served by a servlet (well, the /servlet
might give it away, but you could change that if it mattered)...

cheers
dim

On Thu, 13 Sep 2001, Ketan Patel wrote:

> Hi,
> To download file with the specific file name like song.mp3 as your
> following url 
> http://192.168.1.105/download/servlet/download?filename=song.mp3
> changed it with following url-
> http://192.168.1.105/download/servlet/download/song.mp3?filename=song.mp3
> .
> So while downloading the extrapath song.mp3 will be the filename.
> 
> -Ketan
> 
> chiuming wrote:
> > 
> > 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 your free @yahoo.com address at http://mail.yahoo.com
> 
> 




Re: file download servlet

2001-09-12 Thread Ketan Patel

Hi,
To download file with the specific file name like song.mp3 as your
following url 
http://192.168.1.105/download/servlet/download?filename=song.mp3
changed it with following url-
http://192.168.1.105/download/servlet/download/song.mp3?filename=song.mp3
.
So while downloading the extrapath song.mp3 will be the filename.

-Ketan

chiuming wrote:
> 
> 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 your free @yahoo.com address at http://mail.yahoo.com




Re: Multiple Tomcat workers (using mod_jk)

2001-09-12 Thread Jan Labanowski

I am not the developer, so I do not know... But this is what I think:
The workers are different instances of Tomcat, and can reside even on
different machines, i.e., obviously they run under different VMs
At the same time, the load balancing worker should send the request
which belong to the same session to the same worker for processing...
>From what I know, if you configure this right, the Apache talks only to
a single, load-balancing worker, and has no control over which worker
does the actuall processing, unless you mount different contexts to different
workers, but then you are in control...

But yes, there is a lack of good documentation on doing load balancing with
mod_jk, though there is plenty on mod_jserv.

Here are some excripts from someone who tried this:
=
From: "David Cassidy (Programmer)" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Tomcat and Apache on diffenet machines
Date: Fri, 25 May 2001 15:10:36 +0100

Yup this is possible 
 
and if you are using the loadbalancing module ( so you can have more
than 1
tomcat for your apache(s) to talk to) essential
 
in workers.properties you should find something like ...
 
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1
 
To define another service try ...
 
worker.external_1.port=8007
worker.external_1.host=192.168.34.43
worker.external_1.type=ajp12
worker.external_1.lbfactor=1
 
You can define as many of these as you want.
 
You can then define a loadbalancer ( if you want to)
 
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, external_1, external_2 etc
 
then
worker.list=loadbalancer
and you have got load balancing
 
If you just want to use a single tomcat host then
worker.list=external_1
 
in your mod_jk.conf
 
JkMount /test/* loadbalancer
 
or
 
JkMount /test/* external_1


Jan


On Thu, 13 Sep 2001, Tony Vinayak wrote:

> Folks,
> 
> I've got a couple of quick newbie questions:
> Environment: Apache 1.3.20 on Solaris 8; Tomcat 3.2 (using mod_jk); Apache
> and Tomcat running on the same box.
> 
> If I configure and run multiple Tomcat workers on the same machine
> (listening on different ports of course), and let's say they are all using
> ajp13 connector, do all those workers run in the SAME of DIFFERENT VM ?
> 
> The reason I ask is that I've got a thread-unsafe servle that I want to
> deploy implementing "SingleThreadModel" across multiple concurrent instances
> of Tomcat, allowing concurrent requests to be processes. As the request gets
> into Apache, using mod_rewrite I want to direct it to one of the several
> Tomcat workers.
> 
> regards,
> Tony
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




Multiple Tomcat workers (using mod_jk)

2001-09-12 Thread Tony Vinayak

Folks,

I've got a couple of quick newbie questions:
Environment: Apache 1.3.20 on Solaris 8; Tomcat 3.2 (using mod_jk); Apache
and Tomcat running on the same box.

If I configure and run multiple Tomcat workers on the same machine
(listening on different ports of course), and let's say they are all using
ajp13 connector, do all those workers run in the SAME of DIFFERENT VM ?

The reason I ask is that I've got a thread-unsafe servle that I want to
deploy implementing "SingleThreadModel" across multiple concurrent instances
of Tomcat, allowing concurrent requests to be processes. As the request gets
into Apache, using mod_rewrite I want to direct it to one of the several
Tomcat workers.

regards,
Tony




RE: file download servlet

2001-09-12 Thread Tony Vinayak

In your servlet's doGet processing, you will need to have a line of code
like:
resp.setContentType("text/plain");

Of course, for your mp3 file, it won't be text/plain, but a different
mime-type (audio/mpeg or whatever)

- Tony

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: file download servlet


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: To maintain bean session from a jsp called in a servlet?

2001-09-12 Thread asheesh

Dear Jean,

HttpSession is a height level interface built on top of cookies only. So if
the cookies are disabled on client's browser this is not going to work. the
possible solutions out of this problem, are
1) URL-Rewriting
2) Forms Hidden fields.

cheers
asheesh

- Original Message -
From: Lessault Jean-Luc <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 10:57 PM
Subject: RE: To maintain bean session from a jsp called in a servlet?


>
> Thank you asheesh for your answer, nevertheless I don't use cookies
> but just only HttpSession Objects.
>
> Cheers, jean luc.
>
> -Message d'origine-
> De?: asheesh [mailto:[EMAIL PROTECTED]]
> Envoye?: dimanche 24 juin 2001 12:16
> A?: [EMAIL PROTECTED]
> Objet?: Re: To maintain bean session from a jsp called in a servlet?
>
>
> Check ur browser settings see if cookies are enabled or not ?
>
> Cheers
> asheesh
>
> - Original Message -
> From: Lessault Jean-Luc <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 5:48 PM
> Subject: To maintain bean session from a jsp called in a servlet?
>
>
> >
> > Hi,
> >
> > I'm working on a cache Web, and I would like to maintain
> > beans session from jsp files called in a servlet. But I loose
> > them although I keep the servlet session.
> > Does someone know how to solve this problem?
> >
> > Thanks.
> >
> >
>
>




Tomcat 3.2.3 : do threads I make myself count towards max_threads

2001-09-12 Thread simon
Hello everyone,

I'm using Tomcat 3.2.3 on Vine Linux 2.1.5 (basically Redhat 6.2, Japanese version)

Q: If I create a new thread in my servlet is this counted as a 'tomcat thread'?  I 
have read on the mailing list (and have
experienced first hand) that if the number of threads passes the max_threads setting 
in server.xml then tomcat 3.2.3 dies less than
gracefully.  Is this 'thread count' just the threads created by tomcat itself or does 
it include threads that I create in my
servlet?

Hope you can help,

--
simon colston
[EMAIL PROTECTED]


Re: IMPORTANT!!!!!!!!! NEW DISTRUCTIVE VIRUS!!!!! DON' T OPEN...

2001-09-12 Thread Erik Weber

These are both hoaxes that have been around for years.

-Erik


Catalin Palsu wrote:

> At 11:12 AM 9/12/01 +0300, you wrote:
>
> > > > >>
> > > > >>A new virus has just been discovered that has been classified by
> > > Microsoft
> > > > >>as the most destructive ever! This virus was discovered yesterday
> > > > >>afternoon
> > > > >>by McAfee and no vaccine has yet been developed. This virus simply
> > > > >>destroys
> > > > >>Sector Zero from the hard disk, where vital information for its
> > > > >>functioning
> > > > >>are stored.
> > > > >>
> > > > >>Please read the following.
> > > > >>This virus acts in the following manner: It sends itself automatically
> > > to
> > > > >>all contacts on your list with the title "A Virtual Card for You."
> > > > >>As soon as the supposed virtual card is opened, the computer freezes
> >so
> > > > >>that
> > > > >>the user has to reboot. When the ctrl+alt+del keys or the reset button
> > > are
> > > > >>pressed, the virus destroys Sector Zero, thus permanently destroying
> >the
> > > > >>hard disk.
> > > > >>Yesterday in just a few hours this virus caused panic in New York,
> > > > >>according
> > > > >>to news broadcast by CNN. This alert was received by an employee of
> > > > >>Microsoft itself. So don't open any mails with subject: "A Virtual
> >Card
> > > > >>for
> > > > >>You." As soon as you get the mail, delete it.
> > > > >>Please pass this mail to all of your friends. Forward this to everyone
> > > in
> > > > >>your address book.
> > > > >>I would rather receive this 25 times than not at all. Also: Intel
> > > > >>announced
> > > > >>that a new and very destructive virus was discovered recently.
> > > > >>
> > > > >>If you receive an email called "An Internet Flower For You," do not
> >open
> > > > >>it.
> > > > >>Delete it right away! This virus removes all dynamic link libraries
> > > (.dll
> > > > >>files) from your computer. Your computer will not be able to boot up
> >!!
> > > > >>
> > > > >>Sharing this with you as a service of ITs FX Inc.
> > > > >
> > > > >
> > > >
> > > >
> > > > _
> > > > Get your FREE download of MSN Explorer at
> >http://explorer.msn.com/intl.asp




Using Windows Native Security

2001-09-12 Thread Frank Lawlor

Does anyone have any references or information on using
native windows security (NTLM?) for Tomcat security?

Are there any Java JNI wrappers for the native system calls?

Are there any higher-lever implementations to some other
more usable interface (JAAS, LDAP, etc.)?

Thanks,

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






Re: Destination Port for mod_jk

2001-09-12 Thread Scott Jones

I've gotten around it for now my making an iptables chain that accepts
inputs where the source address is my tomcat machine and where the
source port is the port specified in server.xml...  However, I'd still
like to get this working based on destination port as well, so if
anybody has any suggestions, that'd be great.  

Thanks!

-Scott





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

2001-09-12 Thread Plamen Petkov

nbd95 wrote:
> 
> on 9/12/01 12:07 PM, Paul Kofon at [EMAIL PROTECTED] wrote:
> 
> > Hi All,
> > I just got a request from a friend of mine to help him build a portal for
> > his office. Now, he would like to keep using his server which runs FreeBSD.
> > I don't have any experience with this OS, however, I'm willing to help my
> > friend. My questions are these:
> > 1. Which JDK should I use?
> > 2. Is anyone running Tomcat 3.x or 4.x successfully on FreeBSD? If yes, I'd
> > appreciate a brief "how-to".
> > Thanks in advance.
> >
> > Paul
> >
> 
> I just installed Tomcat on a FreeBSD 4.1 system and it's working fine,
> though I don't yet know how to use it 8^(
> 
> Two solutions,
> 
> 1) Use the ports collection which works very well and will install a running
> Tomcat-Apache solution. Requires FreeBSD 4.2+. This in the method I used
> though I did install a new Apache using a FreeBSD layout (not included with
> Apache src).
> 
> 2) Follow the instructions from the Tomcat web site. Requires you have
> already setup the JDK and JavaVMWrapper. I used JDK 1.1.8 and Javavmwrapper
> 1.1. I've done this as well and it worked also.
> 
> I would be happy to send more detail if needed.
> 
> DAve

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 )


regards,
-- 
Plamen D. Petkov ICQ#2214327
[EMAIL PROTECTED]
http://www.bgstore.com



Re: Help: Tomcat 3.2.3 and Apache on FreeBSD **Java newbie**

2001-09-12 Thread Plamen Petkov

nbd95 wrote:
> 
> The details:
> 
> FreeBSD 4.1
> Jakarta-Tomcat 3.2.3
> JDK-1.1.8
> Apache 1.3.20 (DSO)
> mod_jk
> 
> I've been around the block with PHP, Perl, Bash, Apache, Unix, Linux,
> Postfix, BIND, Netatalk, Samba, Kernels. Building, configuring, patching,
> set-up, custom compiling, all no problem. I am *new* to Java.
> 
> I've installed Tomcat-Apache and it appears to work.
> http://localhost/examples accessed through Apache, the Tomcat examples all
> function. http://localhost:8080/ accesses the Tomcat main page, the examples
> work here as well.
> 
> I have returned my configuration to the beginning, removing my muddled
> attempts at setup. Currently I have this line added to my httpd.conf,
> 
> Include /usr/local/tomcat/conf/mod_jk.conf
> 
> mod_jk.conf has been changed *only* to correct the path to mod_jk.so and the
> path to the mod_jk.log file. At this point Apache starts, loads mod_jk.so,
> and the examples can be accessed and run successfully.
> 
> Tpp! Phooey.
> 
> My problem is I am trying to get examples of *.jsp code to work
> unsuccessfully. I have example code from a book (Core JSP) that I cannot
> run. Can anyone step me through creating a directory where I might store
> *.jsp files for experimenting? I'm simply trying to eval JSP and explore
> it's environment.
> 
> I've read the book, Core JSP, and the "Working with mod_jk" - "Tomcat-Apache
> HOWTO" papers. I still don't get which *.conf files I need to modify to send
> *.jsp files to Tomcat from the Apache directory structure.
> 
> I thank you for your indulgence.
> 
> DAve


Here is my directory structure for testing all "Core JSP" book examples.
I gave this Application a "core" name. All dirs are relative to tomcat's
"webapps" directory, wich is /usr/local/tomcat/webapps.

[/usr/local/tomcat/webapps/]core   <-- HTMLs, JSPs
core/jsp <-- HTMLs, JSPs
core/WEB-INF   
core/WEB-INF/classes   <-- non-packaged servlets
core/WEB-INF/classes/coreservlets  <-- coreservlets's package servlets

As for your last question: use symlinks. The "core" application may
reside anywhere. Just symlink /usr/local/tomcat/webapps/core to the
place where it is.
Apache directory structure and Tomcat's one are not related at all.


http://mylocalhost/core/jsp/some.jsp
http://mylocalhost/core/servlet/SomeServletInClassesDirectory
http://mylocalhost/core/servlet/coreservlets.SomeServletFromCoreservletsPackage


have a nice day.

p.s. I am new to Java/JSP/Servlets/Beans/etc/etc too :-)  But I like it.
Coming from PHP world, it is a bit hard to get the point at once.. but..
try :-)

Just split your mind into many pieces: one for Apache, one for Tomcat,
one for this container, one for the other one..  :-)




Regards,
-- 
Plamen D. Petkov ICQ#2214327
[EMAIL PROTECTED]
http://www.bgstore.com



ClassLoader error

2001-09-12 Thread Marcia Perry

Hi,
I'm running the pre-compiled binary of Tomcat 3.1 on Solaris 2.7.
If I compile my servlets with JDK1.2 and use environment variables
for JDK1.2, my servlets run fine.  However, if I compile a servlet
w/ JDK1.4 (and also change my environment vars for jdk1.4), I get
this error:
"Bad major version number" from the ClassLoader.

Any suggestions on how to get TC to load/execute servlets compiled
with jdk1.4?

Thanks
-- marcia

Marcia Perry[EMAIL PROTECTED]
Lawrence Berkeley National Laboratory   WORK#  (510) 486-6786
1 Cyclotron RoadFAX#   (510) 486-6363
Berkeley, CA 94720  MS: 50A-3111



RE: Question on restarting Tomcat service

2001-09-12 Thread Hoggatt Matt - mahogg

Yes, you need that file!  When NT tries to start that it runs the following
command:

C:\path\jk_nt_service.exe Jakarta

Just put that back where it was and you're problem should be solved.  If you
want to change the path, you will probably have to delete the service and
create a new one.  That's just speculation. . .

-Matt

-Original Message-
From: Ivy Chen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: Question on restarting Tomcat service


Hi,

I have successfully configured Tomcat 3.2.3 to run as a service on my NT
machine. I copied jk_nt_service.exe to my local directory: 
C:\Project\Tomcat\win32\i386 and executed the file from the same directory.
My question is:

I stopped Tomcat service from running then deleted the
C:\Project\Tomcat\win32 folder and all of its contents. I tried to restart
Tomcat service again without this win32\i386\jk_nt_service.exe file and it
failed. I got the following error message: Error 3 The system cannot find
the path specified. Is it because the win32\i386 folder was deleted? Do I
need the folder (jk_nt_service.exe) to be there all the time? Any
suggestions would be appreciated. 

Thank you for your help.

Ivy Chen



Destination Port for mod_jk

2001-09-12 Thread Scott Jones

Hello,

I'm setting a pair of machines, one of which is running tomcat, and the
other of which is running apache.  I am using ajp13 to connect the two
machines, and am trying to configure an iptables firewall on the apache
machine (the tomcat machine will be next).

The roadblock that I'm running into is that I don't know which ports
will be used as the destination ports on the apache machine when tomcat
replies.  The ports that I set up in server.xml and in
workers.properties are the source of my replies...

Looking at my syslog log file, I see that I'm getting information sent
to ports 32769 up through 32792 (and maybe even more, I haven't looked
through them that much yet).  An example line is included below:

Sep 12 11:42:51 web1 kernel: INT_IN DROP 7 IN=eth1
OUT=MAC=00:30:48:11:69:a8:00:b0:d0:e1:cc:0f:08:00 SRC=192.168.1.32
DST=192.168.1.21 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=TCP
SPT=8011 DPT=32794 WINDOW=5792 RES=0x00 ACK SYN URGP=0 

Where is this port configured (if it's configurable)?  Or, does anyone
know which ports I need to be leaving open?

Thanks very much for any help!

Sincerely,

Scott 





RE: request for suggestions on how to secure a web application... .

2001-09-12 Thread Frank Lawlor

Re protection via Realms:
  - a useful mechanism, but by itself might not do the whole job.  For
example, if you
need to have users log into a specific domain (e.g. different clients
get different data)
(as happens in many apps) where the userid isn't enough info (one value
of Realms is
non-unique IDs), then you need to still force people thru a specific
login.
Re object in a session.
  - Note that this can be fabricated by a hacker.  For real security
you need to look at encrypting it with varying keys.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






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




Question on restarting Tomcat service

2001-09-12 Thread Ivy Chen

Hi,

I have successfully configured Tomcat 3.2.3 to run as a service on my NT
machine. I copied jk_nt_service.exe to my local directory: 
C:\Project\Tomcat\win32\i386 and executed the file from the same directory.
My question is:

I stopped Tomcat service from running then deleted the
C:\Project\Tomcat\win32 folder and all of its contents. I tried to restart
Tomcat service again without this win32\i386\jk_nt_service.exe file and it
failed. I got the following error message: Error 3 The system cannot find
the path specified. Is it because the win32\i386 folder was deleted? Do I
need the folder (jk_nt_service.exe) to be there all the time? Any
suggestions would be appreciated. 

Thank you for your help.

Ivy Chen



Newbie - Setting environment variables??

2001-09-12 Thread Joel Fowler

I'm using a package that requires that I have a DISPLAY variable set 
Tomcat's environment.
I've attempted to export this variable before running startup.sh as well as 
including:

export DISPLAY=localhost:0.0

in a .tomcatrc file. Neither approach seems to have accomplished this.

How do I place variables in Tomcat's environment??

Linux 7.1 (intel)
IBMJava2-1.3 jdk
Tomcat 3.2.3
mod_jk 3.2.3
KavaChart ?

Symptoms:

2001-09-12 04:27:39 - Ctx( www.cwatch.com:/webSentry ): Exception in: R( 
/webSentry + /servlet/Perf1c + null) - java.lang.NoClassDefFoundError: 
sun/awt/X11GraphicsEnvironment
 at java.lang.Class.forName1(Native Method)
 at java.lang.Class.forName(Class.java:134)
 at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment 
.java:64)
 at java.awt.Window.(Window.java:190)
 at java.awt.Frame.(Frame.java:318)
 at java.awt.Frame.(Frame.java:265)
 at Perf1c.doGet(Perf1c.java:146)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
 at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at 
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection 
(Ajp13ConnectionHandler.java:160)
 at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:498)

Thanks for any help!

Joel Fowler





Tomcat x WebSphere in the AS/400

2001-09-12 Thread Juliana . Amaral

I liked of the informations  and/or  comparisons between Tomcat and
WebSphere Standard v3.5.0 in the AS/400.

Thanks in advanced !

Juliana





JSSI -> Tomcat 3.2.3

2001-09-12 Thread Hoggatt Matt - mahogg

Does Tomcat support Java ServerSide Includes?

-Matt



tomcat-users.xml reload.

2001-09-12 Thread Benoit Bertrand

   hello,

   I have got a question concerning tomcat-users.xml reloading. I am
developping a web application where an administrator can add/remove user(s)
(to contraints access to this web app). This operation add/remove the
necessary information to/from tomcat-users.xml file.
   Unfortunately, i discovered that this file is not updated until the next
startup of tomcat. This is to say that to complete the add/remove operation,
tomcat should be stopped an restarted (which is not what i intended to do).
   My question is the following: is there a way to reload the user access
from tomcat-users.xml ? If not this should say that i can not use
tomcat-users.xml to contraints access for my web app ?

   Sincerely,

   Benoit Bertrand.




RE: Doesn't Tomcat support wildcards like *.jsp or *.html at ??

2001-09-12 Thread Randy Layman



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 2:56 PM
> To: [EMAIL PROTECTED]
> Subject: Doesn't Tomcat support wildcards like *.jsp or *.html at
> ??
> 
> 
> Hi, 
> I've tried to use wildcards for a webresource collection like *.jsp
> to denie "guests" to access these pages but it doesn't work 
> with tomcat
> 3.2.3 
> Isn't that defined within the servlet specification?
> 
> Sample:
> 
>   
>   /jsp/*.jsp
>   /jsp/*.jsp
>
>   
>   admin
>   
> 
> 

The spec does not allow * to be in the middle of a string - it must be at
one end or the other.

> Can I add a further web-resource-collection in a subdirectory 
> of /jsp and 
> give access to everyone? Like   /jsp/images/*  --> role-name 
> = everyone
> What is the "everyone" role that requires no password with 
> tomcat 3.2.3?

On this I don't know.
> 



Doesn't Tomcat support wildcards like *.jsp or *.html at ??

2001-09-12 Thread Meinolf . Schulte-Doeinghaus

Hi, 
I've tried to use wildcards for a webresource collection like *.jsp
to denie "guests" to access these pages but it doesn't work with tomcat
3.2.3 
Isn't that defined within the servlet specification?

Sample:


/jsp/*.jsp
/jsp/*.jsp
 

admin



Can I add a further web-resource-collection in a subdirectory of /jsp and 
give access to everyone? Like   /jsp/images/*  --> role-name = everyone
What is the "everyone" role that requires no password with tomcat 3.2.3?




Help: Tomcat 3.2.3 and Apache on FreeBSD **Java newbie**

2001-09-12 Thread nbd95

The details:

FreeBSD 4.1
Jakarta-Tomcat 3.2.3
JDK-1.1.8
Apache 1.3.20 (DSO)
mod_jk

I've been around the block with PHP, Perl, Bash, Apache, Unix, Linux,
Postfix, BIND, Netatalk, Samba, Kernels. Building, configuring, patching,
set-up, custom compiling, all no problem. I am *new* to Java.

I've installed Tomcat-Apache and it appears to work.
http://localhost/examples accessed through Apache, the Tomcat examples all
function. http://localhost:8080/ accesses the Tomcat main page, the examples
work here as well.

I have returned my configuration to the beginning, removing my muddled
attempts at setup. Currently I have this line added to my httpd.conf,

Include /usr/local/tomcat/conf/mod_jk.conf

mod_jk.conf has been changed *only* to correct the path to mod_jk.so and the
path to the mod_jk.log file. At this point Apache starts, loads mod_jk.so,
and the examples can be accessed and run successfully.

Tpp! Phooey.

My problem is I am trying to get examples of *.jsp code to work
unsuccessfully. I have example code from a book (Core JSP) that I cannot
run. Can anyone step me through creating a directory where I might store
*.jsp files for experimenting? I'm simply trying to eval JSP and explore
it's environment.

I've read the book, Core JSP, and the "Working with mod_jk" - "Tomcat-Apache
HOWTO" papers. I still don't get which *.conf files I need to modify to send
*.jsp files to Tomcat from the Apache directory structure.

I thank you for your indulgence.

DAve





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

2001-09-12 Thread nbd95

on 9/12/01 12:07 PM, Paul Kofon at [EMAIL PROTECTED] wrote:

> Hi All,
> I just got a request from a friend of mine to help him build a portal for
> his office. Now, he would like to keep using his server which runs FreeBSD.
> I don't have any experience with this OS, however, I'm willing to help my
> friend. My questions are these:
> 1. Which JDK should I use?
> 2. Is anyone running Tomcat 3.x or 4.x successfully on FreeBSD? If yes, I'd
> appreciate a brief "how-to".
> Thanks in advance.
> 
> Paul
> 

I just installed Tomcat on a FreeBSD 4.1 system and it's working fine,
though I don't yet know how to use it 8^(

Two solutions,

1) Use the ports collection which works very well and will install a running
Tomcat-Apache solution. Requires FreeBSD 4.2+. This in the method I used
though I did install a new Apache using a FreeBSD layout (not included with
Apache src).

2) Follow the instructions from the Tomcat web site. Requires you have
already setup the JDK and JavaVMWrapper. I used JDK 1.1.8 and Javavmwrapper
1.1. I've done this as well and it worked also.

I would be happy to send more detail if needed.

DAve





RE: Two contexts sharing one WebApp

2001-09-12 Thread Larry Isaacs

Matt,

Congratulations on getting it to work. AFAIK, hardly
any of the modules/interceptors are written to be extensible
at the moment.  The public methods are for configuration
and interaction within the server architecture.  The
implementation, I think, is typlically private.  Using the
existing code as a starting point for a customized version
will be the norm for most modules.

Making WebXmlReader more customizable could be done, but
there probably isn't time to include it in the 3.3
release.

Cheers,
Larry

> -Original Message-
> From: Matt Small [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 2:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Two contexts sharing one WebApp
> 
> 
> Ok, I got it working but in doing so I found a couple of 
> weaknesses in the
> WebXmlReader class (it is difficult to extend), I think. I 
> think that there
> might be room here for improvements in tomcat, flexibility 
> could be added
> without breaking the requirements of the spec. I realize that 
> there are
> proper ways to get the behaviour I want but supporting 
> multiple contexts
> from one web-app is pretty convenient in this case.
> 
> What I wanted to do was add an attribute to my context 
> specifying the name
> of the the web-app descriptor. If the attribute is not 
> specified then tomcat
> would implicitly load web.xml.
> 
> 
> 
>  docBase="webapps/myapp" 
>   descriptor="pub.xml"
>   crossContext="false"
>   debug="0" 
>   reloadable="true">
>   
> 
> 
> I then wanted to sub-class WebXmlReader and provide my own 
> implementation of
> contextInit(Context ctx) that would get the descriptor file 
> from the Context
> and read that file.
> 
> This seems like it would be a pretty clean implementation to 
> me but I could
> not do it for a couple reasons:
> 
> 1) I did not have the time to properly reasearch how 
> "descriptor" attrib
> would be parsed and stored in Context.java. I'm sure though 
> that you guys
> who know how it all works could implement that in a snap.
> 
> 2) I had trouble sub-classing WebXmlReader. The method 
> "processWebXmlFile()"
> is package private and must be called. If it were protected I 
> dont thing I
> would have had any trouble. If anything please open up the 
> access on this
> method.
> 
> I eventually hacked up an implementation that works for me 
> but is definately
> not good. I actually just modified WebXmlReader so that it 
> gets the Path
> from the Context, builds the xml file name from the path (in 
> my case it
> assumes pub.xml because the path is /pub) and if that file 
> exists it reads
> that one, if not it reads web.xml. I then just found it 
> easiest to rebuilt
> the whole facade22.jar and updated it in lib/container.
> 
> Is this the sort of change you guys would be willing to make 
> in Tomcat? Or
> would something like this not fly because its not in the spec?
> 
> Thanks for all of your advice on this one Larry
> 
> Matt
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 11, 2001 5:19 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Two contexts sharing one WebApp
> 
> 
> Hi Matt,
> 
> Congratulations on getting this far.  Off the top of my head, I'm
> not sure if "tomcat/classes" is supported.  I'll try to review
> what methods are available to add classes rather than jars to
> Tomcat 3.3's classloader hierarchy.  I suspect there is room for
> improvement here.
> 
> In the meantime, the simplest way to add your class to Tomcat 3.3
> is to put it in a jar and put that jar in the "tomcat/lib/container"
> directory.  This will get your class into the correct classloader.
> 
> Cheers,
> Larry
> 
> 
> > -Original Message-
> > From: Matt Small [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 10, 2001 6:11 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: Two contexts sharing one WebApp
> > 
> > 
> > Ok, so I extended WebXmlReader and added the functionality 
> I need and
> > compiled it. I added the class to /tomcat/classes/. I updated 
> > my modules.xml
> > and server.xml to use my new CustWebXmlReader. I think 
> > everything is set up
> > right. 
> > 
> > When I start Tomcat I get A class not found Exception though:
> > 
> > E:\scripts>ERROR reading 
> > E:\jakarta-tomcat-3.3-b2\conf\server.xml
> > At Line 28 /Server/ContextManager/CustWebXmlReader/ 
> > validate=true
> > 
> > java.lang.ClassNotFoundException:
> > org.apache.tomcat.facade.CustWebXmlReader
> >   at 
> > java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > at java.security.AccessController.doPrivileged(Native
> > Method)
> >   at 
> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > 
> > According to the user docs, if you make a classes dir: "Any 
> > class that you
> > add to this directory will find its place in Tomcat's 
> > classpath." Am I doing
> > something wron

Tomcat 3.2.3 & Apache

2001-09-12 Thread Hoggatt Matt - mahogg

I can't get Apache to recognize my servlet directory.  I took the
tomcat.conf file and added a few lines to it, but it's not picking up the
new directory.  What am I doing wrong?


##
#  Apache-Tomcat Smart Context Redirection
#

##
LoadModule jserv_module modules/ApacheModuleJServ.dll

ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultHost localhost
ApJServDefaultPort 8007

#
# Mounting a single smart context:
#
# (1) Make Apache know about the context location.
Alias /examples c:/jakarta-tomcat/webapps/examples
I Added ---  Alias /myServlets c:/myServlets

# (2) Optional, customize Apache context service.

Options Indexes FollowSymLinks

# (2a) No directory indexing for the context root.
#Options -Indexes

# (2b) Set index.jsp to be the directory index file.
#DirectoryIndex index.jsp


# (3) Protect the WEB-INF directory from tampering.

AllowOverride None
deny from all


# (4) Instructing Apache to send all the .jsp files under the
context to the 
# jserv servlet handler. 

SetHandler jserv-servlet


# (5) Direct known servlet URLs to Tomcat.
ApJServMount /examples/servlet /examples /myServlets

# (6) Optional, direct servlet only contexts to Tomcat.
ApJServMount /servlet /ROOT
I Added ---  ApJServMount /myServlets /ROOT


  

-Matt




RE: Database pool

2001-09-12 Thread Matt Small

Take a look at www.bitmechanic.com

-Original Message-
From: Alexandre Victoor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Database pool


Hello,
This is perhaps off-topic, I am looking for an open-source database 
connection pool.
Any good advises?
Thanks

Alexandre





Re: Tomcat and https

2001-09-12 Thread Craig R. McClanahan

For Tomcat 4, see

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc-exp/ssl-howto.html

Craig


On Wed, 12 Sep 2001, Nick Torenvliet wrote:

> Date: Wed, 12 Sep 2001 13:41:43 -0400
> From: Nick Torenvliet <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Tomcat and https
>
>
> Recently we signed up for a secure http(https) service with Verisign.
> Does anyone know how to configure Tomcat for https?
>
> Nick
>




RE: Two contexts sharing one WebApp

2001-09-12 Thread Matt Small

Ok, I got it working but in doing so I found a couple of weaknesses in the
WebXmlReader class (it is difficult to extend), I think. I think that there
might be room here for improvements in tomcat, flexibility could be added
without breaking the requirements of the spec. I realize that there are
proper ways to get the behaviour I want but supporting multiple contexts
from one web-app is pretty convenient in this case.

What I wanted to do was add an attribute to my context specifying the name
of the the web-app descriptor. If the attribute is not specified then tomcat
would implicitly load web.xml.







I then wanted to sub-class WebXmlReader and provide my own implementation of
contextInit(Context ctx) that would get the descriptor file from the Context
and read that file.

This seems like it would be a pretty clean implementation to me but I could
not do it for a couple reasons:

1) I did not have the time to properly reasearch how "descriptor" attrib
would be parsed and stored in Context.java. I'm sure though that you guys
who know how it all works could implement that in a snap.

2) I had trouble sub-classing WebXmlReader. The method "processWebXmlFile()"
is package private and must be called. If it were protected I dont thing I
would have had any trouble. If anything please open up the access on this
method.

I eventually hacked up an implementation that works for me but is definately
not good. I actually just modified WebXmlReader so that it gets the Path
from the Context, builds the xml file name from the path (in my case it
assumes pub.xml because the path is /pub) and if that file exists it reads
that one, if not it reads web.xml. I then just found it easiest to rebuilt
the whole facade22.jar and updated it in lib/container.

Is this the sort of change you guys would be willing to make in Tomcat? Or
would something like this not fly because its not in the spec?

Thanks for all of your advice on this one Larry

Matt

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 5:19 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Two contexts sharing one WebApp


Hi Matt,

Congratulations on getting this far.  Off the top of my head, I'm
not sure if "tomcat/classes" is supported.  I'll try to review
what methods are available to add classes rather than jars to
Tomcat 3.3's classloader hierarchy.  I suspect there is room for
improvement here.

In the meantime, the simplest way to add your class to Tomcat 3.3
is to put it in a jar and put that jar in the "tomcat/lib/container"
directory.  This will get your class into the correct classloader.

Cheers,
Larry


> -Original Message-
> From: Matt Small [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 10, 2001 6:11 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Two contexts sharing one WebApp
> 
> 
> Ok, so I extended WebXmlReader and added the functionality I need and
> compiled it. I added the class to /tomcat/classes/. I updated 
> my modules.xml
> and server.xml to use my new CustWebXmlReader. I think 
> everything is set up
> right. 
> 
> When I start Tomcat I get A class not found Exception though:
> 
>   E:\scripts>ERROR reading 
> E:\jakarta-tomcat-3.3-b2\conf\server.xml
>   At Line 28 /Server/ContextManager/CustWebXmlReader/ 
> validate=true
> 
>   java.lang.ClassNotFoundException:
> org.apache.tomcat.facade.CustWebXmlReader
> at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>   at java.security.AccessController.doPrivileged(Native
> Method)
> at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 
> According to the user docs, if you make a classes dir: "Any 
> class that you
> add to this directory will find its place in Tomcat's 
> classpath." Am I doing
> something wrong here. I would prefer not to have to re-jar 
> all of the tomcat
> classes.
> 
> Thanks
> 
> Matt
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 10, 2001 11:26 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Two contexts sharing one WebApp
> 
> 
> Hi Matt,
> 
> Use of web.xml is mandated by the Servlet 2.2 spec, so there
> isn't supposed to be a way to do what you want. However,you are
> welcome to try customizing org.apache.tomcat.facade.WebXmlReader
> to make a choice somehow.
> 
> Cheers,
> Larry
> 
> 
> > -Original Message-
> > From: Matt Small [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 10, 2001 2:11 PM
> > To: Tomcat (E-mail)
> > Subject: Two contexts sharing one WebApp
> > 
> > 
> > 
> > I have my tomcat server set up with two contexts that share 
> > the same web-app
> > directory. I want to specify a different web.xml in each 
> > context though so
> > that different servlets are available from each context. Is 
> > there any way to
> > specify the web.xml file name or path from the context 
> > definition? I am
> > hoping that there is just a simple co

Re: tomcat 4 beta 7 - reloading doesn't work

2001-09-12 Thread Craig R. McClanahan



On Wed, 12 Sep 2001, sankar kondur wrote:

> Date: Wed, 12 Sep 2001 10:29:45 -0700 (PDT)
> From: sankar kondur <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: tomcat 4 beta 7 - reloading doesn't work
>
> Hi,
>
> i am using tomcat 4 beta 7. reloading doesn't seem to
> work at all.
>
> i did the following
>
> 1. used reloadable="true"
> 2. put the classes in WEB-INF/classes
> 3. i also tried putting the classes in a jar in
> WEB-INF/lib instead of WEB-INF/classes
>
> it doesn't seem to work.
> anyone experienced this problem.
>

It works for me, and for many others.

Could you please prepare a small webapp WAR file that illustrates your
problem, and create a bug report (with this WAR as an attachment)?  We'll
need a copy of your server.xml file as well.

  http://nagoya.apache.org/bugzilla/

Without a detailed test case, there is little we can do.

> thanks,
> SK
>

Craig





RE: tomcat 4 beta 7 - reloading doesn't work

2001-09-12 Thread Sankar Kondur

it works in rc1.

-Original Message-
From: paul [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: tomcat 4 beta 7 - reloading doesn't work


yes, I posted almost the same message but gave up and download rc1 today

still investingating whether it works with rc1

paul

- Original Message -
From: "sankar kondur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 6:29 PM
Subject: tomcat 4 beta 7 - reloading doesn't work


> Hi,
>
> i am using tomcat 4 beta 7. reloading doesn't seem to
> work at all.
>
> i did the following
>
> 1. used reloadable="true"
> 2. put the classes in WEB-INF/classes
> 3. i also tried putting the classes in a jar in
> WEB-INF/lib instead of WEB-INF/classes
>
> it doesn't seem to work.
> anyone experienced this problem.
>
> thanks,
> SK
>
>
> =
>
>
> __
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>




RE: To maintain bean session from a jsp called in a servlet?

2001-09-12 Thread Larry Isaacs

The preferred method for tracking sessions between requests is to
store a session ID in a cookie.  If you can assume that all
browsers accessing your site will have cookies enabled, then
you don't need to do anything special to have sessions work.

If you can't make that assumption, you must use 
HttpServletResponse.encodeURL() to "fix" the URL's you include
as links in the content returned to the browser.  This method
adds ";jsessionid=" to the URL if needed.
When the modified link is clicked, the URL carries the
session ID should cookies be disabled.

Larry

> -Original Message-
> From: Lessault Jean-Luc [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 10:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: To maintain bean session from a jsp called in a servlet?
> 
> 
> 
> Thank you asheesh for your answer, nevertheless I don't use cookies 
> but just only HttpSession Objects.
> 
> Cheers, jean luc.
> 
> -Message d'origine-
> De?: asheesh [mailto:[EMAIL PROTECTED]]
> Envoye?: dimanche 24 juin 2001 12:16
> A?: [EMAIL PROTECTED]
> Objet?: Re: To maintain bean session from a jsp called in a servlet?
> 
> 
> Check ur browser settings see if cookies are enabled or not ?
> 
> Cheers
> asheesh
> 
> - Original Message - 
> From: Lessault Jean-Luc <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 5:48 PM
> Subject: To maintain bean session from a jsp called in a servlet?
> 
> 
> > 
> > Hi,
> > 
> > I'm working on a cache Web, and I would like to maintain 
> > beans session from jsp files called in a servlet. But I loose
> > them although I keep the servlet session.
> > Does someone know how to solve this problem?
> > 
> > Thanks.
> > 
> > 
> 
> 



RE: file download servlet

2001-09-12 Thread chiuming

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: IIS Virtual hosting

2001-09-12 Thread Larry Isaacs

Hi David,

Multiple virtual hosts on IIS is something I have not found time
to try to do, yet.  However, it is something I hope to support
in Tomcat 3.3.

Tim Whittington has submitted a patch to the isapi_redirect.dll
that should be included soon.  It adds a feature where
the "isapi_redirect" dll queries its actual file name and
uses that name to read a ".properties" file from
the same directory.  If that file exists, those properties are
used.  If not, it reverts to the old behavior of getting the
"properties" file location from the registry.  This "properties"
file would specify where to get the "uriworkermap" file.

This implies that you get multiple isapi_redirector instances,
each using different settings, by having multiple copies of the
"isapi_redirector" with different names.  Each virtual host
would use the appropriately named copy.  Not elegant, but
I'm not sure there is a better way.

Cheers,
Larry

> -Original Message-
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: IIS Virtual hosting
> 
> 
> Hi all,
> 
> I need to set up IIS with each virtual host routing to a 
> different worker in
> Tomcat. Each virtual host has the same web application under it and
> therefore must all be the same context.
> 
> i.e. Under Apache I set up the following:
> NameVirtualHost 128.100.2.23
> 
> 
> ServerName cisweb2k
> JkMount /spweb/servlet/* ajp13_1
> 
> 
> 
> ServerName cisweb2k2
> JkMount /spweb/servlet/* ajp13_2
> 
> 
> How is the best way to achieve the same configuration with IIS?
> I think what I need is to be able to specify the host name in
> uriworkermap.properties:
> cisweb2k/spweb/servlet/*=ajp13_1
> cisweb2k2/spweb/servlet/*=ajp13_2
> 
> Thanks.
> Dave.
> 



Tomcat and https

2001-09-12 Thread Nick Torenvliet


Recently we signed up for a secure http(https) service with Verisign.
Does anyone know how to configure Tomcat for https?

Nick



Re: tomcat 4 beta 7 - reloading doesn't work

2001-09-12 Thread paul

yes, I posted almost the same message but gave up and download rc1 today

still investingating whether it works with rc1

paul

- Original Message -
From: "sankar kondur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 6:29 PM
Subject: tomcat 4 beta 7 - reloading doesn't work


> Hi,
>
> i am using tomcat 4 beta 7. reloading doesn't seem to
> work at all.
>
> i did the following
>
> 1. used reloadable="true"
> 2. put the classes in WEB-INF/classes
> 3. i also tried putting the classes in a jar in
> WEB-INF/lib instead of WEB-INF/classes
>
> it doesn't seem to work.
> anyone experienced this problem.
>
> thanks,
> SK
>
>
> =
>
>
> __
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>




Tomcat 3.2.3 & Apache

2001-09-12 Thread Hoggatt Matt - mahogg

I can't get Apache to recognize my servlet directory.  I took the
tomcat.conf file and added a few lines to it, but it's not picking up the
new directory.  What am I doing wrong?


##
#  Apache-Tomcat Smart Context Redirection
#

##
LoadModule jserv_module modules/ApacheModuleJServ.dll

ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultHost localhost
ApJServDefaultPort 8007

#
# Mounting a single smart context:
#
# (1) Make Apache know about the context location.
Alias /examples c:/jakarta-tomcat/webapps/examples
I Added ---  Alias /myServlets c:/myServlets

# (2) Optional, customize Apache context service.

Options Indexes FollowSymLinks

# (2a) No directory indexing for the context root.
#Options -Indexes

# (2b) Set index.jsp to be the directory index file.
#DirectoryIndex index.jsp


# (3) Protect the WEB-INF directory from tampering.

AllowOverride None
deny from all


# (4) Instructing Apache to send all the .jsp files under the
context to the 
# jserv servlet handler. 

SetHandler jserv-servlet


# (5) Direct known servlet URLs to Tomcat.
ApJServMount /examples/servlet /examples /myServlets

# (6) Optional, direct servlet only contexts to Tomcat.
ApJServMount /servlet /ROOT
I Added ---  ApJServMount /myServlets /ROOT


  

-Matt



bug 1006 - v3.2.3

2001-09-12 Thread Jean-Christophe Salomé

Hello

We are using Tomcat 3.2.3, ibm jdk 1.2.2 (aix).
(our) Tomcat has a similar symptom than the bug 1006
described in the bug database : Tomcat standlone
accumulate blocked thread and stop responding.

Isn't it supposed to be fixed in release 3.2.2?
"--- Additional Comments From [EMAIL PROTECTED]
2001-03-24 05:09 ---
Fixed in both 3.2.2 beta 2 and 3.3 using read timeout
of 300s (5mn)"

I have checked the code, TIMEOUT is correct (=3000)
but the patched code is incomplete :

if (accepted != null)
{
  accepted.setSoTimeout(timeout);   
}

if( factory != null && accepted != null)
 factory.initSocket( accepted );
}


___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com



tomcat 4 beta 7 - reloading doesn't work

2001-09-12 Thread sankar kondur

Hi,

i am using tomcat 4 beta 7. reloading doesn't seem to
work at all.

i did the following

1. used reloadable="true"
2. put the classes in WEB-INF/classes
3. i also tried putting the classes in a jar in
WEB-INF/lib instead of WEB-INF/classes

it doesn't seem to work. 
anyone experienced this problem.

thanks,
SK


=


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



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

2001-09-12 Thread Paul Kofon

Hi All,
I just got a request from a friend of mine to help him build a portal for 
his office. Now, he would like to keep using his server which runs FreeBSD. 
I don't have any experience with this OS, however, I'm willing to help my 
friend. My questions are these:
1. Which JDK should I use?
2. Is anyone running Tomcat 3.x or 4.x successfully on FreeBSD? If yes, I'd 
appreciate a brief "how-to".
Thanks in advance.

Paul

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




IIS with Tomcat: Change default servlet directory

2001-09-12 Thread Albert

Hi All,

I've installed Tomcat on Winnt4 with IIS4 and I've
followed the instructions in "Tomcat IIS HowTo" to let
IIS cooperate with Tomcat. It works if I set the home
directory of my Web site in IIS to d:\tomcat (for my
case, TOMCAT_HOME = d:\tomcat). I can run the servlet
examples included in Tomcat successfully. Now I decide
to change the home directory of my Web site in IIS to
another directory (for my case, new home directory =
d:\myWeb) and also put my servlet classes into another
directory e:\myServlet. However, I don't know how to
set config files to let my servlet classes be
executed. Would anyone help me with an example for my
case? Thanks in advance!!

Albert


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Visual Age 3.02 and Tomcat 3.11 - Problems configuring Tomcat for my own servlets

2001-09-12 Thread S.Munz

Hi,

(I'm using VA for Java 3.02 and tomcat 3.1.1 running inside VAJ.)
I have problems running my own servlets from the VAJ workspace
without exporting it. When I start tomcat and type in the URL of my
servlet i get a message that the page is not found. (BTW: The
tomcat examples work fine).
I've already read some hints posted earlier in this mailing list and
therefore set the class path of the class that starts tomcat. It
includes all projects of my workspace.

Question 1: Do I have to mention my project in the tomcat conf. file
server.xml? If yes, do I have to set the doc base to
...\project_resources\my_project?

Question 2: Do I have to set additional classpath variables?

Has somebody had similar problems and can help me?

Regards,

Stefan
==
IPN
Stefan Munz

Gießsteinstr. 16
72805 Lichtenstein

eMail [EMAIL PROTECTED]
www   www.munz-ipn.de
Tel. 0 71 29 / 92 25 33 / Mobil 01 75 24 56 78 0
Fax  0 71 29 / 92 25 33



RE: IIS-Tomcat case insensitivity

2001-09-12 Thread Randy Layman


Perhaps a possible solution to your problem would be to create
something in IIS that on 404 would examine the URL and change the case to
what is needed, and then perform a forward?
I assume that this is possible, but I don't know how to do it.

Randy

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 11:52 AM
> To: '[EMAIL PROTECTED]'
> Subject: Re: IIS-Tomcat case insensitivity
> 
> 
> 
> 
> On Wed, 12 Sep 2001, Morteo, Karl (AFIS) wrote:
> 
> > Date: Wed, 12 Sep 2001 15:16:13 +0200
> > From: "Morteo, Karl (AFIS)" <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > To: "'[EMAIL PROTECTED]'" 
> <[EMAIL PROTECTED]>
> > Subject: IIS-Tomcat case insensitivity
> >
> >
> > I am looking for a way to integrate Tomcat 3.2 with an 
> existing case IIS
> > application.
> > Unfortunately I have no control over the static HTML and 
> many bookmarks that
> > have used mixed case.
> >
> > Consequently I need to make Tomcat 3.2 and the 
> uriworkers.properties case
> > insensitive.
> >
> > Any ideas ?
> >
> 
> You would need to modify the source code for Tomcat to do 
> this.  However,
> if you do, you are opening your web app to all manner of 
> security attacks.
> Therefore, this option is not supported through configuration 
> switches or
> anything like that.
> 
> > Thanks in advance.
> >
> > Karl Morteo.
> >
> >
> >
> >
> 
> Craig
> 
> 



Re: IIS-Tomcat case insensitivity

2001-09-12 Thread Craig R. McClanahan



On Wed, 12 Sep 2001, Morteo, Karl (AFIS) wrote:

> Date: Wed, 12 Sep 2001 15:16:13 +0200
> From: "Morteo, Karl (AFIS)" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: IIS-Tomcat case insensitivity
>
>
> I am looking for a way to integrate Tomcat 3.2 with an existing case IIS
> application.
> Unfortunately I have no control over the static HTML and many bookmarks that
> have used mixed case.
>
> Consequently I need to make Tomcat 3.2 and the uriworkers.properties case
> insensitive.
>
> Any ideas ?
>

You would need to modify the source code for Tomcat to do this.  However,
if you do, you are opening your web app to all manner of security attacks.
Therefore, this option is not supported through configuration switches or
anything like that.

> Thanks in advance.
>
> Karl Morteo.
>
>
>
>

Craig





IIS-Tomcat case insensitivity

2001-09-12 Thread Morteo, Karl (AFIS)


I am looking for a way to integrate Tomcat 3.2 with an existing case IIS
application.
Unfortunately I have no control over the static HTML and many bookmarks that
have used mixed case. 

Consequently I need to make Tomcat 3.2 and the uriworkers.properties case
insensitive.

Any ideas ?
 
Thanks in advance.
 
Karl Morteo.
 
 




iis redirecting servlet requests to tomcat but not JSP requests

2001-09-12 Thread Hughes, Tim

Hi,

I have set up Tomcat on NT4.0 as a standalone and everything (servlets and
jsps) work fine if I connect directly to Tomcat.
I then set up IIS to forward requests exactly as described in the HowTo. The
result is that when I connect to IIS with a servlet request e.g.
http://localhost/examples/servlets/HelloWorldExample everything works fine
(html files are also returned without problem) but if I try to get a jsp
e.g. http://localhost/examples/jsp/dates/date.jsp I get an HTTP 500 error.
What could be the cause for this?

Any help is greatly appreciated.


Tim Hughes
Cap Gemini Ernst & Young

Addr.: Sandbrugt. 5-7, Postboks 3950, Dreggen, 5835 Bergen, Norway
> Tel: +47 55 90 66 24 / +47 48 10 06 38
> Email:  [EMAIL PROTECTED]
Web:   http://no.cgey.com





This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.



Re: tomcat has to be restarted every few hours (resent, mailserver errors)

2001-09-12 Thread Thad Humphries

Eric--

I had the same problem--an application that ran fine in Linux (RedHat 
6.2) and would lock up on Solaris 2.7 and 2.6.  Both systems with JDK 
1.3.1, Tomcat 3.2.3, & Apache 1.3.20.  It would eventually stall and 
require restarting.  Sometimes it would go several hours.  Sometimes it 
would lock up on the 2d or 3d access.

I never conclusively resolved where the problem was coming from but I 
have seemed to fix it.  My index.jsp was loading a session bean and 
several frames that used the bean.  From the next exceptions that were 
being thrown, I guessed there was a race condition on loading the bean 
in  JVM on Solaris.  I rewrote the application to call the session bean 
only once in the initial index.jsp and its frames.  Since then it has 
run fine--repeated new user hits and no lockups.

[EMAIL PROTECTED] wrote:

>Hi all,
>
>On my RH 6.2 system, with 1 G RAM, I notice that after Tomcat 3.2.3
>has been running for a few hours, when visitors click on links on the
>site, they will get errors like 404 page not found, or unable to
>compile jsp page, or an error has occurred in the java compiler,
>please file a bug report to Sun, or Java out of memory errors.
>
>For any given page, the error message may change to another after one
>clicks on refresh.
>
>The longer Tomcat is up, the more pages are affected.
>
>Only solution is to restart Tomcat.
>
>Any help on this? We're using jdk 1.1.8 (have to)
>
>Eric
>
-- 
-
Thad Humphries   "...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States." -Article VI






WebdavServlet and WEB-INF folder

2001-09-12 Thread nicolas bonvin

Is there a way to configure the org.apache.catalina.servlets.WebdavServlet
so that webdav clients can access the WEB-INF folder?
The provided "webdav" webapp doesn't display the WEB-INF folder - an
understandable security precaution, but I would like to turn it off.

thanks,

nicolas b.




Re: Tomcat error page

2001-09-12 Thread Craig R. McClanahan



On Wed, 12 Sep 2001, Alexandre Victoor wrote:

> Date: Wed, 12 Sep 2001 16:43:58 +0200
> From: Alexandre Victoor <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Tomcat error page
>
> Hello again,
> I would like to know if it is possible to configure tomcat to serve a
> static page (without the java stack trace) when an error 500 occurs.
> Is there a tag like "" that I need to add in web.xml ?
> Thanks for your help
>

If you were to read the servlet specification
, you would find that
there is indeed such a tag, and it is even called .  You will
also find out about some request attributes that the container sets to let
your error page know what the error was.

> Alexandre
>

Craig




RE: static class and JSP

2001-09-12 Thread Randy Layman


You need to import the class using <%@ page import="class name here"
%> at the top of your file.  This works like regular java imports, except
the import attribute can be comma delimited (or there can be multiple
imports, or both) and you must import all classes (the default package is
not imported for you).

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: static class and JSP
> 
> 
> Upon tomcat being started, I have a servlet populate a static 
> class with
> configurations that are used by other servlets when they are 
> invoked.  This
> works great!  But, now I'd like to have my JSP's use this 
> static class but
> I'm getting the "Undefined variable or class name" error on 
> the JSP.  How
> do I tell the JSP's where this file is?  It is in the web-inf/classes
> directory with my other servlets.
> 
> Thanks,
> 
> Jason E. Brawner
> 
> 



RE: To maintain bean session from a jsp called in a servlet?

2001-09-12 Thread Lessault Jean-Luc


Thank you asheesh for your answer, nevertheless I don't use cookies 
but just only HttpSession Objects.

Cheers, jean luc.

-Message d'origine-
De?: asheesh [mailto:[EMAIL PROTECTED]]
Envoye?: dimanche 24 juin 2001 12:16
A?: [EMAIL PROTECTED]
Objet?: Re: To maintain bean session from a jsp called in a servlet?


Check ur browser settings see if cookies are enabled or not ?

Cheers
asheesh

- Original Message - 
From: Lessault Jean-Luc <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 5:48 PM
Subject: To maintain bean session from a jsp called in a servlet?


> 
> Hi,
> 
> I'm working on a cache Web, and I would like to maintain 
> beans session from jsp files called in a servlet. But I loose
> them although I keep the servlet session.
> Does someone know how to solve this problem?
> 
> Thanks.
> 
> 





static class and JSP

2001-09-12 Thread JBrawner

Upon tomcat being started, I have a servlet populate a static class with
configurations that are used by other servlets when they are invoked.  This
works great!  But, now I'd like to have my JSP's use this static class but
I'm getting the "Undefined variable or class name" error on the JSP.  How
do I tell the JSP's where this file is?  It is in the web-inf/classes
directory with my other servlets.

Thanks,

Jason E. Brawner





Tomcat error page

2001-09-12 Thread Alexandre Victoor

Hello again,
I would like to know if it is possible to configure tomcat to serve a 
static page (without the java stack trace) when an error 500 occurs.
Is there a tag like "" that I need to add in web.xml ?
Thanks for your help

Alexandre






RE: servlet hang

2001-09-12 Thread Andy Bailey

I had problems like this in a more conventional Server/Client (Applet)
scenario.

I am not entirely certain what causes the ObjectInputStream to think it
is at EOF and didn't really
have the time to find a 'workaround'. It was actually easier to create
an RMI setup for what I wanted to acheive. Sounds daunting, it isn't
really. Needed the Java plugin in the browser to make it work (not a
problem for me, these are limited distribution, read Intranet/Mobile
client, applets.

I initially wanted to do all my communication via a servlet using a
stateful server/client setup however http based communication is NOT at
all well suited for such scenarios. If you need your servlet to perform
other duties, eg statistics etc, then it can also use RMI, means RMI is
being used as a bridge. I found that I was able to do away with the
servlet altogether in the end.

Andy Bailey

-Original Message-
From: Noah Zigas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 2:46 PM
To: '[EMAIL PROTECTED]'
Subject: servlet hang


Hi All,
I'm new to the this list, but I have searched endlessly on the following
problem.

First the machine config:
Dell-installed RedHat Linux, kernel 2.2.14
Apache 1.3.12 compiled from source
Tomcat 3.2.3 compile from source
Blackdown JDK 1.2.2-FCS

I have a webapp that utilizes applet-servlet communication.  I send
serialized
java objects back and forth, but the problem I have only occurrs when
sending
a serialized object -from- the applet -to- the servlet.

My servlet.log file shows StreamCorruptedException: EOFException.

After a varying number of the above exceptions, the machine completely
hangs.  It's not just that the servlet engine crashes, but the entire
machine.
It then requires a hard reboot.

I have tried trapping the StreamCorruptedException.
I have tried closing the Connection.InputStream.
I have tried reading the leftover bytes -from- the
Connection.InputStream
after the StreamCorruptedException was thrown.

This is an important project for my company, and I'm at my wits end.

Any suggestions or advice would be greatly appreciated.

Noah
Senior Software Engineer
Paxar Systems Group



RE: Database pool

2001-09-12 Thread Alexandre Victoor

Thanks for your responses
Anybody knows the database pool of Turbine ? Is there a documentation 
beside the javadoc ?

Alexandre


>Sorry
>I code Java servlets and I am looking something like
>http://javaexchange.com (which is not open source)
>Thanks
>
>Alexandre






IIS Virtual hosting

2001-09-12 Thread David Oxley

Hi all,

I need to set up IIS with each virtual host routing to a different worker in
Tomcat. Each virtual host has the same web application under it and
therefore must all be the same context.

i.e. Under Apache I set up the following:
NameVirtualHost 128.100.2.23


ServerName cisweb2k
JkMount /spweb/servlet/* ajp13_1



ServerName cisweb2k2
JkMount /spweb/servlet/* ajp13_2


How is the best way to achieve the same configuration with IIS?
I think what I need is to be able to specify the host name in
uriworkermap.properties:
cisweb2k/spweb/servlet/*=ajp13_1
cisweb2k2/spweb/servlet/*=ajp13_2

Thanks.
Dave.



servlet hang

2001-09-12 Thread Noah Zigas

Hi All,
I'm new to the this list, but I have searched endlessly on the following
problem.

First the machine config:
Dell-installed RedHat Linux, kernel 2.2.14
Apache 1.3.12 compiled from source
Tomcat 3.2.3 compile from source
Blackdown JDK 1.2.2-FCS

I have a webapp that utilizes applet-servlet communication.  I send
serialized
java objects back and forth, but the problem I have only occurrs when
sending
a serialized object -from- the applet -to- the servlet.

My servlet.log file shows StreamCorruptedException: EOFException.

After a varying number of the above exceptions, the machine completely
hangs.  It's not just that the servlet engine crashes, but the entire
machine.
It then requires a hard reboot.

I have tried trapping the StreamCorruptedException.
I have tried closing the Connection.InputStream.
I have tried reading the leftover bytes -from- the Connection.InputStream
after the StreamCorruptedException was thrown.

This is an important project for my company, and I'm at my wits end.

Any suggestions or advice would be greatly appreciated.

Noah
Senior Software Engineer
Paxar Systems Group



Re: Tomcat 3.3 CVS: class/jar reloading

2001-09-12 Thread Bojan Smojver

Bojan Smojver wrote:
> 
> Still a bit confused with it...
> 
> When I put class files into WEB-INF/classes, Tomcat reports something
> like this:
> 
> 
> DependManager: Added
> /home/httpd/html/binarix.dev/WEB-INF/classes/com/binarix/velocity/PumpServlet.class
> class com.binarix.velocity.PumpServlet
> 
> 
> Cool. Works as expected, the app gets dumped when I refresh the class.
> 
> The second test is with a jar file that contains the very same class.
> The application still works, so, obviously, the actually class file is
> found in the jar file. The class is not available anywhere else as the
> app stops working once the jar is removed from WEB-INF/lib.
> 
> However, Tomcat does not report any action from DependManger in relation
> to this jar file. Neither it dumps the app when the jar gets refeshed.
> 
> I went through the code briefly and there are references to jar files in
> DependManger. I must be doing something seriously silly here...
> 
> Bojan

Don't worry about answering this one. I've transferred to dev list. It
seems to be a bug in TC 3.3.

Bojan



RE: Automatic compilation of java->classes?

2001-09-12 Thread Randy Layman


Not directly, however there is another Jakarta project called Ant
that is a Java build tool.  Clever use of a background process and file
modification time stamps should allow you to automatically build java files
into class files using Ant when necessary.

Randy

> -Original Message-
> From: Paul Downs [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 6:02 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Automatic compilation of java->classes?
> 
> 
> Hi,
>   We recently swapped a machine over from running resin to 
> running tomcat. 
> One of the erm... "features" of resin was the compilation, if 
> present, of 
> java files into servlets/beans etc.  Can this be achieved 
> with tomcat?  I 
> could not find anything in the docs...
> 
> TIA
>Paul
> 



Tomcat won't start : java.lang.OutOfMemoryError

2001-09-12 Thread Franck Routier

Hi,

I'm trying to start Tomcat and get the following error :

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError

[...]

I get this error with tomcat 3.3-b2 as well as tomcat-4.0-rc1.

My environment is :
Debian GNU Linux PowerPC
Kernel 2.4.4
JDK : Blackdown 1.3.0
Physical RAM : 386 MB

Note that Netbeans, JBuilder, Enhydra Entreprise (uses a modified Tomcat) 
and JBoss-tomcat all work well !

I guess it has something to do with the startup script or server 
configuration, but I didn't change anything from what I downloaded two days 
ago.

I tried to export TOMCAT_OPTS="-Xms128m -Xmx256m" and start, but with no 
success.

Where should I look for ??? I'm lost and quite unskilled to be true (I'm 
trying to learn, nevertheless !)

Thanks in advance,

Franck
---
Franck Routier
SHC - Support FIH9




Re: Announce: OurSQL, JSP interface for MySQL

2001-09-12 Thread Tom Oinn



Elm Gysel wrote:
> 
> That page has 4 links of its own and 3 of them give you jsp errors.
> 
> I'm not sure if I would join that project tho :)
> 
> Greetings from Belgium!
> 
> Elm
> 
> - Original Message -
> From: "Kaneda K" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 12:42 PM
> Subject: Re: Announce: OurSQL, JSP interface for MySQL
> 
> > At 06:47 12/09/2001 +0200, you wrote:
> > >Hi,
> > >First, I'm sorry for being half off-topic.
> > >Recently, I was looking for a good admin tool for MySQL. All I found was
> > >MyAdmin, which is written in PHP. I don't want any PHP on my server, so I
> > >decided to write my own software, and here it is - the first version of
> > >OurSQL.
> > >What it can do? Right now - you can log in to any MySQL database (local
> or
> > >remote) and execute any queries you want, viewing results. The goal is,
> of
> > >course, to make easy any frequent operation.
> > >Tell me what do you think, any suggestions, etc.
> > >Yes I know the current version sucks. Think of it as an interactive demo.
> > >Installation: copy the .jsps to a single directory anywhere and add
> MM.MySQL
> > >drives to WEB-INF/lib
> > >
> > >You can get it here: http://oursql.wwtech.pl
> > >
> > >Greetings,
> > >  deacon Marcus
> > >
> > >p.s. I still need the Tomcat plushie, please...
> >
> > http://www.javaphilia.com/
> >
> > Is the same kind of project may be you could go faster by joining it,
> don't
> > you think ?

..or you could take a look at :

http://golgi.ebi.ac.uk/talisman

This is a web application builder I wrote to save myself a load of time
writing boring web interfaces for our biologists, it includes a simple
test application that does generic SQL stuff (we use oracle but there's
nothing here that ties talisman to this, or any db in fact).

Tom



Re: Announce: OurSQL, JSP interface for MySQL

2001-09-12 Thread Elm Gysel

That page has 4 links of its own and 3 of them give you jsp errors.

I'm not sure if I would join that project tho :)

Greetings from Belgium!

Elm

- Original Message -
From: "Kaneda K" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 12:42 PM
Subject: Re: Announce: OurSQL, JSP interface for MySQL


> At 06:47 12/09/2001 +0200, you wrote:
> >Hi,
> >First, I'm sorry for being half off-topic.
> >Recently, I was looking for a good admin tool for MySQL. All I found was
> >MyAdmin, which is written in PHP. I don't want any PHP on my server, so I
> >decided to write my own software, and here it is - the first version of
> >OurSQL.
> >What it can do? Right now - you can log in to any MySQL database (local
or
> >remote) and execute any queries you want, viewing results. The goal is,
of
> >course, to make easy any frequent operation.
> >Tell me what do you think, any suggestions, etc.
> >Yes I know the current version sucks. Think of it as an interactive demo.
> >Installation: copy the .jsps to a single directory anywhere and add
MM.MySQL
> >drives to WEB-INF/lib
> >
> >You can get it here: http://oursql.wwtech.pl
> >
> >Greetings,
> >  deacon Marcus
> >
> >p.s. I still need the Tomcat plushie, please...
>
> http://www.javaphilia.com/
>
> Is the same kind of project may be you could go faster by joining it,
don't
> you think ?
> that the purpuse of GLP
> --
> Kaneda K - matchmaker ;)




Re: Announce: OurSQL, JSP interface for MySQL

2001-09-12 Thread Kaneda K

At 06:47 12/09/2001 +0200, you wrote:
>Hi,
>First, I'm sorry for being half off-topic.
>Recently, I was looking for a good admin tool for MySQL. All I found was
>MyAdmin, which is written in PHP. I don't want any PHP on my server, so I
>decided to write my own software, and here it is - the first version of
>OurSQL.
>What it can do? Right now - you can log in to any MySQL database (local or
>remote) and execute any queries you want, viewing results. The goal is, of
>course, to make easy any frequent operation.
>Tell me what do you think, any suggestions, etc.
>Yes I know the current version sucks. Think of it as an interactive demo.
>Installation: copy the .jsps to a single directory anywhere and add MM.MySQL
>drives to WEB-INF/lib
>
>You can get it here: http://oursql.wwtech.pl
>
>Greetings,
>  deacon Marcus
>
>p.s. I still need the Tomcat plushie, please...

http://www.javaphilia.com/

Is the same kind of project may be you could go faster by joining it, don't 
you think ?
that the purpuse of GLP
--
Kaneda K - matchmaker ;)




RE: IMPORTANT!!!!!!!!! NEW DISTRUCTIVE VIRUS!!!!! DON' T OPEN...

2001-09-12 Thread Roy Long

According to Mcafee's website this virus is a Hoax as was the internet
flower for you http://vil.mcafee.com/dispVirus.asp?virus_k=98893&;

Roy

-Original Message-
From: Catalin Palsu [mailto:[EMAIL PROTECTED]]
Sent: 12 September 2001 09:32
To: [EMAIL PROTECTED]
Subject: IMPORTANT! NEW DISTRUCTIVE VIRUS! DON' T OPEN...


At 11:12 AM 9/12/01 +0300, you wrote:

> > > >>
> > > >>A new virus has just been discovered that has been classified by
> > Microsoft
> > > >>as the most destructive ever! This virus was discovered yesterday
> > > >>afternoon
> > > >>by McAfee and no vaccine has yet been developed. This virus simply
> > > >>destroys
> > > >>Sector Zero from the hard disk, where vital information for its
> > > >>functioning
> > > >>are stored.
> > > >>
> > > >>Please read the following.
> > > >>This virus acts in the following manner: It sends itself
automatically
> > to
> > > >>all contacts on your list with the title "A Virtual Card for You."
> > > >>As soon as the supposed virtual card is opened, the computer freezes
>so
> > > >>that
> > > >>the user has to reboot. When the ctrl+alt+del keys or the reset
button
> > are
> > > >>pressed, the virus destroys Sector Zero, thus permanently destroying
>the
> > > >>hard disk.
> > > >>Yesterday in just a few hours this virus caused panic in New York,
> > > >>according
> > > >>to news broadcast by CNN. This alert was received by an employee of
> > > >>Microsoft itself. So don't open any mails with subject: "A Virtual
>Card
> > > >>for
> > > >>You." As soon as you get the mail, delete it.
> > > >>Please pass this mail to all of your friends. Forward this to
everyone
> > in
> > > >>your address book.
> > > >>I would rather receive this 25 times than not at all. Also: Intel
> > > >>announced
> > > >>that a new and very destructive virus was discovered recently.
> > > >>
> > > >>If you receive an email called "An Internet Flower For You," do not
>open
> > > >>it.
> > > >>Delete it right away! This virus removes all dynamic link libraries
> > (.dll
> > > >>files) from your computer. Your computer will not be able to boot up
>!!
> > > >>
> > > >>Sharing this with you as a service of ITs FX Inc.
> > > >
> > > >
> > >
> > >
> > > _
> > > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp




Re: To maintain bean session from a jsp called in a servlet?

2001-09-12 Thread asheesh

Check ur browser settings see if cookies are enabled or not ?

Cheers
asheesh

- Original Message - 
From: Lessault Jean-Luc <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 5:48 PM
Subject: To maintain bean session from a jsp called in a servlet?


> 
> Hi,
> 
> I'm working on a cache Web, and I would like to maintain 
> beans session from jsp files called in a servlet. But I loose
> them although I keep the servlet session.
> Does someone know how to solve this problem?
> 
> Thanks.
> 
> 




Automatic compilation of java->classes?

2001-09-12 Thread Paul Downs

Hi,
  We recently swapped a machine over from running resin to running tomcat. 
One of the erm... "features" of resin was the compilation, if present, of 
java files into servlets/beans etc.  Can this be achieved with tomcat?  I 
could not find anything in the docs...

TIA
   Paul



Re: TC4: web.xml and reloading

2001-09-12 Thread Jim Cheesman

At 09:22 AM 12/09/01, you wrote:
>Jim Cheesman wrote:
>
> > I have to back this statement up - jar reloading on TC4/Win2000 is a risky
> > business, to say the least. Sometimes it works, sometimes not... I wonder
> > if it's anything to do with the server checking for a new jar at the same
> > time as the filesystem overwrites the old one?
>
>Nasty. Maybe it's a JDK for Win specific thingy, rather then a Tomcat
>bug? Does it work with IBM JDK?

Haven't tried that... If I have time I'll download it and give it a go.




>I'm having some problems with jar reloading in TC 3.3. But this is
>happening on Linux and the tricky part is that DependManager doesn't
>even report jar files as dependencies...
>
>Bojan


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   I have a twin brother; 
he's identical, but I'm not.





Resource Overhead

2001-09-12 Thread Sam (Ying-Hsien Ku)

Hi everybody,

We want to develop embedded linux system involve JSP engine. How could I
know the overhead of memory and CPU utility when we running tomcat?
even resin and others.

thanks in advance,





To maintain bean session from a jsp called in a servlet?

2001-09-12 Thread Lessault Jean-Luc


Hi,

I'm working on a cache Web, and I would like to maintain 
beans session from jsp files called in a servlet. But I loose
them although I keep the servlet session.
Does someone know how to solve this problem?

Thanks.





RE: file download servlet

2001-09-12 Thread Dinu Jose

Hi,
Could you please check the link given below.It shows how to use
"Content-Disposition" etc.
http://www.esus.com/javaindex/j2ee/servlets/servletdlbinaryfile.html

Regards
Dinu
-Original Message-
From: Alexander Jesse [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 11:54 AM
To: tomcat-user
Subject: RE: file download servlet


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



RE: Problem with loading classes dynamically, new objects can't " see" things in webapp.

2001-09-12 Thread Guy Verbist

Hi again Craig.

> If ProsumerTestTag is being loaded from the class path, it's 
> being loaded
> by the system class loader.
> 
> If CustomTag is being loaded from the web app, it is being 
> loaded from the
> webapp class loader.

Judging by printing out the name of the classloaders being used at various
times, I was beginning to get this impression.

> Classes loaded from the system class loader CANNOT see 
> classes loaded from
> the webapp class loader -- therefore, Tomcat is telling you the truth.
> These restrictions are based on the way class loaders work in Java, so
> there's nothing Tomcat can do about it.

Right, I wasn't aware of this at all.

> Note that any of the following should work:
> * Put CustomTag and ProsumerTestTag both on the classpath
> * Put CustomTag and ProsumerTestTag both in the webapp
> * Put CustomTag on the classpath and ProsumerTestTag in the webapp
>   (webapp class loaders can look "up" the class loader hierarchy)

OK, I've tried your first suggestion, and that works.

Many thanks indeed for your authoritative answer.

Cheers,

Guy



IMPORTANT!!!!!!!!! NEW DISTRUCTIVE VIRUS!!!!! DON' T OPEN...

2001-09-12 Thread Catalin Palsu

At 11:12 AM 9/12/01 +0300, you wrote:

> > > >>
> > > >>A new virus has just been discovered that has been classified by
> > Microsoft
> > > >>as the most destructive ever! This virus was discovered yesterday
> > > >>afternoon
> > > >>by McAfee and no vaccine has yet been developed. This virus simply
> > > >>destroys
> > > >>Sector Zero from the hard disk, where vital information for its
> > > >>functioning
> > > >>are stored.
> > > >>
> > > >>Please read the following.
> > > >>This virus acts in the following manner: It sends itself automatically
> > to
> > > >>all contacts on your list with the title "A Virtual Card for You."
> > > >>As soon as the supposed virtual card is opened, the computer freezes
>so
> > > >>that
> > > >>the user has to reboot. When the ctrl+alt+del keys or the reset button
> > are
> > > >>pressed, the virus destroys Sector Zero, thus permanently destroying
>the
> > > >>hard disk.
> > > >>Yesterday in just a few hours this virus caused panic in New York,
> > > >>according
> > > >>to news broadcast by CNN. This alert was received by an employee of
> > > >>Microsoft itself. So don't open any mails with subject: "A Virtual
>Card
> > > >>for
> > > >>You." As soon as you get the mail, delete it.
> > > >>Please pass this mail to all of your friends. Forward this to everyone
> > in
> > > >>your address book.
> > > >>I would rather receive this 25 times than not at all. Also: Intel
> > > >>announced
> > > >>that a new and very destructive virus was discovered recently.
> > > >>
> > > >>If you receive an email called "An Internet Flower For You," do not
>open
> > > >>it.
> > > >>Delete it right away! This virus removes all dynamic link libraries
> > (.dll
> > > >>files) from your computer. Your computer will not be able to boot up
>!!
> > > >>
> > > >>Sharing this with you as a service of ITs FX Inc.
> > > >
> > > >
> > >
> > >
> > > _
> > > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp