mod_jk under darwin (OS X)

2001-04-06 Thread Morten Rønseth

Hi all,

I'm trying to get mod_jk to compile under OS X but it seems that it relies
on glibc - which is not (yet?) ported to Darwin.

Does anybody know if this happens to be the case and if so is there any
other way to get mod_jk to compile?

Cheers,


-Morten

---
Rayon Interactive AS http://www.rayon.no
Morten Lerskau Rnseth   mailto:[EMAIL PROTECTED]
Karenslyst All 16d  Tlf.: (47) 2213 5250
0278 OsloFax : (47) 2213 5260
Norway   ICQ: 25163080

PGP fingerprint: F851 91B6 1D81 1409 8B62  3E14 5A60 65F8 5AF4 56AF




RE: Tomcat/LoadBalancing.

2001-04-06 Thread GASNIER Lise

you have to add your worker loadbalancer in the worker list...:
worker.list = loadbalancer and mount your servlets and jsps to loadbalancer

Lise

 -Message d'origine-
 De:   Vikas Bansal [SMTP:[EMAIL PROTECTED]]
 Date: jeudi 5 avril 2001 20:16
 :[EMAIL PROTECTED]
 Objet:Tomcat/LoadBalancing.
 
 Hello,
 I want to enable the load balancer worker on Apache/Tomcat. Even though
 I have configured the workers.properties file as -
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=myajp12_1, myajp13_1, myajp12_2,
 myajp13_2
 
 The load balancer worker is not invoked, for I do see the debug
 statements for lb worker in mod_jk.log.
 
 Could you tell me, what is it that I am doing. What additional
 configuration do I need to do to enable load balancer.
 
 Any help in this regard is appreaciated.
 -Vikas.



RE: IIS 5 and Win200000

2001-04-06 Thread Kirill Averianov



I 
cannot load isapi_redirect.dll. It shows that it is not 
loaded.
the 
red arrow points down. What am I doing wrong ?

  -Original Message-From: shlomi sarfati 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 05, 2000 9:32 
  AMTo: [EMAIL PROTECTED]; Carlos Gustavo Verbel 
  MarteloSubject: RE: IIS 5 and Win20
  Yes 
  
  
  
-Original Message[shlomi 
sarfati]-From: Carlos Gustavo 
Verbel Martelo [mailto:[EMAIL PROTECTED]]Sent: Thu, April 05, 
2001 3:33 PMTo: [EMAIL PROTECTED]Subject: 
IIS 5 and Win20
Hello,

Tomcat work with IIS5 and Windows 
2000?

Thanks for your help.

Best Regards.
Carlos Gustavo Verbel MarteloNetwork 
Administrator / Administrador de RedTeléfono / Phone (574) 312 
2791PRAGMA: Now is Time to get Value. http://www.pragma.com.co

¿Conoce nuestros servicios? Visite 
http://www.pragma.com.co/sitio/soluciones/

Mensaje enviado con MISIVA Web Mail 
Serverhttp://www.pragma.com.co/misiva


3.3-M2 conf/users files

2001-04-06 Thread Peter B. West

In 3.3-M2, the users files for SimpleRealm have been split into
admin-users.xml
example-users.xml
global-users.xml
tomcat-users.xml

My server.xml, which may be a hangover from a previous version of
tomcat, has the following line for SimpleRealm:
SimpleRealm  filename="conf/users/global-users.xml" /

What is the intended use of these multiple files?  How are they to be
specified?

Peter
-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"



Re: can SSL an non-SSL run at the same time??

2001-04-06 Thread Pae Choi

Gomez,

I know you were involved in mod_jk at least for apache 2.0 from 1.3.x.
Have you built the mod_jk with apache v1.3.17 and v1.3.19 with "EAPI"
option. It seems like the option, EAPI", is completely removed from both
versions. Then do we have any info regarding on the reasons and effects
on this change, "EAPI" from 1.3.14 to later versions. Thanks


Pae



 I running Tomcat as a standalone using SSL.
 What i'm hoping to do is that one context with non-SSL and the other
 context is with SSL.

Well, that helps clarify the question.  Unfortunately, I don't have an
answer for you (i.e. I don't know) -- but perhaps someone else does.
This is certainly a very reasonable/desirable capability to have, so
if it's not available, it would be nice if it were added.  FWIW, I'm
pretty sure you can do what you want with Apache with mod_ssl (which
is what I'm using -- but I haven't tried doing that yet).

I strongly recommand you to use mod_jk to handle this situation.

1) native http connector are still not as secure as apache could be

2) handling SSL / NON-SSL via mod_jk (and mod_ssl) in Apache is very
   easy, and works fine (used in my prods servers for months)




Re: security question

2001-04-06 Thread skolski

Hello Jeff, Hello List,

thank you very much for your reply. A look at this example would have
prevent me from spending a lot of time and writeing the other mail. The
build in example doesn't work at my installation. That j_security_check
stuff is missing. But that doesn't matter, I try to use basic auth for the
first throw.

I copied the parts of examples web.xml to my context and modified the path.
If I try to surf to that "secret" path the password box pops up. The
password box then only accepts the valid users, so far everything is o.k.
But then there is a 404 Error. The Browser points to the right file in the
right directory but there is a 404 not found. How is that possible? What do
I do wrong?

thannks in advance,

Sascha





Sending e-mail - Thank you

2001-04-06 Thread Garry De Toffoli



Thank you very much for all the people that has 
helped me.

Thank you again.


bla

2001-04-06 Thread Bartsch Axel

unsubscribe



Re: tomcat in comb. with apache randomly rejecting requests

2001-04-06 Thread martin . exler

On Thu, 05 Apr 2001 08:58:59 EDT "Lyle H. Ward" wrote:
 Not that it is any help, but! I use IE over the net to several secure sites
 (mostly financial) and see this same behavior. I think it is in the IE code
 and outside of maybe obtaining the IE source, there isn't any cure. 
 

We also suffer from this behavior -- without any real idea how to get 
around it. Especially "multipart/form-data" forms show this error most
times at the first try of submitting (ususally going back and retrying 
submit does the job -- interesting, isn't it?)

However it seems to me that the known problem with IE+keepalive can be
seen at some(?) versions of IE5.0, thus I'm trying:
BrowserMatch "MSIE 5\.0" nokeepalive downgrade-1.0 force-response-1.0

Definitly the failure on 301/302 redirector requests vanished, I also 
does not get a negative feedback on the "This page cannot be accessed..."
problem since I've changed this settings. Sadly, as the behavior described 
by Kresmir is non-deterministic this may also be a false guess ...


hth,
-martin




too many java processes ???

2001-04-06 Thread kreso



When we run tomcat, it opens about 30 java 
processes and it takes
a lot (almost all) of our 128 MB memory. Is that 
supposed to be?
We are running it on linux.
Processes look something like this...

root 11077 11049 0 
Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11078 
11077 0 Apr05 ? 00:00:12 
/usr/java/jdk1.3/bin/i386/nativeroot 11079 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11080 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11081 
11077 0 Apr05 ? 00:00:04 
/usr/java/jdk1.3/bin/i386/nativeroot 11082 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11083 
11077 0 Apr05 ? 00:00:01 
/usr/java/jdk1.3/bin/i386/nativeroot 11084 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11085 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11086 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11087 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11088 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11089 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11090 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11091 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11092 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11093 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11094 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11095 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11096 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11097 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11098 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11099 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11100 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11101 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11102 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11103 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11104 
11077 0 Apr05 ? 00:00:00 
/usr/java/
root 11105 11077 0 
Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11106 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11107 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11108 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 11109 
11077 0 Apr05 ? 00:00:01 
/usr/java/jdk1.3/bin/i386/nativeroot 0 
11077 0 Apr05 ? 00:00:02 
/usr/java/jdk1.3/bin/i386/nativeroot 1 
11077 0 Apr05 ? 00:00:06 
/usr/java/jdk1.3/bin/i386/nativeroot 2 
11077 0 Apr05 ? 00:00:00 
/usr/java/jdk1.3/bin/i386/nativeroot 4 
11077 0 Apr05 ? 00:00:07 
/usr/java/jdk1.3/bin/i386/native


please let us know how we can limit so it doesn't 
use whole our memory...
thanks



Servlet newsgroup discussion on news.groups

2001-04-06 Thread Jon Skeet
Title: Servlet newsgroup discussion on news.groups






Greetings!


This message is being posted here (and to other places where servlets

are discussed) because there is a Request For Discussion (RFD) on

the news.groups Usenet newsgroup concerning the proposal of two new

Java newsgroups:


comp.lang.java.servlet

comp.lang.java.server-side


If you are not interested in Usenet or feel you wouldn't use the new

groups, please ignore this message and accept my apologies for wasting

your time.


If you wish to view the proposal and comment on it, however, I would

be very happy to hear your views. The subject line of the RFD is:

2nd RFD: comp.lang.java.server-side and comp.lang.java.servlet and

the article ID is: [EMAIL PROTECTED]


Discussion of the RFD should be carried out on news.groups, but if

you don't wish to post there yourself I'd be happy to post on your

behalf if you wish to mail me at [EMAIL PROTECTED] If your

news-server doesn't carry news.groups, a copy of the RFD has also

been posted on comp.lang.java.programmer, comp.lang.java.databases,

and comp.lang.java.corba - or I'd be happy to mail you a copy. If

you wish to read news.groups on the web, http://groups.google.com

provides an updating archive of posts, although it's usually a

couple of days behind.


NOTE: Due to the large number of mailing lists and discussion boards

this message has been posted to, I won't be able to participate in

any discussion on the list/board itself. Furthermore, it would be

counter-productive to have several small discussions, one in each

area. Please use news.groups instead. I apologise if you feel this

request is poor netiquette - I'm usually a great fan of read where

you write myself, but I hope you'll see this as a slightly unusual

case.


The feelings of the Java community are very important on this matter

- and when it comes to the vote, the new groups will only pass if

there is sufficient support. I'll post another message here when

the Call For Votes (CFV) takes place, so you don't need to read

news.groups in the meantime if you don't want to.


Thanks for reading,

Jon Skeet - [EMAIL PROTECTED]





Re: too many java processes ???

2001-04-06 Thread John Clark L. Naldoza

Hi,


Are you using Multi-threaded Applications???  If so, this would be
natural...;-)  

With the Linux Operating System...  Threads are actually reported as
being processes...;-)

Try using top or ps -aux and add up the memory usage of the
processes...;-)

However, this does appear to be quite odd, if you have just run tomcat
and checked out the number of process running right away...;-(

What version of the Linux Kernel are you using???


Cheers,


John Clark

 kreso wrote:
 
 When we run tomcat, it opens about 30 java processes and it takes
 a lot (almost all) of our 128 MB memory. Is that supposed to be?
 We are running it on linux.
 Processes look something like this...
 
 root 11077 11049  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11078 11077  0 Apr05 ?00:00:12
 /usr/java/jdk1.3/bin/i386/native
 root 11079 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11080 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11081 11077  0 Apr05 ?00:00:04
 /usr/java/jdk1.3/bin/i386/native
 root 11082 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11083 11077  0 Apr05 ?00:00:01
 /usr/java/jdk1.3/bin/i386/native
 root 11084 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11085 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11086 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11087 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11088 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11089 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11090 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11091 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11092 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11093 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11094 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11095 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11096 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11097 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11098 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11099 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11100 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11101 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11102 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11103 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11104 11077  0 Apr05 ?00:00:00 /usr/java/
 root 11105 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11106 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11107 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11108 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11109 11077  0 Apr05 ?00:00:01
 /usr/java/jdk1.3/bin/i386/native
 root 0 11077  0 Apr05 ?00:00:02
 /usr/java/jdk1.3/bin/i386/native
 root 1 11077  0 Apr05 ?00:00:06
 /usr/java/jdk1.3/bin/i386/native
 root 2 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 4 11077  0 Apr05 ?00:00:07
 /usr/java/jdk1.3/bin/i386/native?
 
 
 please let us know how we can limit so it doesn't use whole our
 memory...
 thanks
 

-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 399-4742 \   \
  /   / email: [EMAIL PROTECTED]\   \



Netscape 3.51 Tomcat

2001-04-06 Thread Stephan Ruetke

Hello,

I am trying to integrate NES 3.5.1 with tomcat 3.2.1 on a winnt 4.0 
server.and I am not sure how I can test if it worked:
I followed the instructions "tomcat-netscape-howto.html",
I downloaded nsapi_redirect.dll (and did not build it).
The how-to says: start tomcat and ask Netscape for 
http://server:port/examples/
ok, maybe thats a stupid question, but I could not find an
answer to it: The Netscape server is running on port
80, but tomcat is running on 8080 - to show that the plugin works
I would have to use http://server:80/examples/ is that right?
Unfotunately the site is not found, only http://server:8080/examples/
works.

The second thing I would like to mention is that the how-to tells
the dll to be found in c:\jakarta-tomcat\bin\win32\i386\nsapi_redirect.dll, 
but in the following description
the path d:/tomcat/bin/netscape/nt4/i386/nsapi_redirect.dll
is used.

I hope you will find the time to anwer my mail.

Thanks in advance

Stephan Ruetke (Vienna, Austria)






_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




server.xml DTD

2001-04-06 Thread Torgeir Veimo

I cannot find any DTD for the server.xml file. Is there such a thing?

-- 
- Torgeir



Re: too many java processes ???

2001-04-06 Thread kreso

yes, the processes are the right away...
right after I start tomcat
we are using bash
thanks, plesae let me know if you have more advice


- Original Message -
From: "John Clark L. Naldoza" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 4:36 AM
Subject: Re: too many java processes ???


Hi,


Are you using Multi-threaded Applications???  If so, this would be
natural...;-)

With the Linux Operating System...  Threads are actually reported as
being processes...;-)

Try using top or ps -aux and add up the memory usage of the
processes...;-)

