AW: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Ralph Einfeldt

You can't do much, as you won't get a direct feedback. 

Typically the sender (from or reply-to) of the mail will 
get a feedback mail (but there is no garantee for that) 
from the receiving mail server. The format and content 
of the mail depends on the mail server and it's 
configuration (some even allow to custumize the template 
for this mail)

 -Ursprüngliche Nachricht-
 Von: Kunal Shah [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 10. Oktober 2002 08:16
 An: tomcat user
 Betreff: RE: How to validate email address in JSP by using javax.mail?
 
 
 suppose there is an domain xyz.com accepting mails for its
 user say there are a, b and c users and administrator which will
 recieve mails for unresolve members
 
 i am sending one mail at [EMAIL PROTECTED] dummy is not valid
 mailbox still the mesg will be delivered to administrator of
 xyz.com. so there will be not send fail exception.
 
 what should be done in this case ?
 

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




AW: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Ralph Einfeldt

But keep in mind that this isn't completly safe, as you 
won't know if the address really exists or the administrator 
(the fallback receiver) acted as the receiver.

So this depends on what you really want to achieve and
what requirements you have.

 -Ursprüngliche Nachricht-
 Von: Jon Eaves [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 10. Oktober 2002 08:22
 An: Tomcat Users List
 Betreff: Re: How to validate email address in JSP by using javax.mail?
 
 The short answer is, send an email to that address with
 a magic number in it.  Tell the user to go somewhere and
 use the magic number which will validate them.
 

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




RE: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Kunal Shah

hummm
that means you should load the server for checking validity
of email address by sending a mail to the address, as it is
not assuring that it would be correct way to find out the
validity of email.

I think in that case, regular expression is much convinient
way to go with.

--kunal

 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 12:05 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: AW: How to validate email address in JSP
 by using javax.mail?


 You can't do much, as you won't get a direct feedback.

 Typically the sender (from or reply-to) of the mail will
 get a feedback mail (but there is no garantee for that)
 from the receiving mail server. The format and content
 of the mail depends on the mail server and it's
 configuration (some even allow to custumize the template
 for this mail)

  -Ursprüngliche Nachricht-
  Von: Kunal Shah [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 08:16
  An: tomcat user
  Betreff: RE: How to validate email address in
 JSP by using javax.mail?
 
 
  suppose there is an domain xyz.com accepting
 mails for its
  user say there are a, b and c users and
 administrator which will
  recieve mails for unresolve members
 
  i am sending one mail at [EMAIL PROTECTED] dummy
 is not valid
  mailbox still the mesg will be delivered to
 administrator of
  xyz.com. so there will be not send fail exception.
 
  what should be done in this case ?
 



__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Re: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Steven J. Owens

On Thu, Oct 10, 2002 at 11:46:20AM +0530, Kunal Shah wrote:
 suppose there is an domain xyz.com accepting mails for its user say
 there are a, b and c users and administrator which will recieve
 mails for unresolve members
 
 i am sending one mail at [EMAIL PROTECTED] dummy is not valid
 mailbox still the mesg will be delivered to administrator of
 xyz.com. so there will be not send fail exception.

 This is why the standard practice in internet mailing list
servers is confirmed opt-in.  In other words, you MUST assume that
the email address is invalid UNLESS the user gets the confirm request
email and confirms by responding.

 The usual approach to implementing this is to generate a
pseudo-random number that will be unique to that user, and store it
somewhere, typically a database table which also includes that email
address.  Then you send a confirm request email to the email address,
asking that they send you back the pseudo-random number so you know
that the email address is both valid (because they received the email)
and has requested whatever service (because they chose to reply).

 Typically, the user sends the pseudo-random number one of two
ways, either by email or by a direct HTTP GET request with the
pseudo-random number as an argument.

a) to allow a GET-style URL request containing the pseudo-random
number as an argument, you just include the URL in the confirm request
message, so the user can click on it in order to directly invoke a JSP
or servlet.  

b) to allow an email, you put the pseudo-random number on either the
subject-line or in the reply-to address of the message you send out.
For a reply-to address, on your message you set a reply-to header.
Most email clients, when the user selects the generic reply command,
will address the message to the value set in the reply-to header.

 Typically your reply-to header will be something like
[EMAIL PROTECTED], where 2345234632 is the
pseudo-random number.  Most email servers can be configured to have
email addresses with partial wild-cards, i.e. confirm-* or some
such, which define an address which receives all email addressed to an
address starting with confirm-.  You configure your email server to
hand off such messages to your java server.  Your java server then
matches the confirm-* address up against the pseudo-random number in
the table.

 If your server can't handle partial wildcard addresses, then you
have a single confirm-reply address and instruct the user to make
sure that the subject-line of your request message is copied into the
reply (most mail clients do that automatically).  Other than that, it
works the same as with the reply-to technique.

Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - Me

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




AW: Too Many Sessions!

2002-10-10 Thread Ralph Einfeldt

What makes you think that there is no user activity ?

Have you verified this in the access log ?

Is it possible that there is a cronjob running that
checks the availability of the site ?

 -Ursprüngliche Nachricht-
 Von: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 9. Oktober 2002 20:29
 An: [EMAIL PROTECTED]
 Betreff: Too Many Sessions!
 
 I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been 
 watching my logs and I'm noticing a lot of sessions being 
 created for no apparent reason when there is no user activity 
 on the system and no activity (as far as I can tell) in my 
 servlet. Here's a sample from the logs...
 

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




Re: AW: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Jon Eaves

Hi Ralph, (and others)

Ralph Einfeldt wrote:
 But keep in mind that this isn't completly safe, as you 
 won't know if the address really exists or the administrator 
 (the fallback receiver) acted as the receiver.

If the administrator isn't the person who initiated the
transaction, he's going to ignore it and the email is
never sent.  (Assuming they have an IQ above ambient
room temperature, and if not, then they are obviously
happy to take responsibility for the words)

 
 So this depends on what you really want to achieve and
 what requirements you have.

Indeed.  That's why there is the long answer in my original
email.  However, it appears the original poster wanted a way
to validate people sending content.  Some of this content was,
let us say, indelicate, and they wanted be reasonably sure
that the content was from the owner of the email address.

Under those circumstances it will work just fine.  In fact,
I'm not sure of any circumstances where it will not work,
unless the person who gets the email just goes ahead and
follows the instructions without thinking.  You can't
do much about that.

Cheers,
-- jon

-- 
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


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




RE: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Kunal Shah


thats the wonderful idea.

you are talking about doing something what mailing lists are
doing .

this is the way they check the validity of email address..

thanks a bunch

--kunal

 -Original Message-
 From: Steven J. Owens [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 12:19 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: How to validate email address in JSP
 by using javax.mail?


 On Thu, Oct 10, 2002 at 11:46:20AM +0530, Kunal
 Shah wrote:
  suppose there is an domain xyz.com accepting
 mails for its user say
  there are a, b and c users and administrator
 which will recieve
  mails for unresolve members
 
  i am sending one mail at [EMAIL PROTECTED] dummy
 is not valid
  mailbox still the mesg will be delivered to
 administrator of
  xyz.com. so there will be not send fail exception.

  This is why the standard practice in
 internet mailing list
 servers is confirmed opt-in.  In other words,
 you MUST assume that
 the email address is invalid UNLESS the user gets
 the confirm request
 email and confirms by responding.

  The usual approach to implementing this is
 to generate a
 pseudo-random number that will be unique to that
 user, and store it
 somewhere, typically a database table which also
 includes that email
 address.  Then you send a confirm request email
 to the email address,
 asking that they send you back the pseudo-random
 number so you know
 that the email address is both valid (because
 they received the email)
 and has requested whatever service (because they
 chose to reply).

  Typically, the user sends the pseudo-random
 number one of two
 ways, either by email or by a direct HTTP GET
 request with the
 pseudo-random number as an argument.

 a) to allow a GET-style URL request containing
 the pseudo-random
 number as an argument, you just include the URL
 in the confirm request
 message, so the user can click on it in order to
 directly invoke a JSP
 or servlet.

 b) to allow an email, you put the pseudo-random
 number on either the
 subject-line or in the reply-to address of the
 message you send out.
 For a reply-to address, on your message you set a
 reply-to header.
 Most email clients, when the user selects the
 generic reply command,
 will address the message to the value set in the
 reply-to header.

  Typically your reply-to header will be something like
 [EMAIL PROTECTED], where 2345234632 is the
 pseudo-random number.  Most email servers can be
 configured to have
 email addresses with partial wild-cards, i.e.
 confirm-* or some
 such, which define an address which receives all
 email addressed to an
 address starting with confirm-.  You configure
 your email server to
 hand off such messages to your java server.  Your
 java server then
 matches the confirm-* address up against the
 pseudo-random number in
 the table.

  If your server can't handle partial wildcard
 addresses, then you
 have a single confirm-reply address and
 instruct the user to make
 sure that the subject-line of your request
 message is copied into the
 reply (most mail clients do that automatically).
 Other than that, it
 works the same as with the reply-to technique.

 Steven J. Owens
 [EMAIL PROTECTED]

 I'm going to make broad, sweeping
 generalizations and strong,
  declarative statements, because otherwise I'll
 be here all night and
  this document will be four times longer and much
 less fun to read.
  Take it all with a grain of salt. - Me



__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




AW: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Ralph Einfeldt

Of course you should check the syntax of the address 
before even opening a session to a mail server, but that 
was already discussed in this thread yesterday. 

With regular expression you won't know if a syntactical 
valid address is a real address.

 -Ursprüngliche Nachricht-
 Von: Kunal Shah [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 10. Oktober 2002 08:50
 An: Tomcat Users List
 Betreff: RE: How to validate email address in JSP by using javax.mail?
 
 
 hummm
 that means you should load the server for checking validity
 of email address by sending a mail to the address, as it is
 not assuring that it would be correct way to find out the
 validity of email.
 
 I think in that case, regular expression is much convinient
 way to go with.
 

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




Mailing List

2002-10-10 Thread Bala

I missed a mail from Tomcat Users list. Where and how
can i find it? (Mailing List)

=
One important key to success is self-confidence. 
 An important key to self-confidence is preparation

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Tomcat SSL - Changing URL https to http

2002-10-10 Thread Frédéric LE MAISTRE

I've secure my website with Apache, using the SSL connector.
But I have a problem : Imagine I have a page with confidential data to send.
This page has the following URL : https://localhost:8443/importantData.html
We only have to change manually the URL with http://localhost:8080/importantData.html 
to avoid the SSL connection?
It's not very secure.
please give me a hand
Thanks

Steph



Cgis

2002-10-10 Thread Pablo_Saez_Nunez

 Hello everybody, i´m a newbie in tomcat and i could understand hardly
everything, but i have a doubt. How can i make tomcat to serve CGI´s. I´ve
read the HOW TO, but dont get it. I´m using the tomcat server under
Windows, and trying to execute an .exe file compiled and linked under
windows in windows. But when i try to acces it, only opens a dialog box
asking me if i want to execute or download. So, tomcat doesn´t realices
that is a CGi.

 I have changed the .renameto and deleted the comments in the .xml. I
place the CGi in a subfolder called cgi_bin, and put it as the mapping and
the base (that is WEB_INF/cgi at the begining).

 PLEASE, can anybody help me. I know Apache would be a better server,
but its not for serious use, so im trying to do it with Tomcat. THANKS

 please answers to: [EMAIL PROTECTED]
[EMAIL PROTECTED]

 Thanks


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




Re: Exception starting filter Security Filter

2002-10-10 Thread Volker Leidl

Hi!

In fact I was wrong in my last post. As I found out later, it did not 
work. I found a solution for my problem but I am not sure if it also 
applies to yours, Dan. Sorry for not sharing my knowledge until now, but 
it did not seem to interest anyone ;)