However, this does appear to be quite odd, if you have just run tomcat
and checked out the number of process running right away...;-(

What version of the Linux Kernel are you using???


Cheers,


John Clark

 kreso wrote:

 When we run tomcat, it opens about 30 java processes and it takes
 a lot (almost all) of our 128 MB memory. Is that supposed to be?
 We are running it on linux.
 Processes look something like this...

 root 11077 11049  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11078 11077  0 Apr05 ?00:00:12
 /usr/java/jdk1.3/bin/i386/native
 root 11079 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11080 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11081 11077  0 Apr05 ?00:00:04
 /usr/java/jdk1.3/bin/i386/native
 root 11082 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11083 11077  0 Apr05 ?00:00:01
 /usr/java/jdk1.3/bin/i386/native
 root 11084 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11085 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11086 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11087 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11088 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11089 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11090 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11091 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11092 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11093 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11094 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11095 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11096 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11097 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11098 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11099 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11100 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11101 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11102 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11103 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11104 11077  0 Apr05 ?00:00:00 /usr/java/
 root 11105 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11106 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11107 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11108 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 11109 11077  0 Apr05 ?00:00:01
 /usr/java/jdk1.3/bin/i386/native
 root 0 11077  0 Apr05 ?00:00:02
 /usr/java/jdk1.3/bin/i386/native
 root 1 11077  0 Apr05 ?00:00:06
 /usr/java/jdk1.3/bin/i386/native
 root 2 11077  0 Apr05 ?00:00:00
 /usr/java/jdk1.3/bin/i386/native
 root 4 11077  0 Apr05 ?00:00:07
 /usr/java/jdk1.3/bin/i386/native?


 please let us know how we can limit so it doesn't use whole our
 memory...
 thanks


--
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 399-4742 \   \
  /   / email: [EMAIL PROTECTED]\   \





generating a excel page in the browser

2001-04-06 Thread Carlos

in a jsp page if i put:
%@page contentType="application/vnd.ms-excel"%
the browser shows me a excel page.
but there is a problem. It show me a jsp page if i say to it for shown and
not to save.
when i want to see this page it asks me if i want to save or show the page.
What must i to write in the jso page for showing the excel page without
asking for saving?
thanks
Carlos




Newbie with TomCat

2001-04-06 Thread David DELGRANCHE

Hi all,

I'm new using tomcat. I used to use Apache JServ1.2 for my application. I 
have about 70 differents servlets with about 50 users. So you can imagine 
the number of connections I can have to my Oracle DataBase.
Does anyone can tell me if Tomcat can support this use?
Do you think this is a good solution in my use case?
Thanks for help
David.

David DELGRANCHE
[EMAIL PROTECTED]  
Tel: 02.99 05.34.25 
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX






RE: Newbie with TomCat

2001-04-06 Thread Benoit Jacquemont

Hi David,

Anyway, Tomcat comes in replacement of Jserv and according to the Jakarta
Project Team, you should use it instead of JServ, which is not maintained
any more. So there is non reason to think that Tomcat is weaker that JServ,
it should be even more powerful and stable than Jserv.

Benoit

   Hi all,

   I'm new using tomcat. I used to use Apache JServ1.2 for
 my application. I
 have about 70 differents servlets with about 50 users. So you
 can imagine
 the number of connections I can have to my Oracle DataBase.
   Does anyone can tell me if Tomcat can support this use?
   Do you think this is a good solution in my use case?
   Thanks for help
   David.


 David DELGRANCHE
 [EMAIL PROTECTED]
 Tel: 02.99 05.34.25
 Fax: 02.99.05.34.05
 Sogitec Industries
 24, Avenue Lavoisier
 ZI du Champ Niguel
 35174 BRUZ CEDEX






aaargh!

2001-04-06 Thread Michael McElligott



Okay, so I want to hook up apache with Tomcat on my 
development box (win98). So I read server.xml, and it tells me I need to 
make these modifications to httpd.conf. Then it says: here's how you make 
mod_webapp.so.

Of course, to make mod_webapp.so, I need make, 
right? And since I'm on 98, I don't have it. That's aside from the 
fact that I need a compiler (I'm thinking gcc, right?).

So I download gcc. It has to be made as 
well. From the documentation that I went through, looks like it encourages 
you to start with Visual C++. I don't *have* Visual C++. I'm a java 
guy. I was very happy to leave pointers at school and go to a nice warm 
everything-done-for-you Java world. So then I think, well I guess I need 
to get make anyway (regardless of the VC++ question). Make has to be made 
too. Hmm..

So I spot something called egcs at one point and 
for some reason think it's an executable that will run on Intel hardware. 
Wrong. Doesn't support windows at this time.

The point of this rant is not (as you might think) 
that the universe needs to satisfy me.. it's just that I'm a little concerned 
that I need to go buy a Microsoft product to get open source software to run on 
my machine..

Just ranting at 2:15...

Mike

P.S. I do have VC around here somewhere, but 
I imagine lots of folks don't.. how do they get everything set up, without 
having to guy buy VC++?

P.P.S. I suppose the easy answer would be to 
download Red Hat, huh? ;)



RE: generating a excel page in the browser

2001-04-06 Thread Danny Angus

you cant affect this behaviour, if you want to simply display in the
browser, then your user has to have elected not to be prompted for this MIME
type.
 :-(

IE4+  Excel are quite good at picking up other file formats, such as CSV
TAB etc, and the best way of all (to get generated sheets into excel) is to
use excel as the browser, by typeing a URL into the File-Open dialogue box,
at the filename field.
Then deliver the M$ HTML format, generated by your webbapp, and you can
generate all the rich functionality of Excel workbooks, including
multiple-sheets, and VB macros.
You can create a return path functions in your macros to build up two way
traffic with the server.

Its an awsome effect when people see it for the first time.

danny


 What must i to write in the jso page for showing the excel
 page without
 asking for saving?
 thanks
 Carlos





RE: generating a excel page in the browser

2001-04-06 Thread Danny Angus



 IE4+  Excel are quite good at picking up other file formats,
 such as CSV
 TAB etc,

I forgot to point out that as these are type text/plain you wont be prompted
to save, and excel will spot the filename extension.




Re: aaargh!

2001-04-06 Thread Pae Choi




Mike,

Which TOMCAT are you playing with?


Pae


-Original Message-From: 
Michael McElligott [EMAIL PROTECTED]To: 
[EMAIL PROTECTED] 
[EMAIL PROTECTED]Date: 
Friday, April 06, 2001 2:15 AMSubject: 
aaargh!
Okay, so I want to hook up apache with Tomcat 
on my development box (win98). So I read server.xml, and it tells me I 
need to make these modifications to httpd.conf. Then it says: here's 
how you make mod_webapp.so.

Of course, to make mod_webapp.so, I need make, 
right? And since I'm on 98, I don't have it. That's aside from 
the fact that I need a compiler (I'm thinking gcc, right?).

So I download gcc. It has to be made as 
well. From the documentation that I went through, looks like it 
encourages you to start with Visual C++. I don't *have* Visual 
C++. I'm a java guy. I was very happy to leave pointers at 
school and go to a nice warm everything-done-for-you Java world. So 
then I think, well I guess I need to get make anyway (regardless of the VC++ 
question). Make has to be made too. Hmm..

So I spot something called egcs at one point 
and for some reason think it's an executable that will run on Intel 
hardware. Wrong. Doesn't support windows at this 
time.

The point of this rant is not (as you might 
think) that the universe needs to satisfy me.. it's just that I'm a little 
concerned that I need to go buy a Microsoft product to get open source 
software to run on my machine..

Just ranting at 2:15...

Mike

P.S. I do have VC around here somewhere, 
but I imagine lots of folks don't.. how do they get everything set up, 
without having to guy buy VC++?

P.P.S. I suppose the easy answer would be 
to download Red Hat, huh? ;)



RE: aaargh!

2001-04-06 Thread Danny Angus

The point of this rant is not (as you might think) that the universe needs
to satisfy me.. it's just that I'm a little
concerned that I need to go buy a Microsoft product to get open source
software to run on my machine..

I agree with this guy, VC++ seems a bit of a strange recommendation,
understandable in that it is the authoritative compiler for Windows, but
sits uneasily with the philosophy, and.. are non developers going to pay out
that much just to compile a slightly non-centered version of apache?

I'm not ranting, just curious.

d




Re: UNSUSCRIBE

2001-04-06 Thread B.

list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]

Must be veery difficult to read the instructions in a header..




Tomcat 3.2.1 JDK1.3.0 on Solaris - processor usage.

2001-04-06 Thread Gary Lawson

Has anyone experienced this?

Tomcat 3.2.1 with Sun's JDK1.3.0_02 on Solaris 8 64 bit on a twin processor
Sparc box.

Under certain circumstances (regularly but not consistently) our webapp
causes the processor usage of the java process on one processor to rise
quickly to 80% and just sit there or therabouts. Bizarrely, this figure
(80%) seemed to vary. Sometimes it would be 80, sometimes 90 and originally
with Tomcat 3.2 beta8 it was 100%. Restarting Tomcat (and hence the JVM)
always solved it.

Our root context is configured correctly, so we knew it wasn't the known
processor usage bug.

We patched Solaris, the JDK and brought Tomcat to 3.2.1 with no success.
Eventually we rolled back the JDK (and hence the JVM) to V1.2.2_07 and this
solved it.

As an aside can anyone point me towards some documentaion about getting the
JVM to use both processors? Please bear in mind I am the Tomcat/Solaris guy
NOT the webapp developer!

Gary




Bug: Static access to not packaged class

2001-04-06 Thread Andrew



 Hi, I think there is some bug 
with access to not packaged classes in tomcat4B2/B3 in B1- seems all 
ok.
I have some not packaged class( without package 
defined)under WEB-INF\classes\Locals.class, when I try to access 
static members of it from .jsp
I've got compilation error- Locals class or field 
name is undefined...
What's the problem?

Thank you.



tomcat + apache URL rewriting

2001-04-06 Thread Sebastian Hauer


Hi tomcat users,

I want to use url rewriting for my session management.
It works nicely with cookies enabled using tomcat standalone on port
8080 and in combination with apache. I encode all used url's in my
servlets though and using tomcat standalone even the url rewriting works
nicely but it does not if I try to connect over apache. So I think it
has to do something with my apache setup. 
I have mod_rewrite loaded.
Does anyone know what I'm doing wrong?

Here is my setup:
SuSE Linux 7.1 with a 2.4.2 kernel
apache 1.3.14
tomcat 3.1 with mod_jserv
sun's java 1.2.2

Thanks,
Sebastian



Problem with request parameter in UTF-8 (Unicode)

2001-04-06 Thread Frank Peters

I have a JSP page including a form, all encoded in UTF-8, which
reaches the requesting browser just fine. The browser then submits the
form (GET or POST, same problem) to another JSP page on the same
server. When I try to read the request parameters via
request.getParameter("somename"), I receive garbage for every
character in the form fields not in the standard ASCII charset. The
request.getCharacterEncoding() function returns null.

I seems to me the received parameters are converted from ISO 8859-1 to
UTF-8 by Tomcat, though they already are encoded in UTF-8. Am I
missing a configuration setting, like some sort of default character
encoding? I have looked through loads of docs and the config files
themselves, but I did not find anything (except for the
"file.encoding=UTF_8" which I needed for sending the unicode pages).
I would appreciate any help.

TIA,
Frank Peters



Servlet autoreloading troubles ...

2001-04-06 Thread Laurent LAUBIN

Hello everybody

I have some questions about tomcat 3.2  servlet reloading :

I have a context for development with reloadable="true", I put all the
.class in the WEB-INF/classes of this context.

If the .java are not in the same directory, it looks like servlet reloading
doesn't work ...

Moreover, if I delete the classfile of the servlet, I still can access it
until I restart tomcat ... (And it's not a problem of my navigator's cache
:)

So what are the rules for the servlet auto reloading ??? How can I unload
servlet from the server without restart it ?


For information, server is RedHat 7.0 with Apache 1.3.12/ModSSL2.6.6  and
Tomcat 3.2.1 with JDK1.3 from sun ;)



Thanks in advance,

___
Laurent LAUBIN  S2M
Ingnieur systme   2, rue des champs - BP 2282
Tl : +33 232 64 33 76  27950 St-Marcel - France
Fax : +33 232 21 25 99  http://www.s2m.fr/
___
 


-Message d'origine-
De : Ralf Weiss [mailto:[EMAIL PROTECTED]]
Envoy : mardi 27 fvrier 2001 17:50
 : [EMAIL PROTECTED]
Objet : Error 404 running isapi with PWS 4.0 and Tomcat 3.2





Hi all ,

Im trying to let PWS 4.0 work together with Tomcat 3.2 under NT 4.0.

I think the isapi_redirect.dll is properly configured but I alway get the
error 404 and dont know why. I also studied the several How-Tos
but I didnt find any new hint.

The isapi.log looks like this when Im trying to acces the url
"http://localhost/examples/jsp/index.html":

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is
 points to the web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/jakarta/isapi_redirect.dll
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll ] is
not
a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/jakarta/isapi_redirect.dll
] is points to the web-inf directory


Any idea?

Thanks in advance

Ralf



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Dates in Java

2001-04-06 Thread Ryan



I have a simple question about the Date object (or 
similar object)

I have a mySQL table with aDATETIME cell. I 
want to get the date from this cell

(formatted like so: e.g. 2001-03-23 
13:04:59)

and retrieve the date that is exactly 7 days 
earlier than the retrieved date.

What is the easiest way to do this? I noticed a lot 
of method deprecations in the specs and I am having trouble using the Date 
object.
-
For example, 
DateTest.java:20: cannot resolve 
symbolsymbol : constructor Date ()location: class 
java.sql.Date 
Date d = new 
Date(); 
^1 error
-

thanx
-ryan


TomCat installation

2001-04-06 Thread David DELGRANCHE

Hi all,

I've just downloaded TomCat 3.1.1 to use it on Solaris and on Windows too. 
It seems there is no installation instructions. So I have several 
questions:
- How do I have to specify to Apache Server to workwith TomCat?
- It seems there is a web.xml file in which they have put some servlets 
caracteristics. Do I have to put in it all the informations on my servlets? 
How do I have to install TomCat?

thanks for help

David.

David DELGRANCHE
[EMAIL PROTECTED]  
Tel: 02.99 05.34.25 
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX






RE: Dates in Java

2001-04-06 Thread Michael Wentzel

I have a simple question about the Date object (or similar object)
 
I have a mySQL table with a DATETIME cell. I want to get the date from this
cell
 
(formatted like so: e.g.  2001-03-23 13:04:59)
 
 and retrieve the date that is exactly 7 days earlier than the retrieved
date.
 
What is the easiest way to do this? I noticed a lot of method deprecations
in the specs and I am having trouble using the Date object.
-
For example, 
DateTest.java:20: cannot resolve symbol
symbol  : constructor Date  ()
location: class java.sql.Date
Date d = new Date();
 ^
1 error

-



-
First, in regards to displaying your date use the java.text.DateFormat
class(note DateFormat
is abstract so of course you'll want to use one of the 'implementation'
classes).  Since
java.sql.Date extends java.util.Date you can of course use the
java.text.DateFormat classes
to format a java.sql.Date.

Secondly, the problem you are having using java.sql.Date could be if you are
importing java.util.*.  This will import java.util.Date in addition to
java.sql.Date.
Therefore, when you code Date d = new Date() the compiler doesn't know which
classdef
to use.  One solution to to not import anything using splay(*).  This is the
way we
do it.  You import block may get a little large but it also makes it easier
for other
developers to figure out where to look for source.  Another is to code it as
java.sql.Date d = new java.sql.Date();


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Dates in Java

2001-04-06 Thread Erik Barke



Yo!

You 
could try solving the problem by selecting the date column - 7 in 
the
sql 
query, i.e. 'select date_column -7 from foo_table'. It's been a long 
time
since 
I last used MySql, but I know for sure that it works in M$ Sql Server 
:)

Regarding the Date() problem, there is no constructor 
matchingDate() in java.sql.Date.
(At 
least not in Java 2 1.3) There is, however,such a constructor 
in java.util.Date. Or you
could 
try using another constructor in java.sql.Date...

Cheers 
:)

/erik

  -Original Message-From: Ryan 
  [mailto:[EMAIL PROTECTED]]Sent: den 6 april 2001 
  14:18To: [EMAIL PROTECTED]Subject: Dates in 
  Java
  I have a simple question about the Date object 
  (or similar object)
  
  I have a mySQL table with aDATETIME cell. I 
  want to get the date from this cell
  
  (formatted like so: e.g. 2001-03-23 
  13:04:59)
  
  and retrieve the date that is exactly 7 
  days earlier than the retrieved date.
  
  What is the easiest way to do this? I noticed a 
  lot of method deprecations in the specs and I am having trouble using the Date 
  object.
  -
  For example, 
  DateTest.java:20: cannot resolve 
  symbolsymbol : constructor Date ()location: class 
  java.sql.Date 
  Date d = new 
  Date(); 
  ^1 error
  -
  
  thanx
  -ryan


RE: Dates in Java

2001-04-06 Thread Arnaud Vandyck

On Fri, 6 Apr 2001, Michael Wentzel wrote:

tc For example, 
tc DateTest.java:20: cannot resolve symbol
tc symbol  : constructor Date  ()
tc location: class java.sql.Date
tc Date d = new Date();
tc  ^

You got to explicitly tell which Date object you want to use:

ex.: java.util.Date d = new java.sql.Date((Long)l);

You can also look at the java.text.SimpleDateFormat class:

java.lang.Object
  |
  +--java.text.Format
|
+--java.text.DateFormat
  |
  +--java.text.SimpleDateFormat

Regards.

--
Arnaud Vandyck http://www.ressource-toi.org/
"N'a que l'rogneux qui s'grette."




Re: Dates in Java

2001-04-06 Thread Scott Walter

This is the way I would do it, which will allow it be
portable to any database.


Calendar c = Calendar.getInstance();
c.add(Calendar.DATE,-7);

//Connection is assumed
PreparedStatement stmt = conn.prepareStatement("select
* from sometable where somedatetimefield = ?");
stmt.setTimestamp(1,new
Timestamp(c.getTime().getTime()));




--- Ryan [EMAIL PROTECTED] wrote:
 I have a simple question about the Date object (or
 similar object)
 
 I have a mySQL table with a DATETIME cell. I want to
 get the date from this cell
 
 (formatted like so: e.g.  2001-03-23 13:04:59)
 
  and retrieve the date that is exactly 7 days
 earlier than the retrieved date.
 
 What is the easiest way to do this? I noticed a lot
 of method deprecations in the specs and I am having
 trouble using the Date object.
 -
 For example, 
 DateTest.java:20: cannot resolve symbol
 symbol  : constructor Date  ()
 location: class java.sql.Date
 Date d = new Date();
  ^
 1 error
 
 -
 
 thanx
 -ryan
 


=
~~~
Scott

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Dates in Java

2001-04-06 Thread Martin Mauri

Hey...don't be so rude, let the boys work their problems out...


 Are we in the tomcat-user forum ???
 I don't see the relationship between a so simple constructor problem
 (which Javadoc solve quiet easily ...) and Tomcat ...


 Alistair Hopkins a crit :
 
  try "select myDate - 7 from myTable;" in your SQL statement for a quick
fix
  :-)
  (works on postgres, don't know about msql)
 
  -Original Message-
  From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 06, 2001 12:58 PM
  To: '[EMAIL PROTECTED]'
  Subject: RE: Dates in Java
 
  I have a simple question about the Date object (or similar object)
 
  I have a mySQL table with a DATETIME cell. I want to get the date from
this
  cell
 
  (formatted like so: e.g.  2001-03-23 13:04:59)
 
   and retrieve the date that is exactly 7 days earlier than the retrieved
  date.
 
  What is the easiest way to do this? I noticed a lot of method
deprecations
  in the specs and I am having trouble using the Date object.
  -
  For example,
  DateTest.java:20: cannot resolve symbol
  symbol  : constructor Date  ()
  location: class java.sql.Date
  Date d = new Date();
   ^
  1 error
 
  -
 

 --
--
  -
  First, in regards to displaying your date use the java.text.DateFormat
  class(note DateFormat
  is abstract so of course you'll want to use one of the 'implementation'
  classes).  Since
  java.sql.Date extends java.util.Date you can of course use the
  java.text.DateFormat classes
  to format a java.sql.Date.
 
  Secondly, the problem you are having using java.sql.Date could be if you
are
  importing java.util.*.  This will import java.util.Date in addition to
  java.sql.Date.
  Therefore, when you code Date d = new Date() the compiler doesn't know
which
  classdef
  to use.  One solution to to not import anything using splay(*).  This is
the
  way we
  do it.  You import block may get a little large but it also makes it
easier
  for other
  developers to figure out where to look for source.  Another is to code
it as
  java.sql.Date d = new java.sql.Date();
 
  ---
  Michael Wentzel
  Software Developer
  Software As We Think - http://www.aswethink.com

 --
 Cordialement,


 Stphane BAUDET

 _
 GL Trade
 48, rue Notre Dame des Victoires - 75002 Paris
 Tel : 01 53 40 43 12 (interne 1312)
 Fax : 01 53 40 01 40
 Email : [EMAIL PROTECTED]
 _




RE: Servlet autoreloading troubles ...

2001-04-06 Thread Benoît Jacquemont

Hi,

Servlet reloading is an alpha feature and it is known to doesn't work in
many cases. You have to restart Tomcat each time you build a .class.

Benot

 Hello everybody

 I have some questions about tomcat 3.2  servlet reloading :

 I have a context for development with reloadable="true", I put all the
 .class in the WEB-INF/classes of this context.

 If the .java are not in the same directory, it looks like
 servlet reloading
 doesn't work ...

 Moreover, if I delete the classfile of the servlet, I still
 can access it
 until I restart tomcat ... (And it's not a problem of my
 navigator's cache
 :)

 So what are the rules for the servlet auto reloading ??? How
 can I unload
 servlet from the server without restart it ?


 For information, server is RedHat 7.0 with Apache
 1.3.12/ModSSL2.6.6  and
 Tomcat 3.2.1 with JDK1.3 from sun ;)



 Thanks in advance,

 ___
 Laurent LAUBIN  S2M
 Ingnieur systme   2, rue des champs - BP 2282
 Tl : +33 232 64 33 76  27950 St-Marcel - France
 Fax : +33 232 21 25 99  http://www.s2m.fr/
 ___



 -Message d'origine-
 De : Ralf Weiss [mailto:[EMAIL PROTECTED]]
 Envoy : mardi 27 fvrier 2001 17:50
  : [EMAIL PROTECTED]
 Objet : Error 404 running isapi with PWS 4.0 and Tomcat 3.2





 Hi all ,

 Im trying to let PWS 4.0 work together with Tomcat 3.2 under NT 4.0.

 I think the isapi_redirect.dll is properly configured but I
 alway get the
 error 404 and dont know why. I also studied the several How-Tos
 but I didnt find any new hint.

 The isapi.log looks like this when Im trying to acces the url
 "http://localhost/examples/jsp/index.html":

 [jk_isapi_plugin.c (408)]: HttpFilterProc started
 [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
 /examples/jsp/index.html
 [jk_uri_worker_map.c (344)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (406)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a
 match ajp12
 [jk_isapi_plugin.c (439)]: HttpFilterProc
 [/examples/jsp/index.html] is a
 servlet url - should redirect to ajp12
 [jk_isapi_plugin.c (461)]: HttpFilterProc check if
 [/examples/jsp/index.html] is
  points to the web-inf directory
 [jk_isapi_plugin.c (408)]: HttpFilterProc started
 [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
 /jakarta/isapi_redirect.dll
 [jk_uri_worker_map.c (344)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (434)]:
 jk_uri_worker_map_t::map_uri_to_worker, done
 without a match
 [jk_isapi_plugin.c (452)]: HttpFilterProc
 [/jakarta/isapi_redirect.dll ] is
 not
 a servlet url
 [jk_isapi_plugin.c (461)]: HttpFilterProc check if
 [/jakarta/isapi_redirect.dll
 ] is points to the web-inf directory


 Any idea?

 Thanks in advance

 Ralf



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]




Re: Dates in Java

2001-04-06 Thread Joe Laffey

On Fri, 6 Apr 2001, Ryan wrote:

 I have a simple question about the Date object (or similar object)

 I have a mySQL table with a DATETIME cell. I want to get the date from this cell

 (formatted like so: e.g.  2001-03-23 13:04:59)

  and retrieve the date that is exactly 7 days earlier than the retrieved date.

 What is the easiest way to do this? I noticed a lot of method deprecations in the 
specs and I am having trouble using the Date object.

First off, when dealing with dates related to SQL calls, always use the
setDate() and getDate() functions of the PreparedStatement and ResultSet
respectively. These will format the date correctly for the underlying
RDBMS and they take and return a java.sql.Date. Note that a java.sql.Date
is different from a normal java.util.Date. You will need to use these full
class designations in your code to distinguish them.

To get a date that is 7 ddays prior use the Calendar class. Use
getInstance to get a Claendar instance. Set the Calendar's time to the
original date then do a cal.add(cal.DAY_OF_MONTH, -7) (where cal is the
name of your Calendar object). Note that I don't have the docs in front of
me right now, so that might not be exaclty the syntax.


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
--
Need to do multi-file string replacement in Un*x, but don't want to mess
with sed? Try rpl. It's a free text replacement utility with source.
http://www.laffeycomputer.com/rpl.html  -- Check it out!





Re: Tomcat 3.2.1 JDK1.3.0 on Solaris - processor usage.

2001-04-06 Thread DONNIE HALE

Check out the 3.2.1 release notes at 
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/readme - section 6.11. This 
has been posted a few times here in the last month.

Donnie


 [EMAIL PROTECTED] 04/06/01 06:31AM 
Has anyone experienced this?

Tomcat 3.2.1 with Sun's JDK1.3.0_02 on Solaris 8 64 bit on a twin processor
Sparc box.

Under certain circumstances (regularly but not consistently) our webapp
causes the processor usage of the java process on one processor to rise
quickly to 80% and just sit there or therabouts. Bizarrely, this figure
(80%) seemed to vary. Sometimes it would be 80, sometimes 90 and originally
with Tomcat 3.2 beta8 it was 100%. Restarting Tomcat (and hence the JVM)
always solved it.

Our root context is configured correctly, so we knew it wasn't the known
processor usage bug.

We patched Solaris, the JDK and brought Tomcat to 3.2.1 with no success.
Eventually we rolled back the JDK (and hence the JVM) to V1.2.2_07 and this
solved it.

As an aside can anyone point me towards some documentaion about getting the
JVM to use both processors? Please bear in mind I am the Tomcat/Solaris guy
NOT the webapp developer!

Gary





pageContext from a bean?

2001-04-06 Thread Dave Weis


Is it possible to access the pageContext from inside a bean without
passing it in? More specifically, I need to access the request object.
I've tried referencing pageContext by itself with no luck and I've also
done this

JspFactory  factory = JspFactory.getDefaultFactory();
PageContext pageContext = factory.getPageContext(null, null, null, null,
true, 8192, true);

HttpServletRequest incomingRequest =
(javax.servlet.http.HttpServletRequest)   
 pageContext.getRequest();

Thanks for any help
dave

-- 
Dave Weis



RE: Scope of Mailing List (was RE: Dates in Java)

2001-04-06 Thread Michael Wentzel

 Are we in the tomcat-user forum ??? 
 I don't see the relationship between a so simple constructor problem
 (which Javadoc solve quiet easily ...) and Tomcat ...

I agree that this list is not the place for this question(the proper
place would be java.sun.com JDC groups) but most of the time it is
faster and simpler to just answer the questions and get it off the list.

Here's a somewhat basic guideline for good posting:
* Evaluate scope of question(if it doesn't correlate directly to tomcat
 don't post it here).  An example would be:
  - Using java.sql.Date doesn't really belong in tomcat-user.
  - Using DB Connection Pooling with Tomcat does belong here.
* First check archives(link can be found tomcat website).
* Then post it if you still have a question.
(Another good guideline is... Please post in plain text.  Not HTML, etc.)

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Tomcat 3.2.1 JDK1.3.0 on Solaris - processor usage.

2001-04-06 Thread Gary Lawson

Please see my 3rd paragraph. The readme was the first place I looked. I am
aware of this bug. It is not what caused our processor usage to spiral.
Perhaps I should have said "all our contexts/webapps are configured
correctly".

-Original Message-
From: DONNIE HALE [mailto:[EMAIL PROTECTED]]
Sent: 06 April 2001 13:58
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 3.2.1 JDK1.3.0 on Solaris - processor usage.


Check out the 3.2.1 release notes at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/readme - section
6.11. This has been posted a few times here in the last month.

Donnie


 [EMAIL PROTECTED] 04/06/01 06:31AM 
Has anyone experienced this?

Tomcat 3.2.1 with Sun's JDK1.3.0_02 on Solaris 8 64 bit on a twin processor
Sparc box.

Under certain circumstances (regularly but not consistently) our webapp
causes the processor usage of the java process on one processor to rise
quickly to 80% and just sit there or therabouts. Bizarrely, this figure
(80%) seemed to vary. Sometimes it would be 80, sometimes 90 and originally
with Tomcat 3.2 beta8 it was 100%. Restarting Tomcat (and hence the JVM)
always solved it.

Our root context is configured correctly, so we knew it wasn't the known
processor usage bug.

We patched Solaris, the JDK and brought Tomcat to 3.2.1 with no success.
Eventually we rolled back the JDK (and hence the JVM) to V1.2.2_07 and this
solved it.

As an aside can anyone point me towards some documentaion about getting the
JVM to use both processors? Please bear in mind I am the Tomcat/Solaris guy
NOT the webapp developer!

Gary





RE: TomCat installation

2001-04-06 Thread Benoit Jacquemont

Hi David,

There's really good documentation with the Tomcat 3.2.1 distribution:
howto-tomcat et howto-tomcat-apache. I use these well-written to build my
systems based on Tomcat and Apache, and they're work great.

Anyway, since Tomcat is a Java program, you just need to copy it into a
directory and expand all the file and directory from the tar.gz.
Then set the JAVA_HOME environment variable to your java path (for example:
/usr/local/jdk1.3), and use the startup.sh/bat script which is in the
TOMCAT_HOME/bin directory. Sometimes, on Windows, you need to start once the
tomcat_env script before starting tomcat to set all the environment
variables...


Benoit
   Hi all,

   I've just downloaded TomCat 3.1.1 to use it on Solaris
 and on Windows too.
 It seems there is no installation instructions. So I have several
 questions:
   - How do I have to specify to Apache Server to workwith TomCat?
   - It seems there is a web.xml file in which they have
 put some servlets
 caracteristics. Do I have to put in it all the informations
 on my servlets?
   How do I have to install TomCat?

   thanks for help

   David.

 David DELGRANCHE
 [EMAIL PROTECTED]
 Tel: 02.99 05.34.25
 Fax: 02.99.05.34.05
 Sogitec Industries
 24, Avenue Lavoisier
 ZI du Champ Niguel
 35174 BRUZ CEDEX






OutputStream Already in USE ..!!!!

2001-04-06 Thread Lakshmeenrayana




I am using Tomcat and trying to write a Gif file to 
client browser window using JSP.
I use ACME - GifEncoder to convert the picture to 
GIF.
The Encoder needs OutputStream type object as one 
of the parameter in its constructor.
Iam using ServletOutputStream object for 
this, which i got through response.getOutputStream().

But the tomcat gives Error as "OutputStream already 
been used."

But the GIF image is Displayed properly in IE 
5.0.

It gives ASCII charactes in Netscape.

Why is this so.

Please help.
Thanks for the time.

Regards.

L G GoundalkarIntertec 
Communications Pvt LtdINDIA


[Fwd: stop script errors]

2001-04-06 Thread Deidra Powell



 Original Message 
Subject: stop script errors
Date: Thu, 05 Apr 2001 16:58:40 -0400
From: Deidra Powell [EMAIL PROTECTED]
Organization: Interpath Communications, Inc.
To: [EMAIL PROTECTED]

I was trying to get tomcat going and I too am having trouble with the
stop script.  I looked in your archives, but see nothing on how to fix
it.  Well, except for one on ajp12 in front of connection name which is
not helping.

Can you help me?  What is missing or wrong?  Below is there sequence of
errors:

thanks!
==

Stop tomcat
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.socketConnect(Compiled Code)
at java.net.PlainSocketImpl.doConnect(Compiled Code)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.init(Socket.java:269)
at java.net.Socket.init(Socket.java:98)
at org.apache.tomcat.startup.Tomcat.stopTomcat(Compiled Code)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
=
--
Deidra L. Powell



OuputStream Already in Use..!!! Please Help

2001-04-06 Thread Lakshmeenrayana





I am using Tomcat and trying to write a Gif file to 
client browser window using JSP.
I use ACME - GifEncoder to convert the picture to 
GIF.
The Encoder needs OutputStream type object as one 
of the parameter in its constructor.
Iam using ServletOutputStream object for 
this, which i got through response.getOutputStream().

But the tomcat gives Error as "OutputStream already 
been used."

But the GIF image is Displayed properly in IE 
5.0.

It gives ASCII charactes in Netscape.

Why is this so.

Please help.
Thanks for the time.

Regards.

L G GoundalkarIntertec 
Communications Pvt 
LtdINDIA


RE: OutputStream Already in USE ..!!!!

2001-04-06 Thread Benoît Jacquemont




  
  I don't know why you get a OutputStream already in use, 
  butthereason whyit works with IE and not with Netscape may 
  be because you do not setproperly the Content-type 
  ofyourimage. Indeed, IE seems to be a little bitcleverer 
  than Netscape because it interprets the real content of a file before 
  displaying itinstead ofonly looking at the Content-type header 
  property. So you have to be more explicit with 
  Netscape.
  
  Benoît
  
  I am using Tomcat and trying to write a 
  Gif file to client browser window using JSP.
  I use ACME - GifEncoder to convert the picture to 
  GIF.
  The Encoder needs OutputStream type object as one 
  of the parameter in its constructor.
  Iam using ServletOutputStream object for 
  this, which i got through response.getOutputStream().
  
  But the tomcat gives Error as "OutputStream 
  already been used."
  
  But the GIF image is Displayed properly in IE 
  5.0.
  
  It gives ASCII charactes in 
Netscape.
  
  Why is this so.
  
  Please help.
  Thanks for the time.
  
  Regards.
  
  L G GoundalkarIntertec 
  Communications Pvt 
LtdINDIA


RE: OutputStream Already in USE ..!!!!

2001-04-06 Thread Michael Wentzel

I don't know why you get a OutputStream already in use, but the reason why
it works with IE and not with Netscape may be because you do not set
properly the Content-type of your image. Indeed, IE seems to be a little bit
cleverer than Netscape because it interprets the real content of a file
before displaying it instead of only looking at the Content-type header
property. So you have to be more explicit with Netscape.
 
Benot 
 
 I am using Tomcat and trying to write a Gif file to client browser window
using JSP.
I use ACME - GifEncoder to convert the picture to GIF.
The Encoder needs OutputStream type object as one of the parameter in its
constructor.
I am using ServletOutputStream object for this, which i got through
response.getOutputStream().

But the tomcat gives Error as "OutputStream already been used."  

But the GIF image is Displayed properly in IE 5.0.

It gives ASCII charactes in Netscape.

Why is this so.

--
The OutputStream already in use is because the automatically generated code
in a jsp class file
gets the output stream as a JSPWriter therefore when getOutputStream() is
called it thinks there
is already an 'external lock' of this resource object and doesn't think it
can use it.

BTW, please post to the list in plain text.  This has been stated over and
over and is also listed
on the website as one of the mailing list guidelines.  More people will be
willing to answer your
questions if you post in plain text.



---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: JDBCReamls Still freeze after 24 hours wokrs

2001-04-06 Thread Kaneda K



Here are the logs :


2001-04-05 08:02:18 - ContextManager: JDBCRealm: The database connection is 
null or was found to be closed. Trying to

re-open it.
2001-04-05 08:02:18 - ContextManager: JDBCRealm: Auth ok, first 
role=cap_acheteur
  _conn != null
Sql query :
select * from role
2001-04-06 09:43:29 - ContextManager: Error mapping the request R( /capimmo 
+ /my/ + null) 302
2001-04-06 09:43:29 - Ctx( /capimmo ): Handler 
tomcat.redirectHandler(null/null) tomcat.redirectHandler
2001-04-06 09:43:29 - ContextManager: Authorize status 401
2001-04-06 09:43:29 - ContextManager: Authorize error R( /capimmo + 
/my/index.jsp + null) 401
2001-04-06 09:43:29 - Ctx( /capimmo ): Handler 
tomcat.formAuthHandler(null/null)
  tomcat.formAuthHandler
2001-04-06 09:43:29 - Ctx( /capimmo ): Handler 
tomcat.redirectHandler(null/null) tomcat.redirectHandler
2001-04-06 09:43:29 - ContextManager: Authorize status 401
2001-04-06 09:43:29 - ContextManager: Authorize status 401
2001-04-06 09:43:29 - ContextManager: Authorize status 401
2001-04-06 09:43:29 - ContextManager: Authorize status 401
2001-04-06 09:43:36 - Ctx( /capimmo ): Handler 
tomcat.redirectHandler(null/null) tomcat.redirectHandler
2001-04-06 09:43:36 - ContextManager: JDBCRealm: The database connection is 
null or was found to be closed. Trying to

re-open it.
java.io.IOException: Broken pipe
 at java.net.SocketOutputStream.socketWrite(Native Method)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
 at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:130)
 at java.io.DataOutputStream.flush(DataOutputStream.java:104)
 at org.gjt.mm.mysql.MysqlIO.send(MysqlIO.java)
 at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java)
 at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(MysqlIO.java)
 at org.gjt.mm.mysql.Connection.execSQL(Connection.java)
 at 
org.gjt.mm.mysql.PreparedStatement.executeQuery(PreparedStatement.java)
 at 
org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:299)
 at 