During debugging I used a hacked version of the logging package and I 
somehow forgot to put back the original, so I tricked myself and 
believed it would work. But what I found out is, that in my version of 
Tomcat (4.0.3) common/lib is defined as endorsed in 
bin/setclasspath.bat (for the endorsed standards override mechanism see 
http://java.sun.com/j2se/1.4/docs/guide/standards/). This has the 
effect, that all jars in this directory are loaded by the bootstrap 
class loader (at least in J2SE 1.4). You can verify this by printing out 
the value of the java.endorsed.dirs system property. There you will 
find all your jars from common/lib.

I solved the problem by switching to 4.1, where there is a separate 
endorsed directory in $CATALINA_HOME/common. All jars from common/lib 
are then normally loaded by the common class loader. I have no idea why 
the 4.0 version marks the common/lib directory as endorsed but in my 
opinon, it is a bug, since it undermines the expected class loader 
hierarchy.

Furthermore the implementation of LogFactory is also buggy. When you 
look at the source code you can see that it does not take into account 
that Class.getClassLoader can return null. This is exactly what happens 
in your case, Dan. The class loader that loads LogFactory is the 
bootstrap class loader. Check where your commons-logging.jar is located. 
It is perhaps at some position where it should not be.

There is a bug report for this exact issue in the Apache bug database, 
but interestingly it is marked RESOLVED. I should reopen that again.

Regards,
Volker

Dan Payne wrote:

Thanks for the response, Charlie, but it appears our problems are actuall
different.  I went ahead and tried the solutions prescribed to Volker but to
no avail.  It appears, by looking at the local_host log, that the package is
being found, and the classes loaded no problem.

The only thing that is different between my webapps where an exception is
not throw and is thrown is that the ones that don't throw the exception are
a part of the original tomcat install and the ones that do throw the
exception reside within additional tomcat instances, using the CATALINA_BASE
env. variable.

-Dan

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 3:38 PM
To: 'Tomcat Users List'
Subject: RE: Exception starting filter Security Filter


someone else had this problem a last week.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html

Charlie

  

-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:56 PM
To: [EMAIL PROTECTED]
Subject: Exception starting filter Security Filter


I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
sourceforge.net, which is a pseudo container managed
JDBC/MySQL security
realm. it's all running on win2000. i've also upgraded my
commons-logging to
1.0.2 to see if that helps, but to no avail (although it did
change the
stack trace).


Here's the problem: it works fine when i deploy it in
%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app
in a tomcat
instance, for example %CATALINA_BASE\webapps\ROOT, an
exception is thrown
when I try to boot up the tomcat instance. It apears in the
localhost log,
whose excerpt follows: (additionaly, it may be a problem with the
commons-logging. if anyone can tell, please let me know and
i'll readress
the issue with the appropriate party)

Thanks, all.

-Dan


2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class
repositories to
work directory C:\contexts\sotx\work\Standalone\localhost\manager
2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 12:16:34 StandardManager[/manager]: Seeding of
random number
generator has been completed
2002-10-09 12:16:34 ContextConfig[/manager]: Added
certificates - request
attribute Valve
2002-10-09 12:16:34 ContextConfig[/manager]: Configured an
authenticator for
method BASIC
2002-10-09 12:16:35 StandardWrapper[/manager:default]:
Loading container
servlet default
2002-10-09 12:16:35 default: init
2002-10-09 12:16:35 StandardWrapper[/manager:invoker]:
Loading container
servlet invoker
2002-10-09 12:16:35 invoker: init
2002-10-09 12:16:35 jsp: init
2002-10-09 12:16:35 WebappLoader[]: Deploying class
repositories to work
directory C:\contexts\sotx\work\Standalone\localhost\_
2002-10-09 12:16:35 WebappLoader[]: Deploy JAR
/WEB-INF/lib/adrotate.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\adrotate.jar
2002-10-09 12:16:35 WebappLoader[]: Deploy JAR
/WEB-INF/lib/catalina.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\catalina.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR

Re: Mailing List

2002-10-10 Thread Kwok Peng Tuck

You can search the mailman archive on the web, or ask someone about a 
particular thread.
cheers.


Bala wrote:

I missed a mail from Tomcat Users list. Where and how
can i find it? (Mailing List)

=
One important key to success is self-confidence. 
 An important key to self-confidence is preparation

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


  




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




AW: Tomcat SSL - Changing URL https to http

2002-10-10 Thread Ralph Einfeldt


security-constraint
  web-resource-collection
web-resource-nameSecure Portion Of The Site/web-resource-name
  url-pattern/importantData.html/url-pattern
  /web-resource-collection
  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

 -Ursprüngliche Nachricht-
 Von: Frédéric LE MAISTRE [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 10. Oktober 2002 10:04
 An: [EMAIL PROTECTED]
 Betreff: Tomcat SSL - Changing URL https to http
 
 This page has the following URL : 
 https://localhost:8443/importantData.html
 We only have to change manually the URL with 
 http://localhost:8080/importantData.html to avoid the SSL connection?

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




AW: Too Many Sessions!

2002-10-10 Thread Power-Netz \(Schwarz\)

 
  I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been 
  watching my logs and I'm noticing a lot of sessions being 
  created for no apparent reason when there is no user activity 
  on the system and no activity (as far as I can tell) in my 
  servlet. Here's a sample from the logs...

Do you have a Browser open that loads a META-REFRESH Page timeout 60s ?

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




AW: Tomcat SSL - Changing URL https to http

2002-10-10 Thread Ralph Einfeldt

Forgot to mention that this belongs in web.xml.

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt 
 Gesendet: Donnerstag, 10. Oktober 2002 10:29
 An: Tomcat Users List
 Betreff: AW: Tomcat SSL - Changing URL https to http
 
 security-constraint
   web-resource-collection
 web-resource-nameSecure Portion Of The Site/web-resource-name
   url-pattern/importantData.html/url-pattern
   /web-resource-collection
   user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint
 
  -Ursprüngliche Nachricht-
  Von: Frédéric LE MAISTRE [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 10:04
  An: [EMAIL PROTECTED]
  Betreff: Tomcat SSL - Changing URL https to http
  
  This page has the following URL : 
  https://localhost:8443/importantData.html
  We only have to change manually the URL with 
  http://localhost:8080/importantData.html to avoid the SSL 
 connection?
 

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




Re: JSDK 1.3 or 1.4 on FreeBSD 4.1.1 - must I compile it?

2002-10-10 Thread sonam singh

u can install the jdk1.3.1 from the ports
/usr/ports/java/jdk13 it will get the source and
recompile  install  it . do not use jdk1.4 because it
comes with hotsopt JVM which is not compatible with
FreeBSD and do not try to run jdk1.4 with tomcat4x use
jdk1.3 as mentioned.

regards
Sonam Singh

--- Nicholas Pappas [EMAIL PROTECTED] wrote:
 Thanks for the reply - I'll try it out!
 Best,
 Nick
 
 Malachi de AElfweald wrote:
 
  I am currently using
 /usr/ports/java/linux-sun-jdk14 on my FreeBSD 4.6
 
  10/9/2002 3:01:05 PM, Nicholas Pappas
 [EMAIL PROTECTED] wrote:
 
  Hello,
  I want to install the JSDK 1.3 or 1.4 on Free BSD
 4.1.1 in order to get
  Tomcat 4.1 there, too. Now, I've searched the sun
 site and it appears
  that they don't have binaries for FreeBSD. I see
 some places suggest
  they used binaries for Solaris; I've found one
 good link that recommends
  another approach: getting the source for the jdsk
 and recompiling it on
  FreeBSD
 

(http://www.freebsd.org/doc/en_US.ISO8859-1/articles/java-tomcat/x35.html).
  Recompiling it is not a great option for me given
 my hosting situation
  and I'd like to avoid it if possible. Can I use
 Solaris binaries? Are
  there FreeBSD jsdk binaries I'm missing
 somewhere?
  
  Thanks for any assistance!
  Best,
  Nick
  
  
  --
  Nicholas Pappas
  
  
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
  
 
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 Nicholas Pappas
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: Regarding tomcat access logs !!

2002-10-10 Thread sonam singh

check the logger tag in the server.xml and look at
docs of the tomcat
regards
Sonam Singh
--- [EMAIL PROTECTED] wrote:
 
 Hi All,
 
   Entires in my Tomcat access logs in  logs 
 directory  are like
 
   127.0.0.1 - - [26/Aug/2002:16:22:53
 5050] GET /index.html
 HTTP/1.1 304 -
 
   How can I find out what is logged after
 Remote_IP  or what
 information  5050 is giving?
   Can any body tell me where the changes are to
 be made to reset the
 values in this entry. For example if I want to log
 USER AGENT as well.
 
   By default it is also creating a new Text file
 daily for access logs
 for eg.
 localhost_access_log.2002-10-09.txt
 localhost_access_log.2002-10-10.txt
 localhost_access_log.2002-10-11.txt
 
   Can I configure tomcat to write to same access
 log (Single file)
 rather than creating new log file daily ?
   Are there any defined standards followed while
 writing to acess log
 files by different commercial containers available
 in the market?
 
 
   Thanks in advance.
 
 Warm regards,
 Raj
 
 
 
 

**
 Have you checked our new corporate website at 
 http://www.sgib.com ?
 
 The information contained herein is confidential and
 is intended solely
 for the addressee(s).  It shall not be construed as
 a recommendation to
 buy or sell any security.  Any unauthorized access,
 use, reproduction,
 disclosure or dissemination is prohibited.
 Neither SGIB nor any of its subsidiaries or
 affiliates
 shall assume any legal liability or responsibility
 for any incorrect,
 misleading or altered information contained herein.

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


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: JSDK 1.3 or 1.4 on FreeBSD 4.1.1 - must I compile it?

2002-10-10 Thread Nicholas Pappas

Thanks Sonam, I really appreciate it.

Best regards,
Nick

sonam singh wrote:

 u can install the jdk1.3.1 from the ports
 /usr/ports/java/jdk13 it will get the source and
 recompile  install  it . do not use jdk1.4 because it
 comes with hotsopt JVM which is not compatible with
 FreeBSD and do not try to run jdk1.4 with tomcat4x use
 jdk1.3 as mentioned.

 regards
 Sonam Singh

 --- Nicholas Pappas [EMAIL PROTECTED] wrote:
  Thanks for the reply - I'll try it out!
  Best,
  Nick
 
  Malachi de AElfweald wrote:
 
   I am currently using
  /usr/ports/java/linux-sun-jdk14 on my FreeBSD 4.6
  
   10/9/2002 3:01:05 PM, Nicholas Pappas
  [EMAIL PROTECTED] wrote:
  
   Hello,
   I want to install the JSDK 1.3 or 1.4 on Free BSD
  4.1.1 in order to get
   Tomcat 4.1 there, too. Now, I've searched the sun
  site and it appears
   that they don't have binaries for FreeBSD. I see
  some places suggest
   they used binaries for Solaris; I've found one
  good link that recommends
   another approach: getting the source for the jdsk
  and recompiling it on
   FreeBSD
  
 
 (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/java-tomcat/x35.html).
   Recompiling it is not a great option for me given
  my hosting situation
   and I'd like to avoid it if possible. Can I use
  Solaris binaries? Are
   there FreeBSD jsdk binaries I'm missing
  somewhere?
   
   Thanks for any assistance!
   Best,
   Nick
   
   
   --
   Nicholas Pappas
   
   
   
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
   
   
   
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  Nicholas Pappas
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com

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

--
Nicholas Pappas



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




Re: Tomcat SSL - Changing URL https to http

2002-10-10 Thread Frédéric LE MAISTRE

thanks very much. does CONFIDENTIAL a keyword?

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 10:34 AM
Subject: AW: Tomcat SSL - Changing URL https to http


Forgot to mention that this belongs in web.xml.

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt
 Gesendet: Donnerstag, 10. Oktober 2002 10:29
 An: Tomcat Users List
 Betreff: AW: Tomcat SSL - Changing URL https to http

 security-constraint
   web-resource-collection
 web-resource-nameSecure Portion Of The Site/web-resource-name
   url-pattern/importantData.html/url-pattern
   /web-resource-collection
   user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint

  -Ursprüngliche Nachricht-
  Von: Frédéric LE MAISTRE [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 10:04
  An: [EMAIL PROTECTED]
  Betreff: Tomcat SSL - Changing URL https to http
 
  This page has the following URL :
  https://localhost:8443/importantData.html
  We only have to change manually the URL with
  http://localhost:8080/importantData.html to avoid the SSL
 connection?


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




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




Classpath

2002-10-10 Thread jaicey ouseph

Hello Sir,

I am using Tomcat 4.0. I have some database driver class in a some
specific directory say d:\driver. I have set my classpath to that
directory. I can start tomcat in 2 ways
*   Through startup.bat which calls setclasspath.bat where u can
specify your classpath setting.
*   Through bootstrap.

By setting the classpath in setclasspath.bat works only if I start
Tomcat 4.0 using startup.bat. But how do I set my classpath if I want to
start Tomcat using bootstrap.

Waiting desperately for your answer.

Thanx in advance.
Byee


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




RE: Classpath

2002-10-10 Thread Galbayar

control Panel-System-Advanced-Environment Variables

-Original Message-
From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 6:00 PM
To: [EMAIL PROTECTED]
Subject: Classpath


Hello Sir,

I am using Tomcat 4.0. I have some database driver class in a some
specific directory say d:\driver. I have set my classpath to that
directory. I can start tomcat in 2 ways
*   Through startup.bat which calls setclasspath.bat where u can
specify your classpath setting.
*   Through bootstrap.

By setting the classpath in setclasspath.bat works only if I start
Tomcat 4.0 using startup.bat. But how do I set my classpath if I want to
start Tomcat using bootstrap.

Waiting desperately for your answer.

Thanx in advance.
Byee


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



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




Tomcat 4.0.6 with JIKES 1.17

2002-10-10 Thread christophe . baroin

Hello, 

I would like to test Tomcat 4.0.6 with Jikes 1.17. 
I know that the file should be modified $TOMCAT \conf\web.xml but 
I tested that does not walk 

would somebody have an example ? 

Thank you in advance, 

greetings 

Salutations,

Christophe BAROIN
JP Services 
16, Rue de Moronval 
28100 DREUX 

Tél.   : 02.37.38.92.12
Fax   : 02.37.42.87.58
E Mail :[EMAIL PROTECTED]
Visiter notre site sur http://www.jpservices.fr


RE: Classpath

2002-10-10 Thread jaicey ouseph

Hi,
Thanks for your response. But I have already set the environment
variables. When I open dos prompt usng 'cmd' and I type echo
%classpath%, I get the entire classpath setting which include s the
drivers path. But all in vain.

Waiting desperately for your answer.

Thanx in advance.
Byee

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:47 PM
To: Tomcat Users List
Subject: RE: Classpath


control Panel-System-Advanced-Environment Variables

-Original Message-
From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 6:00 PM
To: [EMAIL PROTECTED]
Subject: Classpath


Hello Sir,

I am using Tomcat 4.0. I have some database driver class in a some
specific directory say d:\driver. I have set my classpath to that
directory. I can start tomcat in 2 ways
*   Through startup.bat which calls setclasspath.bat where u can
specify your classpath setting.
*   Through bootstrap.

By setting the classpath in setclasspath.bat works only if I start
Tomcat 4.0 using startup.bat. But how do I set my classpath if I want to
start Tomcat using bootstrap.

Waiting desperately for your answer.

Thanx in advance.
Byee


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



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

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




nt service source code

2002-10-10 Thread Ilya Khandamirov

Hi,
 
Is the source code of Tomcat's Windows NT/2000/XP Service open? I cannot
find something i can start playing with. I'd be thankful for any kind of
Information/Links.
 
 
Regards,
Ilya
 



JMX support in Tomcat

2002-10-10 Thread Raj Saini

Hi,

There is JMX Mbean support in Tomcat 4.1.12. In the tomcat logs I see 
the MBean Server created.

Does some have idea where this server listens for requests? Is there any 
  HTML adapter for JMX included with tomcat?

Thanks,

Raj Saini


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




AW: Tomcat SSL - Changing URL https to http

2002-10-10 Thread Ralph Einfeldt

Sorry, but I  didn't understand this question.

To learn more about this topic you might have 
a look at:
http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html?page=2
http://kb.atlassian.com/content/orion/docs/deployment/web.xml.html

or the servlet spec 2.3 at
http://java.sun.com/products/servlet/download.html#specs


 -Ursprüngliche Nachricht-
 Von: Frédéric LE MAISTRE [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 10. Oktober 2002 10:50
 An: Tomcat Users List
 Betreff: Re: Tomcat SSL - Changing URL https to http
 
 
 thanks very much. does CONFIDENTIAL a keyword?
 
 - Original Message -
 From: Ralph Einfeldt [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, October 10, 2002 10:34 AM
 Subject: AW: Tomcat SSL - Changing URL https to http
 
 

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




Problems changing from Tomcat 3.2.2 to Tomcat 4.0.5

2002-10-10 Thread Jorge Cambra


  Hello,

  I have programmed some web services that run okay in my Tomcat 3.2.2.
Then, I have installed in a different directory Tomcat 4.0.5 and installed
everything to get my services working exactly with the same configuration
that with my Tomcat 3.2.2 (same libraries, same classpath, ...). SOAP seems
to work fine, because some of the soap samples work fine, but not my
application. I'm using SOAP v2.3.1.

  In my Tomcat 4.0.5 I changed the setclasspath.bat file to modify the
Tomcat classpath like:

set
APP_LIBS=%BASEDIR%\common\lib\app\soap-services.jar;%BASEDIR%\common\lib\app\utilCore.jar;%BASEDIR%\common\lib\app\coreCommon.jar
set
SOAP_LIBS=%BASEDIR%\common\lib\ext\xerces.jar;%BASEDIR%\common\lib\ext\activation.jar;%BASEDIR%\common\lib\ext\mail.jar
set CLASSPATH=%SOAP_LIBS%;%APP_LIBS%;%JAVA_HOME%\lib\tools.jar


  Then, from the client that invokes the services I get the following error:

Executing service...
CALL before the call...[Header=null]
[methodName=consultaPeticionManosEnviadas]
[targetObjectURI=urn:ServiciosManosPruebaEjemplo]
[encodingStyleURI=http://schemas.xmlsoap.org/soap/encoding/]
[SOAPContext=[Parts={}]] [Params={[[name=container] [type=class
javax.activation.DataHandler] [value=javax.activation.DataHandler@65855a]
[encodingStyleURI=null]]}]

After the call: [Header=null] [methodName=null] [targetObjectURI=null]
[encodingStyleURI=null] [SOAPContext=[Parts={[cid:null type: text/xml;
charset=utf-8enc: null]}]] [fault=[Attributes={}]
[faultCode=SOAP-ENV:Server] [faultString=Exception from service object:
org/apache/soap/util/mime/ByteArrayDataSource]
[faultActorURI=/soap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]]
[Params={}]
There was an error: [Attributes={}] [faultCode=SOAP-ENV:Server]
[faultString=Exception from service object:
org/apache/soap/util/mime/ByteArrayDataSource]
[faultActorURI=/soap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]
Exception in thread main java.lang.NullPointerException
at
empresa.manosPrueba.soap.services.ClienteSOAPEjemplo.main(ClienteSOAPEjemplo.java:145)


  I'm using a service that returns text information in a DataHandler. The
service fails aroud the code lines:

DataSource ds = new ByteArrayDataSource(textInformation, text/xml);
DataHandler dh = new DataHandler(ds);
return dh;

  Because of the fault string
(org/apache/soap/util/mime/ByteArrayDataSource) I tried to add soap.jar to
the Tomcat 4.0.5 classpath, and then the rpcrouter servlet stops working.

  Does anybody have any idea of why my application that works fine with
Tomcat 3.2.2 doesn't work with Tomcat 4.0.5?

  Do I have to include soap.jar in the web application classpath?
  Any help would be really appreciated.
  Jorge

The servlet exception is:

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Error allocating a servlet instance
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:659)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at

RE: Classpath

2002-10-10 Thread Cox, Charlie

tomcat doesn't use the classpath. put your jar in your webapp's lib dir
(myapp/WEB-INF/lib) or in the common dir(/common/lib). You probably want
them in the common lib so that the database drivers are shared between all
webapps.

see the classloader doc for more info on how these directories are used.

Charlie

 -Original Message-
 From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 5:23 AM
 To: Tomcat Users List
 Subject: RE: Classpath
 
 
 Hi,
 Thanks for your response. But I have already set the environment
 variables. When I open dos prompt usng 'cmd' and I type echo
 %classpath%, I get the entire classpath setting which include s the
 drivers path. But all in vain.
 
 Waiting desperately for your answer.
 
 Thanx in advance.
 Byee
 
 -Original Message-
 From: Galbayar [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 1:47 PM
 To: Tomcat Users List
 Subject: RE: Classpath
 
 
 control Panel-System-Advanced-Environment Variables
 
 -Original Message-
 From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 6:00 PM
 To: [EMAIL PROTECTED]
 Subject: Classpath
 
 
 Hello Sir,
 
 I am using Tomcat 4.0. I have some database driver class in a some
 specific directory say d:\driver. I have set my classpath to that
 directory. I can start tomcat in 2 ways
 * Through startup.bat which calls setclasspath.bat where u can
 specify your classpath setting.
 * Through bootstrap.
 
 By setting the classpath in setclasspath.bat works only if I start
 Tomcat 4.0 using startup.bat. But how do I set my classpath 
 if I want to
 start Tomcat using bootstrap.
 
 Waiting desperately for your answer.
 
 Thanx in advance.
 Byee
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




LoadBalancing with session problem

2002-10-10 Thread Edmond Wong


Hi all,

I'm new to loadbalancing with apache and tomcat. I setting up the 2 apache and 4 
tomcat for loadbalancing environment. I experience that during some heavy workload. 
The request will be forward to the wrong tomcat instance even the worker name are 
appended to the sessionId (eg.greuiog.workerName)

my config is
Apache 1.3.26 Win32 on win2000 
Tomcat 3.2.2 Win32
Mod_JK
mod_ssl 2.8.10
open_ssl 0.9.6d

thx for advance

Edmond

==
¦Ü´L°¸¹³¹aÁn¿ïÁ|¡Ghttp://sms.sina.com.hk/ringtone/



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




RE: Tomcat IIS HowTo - with Tomcat 4?

2002-10-10 Thread mburgess

Tomcat 4 definitely works with IIS although I didn't use the installer
program I just got the zip and unzipped it into a directory such as
C:\javaapps\jakarta-tomcat-4.0.5.

-Original Message-
From: Richard Katz [mailto:[EMAIL PROTECTED]] 
Posted At: Thursday, 10 October 2002 7:08 AM
Posted To: Tomcat
Conversation: Tomcat IIS HowTo - with Tomcat 4?
Subject: Tomcat IIS HowTo - with Tomcat 4?


Does this just not work with Tomcat 4.0?  I've followed all the steps
but I still get a down red arrow instead of an up green one on the
IIS MMC for the jakarta filter.

Questions - about quotes:

Tomcat 4 normally installs in 
C:\Program Files\Apache Tomcat 4.0 which is where I installed it.

Unfprtunately, this offers the registry, the MMC, and the
workers.properties numerous opportunities to mis-handle quotes.  

For instance in the registry:
Should there be quotes around
log_file value:
C:\Program Files\Apache Tomcat 4.0\logs\isapi.log

I've tried it both ways - no luck.

In MMC:
The Virtual directory does not seem to want quotes.  It browses
correctly when given C:\Program Files\Apache Tomcat 4.0\bin\win32\i386

The filter executable can be specified as
C:\Program Files\Apache Tomcat 4.0\bin\win32\i386\isapi_redirect.dll 

Neither require quotes.

If Tomcat 4 is supposed to work with IIS, I'll move it to a different
directory so that the quote question goes away and try again. 

Otherwise, I'll go back to Tomcat 3.x

Thanks,

Rich Katz

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


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




instalacao do tomcat

2002-10-10 Thread mariangelafirmino

Estou instalando o tomcat, tive sucesso ate a instalacao
do mesmo, porém estou tendo problemas ao digitar um
exemplo e visualiza-lo, tem algo a ver com configuraçao
de server.xml. Já instalei tambem o kit SDK. Estou
seguindo o livro JSP - Francisco B.Junior, da editora
Erica. Fiz todos os passos corretamente, mas nao estou
tendo exito. Por favor, se possivel me de um retorno.

Obrigada.

Mariangela.

Obs: Estou enviando parte do codigo da configuracao do
server.xml.
!-- Tomcat Root Context --
!--
  Context path= docBase=ROOT debug=0/
--

!-- Tomcat Manager Context --
Context path=/manager docBase=manager
 debug=0 privileged=true/

!-- Tomcat Examples Context --
Context path=/examples docBase=examples
debug=0
 reloadable=true
  Logger
className=org.apache.catalina.logger.FileLogger
 prefix=localhost_examples_log.
suffix=.txt
  timestamp=true/
  Ejb   name=ejb/EmplRecord type=Entity
 home=com.wombat.empl.EmployeeRecordHome
   remote=com.wombat.empl.EmployeeRecord/
  !-- PersistentManager: Uncomment the section
below to test Persistent
   Sessions.

   saveOnRestart: If true, all active
sessions will be saved
 to the Store when Catalina is shutdown,
regardless of
 other settings. All Sessions found in
the Store will be
 loaded on startup. Sessions past their
expiration are
 ignored in both cases.
   maxActiveSessions: If 0 or greater, having
too many active
 sessions will result in some being
swapped out. minIdleSwap
 limits this. -1 means unlimited sessions
are allowed.
 0 means sessions will almost always be
swapped out after
 use - this will be noticeably slow for
your users.
   minIdleSwap: Sessions must be idle for at
least this long
 (in seconds) before they will be swapped
out due to
   maxActiveSessions. This avoids thrashing
when the site is
 highly active. -1 or 0 means there is no
minimum - sessions
 can be swapped out at any time.
   maxIdleSwap: Sessions will be swapped out
if idle for this
 long (in seconds). If minIdleSwap is
higher, then it will
 override this. This isn't exact: it is
checked periodically.
 -1 means sessions won't be swapped out
for this reason,
 although they may be swapped out for
maxActiveSessions.
 If set to = 0, guarantees that all
sessions found in the
 Store will be loaded on startup.
   maxIdleBackup: Sessions will be backed up
(saved to the Store,
 but left in active memory) if idle for
this long (in seconds),
 and all sessions found in the Store will
be loaded on startup.
 If set to -1 sessions will not be backed
up, 0 means they
 should be backed up shortly after being
used.

   To clear sessions from the Store, set
maxActiveSessions, maxIdleSwap,
   and minIdleBackup all to -1, saveOnRestart
to false, then restart
   Catalina.
  --
  !--
  Manager
className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager
  --
  Environment name=maxExemptions
type=java.lang.Integer
  value=15/
  Parameter name=context.param.name
value=context.param.value
 override=false/
  Resource name=jdbc/EmployeeAppDb
auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb

parameternameuser/namevaluesa/value/parameter

parameternamepassword/namevalue/value/parameter

parameternamedriverClassName/name

valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name

valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuelocalhost/value
/parameter
  /ResourceParams
/Context
!-- Inicio da configuracao da aplicacao testes
no servidor Tomcat --
Context path=/testes docBase=testes
debug=0 reloadable=true
defaultionSessionTimeOut=30
isWARExpanded=true isWARValidated=false
isInvokerEnabled=true
isWorkDirPersistent=false/

Cannot load JDBC driver class 'null'

2002-10-10 Thread Ulrik Andersen

Hi,

I am using Tomcat 4.1.12 and trying to use the JNDI service to get a
database connection.

My code looks like this:
  Context ctx = new InitialContext();
  Object o = ctx.lookup(java:comp/env/jdbc/WebsydianTest);
  DataSource ds = (DataSource) o;
  Connection conn = ds.getConnection();

The last statement results in the following exception:
java.sql.SQLException: Cannot load JDBC driver class 'null'

Having debugged a little bit I have found out that it seems that the
returned DataSource object is not initialized with any of the parameters in
the server.xml file. I used the following code to verify this:
 org.apache.commons.dbcp.BasicDataSource bds =
(org.apache.commons.dbcp.BasicDataSource) ds;
 out.println(pMax active:  + bds.getMaxActive() + /p);
 out.println(pMax idle:  + bds.getMaxIdle() + /p);
 out.println(pMax wait:  + bds.getMaxWait() + /p);
 out.println(pUser:  + bds.getUsername() + /p);
 out.println(pPassword:  + bds.getPassword() + /p);

What am I doing wrong? I have searched the archive and I can see that I am
not the only one getting this error message, but none of the solutions seems
to have something to do with that the parameters are not loaded from the
server.xml file.

My server.xml file looks like this:
Server className=org.apache.catalina.core.StandardServer debug=0
port=8005 shutdown=SHUTDOWN
...
  GlobalNamingResources
...
Resource auth=Container name=jdbc/WebsydianTest
type=javax.sql.DataSource/
ResourceParams name=jdbc/WebsydianTest
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:odbc:Websydiantest/value
  /parameter
  parameter
namevalidationQuery/name
valueselect * from AA1T/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
namemaxActive/name
value10/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
nameuser/name
valuedba/value
  /parameter
  parameter
nameusername/name
valuedba/value
  /parameter
  parameter
namepassword/name
valuesql/value
  /parameter
/ResourceParams
  /GlobalNamingResources
...
/server


My web-inf/web.xml file looks like this:
web-app
...
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/WebsydianTest/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

Any help will be appreciated.
Ulrik

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




RE: setting the verbosity level of stderr/stdout?

2002-10-10 Thread Christine . Just

all the debug attributes in my server.xml are set to 0, and all the
loggers have the verbosity-level set to warning (2). I still keep getting
information-level outputs in my stderr.log, coming from the SSL-connector
(coyote set to port 443) when a request is redirected from HTTP to HTTPS.

Chris
*** 
Christine Just 
Infineon Technologies AG 
IT CRP BI MIP / Projekt Balanced Scorecard 
* +49 (89) 234 28690 
* +49 (89) 234 715468 
* mailto:[EMAIL PROTECTED] 



-Original Message-
From: Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 5:27 PM
To: Tomcat Users List
Subject: RE: setting the verbosity level of stderr/stdout?



Look in the Tomcat Manual regarding the server.xml file.  The server.xml
file is located in $CATALINA_HOME/conf folder and most entries in the xml
file, such as server, engine, etc. allow for a debug=n attribute.  The
higher the value of n, the more verbose the output.  A value of 0 indicates
no logging.

Again, this information is fully documented in the Tomcat docs.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

-Mike


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 9:47 AM
To: [EMAIL PROTECTED]
Subject: setting the verbosity level of stderr/stdout?


Hi,

I'm running Tomcat 4.0.6 standalone as service on a nt4 box. Is there a way
of explicitly setting the verbosity level for the stderr and stdout logs?
Any help is greatly appreciated.

regards,
Christine

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


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

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




Tomcat 4.0.6 with JIKES 1.17

2002-10-10 Thread christophe . baroin

Hello, 

I would like to test Tomcat 4.0.6 with Jikes 1.17. 
I know that the file should be modified $TOMCAT \conf\web.xml but 
I tested that does not walk 

would somebody have an example ? 

Thank you in advance, 

greetings 

Salutations,

Christophe BAROIN
JP Services 
16, Rue de Moronval 
28100 DREUX 

Tél.   : 02.37.38.92.12
Fax   : 02.37.42.87.58
E Mail :[EMAIL PROTECTED]
Visiter notre site sur http://www.jpservices.fr


Re: instalacao do tomcat

2002-10-10 Thread Felipe Schnack

  Messages to this list must be written in english, Mariangela.
  The default tomcat installation have examples running. You tried to
start it using the appropriate icon in star tmenu and pointing your
browser to http://localhost:8080/ 

On Wed, 2002-10-09 at 21:51, mariangelafirmino wrote:
 Estou instalando o tomcat, tive sucesso ate a instalacao 
 do mesmo, porém estou tendo problemas ao digitar um 
 exemplo e visualiza-lo, tem algo a ver com configuraçao 
 de server.xml. Já instalei tambem o kit SDK. Estou 
 seguindo o livro JSP - Francisco B.Junior, da editora 
 Erica. Fiz todos os passos corretamente, mas nao estou 
 tendo exito. Por favor, se possivel me de um retorno.
 
 Obrigada.
 
 Mariangela.
 
 Obs: Estou enviando parte do codigo da configuracao do 
 server.xml.
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 
 !-- Tomcat Manager Context --
 Context path=/manager docBase=manager 
  debug=0 privileged=true/
 
 !-- Tomcat Examples Context --
 Context path=/examples docBase=examples 
 debug=0
  reloadable=true
   Logger 
 className=org.apache.catalina.logger.FileLogger
  prefix=localhost_examples_log. 
 suffix=.txt
 timestamp=true/
   Ejb   name=ejb/EmplRecord type=Entity
  home=com.wombat.empl.EmployeeRecordHome
remote=com.wombat.empl.EmployeeRecord/
   !-- PersistentManager: Uncomment the section 
 below to test Persistent 
  Sessions.
  
saveOnRestart: If true, all active 
 sessions will be saved
  to the Store when Catalina is shutdown, 
 regardless of
  other settings. All Sessions found in 
 the Store will be 
  loaded on startup. Sessions past their 
 expiration are
  ignored in both cases.
maxActiveSessions: If 0 or greater, having 
 too many active 
  sessions will result in some being 
 swapped out. minIdleSwap
  limits this. -1 means unlimited sessions 
 are allowed.
  0 means sessions will almost always be 
 swapped out after
  use - this will be noticeably slow for 
 your users.
minIdleSwap: Sessions must be idle for at 
 least this long
  (in seconds) before they will be swapped 
 out due to 
maxActiveSessions. This avoids thrashing 
 when the site is 
  highly active. -1 or 0 means there is no 
 minimum - sessions
  can be swapped out at any time.
maxIdleSwap: Sessions will be swapped out 
 if idle for this
  long (in seconds). If minIdleSwap is 
 higher, then it will
  override this. This isn't exact: it is 
 checked periodically.
  -1 means sessions won't be swapped out 
 for this reason,
  although they may be swapped out for 
 maxActiveSessions.
  If set to = 0, guarantees that all 
 sessions found in the
  Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up 
 (saved to the Store,
  but left in active memory) if idle for 
 this long (in seconds), 
  and all sessions found in the Store will 
 be loaded on startup.
  If set to -1 sessions will not be backed 
 up, 0 means they
  should be backed up shortly after being 
 used.
 
To clear sessions from the Store, set 
 maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart 
 to false, then restart 
Catalina.
   --
 !--
   Manager 
 className=org.apache.catalina.session.PersistentManager
   debug=0
   saveOnRestart=true
   maxActiveSessions=-1
   minIdleSwap=-1
   maxIdleSwap=-1
   maxIdleBackup=-1
 Store 
 className=org.apache.catalina.session.FileStore/
   /Manager
 --
   Environment name=maxExemptions 
 type=java.lang.Integer
   value=15/
   Parameter name=context.param.name 
 value=context.param.value
  override=false/
   Resource name=jdbc/EmployeeAppDb 
 auth=SERVLET
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/EmployeeAppDb
 
 parameternameuser/namevaluesa/value/parameter
 
 parameternamepassword/namevalue/value/parameter
 
 parameternamedriverClassName/name
   
 valueorg.hsql.jdbcDriver/value/parameter
 parameternamedriverName/name
   
 valuejdbc:HypersonicSQL:database/value/parameter
   /ResourceParams
   Resource name=mail/Session 

RE: Tomcat IIS HowTo - with Tomcat 4?

2002-10-10 Thread Miguel Angel Mulero Martinez


Does this just not work with Tomcat 4.0?  I've followed all the steps
but I still get a down red arrow instead of an up green one on the
IIS MMC for the jakarta filter.

Yes, it works. I have it. And with spaces in path.

Questions - about quotes:

Tomcat 4 normally installs in
C:\Program Files\Apache Tomcat 4.0 which is where I installed it.

Unfprtunately, this offers the registry, the MMC, and the
workers.properties numerous opportunities to mis-handle quotes.

For instance in the registry:
Should there be quotes around
log_file value:
C:\Program Files\Apache Tomcat 4.0\logs\isapi.log

Not, without quotes.

I've tried it both ways - no luck.

In MMC:
The Virtual directory does not seem to want quotes.  It browses
correctly when given C:\Program Files\Apache Tomcat 4.0\bin\win32\i386

The filter executable can be specified as
C:\Program Files\Apache Tomcat 4.0\bin\win32\i386\isapi_redirect.dll

Neither require quotes.

If Tomcat 4 is supposed to work with IIS, I'll move it to a different
directory so that the quote question goes away and try again.

Otherwise, I'll go back to Tomcat 3.x

Thanks,

Rich Katz

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


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


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




RE: Exception starting filter Security Filter

2002-10-10 Thread Cox, Charlie

 -Original Message-
 From: Volker Leidl [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 4:14 AM
 To: Tomcat Users List
 Subject: Re: Exception starting filter Security Filter
 
 
 Hi!
 
 In fact I was wrong in my last post. As I found out later, it did not 
 work. I found a solution for my problem but I am not sure if it also 
 applies to yours, Dan. Sorry for not sharing my knowledge 
 until now, but 
 it did not seem to interest anyone ;)
 

Always post your solution! Unless it's user error. ;) But even then its good
to know that it's resolved.

This way other users can look it up in the archives. In most cases you are
not the only one with the problem, but maybe the first - especially when
integrating other jakarta projects.

Charlie

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




RE: Classpath

2002-10-10 Thread jaicey ouseph

hi Charlie,
Is there no way out wherein I can change any of file to include my
classpath settings. Becoz I don't want to copy my file in in web-inf/lib
or in common/lib. There will be some classpath setting which the
bootstrap must be using. By any way can I modify that Sorry, in case
I am irritating you.

Regards,
Jaicey.


-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 4:53 PM
To: 'Tomcat Users List'
Subject: RE: Classpath


tomcat doesn't use the classpath. put your jar in your webapp's lib dir
(myapp/WEB-INF/lib) or in the common dir(/common/lib). You probably want
them in the common lib so that the database drivers are shared between
all
webapps.

see the classloader doc for more info on how these directories are used.

Charlie

 -Original Message-
 From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 5:23 AM
 To: Tomcat Users List
 Subject: RE: Classpath
 
 
 Hi,
 Thanks for your response. But I have already set the environment
 variables. When I open dos prompt usng 'cmd' and I type echo
 %classpath%, I get the entire classpath setting which include s the
 drivers path. But all in vain.
 
 Waiting desperately for your answer.
 
 Thanx in advance.
 Byee
 
 -Original Message-
 From: Galbayar [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 1:47 PM
 To: Tomcat Users List
 Subject: RE: Classpath
 
 
 control Panel-System-Advanced-Environment Variables
 
 -Original Message-
 From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 6:00 PM
 To: [EMAIL PROTECTED]
 Subject: Classpath
 
 
 Hello Sir,
 
 I am using Tomcat 4.0. I have some database driver class in a some
 specific directory say d:\driver. I have set my classpath to that
 directory. I can start tomcat in 2 ways
 * Through startup.bat which calls setclasspath.bat where u can
 specify your classpath setting.
 * Through bootstrap.
 
 By setting the classpath in setclasspath.bat works only if I start
 Tomcat 4.0 using startup.bat. But how do I set my classpath 
 if I want to
 start Tomcat using bootstrap.
 
 Waiting desperately for your answer.
 
 Thanx in advance.
 Byee
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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

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




RE: Classpath

2002-10-10 Thread Cox, Charlie

no, because it is too easy to have conflicting libraries between tomcat and
the classpath. Therefore tomcat 4.x does not use the classpath. The
bootstrap loads from /jre/lib/ext, but if you are going to put your library
there, then just put it under tomcat instead unless you have a *real* reason
to keep it there.

what's wrong with moving(or copying) the jar to common/lib?

Charlie

 -Original Message-
 From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 7:56 AM
 To: Tomcat Users List
 Subject: RE: Classpath
 
 
 hi Charlie,
 Is there no way out wherein I can change any of file to include my
 classpath settings. Becoz I don't want to copy my file in in 
 web-inf/lib
 or in common/lib. There will be some classpath setting which the
 bootstrap must be using. By any way can I modify that 
 Sorry, in case
 I am irritating you.
 
 Regards,
 Jaicey.
 
 
 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 4:53 PM
 To: 'Tomcat Users List'
 Subject: RE: Classpath
 
 
 tomcat doesn't use the classpath. put your jar in your 
 webapp's lib dir
 (myapp/WEB-INF/lib) or in the common dir(/common/lib). You 
 probably want
 them in the common lib so that the database drivers are shared between
 all
 webapps.
 
 see the classloader doc for more info on how these 
 directories are used.
 
 Charlie
 
  -Original Message-
  From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 10, 2002 5:23 AM
  To: Tomcat Users List
  Subject: RE: Classpath
  
  
  Hi,
  Thanks for your response. But I have already set the environment
  variables. When I open dos prompt usng 'cmd' and I type echo
  %classpath%, I get the entire classpath setting which include s the
  drivers path. But all in vain.
  
  Waiting desperately for your answer.
  
  Thanx in advance.
  Byee
  
  -Original Message-
  From: Galbayar [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 10, 2002 1:47 PM
  To: Tomcat Users List
  Subject: RE: Classpath
  
  
  control Panel-System-Advanced-Environment Variables
  
  -Original Message-
  From: jaicey ouseph [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 10, 2002 6:00 PM
  To: [EMAIL PROTECTED]
  Subject: Classpath
  
  
  Hello Sir,
  
  I am using Tomcat 4.0. I have some database driver class in a some
  specific directory say d:\driver. I have set my classpath to that
  directory. I can start tomcat in 2 ways
  *   Through startup.bat which calls setclasspath.bat where u can
  specify your classpath setting.
  *   Through bootstrap.
  
  By setting the classpath in setclasspath.bat works only if I start
  Tomcat 4.0 using startup.bat. But how do I set my classpath 
  if I want to
  start Tomcat using bootstrap.
  
  Waiting desperately for your answer.
  
  Thanx in advance.
  Byee
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Mailing List

2002-10-10 Thread Shortt, Kevin


Personally, I like to use MARC (Mailing list ARChive) from 
The Aims Group. (now called 10East)
It stores all messages in mySQL and is searchable. It has a nice
browsable interface for viewing by list, thread or author.

http://marc.theaimsgroup.com


The TC list is linked in the Java section and is at:

http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2


I hope this helps.

-k


-Original Message-
From: Bala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 3:33 AM
To: Tomcat Users List
Subject: Mailing List


I missed a mail from Tomcat Users list. Where and how
can i find it? (Mailing List)

=
One important key to success is self-confidence. 
 An important key to self-confidence is preparation

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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

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




RE: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Turner, John


As far as I know, there's nothing that can be done on the sending side.

John


 -Original Message-
 From: Kunal Shah [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 2:16 AM
 To: tomcat user
 Subject: RE: How to validate email address in JSP by using javax.mail?
 
 
 suppose there is an domain xyz.com accepting mails for its
 user
 say there are a, b and c users and administrator which will
 recieve mails for unresolve members
 
 i am sending one mail at [EMAIL PROTECTED] dummy is not valid
 mailbox still the mesg will be delivered to administrator of
 xyz.com. so there will be not send fail exception.
 
 what should be done in this case ?
 
 --kunal
 
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 09, 2002 7:33 PM
  To: 'Tomcat Users List'
  Subject: RE: How to validate email address in JSP
  by using javax.mail?
 
 
 
  Typically, there is no way to validate an email
  address.  For various
  reasons, any mail administrator with half a brain
  turns off the VRFY command
  on their mailserver, which is the only 100%
  guaranteed way to validate an
  email address without sending a message and
  looking for a bounce or other
  error.
 
  Other than that, you can take some precautions on
  the processing end, like
  checking for minimum length, the presence of '@',
  and a valid MX lookup on
  the domain name, and even a valid connection to
  port 25 of the host listed
  in that MX record.  All of that stuff, though, is
  regular Java, with nothing
  to do with javax.mail.
 
  You can always try and send the message, then
  look for SendFailedException,
  but you'd have to do the send first.
 
  John
 
 
   -Original Message-
   From: Jack Li [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 09, 2002 9:54 AM
   To: '[EMAIL PROTECTED]'
   Subject: How to validate email address in JSP
  by using javax.mail?
  
  
   Hi, How to validate email address in JSP by
  using javax.mail?
  
  
  
   Thanks,
  
   Jack Li
  
  
 
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Cannot load JDBC driver class 'null'

2002-10-10 Thread echambe1


Ulrik:

If you are going to use the Global Resources, there are a few changes I
have noted with
the Tomcat 4.1.x.

  You no longer have to  put a ResourceRef tag in the web.xml file
  You need to put a ResourceLink tag within the Context tag of the
application in the server.xml.

Also, if you are putting the database resources in the global resources,
you do not need
to identify the factory to use since Tomcat will automatically default to
the Apache
Commons DBCP.

If you place the databse resource inside the context definition, then you
will have to
define the factory to use if you want DBCP and will have to place a
ResourceRef Tag
in the web.xml

Hope this helps,
Ej




Ulrik Andersen [EMAIL PROTECTED] on 10/10/2002 06:37:39 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:

Subject:Cannot load JDBC driver class 'null'


Hi,

I am using Tomcat 4.1.12 and trying to use the JNDI service to get a
database connection.

My code looks like this:
  Context ctx = new InitialContext();
  Object o = ctx.lookup(java:comp/env/jdbc/WebsydianTest);
  DataSource ds = (DataSource) o;
  Connection conn = ds.getConnection();

The last statement results in the following exception:
java.sql.SQLException: Cannot load JDBC driver class 'null'

Having debugged a little bit I have found out that it seems that the
returned DataSource object is not initialized with any of the parameters in
the server.xml file. I used the following code to verify this:
 org.apache.commons.dbcp.BasicDataSource bds =
(org.apache.commons.dbcp.BasicDataSource) ds;
 out.println(pMax active:  + bds.getMaxActive() + /p);
 out.println(pMax idle:  + bds.getMaxIdle() + /p);
 out.println(pMax wait:  + bds.getMaxWait() + /p);
 out.println(pUser:  + bds.getUsername() + /p);
 out.println(pPassword:  + bds.getPassword() + /p);

What am I doing wrong? I have searched the archive and I can see that I am
not the only one getting this error message, but none of the solutions
seems
to have something to do with that the parameters are not loaded from the
server.xml file.

My server.xml file looks like this:
Server className=org.apache.catalina.core.StandardServer debug=0
port=8005 shutdown=SHUTDOWN
...
  GlobalNamingResources
...
Resource auth=Container name=jdbc/WebsydianTest
type=javax.sql.DataSource/
ResourceParams name=jdbc/WebsydianTest
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:odbc:Websydiantest/value
  /parameter
  parameter
namevalidationQuery/name
valueselect * from AA1T/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
namemaxActive/name
value10/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
nameuser/name
valuedba/value
  /parameter
  parameter
nameusername/name
valuedba/value
  /parameter
  parameter
namepassword/name
valuesql/value
  /parameter
/ResourceParams
  /GlobalNamingResources
...
/server


My web-inf/web.xml file looks like this:
web-app
...
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/WebsydianTest/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

Any help will be appreciated.
Ulrik

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









**
Confidentiality Notice: This email message, including any attachments,
contains or may contain confidential information intended only for the 
addressee.  If you are not an intended recipient of this message, be 
advised that any reading, dissemination, forwarding, printing, copying 
or other use of this message or its attachments is strictly prohibited.  
If you have received this message in error, please notify the sender 
immediately by reply message and delete this email message and any 
attachments from your system. 
**


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




RE: mod_jk crash

2002-10-10 Thread Turner, John


Strange, I could have sworn that was a bug fixed by someone on this list
like 2 months ago, the whole remote host is null issue.

Is there any reason you don't just use the binary available?

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/bin/linux/i386/

John


 -Original Message-
 From: Eugene Gluzberg [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 12:16 AM
 To: Tomcat Users List
 Subject: Re: mod_jk crash
 
 
 Going back to mod_jk version from tomcat_404 worked. I would 
 like to use 
 the JK_1_2_0 version though, so if anyone could help debug it 
 would be 
 great.
 
 I am running on RH 7.2 install.
 
 Eugene Gluzberg wrote:
 
 
  I am running apache 1.3 with mod_jk, my apache has apxs.
 
  I compiled and installed mod_jk from source, tag TOMCAT_4_1_12, 
  configured it using the following options:
  ./configure --with-gnu-ld --with-apxs=/myapxpath/bin/apxs 
  --enable-EAPI --with-java-home=/usr/java/jdk1.3.1
 
  ran make
 
  installed mod_jk into the module directory, loaded fine.
 
 
  I created a virtual host in apache and added the following JkMount:
 
  JkMount /*.jsp wwwuser_wk
 
  My workers.properties looks as follows:
  workers.java_home=/usr/java/jdk1.3.1
  workers.tomcat_home=/var/tomcat4
  worker.list=wwwuser_wk
 
  worker.wwwuser_wk.host=localhost
  worker.wwwuser_wk.port=5266
  worker.wwwuser_wk.type=ajp13
  worker.wwwuser_wk.lbfactor=50
  worker.wwwuser_wk.cachesize=10
  worker.wwwuser_wk.cache_timeout=600
  worker.wwwuser_wk.socket_keepalive=1
  worker.wwwuser_wk.socket_timeout=300
 
 
  I startup apache and tomcat, then i point my browser to 
 xyz.com/index.jsp
 
  I get nothing back on the browser, and the following in error_log
  [notice] child pid 19817 exit signal Segmentation fault (11)
 
  I added debugging code to mod_jk and traced it to the 
 following line 
  in mod_jk.c
s-remote_host  = (char *)ap_get_remote_host(r-connection, 
  r-per_dir_config, REMOTE_HOST);
 
 
  REMOTE_HOST seems to be NULL for that since i printed all the stuff 
  from there.
 
  Please help. How can i trace this further? How do i get apache to 
  generate a core file so i can see where in apache code this is? Any 
  pointers for help here at all?
 
  Eugene
 
 
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Apache Tomcat Security

2002-10-10 Thread Turner, John


Do we get contributing author credit?

John


 -Original Message-
 From: Nilesh Parmar [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 1:56 AM
 To: 'Tomcat Users List '
 Subject: Apache Tomcat Security
 
 
 Hi,
I've been subscribing to the this mailing list from quite 
 a while. I'm
 interested in developing a book on Apache Tomcat security. 
 For a start, here
 is what i've included as a specification for the book. Can 
 anyone please
 give me your valuable suggestions/ideas to make it a better 
 book? I'd like
 to know that exactly the programmer wants so as to make it a 
 great book
 helpfull to all. Here's what i'd like to cover in the book:
 
 Internet Security (SSH, SSL))
 How secure is Tomcat
 Security Manager
 Realms (This chapter should discuss Memory Realms, and JDBC Realms)
 Secure connections with Databases (like MySQL) using SSL
 Secure connections with LDAP using SSL (??)
 
 Thanks in advance.
 Nilesh
 
 
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Using Non-Servlet Timers (Was - I need to run a servlet periodically)

2002-10-10 Thread Kris Schneider

It's also a good idea to use the Timer(boolean) constructor to create the 
associated thread as a daemon. The default constructor doesn't do this.

Quoting Sexton, George [EMAIL PROTECTED]:

 Register a context listener and free the timer in it.
 
 -Original Message-
 From: gautam [mailto:[EMAIL PROTECTED]]
 Sent: 09 October, 2002 9:53 PM
 To: Tomcat Users List
 Subject: Using Non-Servlet Timers (Was - I need to run a servlet
 periodically)
 
 
 Hello,
 
 We are using java.util.Timer objects to periodically run through a few
 object caches and get rid of stale items. Everything works fine. However, I
 can no longer stop Tomcat using the Catalina.bat stop command. I suspect
 that the Timer objects are still alive and are the cause of the problem.
 Any
 ideas on how to fix this ?
 
 The objects we schedule via the timers are not Servlets. They are plain
 vanilla Java classes.
 
 Regards,
 
 Gautam Satpathy
 
 -Original Message-
 From: Rick Fincher [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 12:01 AM
 To: Tomcat Users List
 Subject: Re: I need to run a servlet periodically
 
 
 Hi Filip,
 
 Your servlet can call a class (doesn't have to be a servlet) that sets up a
 java.util.timer to run your code as a timerTask.  The servlet can get
 parameters from the web.xml file (like how often to execute) and pass that
 to your class that controls the timer.
 
 The servlet can pass your class the connection pool info and other needed
 session info.
 
 Rick
 
 - Original Message -
 From: Cato, Christopher [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 09, 2002 9:04 AM
 Subject: SV: I need to run a servlet periodically
 
 
  What you really need to do is to design your periodical servlet to
 implement
  Runnable. Add another servlet that starts the periodical servlet and load
  that servlet during startup. The periodical then does its thing and
 sleeps
  for x amount of time. Then wakes up and so on...
 
  /Christopher
 
  -Ursprungligt meddelande-
  Fran: Raj Saini
  Till: Tomcat Users List
  Skickat: 2002-10-07 23:24
  Amne: Re: I need to run a servlet periodically
 
  To need the servlet run periodically you need a client calling the
  servlet periodically. Make your client to run periodically and it will
  cause the servlet to run.
 
  We can suggest you a solution if you let us know what exactly you want
  your servlet to do.
 
  Raj Saini
  Filip Rachunek wrote:
   Hello,
   is it possible to have a servlet in Tomcat container
   which is invoked automatically each gived time period?
   [e.g. each 10 minutes]  And I would also need this
   special servlet to access other resources of my web
   application [connection pool, ...].
  
   Thanks.
   Filip Rachunek
  
  
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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




Re: Exception starting filter Security Filter

2002-10-10 Thread Volker Leidl



Cox, Charlie wrote:

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 4:14 AM
To: Tomcat Users List
Subject: Re: Exception starting filter Security Filter


Hi!

In fact I was wrong in my last post. As I found out later, it did not 
work. I found a solution for my problem but I am not sure if it also 
applies to yours, Dan. Sorry for not sharing my knowledge 
until now, but 
it did not seem to interest anyone ;)




Always post your solution! Unless it's user error. ;) But even then its good
to know that it's resolved.
  

I totally agree with you. Next time I will try to overcome my laziness ;)

This way other users can look it up in the archives. In most cases you are
not the only one with the problem, but maybe the first - especially when
integrating other jakarta projects.

Charlie
  

Regards,
Volker

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


  



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




RE: Tomcat SSL - Changing URL https to http

2002-10-10 Thread Turner, John


Disable the connector on 8080 in server.xml if you don't want requests going
to that port.

In production, you should only have the connectors enabled that you are
actually using...anything else should be disabled.  Simply comment out the
entry in server.xml and restart Tomcat.

John


 -Original Message-
 From: Frédéric LE MAISTRE [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 4:04 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat SSL - Changing URL https to http
 
 
 I've secure my website with Apache, using the SSL connector.
 But I have a problem : Imagine I have a page with 
 confidential data to send.
 This page has the following URL : 
 https://localhost:8443/importantData.html
 We only have to change manually the URL with 
 http://localhost:8080/importantData.html to avoid the SSL connection?
 It's not very secure.
 please give me a hand
 Thanks
 
 Steph
 

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




RE: Tomcat IIS HowTo - with Tomcat 4?

2002-10-10 Thread Turner, John


It definitely works.  HOWTOs are posted.

http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm

John


 -Original Message-
 From: Richard Katz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 5:08 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat IIS HowTo - with Tomcat 4?
 
 
 Does this just not work with Tomcat 4.0?  I've followed all 
 the steps but I
 still get a down red arrow instead of an up green one on 
 the IIS MMC for
 the jakarta filter.
 
 Questions - about quotes:
 
 Tomcat 4 normally installs in 
 C:\Program Files\Apache Tomcat 4.0 which is where I installed it.
 
 Unfprtunately, this offers the registry, the MMC, and the 
 workers.properties
 numerous opportunities to mis-handle quotes.  
 
 For instance in the registry:
 Should there be quotes around
 log_file value:
 C:\Program Files\Apache Tomcat 4.0\logs\isapi.log
 
 I've tried it both ways - no luck.
 
 In MMC:
 The Virtual directory does not seem to want quotes.  It 
 browses correctly when
 given
 C:\Program Files\Apache Tomcat 4.0\bin\win32\i386
 
 The filter executable can be specified as
 C:\Program Files\Apache Tomcat 4.0\bin\win32\i386\isapi_redirect.dll 
 
 Neither require quotes.
 
 If Tomcat 4 is supposed to work with IIS, I'll move it to a different
 directory so that the quote question goes away and try again. 
 
 Otherwise, I'll go back to Tomcat 3.x
 
 Thanks,
 
 Rich Katz
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Apache Tomcat Security

2002-10-10 Thread Andres Ledesma

Include PostgreSQL  as you did with mySQL

Thanks...

Andrew



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




Re: Apache Tomcat Security

2002-10-10 Thread jcosta


Ditto to the contributing author comment. Looking at your email address,
you're a Wrox guy. Who's the audience for the book? Are you targeting the
developer or the sysadmin?


   

  Nilesh Parmar

  [EMAIL PROTECTED]To:   'Tomcat Users List ' 
[EMAIL PROTECTED]   
  cc: 

   Subject:  Apache Tomcat Security

  10/10/2002 01:55 

  AM   

  Please respond to

  Tomcat Users

  List

   

   





Hi,
   I've been subscribing to the this mailing list from quite a while. I'm
interested in developing a book on Apache Tomcat security. For a start,
here
is what i've included as a specification for the book. Can anyone please
give me your valuable suggestions/ideas to make it a better book? I'd like
to know that exactly the programmer wants so as to make it a great book
helpfull to all. Here's what i'd like to cover in the book:

Internet Security (SSH, SSL))
How secure is Tomcat
Security Manager
Realms (This chapter should discuss Memory Realms, and JDBC Realms)
Secure connections with Databases (like MySQL) using SSL
Secure connections with LDAP using SSL (??)

Thanks in advance.
Nilesh




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








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


Connecting from Tomcat box to JBoss box?

2002-10-10 Thread Mitchell, Edmund

Hello all,

I've got my Apache box talking happily to my Tomcat box, thanks to John
Turner and Pascal Forget's great webpages, but I can't seem to get the
Tomcat box to talk to the JBoss box.

Does anyone have any how-to type info on how to get this connection to
happen?  I've tried everything in both the JBoss and ejb docs I've read, to
no avail.
  
In the post below, Anthony Geoghegan suggests that turning off the Tomcat
JNDI server will work, but I've been up and down the Tomcat JNDI docs, and
seen nothing that looks like an off switch.   Can anyone shed some light on
that?

Thanks for any help

Edmund

.

 -Original Message-
 From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 1:20 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Apache 2, Tomcat,  JBoss configuration
 You have to use remote interfaces and turn off the TOMCAT 
 JNDI server to use
 the JBOSS JNDI server, otherwise it's fine.

 - Original Message -
 From: Jim Haggerty [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, October 08, 2002 5:31 PM
 Subject: Apache 2, Tomcat,  JBoss configuration

  Current versions:
  FreeBSD 4.6.2-RELEASE
  Apache 2.0.42 (although FreeBSD port now has 2.0.43)
  Tomcat 4.0.5
  JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat)

  Apache and Tomcat are getting along fine and I can access 
 deployed webapps
  through the warp connection (Is JK2 preferred over warp?) 
 on both port 80
  and 8080.
 
  JBoss is alive and well on port 8082.
 
  However, virtually ALL the documentation I have found 
 regarding connecting
  the three refers to the JBoss+Tomcat package (modify the 
 server.xml in
  ${JBOSS_HOME}/catalina).  Does anyone have an example of connecting
 Apache -
  Tomcat - JBoss WITHOUT JBoss+Tomcat?


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




RE: Apache Tomcat Security

2002-10-10 Thread Turner, John


And how would this be different from the WROX book(s) already published, as
well as the two books (three if you count JBoss) by Sams?

More often than not, the books available on a given subject are all the
same, regardless of who publishes them.  I went looking for an in-depth
Tomcat + JNDI + JDBC resource in July. Every book I found, from 4 different
publishers, had essentially the same code snippet (approx. 2/3 of one page)
which did nothing but describe a simple JNDI setup, and aside from the
values of the parameters, was identical to the example in the Tomcat docs.
Not worth $50 where I come from, that's for sure.  I think a couple of the
publishers even used the exact same snippet.  I did manage to get a little
more info from a JDBC 3.0 book (about 1.5 pages), but even that was pretty
sparse.

I'd be interested in a book on the topics you listed, but only if it was
demonstrably different than anything else.  Please avoid writing or
publishing a me/us too book.

John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 9:03 AM
 To: Tomcat Users List
 Cc: 'Tomcat Users List '
 Subject: Re: Apache Tomcat Security
 
 
 
 Ditto to the contributing author comment. Looking at your 
 email address,
 you're a Wrox guy. Who's the audience for the book? Are you 
 targeting the
 developer or the sysadmin?
 
 
   
   

   Nilesh Parmar   
   

   [EMAIL PROTECTED]To:   
 'Tomcat Users List ' [EMAIL PROTECTED]   
 
   cc:
   

Subject:  
 Apache Tomcat Security
 
   10/10/2002 01:55
   

   AM  
   

   Please respond to   
   

   Tomcat Users   
   

   List   
   

   
   

   
   

 
 
 
 
 Hi,
I've been subscribing to the this mailing list from quite 
 a while. I'm
 interested in developing a book on Apache Tomcat security. 
 For a start,
 here
 is what i've included as a specification for the book. Can 
 anyone please
 give me your valuable suggestions/ideas to make it a better 
 book? I'd like
 to know that exactly the programmer wants so as to make it a 
 great book
 helpfull to all. Here's what i'd like to cover in the book:
 
 Internet Security (SSH, SSL))
 How secure is Tomcat
 Security Manager
 Realms (This chapter should discuss Memory Realms, and JDBC Realms)
 Secure connections with Databases (like MySQL) using SSL
 Secure connections with LDAP using SSL (??)
 
 Thanks in advance.
 Nilesh
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 

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




RE: Apache Tomcat Security

2002-10-10 Thread Nilesh Parmar

Hi Andrew,
 Why do you think we need to include PostgreSQL? I think MySQL is more
popular than PostgreSQL and is widely used.

thanks,
Nilesh

-Original Message-
From: Andres Ledesma [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 6:32 PM
To: Tomcat Users List
Subject: Re: Apache Tomcat Security


Include PostgreSQL  as you did with mySQL

Thanks...

Andrew



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


--
Peer Information India Pvt Ltd, Mumbai, India



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




RE: Apache Tomcat Security

2002-10-10 Thread Nilesh Parmar

Yes,
The target autience for the book are developers. I'd like to
concenterate on building secure applications.

thanks,
Nilesh.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 6:33 PM
To: Tomcat Users List
Cc: 'Tomcat Users List '
Subject: Re: Apache Tomcat Security



Ditto to the contributing author comment. Looking at your email address,
you're a Wrox guy. Who's the audience for the book? Are you targeting the
developer or the sysadmin?



  Nilesh Parmar
  [EMAIL PROTECTED]To:   'Tomcat Users List
' [EMAIL PROTECTED]
  cc:
   Subject:  Apache Tomcat
Security
  10/10/2002 01:55
  AM
  Please respond to
  Tomcat Users
  List






Hi,
   I've been subscribing to the this mailing list from quite a while. I'm
interested in developing a book on Apache Tomcat security. For a start,
here
is what i've included as a specification for the book. Can anyone please
give me your valuable suggestions/ideas to make it a better book? I'd like
to know that exactly the programmer wants so as to make it a great book
helpfull to all. Here's what i'd like to cover in the book:

Internet Security (SSH, SSL))
How secure is Tomcat
Security Manager
Realms (This chapter should discuss Memory Realms, and JDBC Realms)
Secure connections with Databases (like MySQL) using SSL
Secure connections with LDAP using SSL (??)

Thanks in advance.
Nilesh




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









--
Peer Information India Pvt Ltd, Mumbai, India



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




Tomcat 4.0.6 with JIKES 1.17

2002-10-10 Thread christophe . baroin

Hello, 

I would like to test Tomcat 4.0.6 with Jikes 1.17. 
I know that the file should be modified $TOMCAT \conf\web.xml but 
I tested that does not walk 

would somebody have an example ? 

Thank you in advance, 

greetings 

Salutations,

Christophe BAROIN
JP Services 
16, Rue de Moronval 
28100 DREUX 

Tél.   : 02.37.38.92.12
Fax   : 02.37.42.87.58
E Mail :[EMAIL PROTECTED]
Visiter notre site sur http://www.jpservices.fr


Re: Tomcat SSL - Changing URL https to http

2002-10-10 Thread Frédéric LE MAISTRE

thanks a lot
- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 2:57 PM
Subject: RE: Tomcat SSL - Changing URL https to http



Disable the connector on 8080 in server.xml if you don't want requests going
to that port.

In production, you should only have the connectors enabled that you are
actually using...anything else should be disabled.  Simply comment out the
entry in server.xml and restart Tomcat.

John


 -Original Message-
 From: Frédéric LE MAISTRE [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 4:04 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat SSL - Changing URL https to http


 I've secure my website with Apache, using the SSL connector.
 But I have a problem : Imagine I have a page with
 confidential data to send.
 This page has the following URL :
 https://localhost:8443/importantData.html
 We only have to change manually the URL with
 http://localhost:8080/importantData.html to avoid the SSL connection?
 It's not very secure.
 please give me a hand
 Thanks

 Steph


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




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




RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-10 Thread Shapira, Yoav

Hi,
Wow, what a long message ;)  I don't have time to reply to everything,
but the general answer is: tomcat is a servlet/JSP container at this
point.  Not a J2EE container.  Inter-operating with remote J2EE servers,
at least for us, has proven easy.  We've never used tomcat 3.x, only
4.x, so I can't comment on version differences.

One more comment is that the weblogic.jar distribution is, IMHO, one of
the best examples of how NOT to package things.  You simply got lucky
that it had javax.xml.transform, along with a ton of other things that
don't belong in there.  Just look at the weblogic boards and mailing
lists to see how many times they've been slammed and requested to split
their jar into smaller pieces.  For example, some of our apps only need
to send JMS messages to a remote weblogic server, so we've had to take
out everything non-JMS/JNDI related from the weblogic.jar and repackage
it.

I'm also curious as to what version of the JDK you are using.

1. Should one assume use of the J2EE SDK distribution of Tomcat is
required
for J2EE interoperability, per 2.0 spec? More directly, is it
reasonable to
try to get J2EE interopability with the apache distribution of Tomcat?

No to the first question, yes to the second.  It depends by what you
mean by J2EE interoperability.  Tomcat implements the servlet and JSP
specs, which define very specific facilities (ejb resource definition in
web.xml, etc.) for interaction with the broader J2EE world.  Using
tomcat with the J2EE SDK won't give tomcat any magical features.

2. Why is there no javax.xml.transform implementation inside the apache
Tomcat distribution?

That's not part of tomcat.  It's usually distributed with your parser
(e.g. Crimson or Xerces), or more recently with JDK 1.4.x.

3. For a J2EE container to be interoperable per the spec, would it be
reasonable to assume this means class loading issues inside the
client
container have been tested/addressed?

Yes, and they have been for tomcat.

4. How is one supposed to develop a reasonable plan/approach for J2EE
interoperability? Or is interoperability a bad idea?

I would say that interoperability is not a bad idea.  I think it's a
good thing.  The first part of developing a reasonable plan / approach
would be to understand what your different components, e.g. tomcat if
that's what you choose as your client container, support and don't
support.  Perhaps you should use JBoss or Weblogic as your client
container as well?

TOMCAT_HOME/shared/lib. This also provided a usable implementation of
javax.xml.transform. 

This is one of the main problems.  See my comment regarding weblogic.jar
above.  How do you know what version of javax.xml.transform is inside
the weblogic.jar?  What if you want to talk to weblogic, but your
webapps require a newer javax.xml.transform implementation?

narrow on PortableRemoteObject. Assumption is because a given home is
now
loaded in two separate class loaders, this is causing problems? Don't
know
exactly. 

I wouldn't rush to conclude this assumption is true.  I think it bears
more investigating.  If both classloader chains are self-consistent,
i.e. no conflicting versions of classes in either chain, you should be
fine.

In a second attempted configuration, tried to move weblogic.jar down
from
TOMCAT_HOME/shared/lib to WEB-INF/lib. This has side affect of warning
messages about not loading javax.servlet per 2.3 spec section 9.7.2.
Fine.

Why is this fine?  I think moving weblogic.jar to /WEB-INF/lib is a
good step, but weblogic.jar has too much conflicting stuff in it.

else! Fine, we added xalan.jar to TOMCAT_HOME/shared/lib. We then blew
up

If you add this and don't remove the other javax.xml.transform
implementation, i.e. the one in weblogic jar, you can expect a blow-up.


In considering a third configuration, we began investigating using
RMI-IIOP
to communicate with WL. In theory this should be possible per EJB spec
2.0
section 19? First immediate problem seemed to be that Tomcat has no
javax.ejb classes available. Would seem these classes are only
available
when running Tomcat under the J2EE SDK distribution? In general
uncertainty
about this, and whether it will even address class loading issues, has
caused us to wait before proceeding. Fumble.

See above comments regarding tomcat is not a J2EE server, doesn't claim
to be.

Finally, a fourth configuration was tried which seemed to have some
promise, with a serious drawback. Would appear that things basically
work
if we put everything, weblogic.jar, jdbc drivers, application jars,
testing
jars, etc into TOMCAT_HOME/shared. Unfortunately, this pretty much
eliminates/defeats any hope of deploying applications without tearding
down
the container and also complicates the build/deployment process as we
can
no longer just throw a new .war file over the wall at operations.
Penalty.

I agree that this is not a good approach.  Keep in mind that for the
most part, web applications are supposed to be self-contained.  You

Tomcat cluster

2002-10-10 Thread Ricardo de Souza Moura

Has anybody any book online, or tutorial about how use Tomcat in cluster ?

Thanks !!!


_
MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
fotos: http://photos.msn.com.br


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




Cannot Find Server

2002-10-10 Thread Pete Helgren

I am brand new to this non-Microsoft world and I am trying to get my feet on
the ground with Tomcat.  I Installed Tomcat 4.0.5 using the standard
defaults (except I DID include the NT Service Option). It was installed as
Stand Alone.  The installation is in C:\Program Files\Apache Tomcat 4.0.
The JDK version is 1.2.2 (installed at c:\jdk1.2.2).  I am running Windows
2000 server (SP3).  This particular machine has IIS installed (presumably at
port 80).  I also access the outside world through an ISA firewall which
uses 8080.  Therefore, I changed the server.xml file  Port reference to
9080. To wit:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=9080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

When I open a command prompt, navigate to the C:\Program Files\Apache Tomcat
4.0\bin folder and type startup.bat, I briefly see another command window
and then I see the following:

Using CATALINA_BASE:   C:\Program Files\Apache Tomcat 4.0
Using CATALINA_HOME:   C:\Program Files\Apache Tomcat 4.0
Using CATALINA_TMPDIR: C:\Program Files\Apache Tomcat 4.0\temp
Using JAVA_HOME:   C:\jdk1.2.2

When I then go to my IE 6.0 browser and type http://localhost:9080 I briefly
see the connecting to site 127.0.0.1 message in the status bar and then
Cannot find server displays in the browser's title bar.  I see no errors.
I suspect the server isn't even running but how do I figure out what is
causing it not to start?

When I go to stop the server (shutdown.bat) I see the following:
 
Using CATALINA_BASE:   C:\Program Files\Apache Tomcat 4.0
Using CATALINA_HOME:   C:\Program Files\Apache Tomcat 4.0
Using CATALINA_TMPDIR: C:\Program Files\Apache Tomcat 4.0\temp
Using JAVA_HOME:   C:\jdk1.2.2
Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner

Must be something simple since in Google searching I found precious few
references these messages.

Any help on this one would be appreciated.  I am SURE it is ridiculously
simple.

Pete Helgren
SR Roberts Software Services Group, Inc
801.269.0220 x 202


attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: JMX support in Tomcat

2002-10-10 Thread Roland S Nygren


I posted a similar question recently (no response though).

I understand that the HTML adapter is  http://localhost:8080/admin/
You must edit the file conf/tomcat-users.xml (see other postings on that) 
to be able to login.
(If you unpacked tomcat with WinZip make sure you have the empty files 
server/webapps/admin/footer.jsp and server/webapps/admin/users/footer.jsp , 
I had to create them since WinZip does not create empty files).

Would be interesting to know if one can write MBeans and register them with 
this Agent and if that is recommended or not.

/Roland

Hi,

There is JMX Mbean support in Tomcat 4.1.12. In the tomcat logs I see the 
MBean Server created.

Does some have idea where this server listens for requests? Is there 
any  HTML adapter for JMX included with tomcat?

Thanks,

Raj Saini


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



Security: Restricted


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




Configuring Servlets

2002-10-10 Thread kumar action

Hai
 I am using the Tomcat4.1 . I could not able to run
the HelloWorld sameple of my one . could you please
send me how to congigure the same.
Thanks in advance
Kumar


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




AW: Tomcat cluster

2002-10-10 Thread Ralph Einfeldt

Here is some brain food:

http://www.ubeans.com/tomcat
http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
http://www.onjava.com/lpt/a/1228
http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html


 -Ursprüngliche Nachricht-
 Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 10. Oktober 2002 15:39
 An: [EMAIL PROTECTED]
 Betreff: Tomcat cluster
 
 Has anybody any book online, or tutorial about how use Tomcat 
 in cluster ?
 

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




Help Defining new webapp

2002-10-10 Thread Chuck Carson



I have the following app: /usr/local/tomcat/webapps/changemgmt/

Tomcat detects it upon startup and it works fine. However, I want to
enabled automatic reloading of classes.

Is this what I need to add to server.xml:

Context path=/changemgmt docBase=changemgmt debug=0
reloadable=true /


Thanks,
Chuck


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




Re: Tomcat cluster

2002-10-10 Thread Toni . Kielo


On 2002-10-10 Ricardo de Souza Moura  wrote:

 Has anybody any book online, or tutorial about how use Tomcat in cluster
?

 Thanks !!!

Hi.

You might wanna try http://www.theserverside.com/resources/index.jsp and
select link Clustering Technologies: In Memory Session Replication in
Tomcat 4.

- Toni




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




RE: LoadBalancing with session problem

2002-10-10 Thread Michael Schulz


Do I understand this correctly: you have two Apache servers and four tomcat
servers?

Please post the contents of your apache workers.properties file and your
tomcat server.xml file.

You have to make sure that the worker name in the jvmRoute parameter of your
server.xml matches exactly the name of the worker as defined in
workers.properties (worker.list).

-Mike


-Original Message-
From: Edmond Wong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 9:35 PM
To: [EMAIL PROTECTED]
Subject: LoadBalancing with session problem



Hi all,

I'm new to loadbalancing with apache and tomcat. I setting up the 2 apache
and 4 tomcat for loadbalancing environment. I experience that during some
heavy workload. The request will be forward to the wrong tomcat instance
even the worker name are appended to the sessionId (eg.greuiog.workerName)

my config is
Apache 1.3.26 Win32 on win2000
Tomcat 3.2.2 Win32
Mod_JK
mod_ssl 2.8.10
open_ssl 0.9.6d

thx for advance

Edmond


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




Re: Tomcat cluster

2002-10-10 Thread Luiz Ricardo

Here it is more links:

http://www2.theserverside.com/resources/article.jsp?l=Tomcat
http://www.onjava.com/lpt/a/2422

Luiz Ricardo
- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 10:57 AM
Subject: AW: Tomcat cluster


 Here is some brain food:

 http://www.ubeans.com/tomcat
 http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
 http://www.onjava.com/lpt/a/1228
 http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html


  -Ursprüngliche Nachricht-
  Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 15:39
  An: [EMAIL PROTECTED]
  Betreff: Tomcat cluster
 
  Has anybody any book online, or tutorial about how use Tomcat
  in cluster ?
 

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


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




Servlet config problem

2002-10-10 Thread freddy auwer

Hi,
I'am using Tomcat 4.0.6 on Windows NT.
I have a jsp declared in the DD with a init-param
When I try to retrieve with getInitParam() method the
value of this param, I receive null.

Here the part of the DD

  servlet
servlet-nameintro.jsp/servlet-name
jsp-file/intro.jsp/jsp-file
init-param
  param-namepath/param-name
  param-valuelogs/param-value
/init-param
  /servlet


The same jsp with the same DD works fine on WebLogic.

Any idea ?

Thx.

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: Setting classpath..Kindly help...???

2002-10-10 Thread Cox, Charlie

does the user that the tomcat service is running under('System' unless you
changed it) have permissions to the tomcat directory?

 -Original Message-
 From: sathya [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 2:01 AM
 To: Tomcat Users List
 Subject: RE: Setting classpath..Kindly help...???
 
 
 Hi Sexton,
 Thx for the quick response..But the problem when I 
 start the tomcat
 thru console it is compiling the jsp but when I start thru 
 the service it is
 not compiling  saying it is unable to compile class for 
 jsp..In the jsp I
 have certain imports whose classes are present under 
 WEB_INF/classes which
 it is not finding when tomcat is started as a service.Kindly help
 Thx in advance
 Sathya
 
 -Original Message-
 From: Sexton, George [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 10:57 AM
 To: Tomcat Users List
 Subject: RE: Setting classpath..Kindly help...???
 
 
 You might want to post a more complete message that shows the 
 JSP Compile
 error.
 
 If the JSP is unable to included classes in your 
 WEB-INF/classes directory
 you should take a look at bug # 10036 in the Tomcat bug database.
 
 -Original Message-
 From: sathya [mailto:[EMAIL PROTECTED]]
 Sent: 09 October, 2002 11:22 PM
 To: Tomcat Users List
 Subject: Setting classpath..Kindly help...???
 
 
 Hello,
 I am having  a problem compiling my jsp files..it says 
 Unable to Compile
 Class for JSP..How do I set the classpath for my application 
 in WEB-INF.I
 am using Tomcat 4.1.10 and jdk 1.4.01.
 Kindly help
 Thanks in advance
 Sathya
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Help Defining new webapp

2002-10-10 Thread Padhu Vinirs

That is correct.

-- padhu



Chuck Carson wrote:

I have the following app: /usr/local/tomcat/webapps/changemgmt/

Tomcat detects it upon startup and it works fine. However, I want to
enabled automatic reloading of classes.

Is this what I need to add to server.xml:

Context path=/changemgmt docBase=changemgmt debug=0
reloadable=true /


Thanks,
Chuck


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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


  




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




RE: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win2k

2002-10-10 Thread none none

Thank you for the help, it is working now !
Next step i'll try to use Tomcat AutoConfig option.
Also i plan for the future , if it is worthed , to move to JK2, we'll see.
Thanks again.

--

On Wed, 9 Oct 2002 08:57:41   
 Turner, John wrote:

Actually, you have more problems than that.  I looked at your httpd.conf and
workers.properties, and frankly it is hard for me to see how you got
anything working at all.

Your workers.properties only has an entry for localhost, not any of the
VirtualHosts you have setup in httpd.conf.

You server.xml has other hosts setup, but there is only an entry for one of
them in workers.properties.

Your httpd.conf is auto-generated (and hard to read).  My advice would be to
try it with just one host at a time, step-by-step, keeping it simple.  Get
it working for localhost, or one virtual host, then simply duplicate that
config for that working virtual host to the others, changing hostname and
paths as appropriate.

Basically, getting mod_jk to work is fairly easy...you just have to make the
right links between httpd.conf, workers.properties, and server.xml.

First, in server.xml, change the Host element so that the name parameter
equals the desired hostname, like this:

 Host name=www.host.com debug=0 appBase=webapps unpackWARs=true

Then, workers.properties:

== begin workers.properties ==

# Setup for apache system
#
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/j2sdk1.4.0_01
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
worker.ajp13.port=8009
worker.ajp13.host=www.host.com
worker.ajp13.type=ajp13

== end workers.properties ==

Then, the basic commands for httpd.conf:

== begin httpd.conf ==

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log

JkLogLevel emerg

VirtualHost www.host.com

ServerName www.host.com

 www.host.com:/examples 

# Static files
Alias /examples /usr/local/jakarta-tomcat-4.0.4/webapps/examples

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory

# Deny direct access to WEB-INF and META-INF
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /examples/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13

/VirtualHost

== end httpd.conf ==

This is for the /examples URL of www.host.com, like this:
http://www.host.com/examples

I don't know how to make it any clearer than that.  This is a working
configuration.  Nothing else was changed, except to add the Listener
elements to server.xml so that the httpd.conf commands are auto-generated.
This is for Tomcat 4 and Apache 2.  Adding additional hosts is simply a
matter of duplicating the configuration for the first virtual host.  Adding
additional URI mappings for JkMount is left up to you.  I can't speak for
any sort of auto-generation helpers for Apache, which you seem to be
using...they may or may not munge up any manual configuration you do.

Hope this helps.

John

 -Original Message-
 From: Paul Gregoire [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 1:01 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or 
 jk2 , win
 2k 
 
 
 I have a similar problem, but the only thing i cant get 
 working is any url
 in which a servlet is being called..
 
 x.x.44.54 - - [08/Oct/2002:21:29:21 -0800] GET /servlet/test 
 HTTP/1.1
 404 -
 
 The tomcat access log always reports a 404 no matter which 
 port the servlet
 is called on 80 or 8080.
 
 I have tried both mod_jk as well as mod_jk2 and neither work. 
 I am running
 Apache 2.0.42 and Tomcat 4.1.12 on win2k/sp1 w/ jdk1.4.1 fcs.
 
 Here is my setup:
 
 APACHE2_HOME=C:\Program Files\Apache Group\Apache2
 CATALINA_HOME=e:\tomcat
 JAVA_HOME=c:\jdk1.4
 Path=C:\Program Files\Apache Group\Apache2\bin;C:\Program 
 Files\Apache
 Group\
 Apache2\modules;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
 TOMCAT_HOME=e:\tomcat
 
 C:\Program Files\Apache Group\Apache2\conf\httpd.conf
 C:\Program Files\Apache Group\Apache2\modules\mod_jk.dll
 C:\Program Files\Apache Group\Apache2\modules\mod_jk2.dll
 C:\Program Files\Apache Group\Apache2\modules\jkjni.dll
 C:\Program Files\Apache Group\Apache2\modules\jni_connect.dll
 E:\tomcat\conf\workers.properties
 E:\tomcat\conf\server.xml
 
 conf files are attached.. maybe someone on this list 

Re: Servlet config problem

2002-10-10 Thread Padhu Vinirs


I am seeing the same problem. Must be reported as a bug ?

-- padhu



freddy auwer wrote:

Hi,
I'am using Tomcat 4.0.6 on Windows NT.
I have a jsp declared in the DD with a init-param
When I try to retrieve with getInitParam() method the
value of this param, I receive null.

Here the part of the DD

  servlet
servlet-nameintro.jsp/servlet-name
jsp-file/intro.jsp/jsp-file
init-param
  param-namepath/param-name
  param-valuelogs/param-value
/init-param
  /servlet


The same jsp with the same DD works fine on WebLogic.

Any idea ?

Thx.

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


  




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




RE: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win2k

2002-10-10 Thread Turner, John


No problem, glad to help.

John


 -Original Message-
 From: none none [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 11:03 AM
 To: Tomcat Users List
 Subject: RE: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 ,
 win2k 
 
 
 Thank you for the help, it is working now !
 Next step i'll try to use Tomcat AutoConfig option.
 Also i plan for the future , if it is worthed , to move to 
 JK2, we'll see.
 Thanks again.
 
 --
 
 On Wed, 9 Oct 2002 08:57:41   
  Turner, John wrote:
 
 Actually, you have more problems than that.  I looked at 
 your httpd.conf and
 workers.properties, and frankly it is hard for me to see how you got
 anything working at all.
 
 Your workers.properties only has an entry for localhost, not 
 any of the
 VirtualHosts you have setup in httpd.conf.
 
 You server.xml has other hosts setup, but there is only an 
 entry for one of
 them in workers.properties.
 
 Your httpd.conf is auto-generated (and hard to read).  My 
 advice would be to
 try it with just one host at a time, step-by-step, keeping 
 it simple.  Get
 it working for localhost, or one virtual host, then simply 
 duplicate that
 config for that working virtual host to the others, changing 
 hostname and
 paths as appropriate.
 
 Basically, getting mod_jk to work is fairly easy...you just 
 have to make the
 right links between httpd.conf, workers.properties, and server.xml.
 

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




reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to 
access the page again. The page is not recompiled. I am still getting 
back the old value. I do have reloadable=true for my context. I have to 
restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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




RE: Help Defining new webapp

2002-10-10 Thread Chuck Carson


Thanks,
CC

 -Original Message-
 From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, October 10, 2002 7:43 AM
 To: Tomcat Users List
 Subject: Re: Help Defining new webapp
 
 
 That is correct.
 
 -- padhu
 
 
 
 Chuck Carson wrote:
 
 I have the following app: /usr/local/tomcat/webapps/changemgmt/
 
 Tomcat detects it upon startup and it works fine. However, I want to 
 enabled automatic reloading of classes.
 
 Is this what I need to add to server.xml:
 
 Context path=/changemgmt docBase=changemgmt debug=0 
 reloadable=true /
 
 
 Thanks,
 Chuck
 
 
 --
 This message contains confidential information and is 
 intended only for 
 the individual named. If you are not the named addressee you 
 should not 
 disseminate, distribute or copy this e-mail. Please notify 
 the sender 
 immediately by e-mail if you have received this e-mail by 
 mistake and 
 delete this e-mail from your system. E-mail transmission cannot be 
 guaranteed to be secure or error-free as information could be 
 intercepted, corrupted, lost, destroyed, arrive late or 
 incomplete, or 
 contain viruses. The sender therefore does not accept 
 liability for any 
 errors or omissions in the contents of this message, which 
 arise as a 
 result of e-mail transmission. If verification is required please 
 request a hard-copy version.
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
   
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 



--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


Reloading of jsp works if I start a new browser window. But on same 
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:


 Tomcat 4.1.12

 I have a jsp page that compiles fine. Then I make a change and try to 
 access the page again. The page is not recompiled. I am still getting 
 back the old value. I do have reloadable=true for my context. I have 
 to restart Tomcat to get the new page. Anybody else notice this ?

 -- padhu


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





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




problem with jasper 2 using jikes

2002-10-10 Thread Christos Karras

I am trying to use Jasper 2 with Jikes instead of the internal javac, 
but when I request a jsp file, I only get empty pages.

I followed the instructions in the tomcat 4.1 jasper howto, deleted all 
files in the tomcat work dir and set the logVerbosityLevel param to 
DEBUG, and I get this in the context's log file when a jsp file is 
requested:

2002-10-10 11:08:39 Scratch dir for the JSP engine is: 
/usr/share/tomcat4/work/Standalone/localhost/_
2002-10-10 11:08:39 IMPORTANT: Do not modify the generated servlets
2002-10-10 11:09:15 JspEngine -- /index.jsp
2002-10-10 11:09:15  ServletPath: /index.jsp
2002-10-10 11:09:15 PathInfo: null
2002-10-10 11:09:15 RealPath: /web/intranet/index.jsp
2002-10-10 11:09:15   RequestURI: /index.jsp
2002-10-10 11:09:15  QueryString: null
2002-10-10 11:09:15   Request Params:
2002-10-10 11:09:16 Compiler jikes
2002-10-10 11:09:18 null

Is there anything else I could do to debug this?

I use Tomcat version 4.1.12 and Jike 1.15 installed in /usr/bin. Ant 
should be able to find Jikes because it is in the system PATH, do I need 
to configure anything else?

Thanks


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




web.xml ???

2002-10-10 Thread christophe . baroin

Hello, 

I would like to test Tomcat 4.0.6 with Jikes 1.17. 
I know that the file should be modified $TOMCAT \conf\web.xml but 
I tested that does not walk 

would somebody have an example ? 

Thank you in advance, 

greetings 

Salutations,

Christophe BAROIN
JP Services 
16, Rue de Moronval 
28100 DREUX 

Tél.   : 02.37.38.92.12
Fax   : 02.37.42.87.58
E Mail :[EMAIL PROTECTED]
Visiter notre site sur http://www.jpservices.fr


Tomact LimitRequestFieldsize

2002-10-10 Thread Alessandro Matti

I am using Tomcat 4.0.1.
It is possible in Tomcat, like it is with Apache, to set the
LimitRequestFieldsize?
How can I risolve this problem?

Thanks

A.M


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




Re: reloading of jsp page...

2002-10-10 Thread Chris Wolcott

This may be caused by your browser cacheing the existing page.  Try 
clearing the browser cashce and see what happens.  I know RELOAD is 
supposed to actually RELOAD from the server, but. . . .

Padhu Vinirs wrote:


 Reloading of jsp works if I start a new browser window. But on same 
 window ( Ctrl-r or reload ) doesnt show the new changes.

 -- padhu

 Padhu Vinirs wrote:


 Tomcat 4.1.12

 I have a jsp page that compiles fine. Then I make a change and try to 
 access the page again. The page is not recompiled. I am still getting 
 back the old value. I do have reloadable=true for my context. I have 
 to restart Tomcat to get the new page. Anybody else notice this ?

 -- padhu


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





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





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




Re: instalacao do tomcat

2002-10-10 Thread Andre de Jesus

mariangelafirmino wrote:

Estou instalando o tomcat, tive sucesso ate a instalacao 
do mesmo, porém estou tendo problemas ao digitar um 
exemplo e visualiza-lo, tem algo a ver com configuraçao 
de server.xml. Já instalei tambem o kit SDK. Estou 
seguindo o livro JSP - Francisco B.Junior, da editora 
Erica. Fiz todos os passos corretamente, mas nao estou 
tendo exito. Por favor, se possivel me de um retorno.

Obrigada.

Mariangela.

  

Olá

Tomcat is really very simple to install:

First you will need a recent SDK (ex: 1.4.0 ou 1.4.1).

Next you install Tomcat, and if all goes well it will detect the 
presence of the SDK (if not, you can always change some registry keys so 
that it does).

Finally you need to make sure that tomcat is running, either as a system 
service (like: windows services) or as a separate process. When tomcat 
is running, by typing http://localhost:8080; the documentation page 
should appear.

If you find that tomcat can't execute for some reason, you could try to 
run startup.bat (or startup.sh) - in the tomcat binaries directory - 
from the command line (DOS, bash or cygwin - much better than DOS) to 
find out why.

If tomcat is running but you cannot see your example, then this could 
mean one of the following:

You are not typing the correct url.

You are typing the correct url but the server.xml or web.xml does not 
have the correct configuration.

The url is correct but your JSP or servlet has an error or can't access 
some external resources.


However, note that the examples that come with tomcat (in 
http://localhost:8080/examples/jsp/index.html) do not have errors and 
should run out of the box, with no additional configurations needed.


In any case, you should post a more detailed description (steps taken, 
error messages, etc) so that our response can be more helpful.



Andre de Jesus


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




Re: reloading of jsp page...

2002-10-10 Thread Sam Seaver

I had this problem with galeon and simple html files, it should be in the
settings somewhere in your browser, that you can force it to actually reload
the page rather than look in the cache, even though I was pressing the
RELOAD button. once i made the change, RELOAD really RELOADed...

Sam


- Original Message -
From: Chris Wolcott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 8:37 AM
Subject: Re: reloading of jsp page...


 This may be caused by your browser cacheing the existing page.  Try
 clearing the browser cashce and see what happens.  I know RELOAD is
 supposed to actually RELOAD from the server, but. . . .

 Padhu Vinirs wrote:

 
  Reloading of jsp works if I start a new browser window. But on same
  window ( Ctrl-r or reload ) doesnt show the new changes.
 
  -- padhu
 
  Padhu Vinirs wrote:
 
 
  Tomcat 4.1.12
 
  I have a jsp page that compiles fine. Then I make a change and try to
  access the page again. The page is not recompiled. I am still getting
  back the old value. I do have reloadable=true for my context. I have
  to restart Tomcat to get the new page. Anybody else notice this ?
 
  -- padhu
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 



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


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




RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-10 Thread Andrew Gilbert

Yoav and JeanFrancios,

Thank you both for your replies. They were helpful and somewhat reassuring.

At the general level:

We are aware that Tomcat is not a full J2EE container. But servlets calling EJB's is 
bread and butter stuff. We have been successfully using Tomcat to talk to WebLogic for 
2 years, so know it can work.  But each time we go through an upgrade, of either 
component, we repeat the same voodoo process of jar, jar, where to put the jar. This 
jar jungle is a nightmarish flashback to dll hell from C++/Windows days. What we 
are looking for is two things. One, some reassurance we aren't in the wilderness using 
Tomcat to talk to WebLogic. Two, a better foundation for developing strategies for 
handling jar packaging and classloading issues. I think I got a little of both from 
your replies.

At the specifics:

We are currently using JDK 1.3.1.

Considered the need to break out weblogic.jar, just hoping to avoid it. Will put 
specific re-packaging of required javax.* classes back back on the list.

Cleaning up issues with conflicts, overlaps and gaps in javax.xml.* implementations is 
one of our motivators to upgrade, so we can also get to JDK 1.4 and get out of the 
mess. Unfortunately this is a painful catch 22.

Have considered using JBoss or WebLogic for our servlet container. This option is 
still on the table. It has drawbacks, but puts everything inside the same dotted box 
and thus eliminates some interop baggage.

Have also considered using J2EE 1.3 as a container for running Tomcat, thus providing 
more full J2EE support. Also still on the table.

Still not at the root of the class cast exception when running our first choice 
config. The classloader chains did look consistent and clean. Jean-Francios mentioned 
something about when the home/remote skeletons get loaded (did you mean stubs?). Will 
look at this, as it is also consistent with other ideas about how to use RMI-IIOP and 
the use of the client jar generated from ejbc on the tomcat side.

Thanks again. Helpful. But still, feel like we could write a paper on the dark side 
of J2EE ownership and maintenance. Hopefully someone at Sun is listening...



 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 9:28 AM
 To: Tomcat Users List
 Subject: RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability
 frustrations...
 
 
 Hi,
 Wow, what a long message ;)  I don't have time to reply to everything,
 but the general answer is: tomcat is a servlet/JSP container at this
 point.  Not a J2EE container.  Inter-operating with remote 
 J2EE servers,
 at least for us, has proven easy.  We've never used tomcat 3.x, only
 4.x, so I can't comment on version differences.
 
 One more comment is that the weblogic.jar distribution is, 
 IMHO, one of
 the best examples of how NOT to package things.  You simply got lucky
 that it had javax.xml.transform, along with a ton of other things that
 don't belong in there.  Just look at the weblogic boards and mailing
 lists to see how many times they've been slammed and 
 requested to split
 their jar into smaller pieces.  For example, some of our apps 
 only need
 to send JMS messages to a remote weblogic server, so we've had to take
 out everything non-JMS/JNDI related from the weblogic.jar and 
 repackage
 it.
 
 I'm also curious as to what version of the JDK you are using.
 
 1. Should one assume use of the J2EE SDK distribution of Tomcat is
 required
 for J2EE interoperability, per 2.0 spec? More directly, is it
 reasonable to
 try to get J2EE interopability with the apache distribution 
 of Tomcat?
 
 No to the first question, yes to the second.  It depends by what you
 mean by J2EE interoperability.  Tomcat implements the servlet and JSP
 specs, which define very specific facilities (ejb resource 
 definition in
 web.xml, etc.) for interaction with the broader J2EE world.  Using
 tomcat with the J2EE SDK won't give tomcat any magical features.
 
 2. Why is there no javax.xml.transform implementation inside 
 the apache
 Tomcat distribution?
 
 That's not part of tomcat.  It's usually distributed with your parser
 (e.g. Crimson or Xerces), or more recently with JDK 1.4.x.
 
 3. For a J2EE container to be interoperable per the spec, 
 would it be
 reasonable to assume this means class loading issues inside the
 client
 container have been tested/addressed?
 
 Yes, and they have been for tomcat.
 
 4. How is one supposed to develop a reasonable plan/approach for J2EE
 interoperability? Or is interoperability a bad idea?
 
 I would say that interoperability is not a bad idea.  I think it's a
 good thing.  The first part of developing a reasonable plan / approach
 would be to understand what your different components, e.g. tomcat if
 that's what you choose as your client container, support and don't
 support.  Perhaps you should use JBoss or Weblogic as your client
 container as well?
 
 TOMCAT_HOME/shared/lib. This also provided a usable 

Re: JMX support in Tomcat

2002-10-10 Thread Raj Saini

Yes, you are right. Admin application uses the MBeanServer.

Raj

Roland S Nygren wrote:
 
 I posted a similar question recently (no response though).
 
 I understand that the HTML adapter is  http://localhost:8080/admin/
 You must edit the file conf/tomcat-users.xml (see other postings on 
 that) to be able to login.
 (If you unpacked tomcat with WinZip make sure you have the empty files 
 server/webapps/admin/footer.jsp and 
 server/webapps/admin/users/footer.jsp , I had to create them since 
 WinZip does not create empty files).
 
 Would be interesting to know if one can write MBeans and register them 
 with this Agent and if that is recommended or not.
 
 /Roland
 
 Hi,

 There is JMX Mbean support in Tomcat 4.1.12. In the tomcat logs I see 
 the MBean Server created.

 Does some have idea where this server listens for requests? Is there 
 any  HTML adapter for JMX included with tomcat?

 Thanks,

 Raj Saini


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

 
 
 Security: Restricted
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I have done this, and it is not helping. I saw in the apache bug list ( 
2885 )  in 4.0.4 which has been resolved. I reopened it.

-- padhu



Sam Seaver wrote:

I had this problem with galeon and simple html files, it should be in the
settings somewhere in your browser, that you can force it to actually reload
the page rather than look in the cache, even though I was pressing the
RELOAD button. once i made the change, RELOAD really RELOADed...

Sam


- Original Message -
From: Chris Wolcott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 8:37 AM
Subject: Re: reloading of jsp page...


  

This may be caused by your browser cacheing the existing page.  Try
clearing the browser cashce and see what happens.  I know RELOAD is
supposed to actually RELOAD from the server, but. . . .

Padhu Vinirs wrote:



Reloading of jsp works if I start a new browser window. But on same
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:

  

Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to
access the page again. The page is not recompiled. I am still getting
back the old value. I do have reloadable=true for my context. I have
to restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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





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


  


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  


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


  




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




TOMCAT-STANDALONE needed with Apache Server?

2002-10-10 Thread Chris Wolcott

I'm new to the world of Apache and Jakarta. I notice TOMCAT by default 
has the TOMCAT-STANDALONE instance defined by default, and the 
TOMCAT-APACHE instance commented out with no connectors, etc defined. I 
loaded Apache 2.0 and TOMCAT 4.0 on my Win 2K Svr box. Do I NEED the 
stand-alone instance of TOMCAT? Do I need all those connectors on the 
different ports? What is used by the mod_jk interface from Apache to 
TOMCAT? I tried mod_webapp, but Apache said it could not find it even 
though I DL'd a win32 version of the .so and accompanying libapr.dll to 
the MODULES directory. (I went back to the mod_jk method)

I have read multiple pages on setting up TOMCAT, and all seem to be 
different or not appropriate for my needs. Anyone have a good page to 
help me setup Apache/Tomcat and JSP/SERVLETS/BEANS on a WINDOWS 2000 SERVER?

Thanks


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




Where is isapi_redirect.dll for Tomcat 4.1.12 - IIS 5

2002-10-10 Thread Michael Finney

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
promised that isapi_redirect.dll would be located in


Is the following still true?  It was a 1/2 year ago. 
the ISAPI filter for Tomcat 4.0 is still under
development
see http://www.jguru.com/faq/view.jsp?EID=571958

Michael


--- Michael Finney [EMAIL PROTECTED] wrote:
 From

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
 
 The ajp12 has been deprecated with Tomcat 3.3.x and
 you should use instead ajp13 which is the only ajp
 protocol known by Tomcat 4.0.x, 4.1.x and 5. 
 
 --- John Lee [EMAIL PROTECTED] wrote:
  Hi all,
  
  I cannot get this ISAPI redirector to work for
  JSP/Servlet programs running in the following
  platform:
  01. TOMCAT 4.1.12 
  02. JDK 1.4.1
  03. ISAPI_REDIRECTOR.DLL 
  04. IIS 5
  05. W2KP SP3
  
  
  11. I successfully did a
  http://localhost:8080/jsp/examples/index.html
  12. However, I got a HTTP 500 (Internal Server
  Error) error when I did
  http://localhost/jsp/examples/index.html
  13. In ISAPI log, it shows the following:
  [jk_isapi_plugin.c (696)]: HttpFilterProc started
  [jk_isapi_plugin.c (759)]: In HttpFilterProc
 Virtual
  Host redirection of
  /localhost/examples/jsp/index.html
  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [jk_uri_worker_map.c (477)]: Attempting to map URI
  '/localhost/examples/jsp/index.html'
  [jk_uri_worker_map.c (599)]:
  jk_uri_worker_map_t::map_uri_to_worker, done
 without
  a match
  [jk_isapi_plugin.c (765)]: In HttpFilterProc test
  Default redirection of /examples/jsp/index.html
  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [jk_uri_worker_map.c (477)]: Attempting to map URI
  '/examples/jsp/index.html'
  [jk_uri_worker_map.c (502)]:
  jk_uri_worker_map_t::map_uri_to_worker, Found a
  context match ajp13 - /examples/
  [jk_isapi_plugin.c (775)]: HttpFilterProc
  [/examples/jsp/index.html] is a servlet url -
 should
  redirect to ajp13
  [jk_isapi_plugin.c (838)]: HttpFilterProc check if
  [/examples/jsp/index.html] is points to the
 web-inf
  directory
  
  
  21. I have already read
 

http://members.ozemail.com.au/~lamplante/howto/tomcat/iisnt.
  22. *** I checked the
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
  and on the last page, it talks about Check the
  workers.properties file and make sure that the
 port
  setting for worker.ajp12.port is the same as the
  port specified in the server.xml for the Apache
  AJP12 support.
  23. *** In server.xml, there is no ajp12 defined
 at
  all but it was mentioned in workers.properties and
 I
  think the cause of the problem is somehow ajp12 is
  required for the demo programs but somehow it was
  missing but I do not know how to put it in.
  
  This is the same problem posted on Sep 26 but no
  real solution was posted.
  
  Any suggestions?
  
  Cheers.
  
  
  John
  
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 =
 Michael Finney
 Sun Certified Programmer for the Java 2 Platform
 Sun Certified Developer for the Java 2 Platform
 Sun Certified Web Component Developer for J2EE
 Platform 
 Cofounder of PPJDG
 Cofounder of cosAgile - Colorado Springs XP Users
 Group
 If replying to this email address fails, try
 [EMAIL PROTECTED]
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I have also tried loading this page from 2 different client machines. 
Still get only old code...I have to restart Tomcat, cleanup the 
java/class files and only then this works.

-- padhu



Sam Seaver wrote:

I had this problem with galeon and simple html files, it should be in the
settings somewhere in your browser, that you can force it to actually reload
the page rather than look in the cache, even though I was pressing the
RELOAD button. once i made the change, RELOAD really RELOADed...

Sam


- Original Message -
From: Chris Wolcott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 8:37 AM
Subject: Re: reloading of jsp page...


  

This may be caused by your browser cacheing the existing page.  Try
clearing the browser cashce and see what happens.  I know RELOAD is
supposed to actually RELOAD from the server, but. . . .

Padhu Vinirs wrote:



Reloading of jsp works if I start a new browser window. But on same
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:

  

Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to
access the page again. The page is not recompiled. I am still getting
back the old value. I do have reloadable=true for my context. I have
to restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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





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


  


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  


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


  




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




Re: Connecting from Tomcat box to JBoss box?

2002-10-10 Thread Mauro Daniel Ardolino

I've heared something about doing it through JAAS.

On Thu, 10 Oct 2002, Raj Saini wrote:

 Hi,
 
 You need to follow the below steps:-
 
 Copy the clients file from te JBOSS_HOME/client direcotry to the 
 TOMCAT_HOME/shared/lib. You dont need all, but you can copy to be sure 
 you copied all the libs.
 
 In your application where you lookup the JNDI context, create a 
 Properties object and set the:
 
 Properties prop =  new Properties();
 
 prop.setProperty(java.naming.factory.initial, 
 org.jnp.interfaces.NamingContectFactory);
 
 //Replace the yourhost:port with your host ip and port. Default port is 1099
 prop.setProperty(java.naming.factory.url, yourhost:port);
 prop.setProperty(ava.naming.factory.url.pakgs, org.jboss.naming: 
 org.jnp.interfaces);
 
 InitialContext ctx = new InitialContext(prop);
 
 Now you can use the ctx object to lookup your EJBs.
 
 Raj Saini
 
 
 Mitchell, Edmund wrote:
  Hello all,
  
  I've got my Apache box talking happily to my Tomcat box, thanks to John
  Turner and Pascal Forget's great webpages, but I can't seem to get the
  Tomcat box to talk to the JBoss box.
  
  Does anyone have any how-to type info on how to get this connection to
  happen?  I've tried everything in both the JBoss and ejb docs I've read, to
  no avail.

  In the post below, Anthony Geoghegan suggests that turning off the Tomcat
  JNDI server will work, but I've been up and down the Tomcat JNDI docs, and
  seen nothing that looks like an off switch.   Can anyone shed some light on
  that?
  
  Thanks for any help
  
  Edmund
  
  .
  
  
 -Original Message-
 From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 1:20 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Apache 2, Tomcat,  JBoss configuration
 You have to use remote interfaces and turn off the TOMCAT 
 JNDI server to use
 the JBOSS JNDI server, otherwise it's fine.
  
  
 - Original Message -
 From: Jim Haggerty [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, October 08, 2002 5:31 PM
 Subject: Apache 2, Tomcat,  JBoss configuration
  
  
 Current versions:
 FreeBSD 4.6.2-RELEASE
 Apache 2.0.42 (although FreeBSD port now has 2.0.43)
 Tomcat 4.0.5
 JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat)
 
  
 Apache and Tomcat are getting along fine and I can access 
 
 deployed webapps
 
 through the warp connection (Is JK2 preferred over warp?) 
 
 on both port 80
 
 and 8080.
 
 JBoss is alive and well on port 8082.
 
 However, virtually ALL the documentation I have found 
 
 regarding connecting
 
 the three refers to the JBoss+Tomcat package (modify the 
 
 server.xml in
 
 ${JBOSS_HOME}/catalina).  Does anyone have an example of connecting
 
 Apache -
 
 Tomcat - JBoss WITHOUT JBoss+Tomcat?
 
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




OT: How to handle requests in quick sessions / possible thread issue

2002-10-10 Thread Michael Nicholson

So, this is my first project where I need to manage a large number of concurrent 
requests.  And, to make things worse, most of my previous experience in programming is 
Visual Basic for Applications running in either Excel or Access.  (Don't worry, it 
gets more on topic...)

So, I now have an Oracle backend that's supposed to be accessed by jsps and servlets.  
Which works.  However, if a user gets impatient (I know, it never happens, but just in 
case!), then while the database is doing it's thing, the java process receives a new 
request and starts a new thread, right?  But this is a problem in that it stops 
responding.  Entirely.  I don't know if this means that my db connection got closed 
midway through the second process (which should now have the request and response 
instances that my browser wants back), and therefore it's sitting there going which 
way did it go, which way did it go (you have to imagine the silly cartoon voice), or 
what.  And I don't really know that connection pooling will help.

Now, more experinced minds than mine have solved this before.  Most commercial/decent 
sites seem to handle it fine:  do they simply interrupt the old process and then start 
a new one?  Should the beginning of my db-routine have something like:

Connection con = null;  //to close any currently running process on this connection in 
this object/bean/servlet
try
{
  crap;
} catch (crappyException ce) {
  handle it
}  finally  {
  if (con!=null)
  {
con.close();
con=null;
  }
}

Would that solve my problem?  Or do I need to let the first request finish itself and 
then start a new one?  Any ideas?

Thanks for your time.

Michael Nicholson


RE: tomcat4.1.2 - Servlet Error

2002-10-10 Thread Raj Mettai

thanks Yoav Shapira,

looks like I don't even have admin directory under webapps folder. I have downloaded 
binaries from apache site and Installed it under separate folder. Jsp pages are fine, 
when I access servlets from my application I am getting 404 page not found.
It works fine with 4.0.4. 

Here is my context Tag from server.xml 
 Context path=/FCCSC docBase=/opt/jrun4/servers/BCC/FCCSC debug=0/

thanks
Raj



 [EMAIL PROTECTED] 10/10/02 09:34AM 
Hi,
How did you install 4.1.12?  Did you copy it over the existing 4.0.4
installation?

The error indicates tomcat can't find its own admin webapp classes.
That shouldn't happen if you simply untar the distribution.  Look for
$CATALINA_HOME/server/webapps/admin/WEB-INF/classes/org/apache/webapp/ad
min to make sure it exists and has the .class files in it.

Or simply remove webapps/admin.xml if you don't want/need the admin
webapp ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Raj Mettai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 7:01 PM
To: [EMAIL PROTECTED]
Subject: tomcat4.1.2 - Servlet Error

Hi,

I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine
but
when I access servlet I am getting HTTP Status 404 and I found
following
exception in localhost_admin* log file.

2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator
for
method FORM
2002-10-09 18:31:50 StandardManager[/admin]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 18:31:50 StandardManager[/admin]: Seeding of random number
generator has been completed
2002-10-09 18:31:50 StandardWrapper[/admin:default]: Loading container
servlet default
2002-10-09 18:31:50 StandardWrapper[/admin:invoker]: Loading container
servlet invoker
2002-10-09 18:31:50 StandardWrapper[/admin:action]: Marking servlet
action
as unavailable
2002-10-09 18:31:50 StandardContext[/admin]: Servlet /admin threw
load()
exception
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.webapp.admin.ApplicationServlet or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
va:8
80)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
java
:3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:353
4)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl
oyer
.java:529)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:
228)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParse
r.ja
va:579)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder
.jav
a:646)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid
ator
.java:1972)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j
ava:
878)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(
XMLD
ocumentFragmentScannerImpl.java:1144)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM
LDoc
umentFragmentScannerImpl.java:987)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
cher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
ocum
entFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
a:11
69)
at
org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
java:335)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav
a:45
2)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
68)
at

Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I think I founf out what the problem is. My jsp page is on Linux. I have 
this drive shared through samba to my windows machine. Looks like 
windows is not updating the time stamp. When I saved the file from 
Linux, the reload worked fine. I saw that the 2885 bug was also related 
to this. Anybody know any solution on how to change the timestamp on 
windows 98 when saving - maybe there is a win fix ?

-- padhu



Chris Wolcott wrote:

 This may be caused by your browser cacheing the existing page.  Try 
 clearing the browser cashce and see what happens.  I know RELOAD is 
 supposed to actually RELOAD from the server, but. . . .

 Padhu Vinirs wrote:


 Reloading of jsp works if I start a new browser window. But on same 
 window ( Ctrl-r or reload ) doesnt show the new changes.

 -- padhu

 Padhu Vinirs wrote:


 Tomcat 4.1.12

 I have a jsp page that compiles fine. Then I make a change and try 
 to access the page again. The page is not recompiled. I am still 
 getting back the old value. I do have reloadable=true for my 
 context. I have to restart Tomcat to get the new page. Anybody else 
 notice this ?

 -- padhu


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





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





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





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




Re: How to handle requests in quick sessions / possible thread issue

2002-10-10 Thread Michael Nicholson

ok, yes, I'm dumb... the subject should have said How to handle requests in
quick succession / possible thread issues

Mike


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




Re: reloading of jsp page...

2002-10-10 Thread Sam Seaver

maybe even a samba fix...


- Original Message -
From: Padhu Vinirs [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 8:59 AM
Subject: Re: reloading of jsp page...



 I think I founf out what the problem is. My jsp page is on Linux. I have
 this drive shared through samba to my windows machine. Looks like
 windows is not updating the time stamp. When I saved the file from
 Linux, the reload worked fine. I saw that the 2885 bug was also related
 to this. Anybody know any solution on how to change the timestamp on
 windows 98 when saving - maybe there is a win fix ?

 -- padhu



 Chris Wolcott wrote:

  This may be caused by your browser cacheing the existing page.  Try
  clearing the browser cashce and see what happens.  I know RELOAD is
  supposed to actually RELOAD from the server, but. . . .
 
  Padhu Vinirs wrote:
 
 
  Reloading of jsp works if I start a new browser window. But on same
  window ( Ctrl-r or reload ) doesnt show the new changes.
 
  -- padhu
 
  Padhu Vinirs wrote:
 
 
  Tomcat 4.1.12
 
  I have a jsp page that compiles fine. Then I make a change and try
  to access the page again. The page is not recompiled. I am still
  getting back the old value. I do have reloadable=true for my
  context. I have to restart Tomcat to get the new page. Anybody else
  notice this ?
 
  -- padhu
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 



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


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




RE: Tomcat IIS HowTo - with Tomcat 4?

2002-10-10 Thread Tim Moore

Also check out
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, October 10, 2002 9:01 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat IIS HowTo - with Tomcat 4?
 
 
 
 It definitely works.  HOWTOs are posted.
 
 http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
 
 John
 
 
  -Original Message-
  From: Richard Katz [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 09, 2002 5:08 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat IIS HowTo - with Tomcat 4?
  
  
  Does this just not work with Tomcat 4.0?  I've followed all
  the steps but I
  still get a down red arrow instead of an up green one on 
  the IIS MMC for
  the jakarta filter.
  
  Questions - about quotes:
  
  Tomcat 4 normally installs in
  C:\Program Files\Apache Tomcat 4.0 which is where I installed it.
  
  Unfprtunately, this offers the registry, the MMC, and the
  workers.properties
  numerous opportunities to mis-handle quotes.  
  
  For instance in the registry:
  Should there be quotes around
  log_file value:
  C:\Program Files\Apache Tomcat 4.0\logs\isapi.log
  
  I've tried it both ways - no luck.
  
  In MMC:
  The Virtual directory does not seem to want quotes.  It
  browses correctly when
  given
  C:\Program Files\Apache Tomcat 4.0\bin\win32\i386
  
  The filter executable can be specified as
  C:\Program Files\Apache Tomcat 4.0\bin\win32\i386\isapi_redirect.dll
  
  Neither require quotes.
  
  If Tomcat 4 is supposed to work with IIS, I'll move it to a 
 different 
  directory so that the quote question goes away and try again.
  
  Otherwise, I'll go back to Tomcat 3.x
  
  Thanks,
  
  Rich Katz
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 --
 To 
 unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




Re: tomcat4.1.2 - Servlet Error

2002-10-10 Thread Raj Saini

admin directory is under TOMCAT_HOME/server/webapps

Raj
Raj Mettai wrote:
 thanks Yoav Shapira,
 
 looks like I don't even have admin directory under webapps folder. I
 have downloaded binaries from apache site and Installed it under
 separate folder. Jsp pages are fine, when I access servlets from my
 application I am getting 404 page not found.
 It works fine with 4.0.4. 
 
 Here is my context Tag from server.xml 
  Context path=/FCCSC docBase=/opt/jrun4/servers/BCC/FCCSC
 debug=0/
 
 thanks
 Raj
 
 
 
 
[EMAIL PROTECTED] 10/10/02 09:34AM 

 Hi,
 How did you install 4.1.12?  Did you copy it over the existing 4.0.4
 installation?
 
 The error indicates tomcat can't find its own admin webapp classes.
 That shouldn't happen if you simply untar the distribution.  Look for
 $CATALINA_HOME/server/webapps/admin/WEB-INF/classes/org/apache/webapp/ad
 min to make sure it exists and has the .class files in it.
 
 Or simply remove webapps/admin.xml if you don't want/need the admin
 webapp ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 
-Original Message-
From: Raj Mettai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 7:01 PM
To: [EMAIL PROTECTED]
Subject: tomcat4.1.2 - Servlet Error

Hi,

I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine
 
 but
 
when I access servlet I am getting HTTP Status 404 and I found
 
 following
 
exception in localhost_admin* log file.

2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator
 
 for
 
method FORM
2002-10-09 18:31:50 StandardManager[/admin]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 18:31:50 StandardManager[/admin]: Seeding of random number
generator has been completed
2002-10-09 18:31:50 StandardWrapper[/admin:default]: Loading container
servlet default
2002-10-09 18:31:50 StandardWrapper[/admin:invoker]: Loading container
servlet invoker
2002-10-09 18:31:50 StandardWrapper[/admin:action]: Marking servlet
 
 action
 
as unavailable
2002-10-09 18:31:50 StandardContext[/admin]: Servlet /admin threw
 
 load()
 
exception
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.webapp.admin.ApplicationServlet or a class it depends on
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
 
 va:8
 
80)
   at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
   at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
 
 java
 
:3341)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:353
 
 4)
 
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
 
 ava:
 
821)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
   at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl
 
 oyer
 
.java:529)
   at java.lang.reflect.Method.invoke(Native Method)
   at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:
 
 228)
 
   at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
   at
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
   at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParse
 
 r.ja
 
va:579)
   at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder
 
 .jav
 
a:646)
   at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid
 
 ator
 
.java:1972)
   at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j
 
 ava:
 
878)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(
 
 XMLD
 
ocumentFragmentScannerImpl.java:1144)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM
 
 LDoc
 
umentFragmentScannerImpl.java:987)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
 
 spat
 
cher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
 
 ocum
 
entFragmentScannerImpl.java:333)
   at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
 
 524)
 
   at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
 
 580)
 
   at
 
 org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 
   at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
 
 a:11
 
69)
   at
 
 org.apache.commons.digester.Digester.parse(Digester.java:1514)
 
   at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
 
 yer.
 
java:335)
   at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
   at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav
 
 a:45
 
2)
   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
   at

Re: nt service source code

2002-10-10 Thread Jean-Francois Arcand

http://jakarta.apache.org/site/cvsindex.html

-- Jeanfrancois

Ilya Khandamirov wrote:

Hi,
 
Is the source code of Tomcat's Windows NT/2000/XP Service open? I cannot
find something i can start playing with. I'd be thankful for any kind of
Information/Links.
 
 
Regards,
Ilya
 

  



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




RE: reloading of jsp page...

2002-10-10 Thread Pooleery, Manoj

I don't know if updating your clock is going to save you from this problem.
I had faced a similar issue with JSP, where IE was the culprit.  it used to
cache the page the first time it is loaded and wouldn't refresh it even if
it is changed on disk.  What I did was to put the meta tags for refreshing
in the header of my JSP page.  I put
meta http-equiv=Cache-Control content=no-cache and this solved the
problem for me.  Everytime, I forced IE to refresh the page.

-Manoj.

-Original Message-
From: Padhu Vinirs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 12:25 PM
To: Tomcat Users List
Subject: Re: reloading of jsp page...



ok. Found the problem. My Linux machine clock was ahead by 10 mins. 
timestamp problem resolved. :-)

Thanks

-- padhu


Sam Seaver wrote:

maybe even a samba fix...


- Original Message -
From: Padhu Vinirs [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 8:59 AM
Subject: Re: reloading of jsp page...


  

I think I founf out what the problem is. My jsp page is on Linux. I have
this drive shared through samba to my windows machine. Looks like
windows is not updating the time stamp. When I saved the file from
Linux, the reload worked fine. I saw that the 2885 bug was also related
to this. Anybody know any solution on how to change the timestamp on
windows 98 when saving - maybe there is a win fix ?

-- padhu



Chris Wolcott wrote:



This may be caused by your browser cacheing the existing page.  Try
clearing the browser cashce and see what happens.  I know RELOAD is
supposed to actually RELOAD from the server, but. . . .

Padhu Vinirs wrote:

  

Reloading of jsp works if I start a new browser window. But on same
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:



Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try
to access the page again. The page is not recompiled. I am still
getting back the old value. I do have reloadable=true for my
context. I have to restart Tomcat to get the new page. Anybody else
notice this ?

-- padhu


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


  


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





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


  


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  


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


  




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



Re: reloading of jsp page...

2002-10-10 Thread Lindomar

Try in your page:

meta http-equiv=Pragma content=no-cache
meta http-equiv=expires content=0
body
...


- Original Message -
From: Padhu Vinirs [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 12:19
Subject: Re: reloading of jsp page...



 Reloading of jsp works if I start a new browser window. But on same
 window ( Ctrl-r or reload ) doesnt show the new changes.

 -- padhu

 Padhu Vinirs wrote:

 
  Tomcat 4.1.12
 
  I have a jsp page that compiles fine. Then I make a change and try to
  access the page again. The page is not recompiled. I am still getting
  back the old value. I do have reloadable=true for my context. I have
  to restart Tomcat to get the new page. Anybody else notice this ?
 
  -- padhu
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 



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




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




RE: Exception starting filter Security Filter

2002-10-10 Thread Dan Payne

Thanks, Volker.  Very informative.  I'll do a little investigating on my end
and let you know what I find out.

Thanks again.

-Dan

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 3:14 AM
To: Tomcat Users List
Subject: Re: Exception starting filter Security Filter


Hi!

In fact I was wrong in my last post. As I found out later, it did not
work. I found a solution for my problem but I am not sure if it also
applies to yours, Dan. Sorry for not sharing my knowledge until now, but
it did not seem to interest anyone ;)

During debugging I used a hacked version of the logging package and I
somehow forgot to put back the original, so I tricked myself and
believed it would work. But what I found out is, that in my version of
Tomcat (4.0.3) common/lib is defined as endorsed in
bin/setclasspath.bat (for the endorsed standards override mechanism see
http://java.sun.com/j2se/1.4/docs/guide/standards/). This has the
effect, that all jars in this directory are loaded by the bootstrap
class loader (at least in J2SE 1.4). You can verify this by printing out
the value of the java.endorsed.dirs system property. There you will
find all your jars from common/lib.

I solved the problem by switching to 4.1, where there is a separate
endorsed directory in $CATALINA_HOME/common. All jars from common/lib
are then normally loaded by the common class loader. I have no idea why
the 4.0 version marks the common/lib directory as endorsed but in my
opinon, it is a bug, since it undermines the expected class loader
hierarchy.

Furthermore the implementation of LogFactory is also buggy. When you
look at the source code you can see that it does not take into account
that Class.getClassLoader can return null. This is exactly what happens
in your case, Dan. The class loader that loads LogFactory is the
bootstrap class loader. Check where your commons-logging.jar is located.
It is perhaps at some position where it should not be.

There is a bug report for this exact issue in the Apache bug database,
but interestingly it is marked RESOLVED. I should reopen that again.

Regards,
Volker

Dan Payne wrote:

Thanks for the response, Charlie, but it appears our problems are actuall
different.  I went ahead and tried the solutions prescribed to Volker but
to
no avail.  It appears, by looking at the local_host log, that the package
is
being found, and the classes loaded no problem.

The only thing that is different between my webapps where an exception is
not throw and is thrown is that the ones that don't throw the exception are
a part of the original tomcat install and the ones that do throw the
exception reside within additional tomcat instances, using the
CATALINA_BASE
env. variable.

-Dan

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 3:38 PM
To: 'Tomcat Users List'
Subject: RE: Exception starting filter Security Filter


someone else had this problem a last week.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html

Charlie



-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:56 PM
To: [EMAIL PROTECTED]
Subject: Exception starting filter Security Filter


I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
sourceforge.net, which is a pseudo container managed
JDBC/MySQL security
realm. it's all running on win2000. i've also upgraded my
commons-logging to
1.0.2 to see if that helps, but to no avail (although it did
change the
stack trace).


Here's the problem: it works fine when i deploy it in
%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app
in a tomcat
instance, for example %CATALINA_BASE\webapps\ROOT, an
exception is thrown
when I try to boot up the tomcat instance. It apears in the
localhost log,
whose excerpt follows: (additionaly, it may be a problem with the
commons-logging. if anyone can tell, please let me know and
i'll readress
the issue with the appropriate party)

Thanks, all.

-Dan


2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class
repositories to
work directory C:\contexts\sotx\work\Standalone\localhost\manager
2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 12:16:34 StandardManager[/manager]: Seeding of
random number
generator has been completed
2002-10-09 12:16:34 ContextConfig[/manager]: Added
certificates - request
attribute Valve
2002-10-09 12:16:34 ContextConfig[/manager]: Configured an
authenticator for
method BASIC
2002-10-09 12:16:35 StandardWrapper[/manager:default]:
Loading container
servlet default
2002-10-09 12:16:35 default: init
2002-10-09 12:16:35 StandardWrapper[/manager:invoker]:
Loading container
servlet invoker
2002-10-09 12:16:35 invoker: init
2002-10-09 12:16:35 jsp: init
2002-10-09 12:16:35 WebappLoader[]: Deploying class
repositories to work
directory C:\contexts\sotx\work\Standalone\localhost\_
2002-10-09 

  1   2   >