org.apache.tomcat.request.JDBCRealm.authenticate(JDBCRealm.java:453)
 at 
org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837)
 at 
org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
 at org.apache.tomcat.request.JDBCRealm.authorize(JDBCRealm.java:475)
 at 
org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java:855)
 at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:789)
 at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
 at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
2001-04-06 09:43:36 - ContextManager: JDBCRealm: There was an SQLException 
while in authenticate: testAll
2001-04-06 09:43:36 - ContextManager: JDBCRealm: SQLException: 
java.sql.SQLException: Communication link failure:

java.io.IOException
2001-04-06 09:43:36 - ContextManager: Authorize status 401
2001-04-06 09:43:36 - ContextManager: Authorize error R( /capimmo + 
/my/index.jsp + null) 401
2001-04-06 09:43:36 - Ctx( /capimmo ): Handler 
tomcat.formAuthHandler(null/null) tomcat.formAuthHandler
2001-04-06 09:43:36 - Ctx( /capimmo ): Handler 
tomcat.redirectHandler(null/null) tomcat.redirectHandler
2001-04-06 09:43:37 - ContextManager: Authorize status 401
2001-04-06 09:43:37 - ContextManager: Authorize status 401
2001-04-06 09:43:37 - ContextManager: Authorize status 401
2001-04-06 09:43:37 - ContextManager: Authorize status 401

I wonder, in my project I use a database Pooling from tableGenerator 
(http://freespace.virgin.net/joe.carter/TableGen/index.html)
that use 2 class :

DbGlobal And DatabaseAccess that use org.ewin.sql.* pakadges;

the line
" _conn != null
Sql query :
select * from role"
came from my debugge variable, it means that theis was a sql query

It seams to me that the session never ends.
and that it broke the pipe in the end.

Could you help me ??



At 13:13 04/04/2001 +0200, you wrote:
Please some logs, config files..every bit of info you can send will be
useful trying to find that.. attached files better..

Versions of JDBC drivers  db too

TIA

Saludos ,
Ignacio J. Ortega


  -Mensaje original-
  De: Kaneda K [mailto:[EMAIL PROTECTED]]
  Enviado el: mircoles 4 de abril de 2001 13:02
  Para: [EMAIL PROTECTED]
  Asunto: JDBCReamls Still freeze after 24 hours wokrs
 
 
 
  Hello, I upgrade my tomcat to 3.2.2 beta 6 (BTW how to check
  version when
  you did not downloaded it yourself ?) and the JDBCReamls
  still freeze
  after 24 hours.
 
  on
  

Apache + Tomcat Configuration

2001-04-06 Thread Zhengan Cai

Hi, everyone:

I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000. I
am using Apache 1.3.19, and Tomcat 3.2.1.

I created my own directory in
%TOMCAT_HOME%/webapps/mytest, copied the structure from
%TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my
servlets .class files in the ../mytest/WEB-INF/classes/aaa.class.

I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf,
Tomcat.conf; and in Apache: httpd.conf

Now I can use Apache + Tomcat to run my JSP files, BUT I can  ONLY  run  the
system provided  sample Servlets files. I CAN'T run my own Servelts files no
matter where I put the .class files.

Could you give me a help for the configuration as my assignment is almost
due  ?

Thank you very much for your time and concern.

E-mail: [EMAIL PROTECTED]

Zhengan Cai




Apache + Tomcat configuration

2001-04-06 Thread Zhengan Cai

Hi, everyone:

I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000. I
am using Apache 1.3.19, and Tomcat 3.2.1.

I created my own directory in
%TOMCAT_HOME%/webapps/mytest, copied the structure from
%TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my
servlets .class files in the ../mytest/WEB-INF/classes/aaa.class.

I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf,
Tomcat.conf; and in Apache: httpd.conf

Now I can use Apache + Tomcat to run my JSP files, BUT I can  ONLY  run  the
system provided  sample Servlets files. I CAN'T run my own Servelts files no
matter where I put the .class files.

Could you give me a help for the configuration as my assignment is almost
due  ?

Thank you very much for your time and concern.

E-mail: [EMAIL PROTECTED]

Zhengan Cai




RE: Apache + Tomcat Configuration

2001-04-06 Thread Michael Wentzel

 I am trying to setup Apache + Tomcat to run JSP and Servlets 
 on Win. 2000. I
 am using Apache 1.3.19, and Tomcat 3.2.1.
 
 I created my own directory in
 %TOMCAT_HOME%/webapps/mytest, copied the structure from
 %TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my
 servlets .class files in the ../mytest/WEB-INF/classes/aaa.class.
 
 I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf,
 Tomcat.conf; and in Apache: httpd.conf
 
 Now I can use Apache + Tomcat to run my JSP files, BUT I can  
 ONLY  run  the
 system provided  sample Servlets files. I CAN'T run my own 
 Servelts files no
 matter where I put the .class files.
 
 Could you give me a help for the configuration as my 
 assignment is almost
 due  ?

First, posting the same question multiple times will not expedite a
faster response to your question.  People might just get ticked off
and not reply at all.

Now, I will pose a couple questions:
1.  How are you trying to access your servlets? (/mytest/servlets/aaa,
mytest/aaa, etc...)
2.  What are your configurations, in your webapps web.xml, for your
servlets?
3.  What is the exact error message you are receiving? 404? 500? etc...

The more information you can provide the faster a solution can be found.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: mod_jk under darwin (OS X)

2001-04-06 Thread Steve Fyfe

I followed the suggestions on this page, and it worked for me

http://www.omnigroup.com/mailman/archive/macosx-dev/2001-January/008142.html

Steve Fyfe
CNI Corporation
Milford New Hampshire

[EMAIL PROTECTED]
(603) 673-6600

-Original Message-
From:   [EMAIL PROTECTED] 
Sent:   Friday, April 06, 2001 2:32 AM
To: [EMAIL PROTECTED]
Subject:mod_jk under darwin (OS X)

Hi all,

I'm trying to get mod_jk to compile under OS X but it seems that it relies
on glibc - which is not (yet?) ported to Darwin.

Does anybody know if this happens to be the case and if so is there any
other way to get mod_jk to compile?

Cheers,


-Morten

---
Rayon Interactive AS http://www.rayon.no
Morten Lerskau R nseth   mailto:[EMAIL PROTECTED]
Karenslyst All  16d  Tlf.: (47) 2213 5250
0278 OsloFax : (47) 2213 5260
Norway   ICQ: 25163080

PGP fingerprint: F851 91B6 1D81 1409 8B62  3E14 5A60 65F8 5AF4 56AF




Re: Dates in Java

2001-04-06 Thread Milt Epstein

On Fri, 6 Apr 2001, Martin Mauri wrote:

 Hey...don't be so rude, let the boys work their problems out...

There is something to be said for keeping a list on-topic, and people
asking questions on appropriate forums.


  Are we in the tomcat-user forum ???
  I don't see the relationship between a so simple constructor problem
  (which Javadoc solve quiet easily ...) and Tomcat ...
 
 
  Alistair Hopkins a écrit :
  
   try "select myDate - 7 from myTable;" in your SQL statement for a quick
 fix
   :-)
   (works on postgres, don't know about msql)
  
   -Original Message-
   From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
   Sent: Friday, April 06, 2001 12:58 PM
   To: '[EMAIL PROTECTED]'
   Subject: RE: Dates in Java
  
   I have a simple question about the Date object (or similar object)
  
   I have a mySQL table with a DATETIME cell. I want to get the date from
 this
   cell
  
   (formatted like so: e.g.  2001-03-23 13:04:59)
  
and retrieve the date that is exactly 7 days earlier than the retrieved
   date.
  
   What is the easiest way to do this? I noticed a lot of method
 deprecations
   in the specs and I am having trouble using the Date object.
   -
   For example,
   DateTest.java:20: cannot resolve symbol
   symbol  : constructor Date  ()
   location: class java.sql.Date
   Date d = new Date();
^
   1 error
  
   -
  
 
  --
 --
   -
   First, in regards to displaying your date use the java.text.DateFormat
   class(note DateFormat
   is abstract so of course you'll want to use one of the 'implementation'
   classes).  Since
   java.sql.Date extends java.util.Date you can of course use the
   java.text.DateFormat classes
   to format a java.sql.Date.
  
   Secondly, the problem you are having using java.sql.Date could be if you
 are
   importing java.util.*.  This will import java.util.Date in addition to
   java.sql.Date.
   Therefore, when you code Date d = new Date() the compiler doesn't know
 which
   classdef
   to use.  One solution to to not import anything using splay(*).  This is
 the
   way we
   do it.  You import block may get a little large but it also makes it
 easier
   for other
   developers to figure out where to look for source.  Another is to code
 it as
   java.sql.Date d = new java.sql.Date();
  
   ---
   Michael Wentzel
   Software Developer
   Software As We Think - http://www.aswethink.com
 
  --
  Cordialement,
 
 
  Stéphane BAUDET
 
  _
  GL Trade
  48, rue Notre Dame des Victoires - 75002 Paris
  Tel : 01 53 40 43 12 (interne 1312)
  Fax : 01 53 40 01 40
  Email : [EMAIL PROTECTED]
  _
 

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




RE: Apache + Tomcat Configuration

2001-04-06 Thread David DELGRANCHE

Dear Michael,

I just reach the TomCat mailing List this morning and even if I'm using 
mailing list for a long time, I'm a little bit supprised by your behaviour. 
What is exactly your role on this list? Trying sharing knowledge like a lot 
of people or just controlling all the mails that are posted? It seems that 
you have nothing else to do than being boring with people. A mailing list 
is something alive. Even if there can be mails that doesn't match exactly 
the subject, a lot of people could find them interesting.
Hope people on this list are more open-minded than you are!

David.

-Message d'origine-
De: Michael Wentzel [SMTP:[EMAIL PROTECTED]]
Date:   vendredi 6 avril 2001 15:20
A:  '[EMAIL PROTECTED]'
Objet:  RE: Apache + Tomcat Configuration

 I am trying to setup Apache + Tomcat to run JSP and Servlets
 on Win. 2000. I
 am using Apache 1.3.19, and Tomcat 3.2.1.

 I created my own directory in
 %TOMCAT_HOME%/webapps/mytest, copied the structure from
 %TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my
 servlets .class files in the ../mytest/WEB-INF/classes/aaa.class.

 I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf,
 Tomcat.conf; and in Apache: httpd.conf

 Now I can use Apache + Tomcat to run my JSP files, BUT I can
 ONLY  run  the
 system provided  sample Servlets files. I CAN'T run my own
 Servelts files no
 matter where I put the .class files.

 Could you give me a help for the configuration as my
 assignment is almost
 due  ?

First, posting the same question multiple times will not expedite a
faster response to your question.  People might just get ticked off
and not reply at all.

Now, I will pose a couple questions:
1.  How are you trying to access your servlets? (/mytest/servlets/aaa,
mytest/aaa, etc...)
2.  What are your configurations, in your webapps web.xml, for your
servlets?
3.  What is the exact error message you are receiving? 404? 500? etc...

The more information you can provide the faster a solution can be found.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com




simple question for servlet-configuration of tomcat

2001-04-06 Thread TOPO graphics GmbH

Hello,

since several weeks I am testing tomcat as a Servlet Engine with great
success. I use Win98 SE2 with PWS.
Now I have a simple problem (I think):

What I have to do (in the configuration files) when I want to start my
servlets with the URL:

http://localhost/servlet/TestServlet

and not with a WEPAPP-Directory like
http://localhost/example/servlet/TestServlet

Which settings I have to do in the configuration-files and in which
directory I have to put my Servlets ?

Thanks a lot for your answer

With best regards

M. Thorand

TOPO graphics
Geographische Informationssysteme GmbH

EMail:  [EMAIL PROTECTED]





Re: OutputStream Already in USE ..!!!!

2001-04-06 Thread Lakshmeenrayana



Thanks Benoit and 
Michael

It works in Netscape.

But one more strange problem has 
arrived.
If the Size of the graph ( image ) is 
less..approximately less than 5k or so...
The same problem persists..(ASCII 
Characters output).
So how to set the content length..? 
since i don't know the content length of the graph image generated by the GIF 
encoder.
Please help again.

Thanks for the time.
Regards..

L G GoundalkarIntertec Communications Pvt 
LtdINDIA

  - Original Message - 
  From: 
  Benoît Jacquemont 
  To: [EMAIL PROTECTED] 
  Sent: Friday, April 06, 2001 2:18 
PM
  Subject: RE: OutputStream Already in USE 
  ..
  
  

I don't know why you get a OutputStream already in use, 
butthereason whyit works with IE and not with Netscape may 
be because you do not setproperly the Content-type 
ofyourimage. Indeed, IE seems to be a little bitcleverer 
than Netscape because it interprets the real content of a file before 
displaying itinstead ofonly looking at the Content-type header 
property. So you have to be more explicit with 
Netscape.

Benoît

I am using Tomcat and trying to write 
a Gif file to client browser window using JSP.
I use ACME - GifEncoder to convert the picture 
to GIF.
The Encoder needs OutputStream type object as 
one of the parameter in its constructor.
Iam using ServletOutputStream object for 
this, which i got through response.getOutputStream().

But the tomcat gives Error as 
"OutputStream already been used."

But the GIF image is Displayed properly in IE 
5.0.

It gives ASCII charactes in 
Netscape.

Why is this so.

Please help.
Thanks for the time.

Regards.

L G 
GoundalkarIntertec Communications Pvt 
LtdINDIA


RE: simple question for servlet-configuration of tomcat

2001-04-06 Thread Benoît Jacquemont

Please look at the answers after posting a question. I have already answered
to your question yesterday:

 Hi,

You just have to declare a context like this:
Context path="" docBase="/path/to/myapp" debug="0"
reloadable="false" 
/Context
in your TOMCAT_HOME/conf/server.xml. You should also remove the ROOT
context and the ROOT directory that is in the webapp
directory.
Anyway, in real world, I mean in production environment, you should remove
all the contexts that don't deal with your app,
and all the subdirectory within the /webapp.

Benot

 Hello,

 since several weeks I am testing tomcat as a Servlet Engine with great
 success. I use Win98 SE2 with PWS.
 Now I have a simple problem (I think):

 What I have to do (in the configuration files) when I want to start my
 servlets with the URL:

 http://localhost/servlet/TestServlet

 and not with a WEPAPP-Directory like
 http://localhost/example/servlet/TestServlet

 Which settings I have to do in the configuration-files and in which
 directory I have to put my Servlets ?

 Thanks a lot for your answer

 With best regards

 M. Thorand

 TOPO graphics
 Geographische Informationssysteme GmbH

 EMail:  [EMAIL PROTECTED]





tomcat startup problem

2001-04-06 Thread Adilakshmi Lingam

Hi,

I have tomcat 3.2.1 running on win 2k with jdk 1.3

Everything was running perfectly until a while ago. Suddenly when I see,
tomcat is shutdown and all the windows are closed. I tried to restart.
Tomcat starts opening in the new window. I think it loads the loadon startup
servlet and then when it comes to  PoolTcpConnector, the window is closed
and tomcat is shut down. I'm not sure, if the problem is at PoolTcpConnector
or not. I can't see that. It just closes down.

I can't see any tomcat.log files.

Can someone please answer this asap. I'm kinda in a big fix.

thanks a bunch,
Lakshmi




tomcat installation on Windows 2000

2001-04-06 Thread Hossein Horrian








Is there any
documentation for installing tomcat on Windows 2000?

I would appreciate
your help.



Thank you,



Hossein Horrian

Email [EMAIL PROTECTED]









RE: tomcat startup problem

2001-04-06 Thread Benoît Jacquemont

You sould try to open a command line window, got to the tomcat/bin directory
and try tomcat run. You'll see what's exactly the problem since the window
won't close.

Benot
 Hi,

 I have tomcat 3.2.1 running on win 2k with jdk 1.3

 Everything was running perfectly until a while ago. Suddenly
 when I see,
 tomcat is shutdown and all the windows are closed. I tried to restart.
 Tomcat starts opening in the new window. I think it loads the
 loadon startup
 servlet and then when it comes to  PoolTcpConnector, the
 window is closed
 and tomcat is shut down. I'm not sure, if the problem is at
 PoolTcpConnector
 or not. I can't see that. It just closes down.

 I can't see any tomcat.log files.

 Can someone please answer this asap. I'm kinda in a big fix.

 thanks a bunch,
 Lakshmi




RE: tomcat startup problem

2001-04-06 Thread Michael Wentzel

Run 'tomcat.bat run' at command prompt instead of startup.bat.

This will allow you to see stack trace.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



XSLT vs. JSP

2001-04-06 Thread Jason Izatt

My upfront apologies for an off-topic posting.

I'm looking for a good discussion forum on the XSLT vs. JSP argument. Can
anyone point me to a good place?

--Jason




Re: XSLT vs. JSP

2001-04-06 Thread Torgeir Veimo

See www.oreilly.com. 
-- 
- Torgeir



RE: OutputStream Already in USE ..!!!!

2001-04-06 Thread Benoît Jacquemont

Usually, you don't set the Content-Length because that's generated pages,
and if you set a Content-Length higher than the real size of the generated
gif, I don't know how IE or Netscape will react... But you can try it. I
think you just have to set the Content-Length the same way you set the
Content-Type.

Hope that'll help.

Benot

Ps: Please, try to send your mail in plain text format, otherwise, you annoy
Michael ;-)

-Message d'origine-
De : Lakshmeenrayana [mailto:[EMAIL PROTECTED]]
Envoy : vendredi 6 avril 2001 21:26
 : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : Re: OutputStream Already in USE ..


Thanks Benoit  and  Michael

It works in Netscape.

But one more strange problem has arrived.
If the Size of the graph ( image ) is less..approximately less than 5k or
so...
The same problem persists..(ASCII Characters output).
So how to set the content length..? since i don't know the content length of
the graph image generated by the GIF encoder.
Please help again.

Thanks for the time.
Regards..

L G Goundalkar
Intertec Communications Pvt Ltd
INDIA
- Original Message -
From: Benot Jacquemont
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 2:18 PM
Subject: RE: OutputStream Already in USE ..


I don't know why you get a OutputStream already in use, but the reason why
it works with IE and not with Netscape may be because you do not set
properly the Content-type of your image. Indeed, IE seems to be a little bit
cleverer than Netscape because it interprets the real content of a file
before displaying it instead of only looking at the Content-type header
property. So you have to be more explicit with Netscape.

Benot

 I am using Tomcat and trying to write a Gif file to client browser window
using JSP.
I use ACME - GifEncoder to convert the picture to GIF.
The Encoder needs OutputStream type object as one of the parameter in its
constructor.
I am using ServletOutputStream object for this, which i got through
response.getOutputStream().

But the tomcat gives Error as "OutputStream already been used."

But the GIF image is Displayed properly in IE 5.0.

It gives ASCII charactes in Netscape.

Why is this so.

Please help.
Thanks for the time.

Regards.

L G Goundalkar
Intertec Communications Pvt Ltd
INDIA




Tomcat articles on the O'Reilly Network

2001-04-06 Thread Joel Parramore


FYI: there are some interesting articles on the O'Reilly Network about
installing and configuring Tomcat as well as dealing with web applications
which look to be good reads

Using Tomcat - http://www.oreillynet.com/pub/ct/33

which comprises two articles

Java Web Applications -
http://www.oreillynet.com/pub/a/onjava/2001/03/15/tomcat.html
Installing and Configuring Tomcat -
http://www.oreillynet.com/pub/a/onjava/2001/03/29/tomcat.html


Regards,
Joel Parramore




Tomcat Source Archive Errors?

2001-04-06 Thread Kieron Wilkinson


Is it just me or does the tomcat src tar's at:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/src/

have errors in?

I am having "tar: directory checksum error" on the files:

 jakarta-tomcat-3.2.1-src.tar.Z12-Dec-2000 15:10   1.7M  tar archive
 jakarta-tomcat-3.2.1-src.tar.gz   12-Dec-2000 15:11   899k  GZIP compressed
file

The zip file seems okay, but I can't seem to compile that for some reason
(text conversion problems I think).

Or is it just me... :)

Thanks for any help... (I need mod_jk! :)


Kieron Wilkinson
ViewGate Networks
www.viewgate.com

Enabling Episode Accountability in IP Service Creation




RE: XSLT vs. JSP

2001-04-06 Thread Samson, Lyndon [IT]

Well actually in the context of generating web applications, XSLT and JSP
are both competing.

IMHO, XSLT has the huge advantage of separating content and format, unlike
JSP.

XSLT is also turing complete, I would think for many applications it would
be a much better 
solution than Perl/LineNoise :-)

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 4:29 PM
To: [EMAIL PROTECTED]
Subject: Re: XSLT vs. JSP


On Fri, Apr 06, 2001 at 09:15:34AM -0600, Jason Izatt wrote:
 My upfront apologies for an off-topic posting.
 I'm looking for a good discussion forum on the XSLT vs. JSP argument. Can
 anyone point me to a good place?

I can't, but I also cannot see any argument between XSLT and JSP since they
do different things.

Anyway, XSLT can't beat a half decent perl programmer.

Hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?



RE: tomcat installation on Windows 2000

2001-04-06 Thread Etienne Baert \(SPS Europe\)




http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html
Then 
follow the instructions as for tomcat-IIS4-NT4
Etienne

  -Original Message-From: Hossein Horrian 
  [mailto:[EMAIL PROTECTED]]Sent: vendredi 6 avril 2001 
  18:00To: [EMAIL PROTECTED]Subject: tomcat 
  installation on Windows 2000
  
  Is there any 
  documentation for installing tomcat on Windows 
  2000?
  I would appreciate 
  your help.
  
  Thank 
  you,
  
  Hossein 
  Horrian
  Email 
  [EMAIL PROTECTED] 



Re: Dates in Java

2001-04-06 Thread Jeff Kilbride

There's also something to be said for using a little tact. "You might get
more help posting your question on a general Java forum" -- and then
pointing the way -- is better than using three question marks and implying
that the other person's question is "so simple". Responses like this scare
new programmers off the lists.

I remember my first post...

--jeff

- Original Message -
From: "Milt Epstein" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 7:05 AM
Subject: Re: Dates in Java


 On Fri, 6 Apr 2001, Martin Mauri wrote:

  Hey...don't be so rude, let the boys work their problems out...

 There is something to be said for keeping a list on-topic, and people
 asking questions on appropriate forums.


   Are we in the tomcat-user forum ???
   I don't see the relationship between a so simple constructor problem
   (which Javadoc solve quiet easily ...) and Tomcat ...
  
  
   Alistair Hopkins a crit :
   
try "select myDate - 7 from myTable;" in your SQL statement for a
quick
  fix
:-)
(works on postgres, don't know about msql)
   
-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 12:58 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Dates in Java
   
I have a simple question about the Date object (or similar object)
   
I have a mySQL table with a DATETIME cell. I want to get the date
from
  this
cell
   
(formatted like so: e.g.  2001-03-23 13:04:59)
   
 and retrieve the date that is exactly 7 days earlier than the
retrieved
date.
   
What is the easiest way to do this? I noticed a lot of method
  deprecations
in the specs and I am having trouble using the Date object.
-
For example,
DateTest.java:20: cannot resolve symbol
symbol  : constructor Date  ()
location: class java.sql.Date
Date d = new Date();
 ^
1 error
   
-
   
  
 
 --
  --
-
First, in regards to displaying your date use the
java.text.DateFormat
class(note DateFormat
is abstract so of course you'll want to use one of the
'implementation'
classes).  Since
java.sql.Date extends java.util.Date you can of course use the
java.text.DateFormat classes
to format a java.sql.Date.
   
Secondly, the problem you are having using java.sql.Date could be if
you
  are
importing java.util.*.  This will import java.util.Date in addition
to
java.sql.Date.
Therefore, when you code Date d = new Date() the compiler doesn't
know
  which
classdef
to use.  One solution to to not import anything using splay(*).
This is
  the
way we
do it.  You import block may get a little large but it also makes it
  easier
for other
developers to figure out where to look for source.  Another is to
code
  it as
java.sql.Date d = new java.sql.Date();
   
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
  
   --
   Cordialement,
  
  
   Stphane BAUDET
  
   _
   GL Trade
   48, rue Notre Dame des Victoires - 75002 Paris
   Tel : 01 53 40 43 12 (interne 1312)
   Fax : 01 53 40 01 40
   Email : [EMAIL PROTECTED]
   _
 

 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]





Re: Dates in Java

2001-04-06 Thread Alvin Yap

I think you need a java.sql.Timestamp type as compared to java.util.Date type
To create new timestamp or

long time = System.currentTimeMillis();
Timestamp currentTime = new Timestamp( time );


...
This object will hold the date and time.  If you want to format the time
differently use Calendar and Formatter to achieve this.

Alvin


Jeff Kilbride wrote:

 There's also something to be said for using a little tact. "You might get
 more help posting your question on a general Java forum" -- and then
 pointing the way -- is better than using three question marks and implying
 that the other person's question is "so simple". Responses like this scare
 new programmers off the lists.

 I remember my first post...

 --jeff

 - Original Message -
 From: "Milt Epstein" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 06, 2001 7:05 AM
 Subject: Re: Dates in Java

  On Fri, 6 Apr 2001, Martin Mauri wrote:
 
   Hey...don't be so rude, let the boys work their problems out...
 
  There is something to be said for keeping a list on-topic, and people
  asking questions on appropriate forums.
 
 
Are we in the tomcat-user forum ???
I don't see the relationship between a so simple constructor problem
(which Javadoc solve quiet easily ...) and Tomcat ...
   
   
Alistair Hopkins a crit :

 try "select myDate - 7 from myTable;" in your SQL statement for a
 quick
   fix
 :-)
 (works on postgres, don't know about msql)

 -Original Message-
 From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 06, 2001 12:58 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Dates in Java

 I have a simple question about the Date object (or similar object)

 I have a mySQL table with a DATETIME cell. I want to get the date
 from
   this
 cell

 (formatted like so: e.g.  2001-03-23 13:04:59)

  and retrieve the date that is exactly 7 days earlier than the
 retrieved
 date.

 What is the easiest way to do this? I noticed a lot of method
   deprecations
 in the specs and I am having trouble using the Date object.
 -
 For example,
 DateTest.java:20: cannot resolve symbol
 symbol  : constructor Date  ()
 location: class java.sql.Date
 Date d = new Date();
  ^
 1 error

 -

   
  
  --
   --
 -
 First, in regards to displaying your date use the
 java.text.DateFormat
 class(note DateFormat
 is abstract so of course you'll want to use one of the
 'implementation'
 classes).  Since
 java.sql.Date extends java.util.Date you can of course use the
 java.text.DateFormat classes
 to format a java.sql.Date.

 Secondly, the problem you are having using java.sql.Date could be if
 you
   are
 importing java.util.*.  This will import java.util.Date in addition
 to
 java.sql.Date.
 Therefore, when you code Date d = new Date() the compiler doesn't
 know
   which
 classdef
 to use.  One solution to to not import anything using splay(*).
 This is
   the
 way we
 do it.  You import block may get a little large but it also makes it
   easier
 for other
 developers to figure out where to look for source.  Another is to
 code
   it as
 java.sql.Date d = new java.sql.Date();

 ---
 Michael Wentzel
 Software Developer
 Software As We Think - http://www.aswethink.com
   
--
Cordialement,
   
   
Stphane BAUDET
   
_
GL Trade
48, rue Notre Dame des Victoires - 75002 Paris
Tel : 01 53 40 43 12 (interne 1312)
Fax : 01 53 40 01 40
Email : [EMAIL PROTECTED]
_
  
 
  Milt Epstein
  Research Programmer
  Software/Systems Development Group
  Computing and Communications Services Office (CCSO)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
 




RE: simple question for servlet-configuration of tomcat

2001-04-06 Thread Brett Knights

 What I have to do (in the configuration files) when I want to start my
 servlets with the URL:

 http://localhost/servlet/TestServlet

 and not with a WEPAPP-Directory like
 http://localhost/example/servlet/TestServlet

 Which settings I have to do in the configuration-files and in which
 directory I have to put my Servlets ?

 You just have to declare a context like this:
 Context path="" docBase="/path/to/myapp" debug="0"
 reloadable="false" 
 /Context


I don't think this is necessarily correct in all circumstances.

Try as I might I can't get any of the automatically generated files to reflect that I 
want to access my servlets at
/webapp/servletalias
rather than at /webapp/servlet/servletalias

I did succeed in making this work with tomcat and apache by editing my tomcat.conf 
file as follows:

Alias /webApp "C:/ApacheGroup/Tomcat/webapps/webApp "
Directory "C:/ApacheGroup/Tomcat/webapps/webApp "
Options Indexes FollowSymLinks
/Directory
ApJServMount /webApp /webApp




Using the Host directive (Feature request?)

2001-04-06 Thread Jeff Kilbride

Is there any plan to include pattern matching in the Host directive in the
server.xml file? Right now, in order to catch requests to mydomain.com and
www.mydomain.com, you have to use two Host directives. The problem with
this is that it loads two instances of all your servlets/jsp's. I'm using DB
connection pools and I'd like to avoid loading everything twice -- creating
twice as many connections to my DB.

Something like:

Host *.mydomain.com

or even being able to list multiple combinations, to avoid pattern matching:

Host mydomain.com www.mydomain.com

would really help. I'm using 3.2.1 and haven't tried any of the betas, yet.
Is this available in 3.3 or 4.0?

Thanks,
--jeff





??? Does Tomcat 4 b3 Support Reloading ???

2001-04-06 Thread Tony LaPaso

Hello,

By reading the documentation, it seems Tomcat 4 b3 should support servlet
reloading but this does not seem to be the case.

After a fresh install of Tomcat 4 b3 I modified the SnoopServlet and the
change was *not* picked up even though the examples Context has
reloadable="true" specified.

Has anyone else had this problem?

Is there a version of Tomcat that *does successfully reload changed
servlets?

Thanks.




RE: How to reload library classes?

2001-04-06 Thread Naren Dasu

Are there any performance implications when you set the 'reloadable' to
true ?   Does tomcat check every time a servlet is invoked ?

naren


At 12:05 PM 4/6/01 +1000, Warren Crossing wrote:
tomcat only reloads classes that are in WEB-INF/lib/ or WEB-INF/classes
where the reloadable is set to true in web.xml 
the classes cannot be in the classpath look at classloader.html in the src
tree

documentation ?? anyone can write some!

-Original Message-
From: Felix A. Milovanov [mailto:[EMAIL PROTECTED]]
Sent: Friday, 6 April 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: How to reload library classes?


  Hello all,

  I'm a new user in Tomcat and Java and I've found a problem. I compile my
library classes to some directory ( /usr/classes ) and there is a structire
like

/usr/classes/com/my/package1
/usr/classes/com/my/package2

  I've added /usr/classes to classpath, and it works - my classes could be 
used by my servlets. BUT! If I recompile any class from that library, Tomcat
does not reloads them and servlets use the previous version of libraries.

  Is there any way to say Tomcat to automatically reload that classes? And
the very common question - where can I get WHOLE documentation on Tomcat? 
I've just found minimalistic guide...

  Sincerely,
   Felix.




Servlet Contexts and sessions

2001-04-06 Thread Andy Mauro

Hey all.

This is sortof a JSP/Servlet related question, but it falls within the scope
of this forum:

Can someone give me a compelling reason why sessions cannot be shared across
contexts? I realize this is part of the Servlet 2.2 spec, and not strictly
speaking a tomcat issue, but perhaps there is a way to work around this
limitation in tomcat?

I can't think of a good reason for disallowing session sharing between
contexts. Ideas?

Thanks in advance,
-Andy




Re: ??? Does Tomcat 4 b3 Support Reloading ???

2001-04-06 Thread Bo Xu

Tony LaPaso wrote:

 Hello,

 By reading the documentation, it seems Tomcat 4 b3 should support servlet
 reloading but this does not seem to be the case.

 After a fresh install of Tomcat 4 b3 I modified the SnoopServlet and the
 change was *not* picked up even though the examples Context has
 reloadable="true" specified.

 Has anyone else had this problem?

 Is there a version of Tomcat that *does successfully reload changed
 servlets?

 Thanks.

Hi :-)   from my work, I also can not auto-reload MyServlet with
jakarta-tomcat-4.0-b(2/3)(standalone, JDK1.3, winnt40).  but with
jakarta-tomcat-4.0-b1(standalone, JDK1.3, winnt40), auto-reloading
works Well,   and please notice that only those MyServlet classes which
are in WEB-INF/classes(WEB-INF/lib with jar-style?) can be auto-reloaded.


Bo
April.06, 2001






Re: How to reload library classes?

2001-04-06 Thread Jeff Kilbride

Yes. Auto-reloading is not recommended for a production server.

--jeff

- Original Message -
From: "Naren Dasu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 10:22 AM
Subject: RE: How to reload library classes?


 Are there any performance implications when you set the 'reloadable' to
 true ?   Does tomcat check every time a servlet is invoked ?

 naren


 At 12:05 PM 4/6/01 +1000, Warren Crossing wrote:
 tomcat only reloads classes that are in WEB-INF/lib/ or WEB-INF/classes
 where the reloadable is set to true in web.xml
 the classes cannot be in the classpath look at classloader.html in the
src
 tree
 
 documentation ?? anyone can write some!
 
 -Original Message-
 From: Felix A. Milovanov [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 6 April 2001 11:56 AM
 To: [EMAIL PROTECTED]
 Subject: How to reload library classes?
 
 
   Hello all,
 
   I'm a new user in Tomcat and Java and I've found a problem. I compile
my
 library classes to some directory ( /usr/classes ) and there is a
structire
 like
 
 /usr/classes/com/my/package1
 /usr/classes/com/my/package2
 
   I've added /usr/classes to classpath, and it works - my classes could
be
 used by my servlets. BUT! If I recompile any class from that library,
Tomcat
 does not reloads them and servlets use the previous version of libraries.
 
   Is there any way to say Tomcat to automatically reload that classes?
And
 the very common question - where can I get WHOLE documentation on Tomcat?
 I've just found minimalistic guide...
 
   Sincerely,
  Felix.
 





Problems with caching?

2001-04-06 Thread Melissa Matthews
Title: Problems with caching?





Does anyone know if there is a problem with regular HTML files being somehow cached by Tomcat 3.2.1 on Solaris 2.8? I have replaced 

some HTML header pages, but I still see the old ones. I have searched and can not find those files anywhere. If I go 
directly to an shtml file that includes the HTML header files, it shows the new header, but the JSP pages always show
the old headers. I tried renaming the header to another name and then the JSP page showed the new header.


I have deleted all of the pages from the work directory.


Any suggestions? Thanks in advance.


Melissa





Tomcat dies on it own ??

2001-04-06 Thread Srinivas Kurella


I have an application that is running on tomcat. I have observed that if i
bring up tomcat and leave it running without accessing the application for
sometime , tomcat dies on it's own. The only thing i see in the logs is the
following message about 5 or 6 times before it dies:

2001-04-05 04:39:49 - ContextManager: SocketException reading request,
ignored - java.net.SocketExce
ption: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:429)
at java.net.SocketInputStream.available(SocketInputStream.java:141)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHand
ler.java:214)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:479)


can anybody provide some clues ?? 
I am running tomcat 3.2.1 on solaris. 
Thanks in advance 

Srini




Apache+Tomcat+vhosts insights, discussion (long)

2001-04-06 Thread Scott Tatum

I too had the utilization problems associated with Apache and Tomcat
3.2.1. Actually, the problem also manifests itself in Tomcat standalone.
After researching the problem and eventually coming up with a solution,
I realized a couple of things that I have not seen posted to the list,
so I thought I would share them and possibly help some others out.

First of all let me explain my setup. Our group does a lot of Intranet
applications for different groups and we have recently moved from JRun 3
to using Tomcat 3.2.1 for our servlet container. And I must say, even
though the initial setup and administration was tedious, Tomcat is a
faster, more stable environment for us. Our development environment is a
PC running RH6.2, and our production boxes are usually running some
version of Solaris, and in this particular case, Solaris 8. Both setups
are using Apache1.3.19+Tomcat 3.2.1 and Java SDK 1.3.0_02. We run
separate VM's for each virtual host/application.

Our production boxes typically hold several production websites, each
with their own virtual host. The name of the production box itself
doesn't host a site, just the CNAME's we have registered for that host.
For example, the production server may be called pserv, with aliases
app1, app2, app3, etc. We don't have (or want) a website called
pserv.wcomnet.com (wcomnet.com is our Intranet domain), but we do have
the websites app1.wcomnet.com, app2.wcomnet.com, etc. I don't know how
representative this is of people using Apache+Tomcat and virtual hosts,
but it is a good fit for us, and Tomcat handles it well.

The configuration files  look something like this:
-workers.properties-
worker.list=app1-ajp12, app2-ajp12, app3-ajp12

worker.app1-ajp12.port=8000
worker.app1-ajp12.host=localhost
worker.app1-ajp12.type=ajp12
worker.app1-ajp12.lbfactor=1

worker.app2-ajp12.port=8001
worker.app2-ajp12.host=localhost
worker.app2-ajp12.type=ajp12
worker.app2-ajp12.lbfactor=1

worker.app3-ajp12.port=8001
worker.app3-ajp12.host=localhost
worker.app3-ajp12.type=ajp12
worker.app3-ajp12.lbfactor=1

-uriworkermap.properties-
/*.jsp=app1-ajp12
/servlet/*=app1-ajp12

/*.jsp=app2-ajp12
/servlet/*=app2-ajp12

/*.jsp=app3-ajp12
/servlet/*=app3-ajp12

-mod_jk.conf-
JkWorkersFile /usr/tomcat/conf/workers.properties
JkLogFile  /usr/apache/logs/mod_jk.log
JkLogLevel error

NameVirtualHost 1.1.1.1 # ip's changed to protect the innocent

VirtualHost 1.1.1.1
ServerName app1.wcomnet.com
DocumentRoot /usr/tomcat/vhosts/app1
ErrorLog /usr/tomcat/vhosts/app1/WEB-INF/logs/error_log
CustomLog /usr/tomcat/vhosts/app1/WEB-INF/logs/access_log common

JkLogFile /usr/tomcat/vhosts/app1/WEB-INF/logs/mod_jk.log
JkMount /servlet/* app1-ajp12
JkMount /*.jsp app1-ajp12

Location "/WEB-INF/"
AllowOverride None
deny from all
/Location
/VirtualHost
VirtualHost 1.1.1.1
ServerName app2.wcomnet.com
DocumentRoot /usr/tomcat/vhosts/app2
ErrorLog /usr/tomcat/vhosts/app2/WEB-INF/logs/error_log
CustomLog /usr/tomcat/vhosts/app2/WEB-INF/logs/access_log common

JkLogFile /usr/tomcat/vhosts/app2/WEB-INF/logs/mod_jk.log
JkMount /servlet/* app2-ajp12
JkMount /*.jsp app2-ajp12

Location "/WEB-INF/"
AllowOverride None
deny from all
/Location
/VirtualHost
VirtualHost 1.1.1.1
ServerName app3.wcomnet.com
DocumentRoot /usr/tomcat/vhosts/app3
ErrorLog /usr/tomcat/vhosts/app3/WEB-INF/logs/error_log
CustomLog /usr/tomcat/vhosts/app3/WEB-INF/logs/access_log common

JkLogFile /usr/tomcat/vhosts/app3/WEB-INF/logs/mod_jk.log
JkMount /servlet/* app3-ajp12
JkMount /*.jsp app3-ajp12

Location "/WEB-INF/"
AllowOverride None
deny from all
/Location
/VirtualHost

-server-app1.xml-
# most of this is left out, only the custom bits listed
Logger name="tc_log"
verbosityLevel = "INFORMATION"
path="/usr/tomcat/vhosts/app1/WEB-INF/logs/tomcat.log"
/

Logger name="servlet_log"
path="/usr/tomcat/vhosts/app1/WEB-INF/logs/servlet.log"
verbosityLevel = "INFORMATION"
/

Logger name="JASPER_LOG"
path="/usr/tomcat/vhosts/app1/WEB-INF/logs/jasper.log"
verbosityLevel = "INFORMATION" /

ContextManager debug="0" workDir="/usr/tomcat/vhosts/app1/WEB-INF/work"
show
DebugInfo="true" 

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"

value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/
Parameter name="port" value="8000"/
/Connector

 Host name="app1.wcomnet.com"
   Context path="/" docBase="/usr/tomcat/vhosts/app1" /
 /Host

I'll exclude server-app2.xml and server-app3.xml for brevity's sake.
They are the same as app1's xml file, but with the 

Tomcat startup problem on NT

2001-04-06 Thread gpjkumar

Hi,

I Installed Tomcat on WindowsNT4.0 .It was working fine and suddenly I got a message 
as follows .I sthere any body who can help me?

Please e-mail it to [EMAIL PROTECTED]

Jay
ERROR: The requested URL could not be retrieved



While trying to retrieve the URL: http://localhost:8080/ 

The following error was encountered: 

ERROR 207 -- Cannot access the proxy-cache server through the URL that you entered. 
This means that: 

You may not use this proxy to connect to that url. 




__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/



Re: Problems with caching?

2001-04-06 Thread Scott Tatum

Are you using the include file directive to include the files? If you
are, then that is the problem. JSP's won't recompile if a file they
include is updated, only if the jsp file itself is updated. There are
two ways to get around this:

1. Load the jsp file and save it (may have to add a space, remove it,
then save or something similar)
2. Use the touch command unix to update the timestamps on all your jsp
files. This will cause them all to recompile. (e.g. go to your dir with
the jsp's and do a "touch *.jsp") This might be preferable since you are
dealing with header includes.

Hope this helps.

-Scott

Melissa Matthews wrote:



 Does anyone know if there is a problem with regular HTML files being
 somehow cached by Tomcat 3.2.1 on Solaris 2.8?   I have replaced

 some HTML header pages, but I still see the old ones.  I have searched
 and can not find those files anywhere.  If I go
 directly to an shtml file that includes the HTML header files, it
 shows the new header, but the JSP pages always show
 the old headers.  I tried renaming the header to another name and then
 the JSP page showed the new header.

 I have deleted all of the pages from the work directory.

 Any suggestions?  Thanks in advance.

 Melissa

--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/





Re: simple question for servlet-configuration of tomcat

2001-04-06 Thread Mandar Joshi


You simply need to put your stuff uner ROOT context.


- Original Message - 
From: "TOPO graphics GmbH" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 7:19 AM
Subject: simple question for servlet-configuration of tomcat


 Hello,
 
 since several weeks I am testing tomcat as a Servlet Engine with great
 success. I use Win98 SE2 with PWS.
 Now I have a simple problem (I think):
 
 What I have to do (in the configuration files) when I want to start my
 servlets with the URL:
 
 http://localhost/servlet/TestServlet
 
 and not with a WEPAPP-Directory like
 http://localhost/example/servlet/TestServlet
 
 Which settings I have to do in the configuration-files and in which
 directory I have to put my Servlets ?
 
 Thanks a lot for your answer
 
 With best regards
 
 M. Thorand
 
 TOPO graphics
 Geographische Informationssysteme GmbH
 
 EMail:  [EMAIL PROTECTED]
 




Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat)

2001-04-06 Thread Joel Parramore


On a slightly related note: are servlets under the ROOT context
automatically reloaded?

The docs in server.xml would appear to indicate that reloadable="true" is
the default, but there's no entry for the ROOT context in my server.xml
file, and it appears to be inconsistent on our server with regard to
reloading a servlet which has (definitely) changed in
webapps/ROOT/WEB-INF/classes (i.e., Tomcat apparently reloaded the servlet
each time the class was changed, then suddenly stopped doing so, with no
configuration changes made).

Would placing an explicit CONTEXT entry for the ROOT in the server.xml file,
i.e.,

Context
path="/"
docbase="webapps/ROOT"
crossContext="false"
debug="0"
reloadable="true"
/Context

resolve this issue?  Has anyone else encountered a similar problem?

I can supply more configuration upon request, but at least I'll note that
the server configuration is with Apache 1.3.14 and Tomcat 3.2.1 running
Redhat Linux 7.0 on an Intel box, JDK 1.2.2.  Tomcat, aside from slight
changes for mod_jk operation with Apache, is unchanged from the default
configuration.

Regards,
Joel Parramore


 -Original Message-
 From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 06, 2001 2:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: simple question for servlet-configuration of tomcat



 You simply need to put your stuff uner ROOT context.


 - Original Message -
 From: "TOPO graphics GmbH" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 06, 2001 7:19 AM
 Subject: simple question for servlet-configuration of tomcat


  Hello,
 
  since several weeks I am testing tomcat as a Servlet Engine with great
  success. I use Win98 SE2 with PWS.
  Now I have a simple problem (I think):
 
  What I have to do (in the configuration files) when I want to start my
  servlets with the URL:
 
  http://localhost/servlet/TestServlet
 
  and not with a WEPAPP-Directory like
  http://localhost/example/servlet/TestServlet
 
  Which settings I have to do in the configuration-files and in which
  directory I have to put my Servlets ?
 
  Thanks a lot for your answer
 
  With best regards
 
  M. Thorand
 
  TOPO graphics
  Geographische Informationssysteme GmbH
 
  EMail:  [EMAIL PROTECTED]
 




Tomcat Sessions

2001-04-06 Thread Noone Anil Kumar


Hi ,
We are running tomcat 3.2.1 on WinNT with Apache Server 1.3.12, and
here is the problem that we are facing with Session:
"HttpSession session = getSession(req)"
where req is the HttpServletRequest object.
is working fine with ServletRunner (provided by Jsdk2.0)
but when we start using it with Tomcat,
the session object is of type as follows:
HTTP Session = org.apache.tomcat.facade.HttpSessionFacade@8f04cf35
Is there any difference in : Jsdk2.0 HttpSession Object 
the above one 
So whenever we try to access the current session object,
it seems that we get NULL object in Tomcat.
Please help me out in solving this problem...
Thanks in advance,
Anil








Re: Dates in Java

2001-04-06 Thread Milt Epstein

On Fri, 6 Apr 2001, Jeff Kilbride wrote:

 There's also something to be said for using a little tact. "You
 might get more help posting your question on a general Java forum"
 -- and then pointing the way -- is better than using three question
 marks and implying that the other person's question is "so
 simple". Responses like this scare new programmers off the lists.
[ ... ]

True, but I don't see anything so rude about what the person wrote,
despite the use of multiple question marks and the "so simple" -- I've
seen a lot worse (hell, I've responded a lot worse myself :-).  And I
could see how it can be a little annoying after a whole bunch of such
posts.  Also remember that it's quite possible that English is not his
native language.

Anyway, this list has seemed reasonable on-topic (as well as useful
and friendly) since I joined, so this probably isn't something to be
concerned about (on either side).


 - Original Message -
 From: "Milt Epstein" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 06, 2001 7:05 AM
 Subject: Re: Dates in Java
 
 
  On Fri, 6 Apr 2001, Martin Mauri wrote:
 
   Hey...don't be so rude, let the boys work their problems out...
 
  There is something to be said for keeping a list on-topic, and people
  asking questions on appropriate forums.
 
 
Are we in the tomcat-user forum ???
I don't see the relationship between a so simple constructor problem
(which Javadoc solve quiet easily ...) and Tomcat ...
   
   
Alistair Hopkins a écrit :

 try "select myDate - 7 from myTable;" in your SQL statement for a
 quick
   fix
 :-)
 (works on postgres, don't know about msql)

 -Original Message-
 From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 06, 2001 12:58 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Dates in Java

 I have a simple question about the Date object (or similar object)

 I have a mySQL table with a DATETIME cell. I want to get the date
 from
   this
 cell

 (formatted like so: e.g.  2001-03-23 13:04:59)

  and retrieve the date that is exactly 7 days earlier than the
 retrieved
 date.

 What is the easiest way to do this? I noticed a lot of method
   deprecations
 in the specs and I am having trouble using the Date object.
 -
 For example,
 DateTest.java:20: cannot resolve symbol
 symbol  : constructor Date  ()
 location: class java.sql.Date
 Date d = new Date();
  ^
 1 error

 -

   
  
  --
   --
 -
 First, in regards to displaying your date use the
 java.text.DateFormat
 class(note DateFormat
 is abstract so of course you'll want to use one of the
 'implementation'
 classes).  Since
 java.sql.Date extends java.util.Date you can of course use the
 java.text.DateFormat classes
 to format a java.sql.Date.

 Secondly, the problem you are having using java.sql.Date could be if
 you
   are
 importing java.util.*.  This will import java.util.Date in addition
 to
 java.sql.Date.
 Therefore, when you code Date d = new Date() the compiler doesn't
 know
   which
 classdef
 to use.  One solution to to not import anything using splay(*).
 This is
   the
 way we
 do it.  You import block may get a little large but it also makes it
   easier
 for other
 developers to figure out where to look for source.  Another is to
 code
   it as
 java.sql.Date d = new java.sql.Date();

 ---
 Michael Wentzel
 Software Developer
 Software As We Think - http://www.aswethink.com
   
--
Cordialement,
   
   
Stéphane BAUDET
   
_
GL Trade
48, rue Notre Dame des Victoires - 75002 Paris
Tel : 01 53 40 43 12 (interne 1312)
Fax : 01 53 40 01 40
Email : [EMAIL PROTECTED]
_
  
 
  Milt Epstein
  Research Programmer
  Software/Systems Development Group
  Computing and Communications Services Office (CCSO)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
 
 

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: Superclass for JSPs?

2001-04-06 Thread Peter Smith

I honestly don't know if it's possible to subclass
your JSP pages, but I may have a hack workaround. 
First, know that you can declare a 'jspinit()' method
that is just like the 'init()' method in your servlet.
 Search the following doc for details:

http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html

Also, you might use the 'include' directive to include
a jsp file in all of your other jsp pages.  For
instance, you may write a 'init_and_utils.jsp' file
and use the jsp include directive to attach it to each
of your other jsp's.

jsp:include page="init_and_utils.jsp"/

--Peter--

--- "Felix A. Milovanov" [EMAIL PROTECTED]
wrote:
   Hello all,
 
   i just started using Java for server-side WEB
 development ( I've 4 years of
 this development in C and Perl ). When I read about
 JSPs, I found than JSP is
 compiled into servlet on a first call and than runs
 like a servlet. 
 
   The question is : is it possible to have a
 superclass for my JSPs? I need to
 make some activity before each JSP is called. I made
 a superclass for my 
 servlets, so I cat write my servlets inherited from
 baseServlet and do not worry
 about pre-request activity. But how can I do it for
 JSP???
 
   Sincerely,
 
   Felix.


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Dates in Java

2001-04-06 Thread Martin Mauri

Milt!

Stop it, you're posting an out topic message! We're not discussing here
about policies, we're talkig about Tomcat!

:)

regards.



 On Fri, 6 Apr 2001, Jeff Kilbride wrote:

  There's also something to be said for using a little tact. "You
  might get more help posting your question on a general Java forum"
  -- and then pointing the way -- is better than using three question
  marks and implying that the other person's question is "so
  simple". Responses like this scare new programmers off the lists.
 [ ... ]

 True, but I don't see anything so rude about what the person wrote,
 despite the use of multiple question marks and the "so simple" -- I've
 seen a lot worse (hell, I've responded a lot worse myself :-).  And I
 could see how it can be a little annoying after a whole bunch of such
 posts.  Also remember that it's quite possible that English is not his
 native language.

 Anyway, this list has seemed reasonable on-topic (as well as useful
 and friendly) since I joined, so this probably isn't something to be
 concerned about (on either side).


  - Original Message -
  From: "Milt Epstein" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, April 06, 2001 7:05 AM
  Subject: Re: Dates in Java
 
 
   On Fri, 6 Apr 2001, Martin Mauri wrote:
  
Hey...don't be so rude, let the boys work their problems out...
  
   There is something to be said for keeping a list on-topic, and people
   asking questions on appropriate forums.
  
  
 Are we in the tomcat-user forum ???
 I don't see the relationship between a so simple constructor
problem
 (which Javadoc solve quiet easily ...) and Tomcat ...


 Alistair Hopkins a crit :
 
  try "select myDate - 7 from myTable;" in your SQL statement for
a
  quick
fix
  :-)
  (works on postgres, don't know about msql)
 
  -Original Message-
  From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 06, 2001 12:58 PM
  To: '[EMAIL PROTECTED]'
  Subject: RE: Dates in Java
 
  I have a simple question about the Date object (or similar
object)
 
  I have a mySQL table with a DATETIME cell. I want to get the
date
  from
this
  cell
 
  (formatted like so: e.g.  2001-03-23 13:04:59)
 
   and retrieve the date that is exactly 7 days earlier than the
  retrieved
  date.
 
  What is the easiest way to do this? I noticed a lot of method
deprecations
  in the specs and I am having trouble using the Date object.
  -
  For example,
  DateTest.java:20: cannot resolve symbol
  symbol  : constructor Date  ()
  location: class java.sql.Date
  Date d = new Date();
   ^
  1 error
 
  -
 

   
 
 --
--
  -
  First, in regards to displaying your date use the
  java.text.DateFormat
  class(note DateFormat
  is abstract so of course you'll want to use one of the
  'implementation'
  classes).  Since
  java.sql.Date extends java.util.Date you can of course use the
  java.text.DateFormat classes
  to format a java.sql.Date.
 
  Secondly, the problem you are having using java.sql.Date could
be if
  you
are
  importing java.util.*.  This will import java.util.Date in
addition
  to
  java.sql.Date.
  Therefore, when you code Date d = new Date() the compiler
doesn't
  know
which
  classdef
  to use.  One solution to to not import anything using splay(*).
  This is
the
  way we
  do it.  You import block may get a little large but it also
makes it
easier
  for other
  developers to figure out where to look for source.  Another is
to
  code
it as
  java.sql.Date d = new java.sql.Date();
 
  ---
  Michael Wentzel
  Software Developer
  Software As We Think - http://www.aswethink.com

 --
 Cordialement,


 Stphane BAUDET

 _
 GL Trade
 48, rue Notre Dame des Victoires - 75002 Paris
 Tel : 01 53 40 43 12 (interne 1312)
 Fax : 01 53 40 01 40
 Email : [EMAIL PROTECTED]
 _
   
  
   Milt Epstein
   Research Programmer
   Software/Systems Development Group
   Computing and Communications Services Office (CCSO)
   University of Illinois at Urbana-Champaign (UIUC)
   [EMAIL PROTECTED]
  
 

 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]




RE: Tomcat Sessions

2001-04-06 Thread William Kaufman




  Is there any difference in : Jsdk2.0 HttpSession Object  the 
  above one 
org.apache.tomcat.facade.HttpSessionFacade IS an 
HttpSession.

  So whenever we try to access the current session object, it 
  seems that we get NULL object in Tomcat. 
I don't know what getSession(HttpServletRequest) is--it doesn't seem to 
be in the JSDK 2.0.
You should call HttpServletRequest.getSession() -- if you still 
have trouble, the problem is somewhere else. You should check where that 
stack trace is coming from.
 
-- Bill K.


Re: Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat)

2001-04-06 Thread Tony LaPaso

I have a *similar* problem. None of my servlets are being reloaded using
Tomcat 4, b3. This includes the servlets in /examples context.

The only way I've been able to get servlets to reload (aside from
re-starting Tomcat) is to run /manager/reload?path=/someContext.

Apparently servlet reloading is completely broke in T4 b2/3.



- Original Message -
From: "Joel Parramore" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 2:28 PM
Subject: Servlet auto-reloading under ROOT context (was RE: simple question
for servlet-configuration of tomcat)



 On a slightly related note: are servlets under the ROOT context
 automatically reloaded?

 The docs in server.xml would appear to indicate that reloadable="true" is
 the default, but there's no entry for the ROOT context in my server.xml
 file, and it appears to be inconsistent on our server with regard to
 reloading a servlet which has (definitely) changed in
 webapps/ROOT/WEB-INF/classes (i.e., Tomcat apparently reloaded the servlet
 each time the class was changed, then suddenly stopped doing so, with no
 configuration changes made).

 Would placing an explicit CONTEXT entry for the ROOT in the server.xml
file,
 i.e.,

 Context
 path="/"
 docbase="webapps/ROOT"
 crossContext="false"
 debug="0"
 reloadable="true"
 /Context

 resolve this issue?  Has anyone else encountered a similar problem?

 I can supply more configuration upon request, but at least I'll note that
 the server configuration is with Apache 1.3.14 and Tomcat 3.2.1 running
 Redhat Linux 7.0 on an Intel box, JDK 1.2.2.  Tomcat, aside from slight
 changes for mod_jk operation with Apache, is unchanged from the default
 configuration.

 Regards,
 Joel Parramore


  -Original Message-
  From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 06, 2001 2:51 PM
  To: [EMAIL PROTECTED]
  Subject: Re: simple question for servlet-configuration of tomcat
 
 
 
  You simply need to put your stuff uner ROOT context.
 
 
  - Original Message -
  From: "TOPO graphics GmbH" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, April 06, 2001 7:19 AM
  Subject: simple question for servlet-configuration of tomcat
 
 
   Hello,
  
   since several weeks I am testing tomcat as a Servlet Engine with great
   success. I use Win98 SE2 with PWS.
   Now I have a simple problem (I think):
  
   What I have to do (in the configuration files) when I want to start my
   servlets with the URL:
  
   http://localhost/servlet/TestServlet
  
   and not with a WEPAPP-Directory like
   http://localhost/example/servlet/TestServlet
  
   Which settings I have to do in the configuration-files and in which
   directory I have to put my Servlets ?
  
   Thanks a lot for your answer
  
   With best regards
  
   M. Thorand
  
   TOPO graphics
   Geographische Informationssysteme GmbH
  
   EMail:  [EMAIL PROTECTED]
  





Which workers am I using?

2001-04-06 Thread Peter Smith

I can see the ajp12 and 13 worker threads being
instantiated (via log messages in the console) when I
crank up Tomcat, but how do I know if the 13's are
being used at all?  All my auto-generated files
continue to point to 'ajp12' workers, even after I've
changed almost every reference I can find in any
properties file I can find.  Does it even matter
what's in these 'auto' files?  I'm not even sure it
matters which worker(s) I'm using, but the docs said
it did.

I've pointed Apache/Tomcat to look at a customized
version of the 'mod_jk-auto' file with most/all
'ajp12' references changed to 'ajp13'.  Is this even
necessary?  What else might I need to do?

Thank you!

--Peter--
[EMAIL PROTECTED]



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Tomcat Sessions

2001-04-06 Thread Noone Anil Kumar


Yes, i was using HttpServletRequest.getSession()
function call
inside getSession( req )
function, It's working fine with Servlet runner but not with tomcat
as i said ...
William Kaufman wrote:

Is
there any difference in : Jsdk2.0 HttpSession Object  the above
one 

org.apache.tomcat.facade.HttpSessionFacade
IS an HttpSession.

So
whenever we try to access the current session object, it seems
that we get NULL object in Tomcat.

I
don't know what getSession(HttpServletRequest) is--it doesn't seem to be
in the JSDK 2.0.


You
should call HttpServletRequest.getSession() -- if you still have
trouble, the problem is somewhere else. You should check where that
stack trace is coming from.

-- Bill K.




Re: Tomcat Sessions

2001-04-06 Thread Noone Anil Kumar


Here is the trace:
java.lang.NullPointerException
 at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled
Code)
 at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled
Code)
 at SessionTrack.run(Compiled
Code)
 at java.lang.Thread.run(Compiled
Code)
In SessionTrack class i am trying to retrive the values(mode,lastAcessTime
,IdleTime etc) which are stored in the HttpSession Object.

Noone Anil Kumar wrote:
Yes, i was using HttpServletRequest.getSession()
function
call inside getSession( req )
function, It's working fine with Servlet runner but not with tomcat
as i said ...
William Kaufman wrote:

Is
there any difference in : Jsdk2.0 HttpSession Object  the above
one 

org.apache.tomcat.facade.HttpSessionFacade
IS an HttpSession.

So
whenever we try to access the current session object, it seems
that we get NULL object in Tomcat.

I
don't know what getSession(HttpServletRequest) is--it doesn't seem to be
in the JSDK 2.0.

You
should call HttpServletRequest.getSession() -- if you still have
trouble, the problem is somewhere else. You should check where that
stack trace is coming from.


-- Bill K.





Re: Which workers am I using?

2001-04-06 Thread Scott Tatum

In order to get Apache to use ajp13, you have to use your own config
files. The auto files always use ajp12. You'll need to change
workers.properties so that your workers  have a type of ajp13. I don't
think it matters what your workers are called, though most people have
the protocol as part of the worker name. It's possible that your worker
could have a name with ajp12 in it, even though its type is ajp13 and it
might make deceiving log entries that way.

-Scott
--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/

Peter Smith wrote:

 I can see the ajp12 and 13 worker threads being
 instantiated (via log messages in the console) when I
 crank up Tomcat, but how do I know if the 13's are
 being used at all?  All my auto-generated files
 continue to point to 'ajp12' workers, even after I've
 changed almost every reference I can find in any
 properties file I can find.  Does it even matter
 what's in these 'auto' files?  I'm not even sure it
 matters which worker(s) I'm using, but the docs said
 it did.

 I've pointed Apache/Tomcat to look at a customized
 version of the 'mod_jk-auto' file with most/all
 'ajp12' references changed to 'ajp13'.  Is this even
 necessary?  What else might I need to do?

 Thank you!

 --Peter--
 [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/






Re: Apache + Tomcat configuration

2001-04-06 Thread Pae Choi

Did you put in another context entry in the server.xml file
similar to this:

Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" 
/Context

(exchange "examples" with your own directory "mytest")

-Original Message-
From: Zhengan Cai [mailto:[EMAIL PROTECTED]]
Sent: 06 April 2001 15:00
To: Apache/Tomcat
Subject: Apache + Tomcat configuration


Hi, everyone:

I am trying to setup Apache + Tomcat to run JSP and Servlets on Win. 2000.
I
am using Apache 1.3.19, and Tomcat 3.2.1.

I created my own directory in
%TOMCAT_HOME%/webapps/mytest, copied the structure from
%TOMCAT_HOME%/webapps/examples such as WEB-INF, META-INF I put my
servlets .class files in the ../mytest/WEB-INF/classes/aaa.class.

I did some configurations in Tomcat: Server.xml, Tomcat-Apache.conf,
Tomcat.conf; and in Apache: httpd.conf

Now I can use Apache + Tomcat to run my JSP files, BUT I can  ONLY  run
the
system provided  sample Servlets files. I CAN'T run my own Servelts files
no
matter where I put the .class files.

Did you restart the TC?  --- "Just want to make sure!!!" :-)

Pae


Could you give me a help for the configuration as my assignment is almost
due  ?

Thank you very much for your time and concern.

E-mail: [EMAIL PROTECTED]

Zhengan Cai




Tomcat processes.

2001-04-06 Thread Vikas Bansal

When I start Tomcat I see the following-
=
[vikas@wow bin]$ ps -aefl --cols=300 | grep java
000 S vikas  858 1  4  60   0- 35712 rt_sig 13:47 pts/0
00:00:01 /net/java/jdk1.3/bin/i386/native_threads/java
-Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat
040 S vikas  903   858  0  60   0- 35712 do_pol 13:47 pts/0
00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java
-Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat
040 S vikas  904   903  0  60   0- 35712 nanosl 13:47 pts/0
00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java
-Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat
040 S vikas  905   903  0  60   0- 35712 nanosl 13:47 pts/0
00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java
-Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat
...
...
...
040 S vikas  948   903  0  60   0- 35712 nanosl 13:47 pts/0
00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java
-Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat
040 S vikas  949   903  0  60   0- 35712 nanosl 13:47 pts/0
00:00:00 /net/java/jdk1.3/bin/i386/native_threads/java
-Dtomcat.home=./.. org.apache.tomcat.startup.Tomcat
==
It looks like that PID 858 creates a process (PID-903) which in turn
creates 46 Tomcat processes (PIDS: 904-949). Where is it configured? Is
there any way I can change this?  So that I can start Tomcat with the
no. of processes I want, say 25, 100.. whatever..

Any help in this regard is appreciated.
Thanks,
Vikas.





Re: Tomcat articles on the O'Reilly Network

2001-04-06 Thread [EMAIL PROTECTED]

  thanks for the tip...
- Original Message -
From: "Joel Parramore" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 8:18 AM
Subject: Tomcat articles on the O'Reilly Network



 FYI: there are some interesting articles on the O'Reilly Network about
 installing and configuring Tomcat as well as dealing with web applications
 which look to be good reads

 Using Tomcat - http://www.oreillynet.com/pub/ct/33

 which comprises two articles

 Java Web Applications -
 http://www.oreillynet.com/pub/a/onjava/2001/03/15/tomcat.html
 Installing and Configuring Tomcat -
 http://www.oreillynet.com/pub/a/onjava/2001/03/29/tomcat.html


 Regards,
 Joel Parramore





J2EE?

2001-04-06 Thread Mark Arroyo

Hi,


I am new to Tomcat. I want to develop J2EE applications. Does tomcat support
J2EE?
If so how do I configure it to use J2EE? Thanks in advance!

Mark




Problem with mod_jk build

2001-04-06 Thread Brandon Cruz




Quick question...
If I have a binary version of mod_jk.so, do I have to build it?  It said it
is already built for Linux, but I can't get apache to start when I put that
into apache's libexec directory and include the mod_jk.conf-auto.  What am I
doing wrong?  I have tried to build mod_jk, but get all kinds of errors
telling me that files do not exist.

Brandon Cruz





  1   2   >