No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 11:55:20 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 11:53:09 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 11:48:55 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 11:45:35 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 11:42:19 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 11:40:06 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 11:37:24 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Fri, 11 Jul 2003 10:27:09 +0500

: Message contains [1] file attachments

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

No valid command found

2003-07-10 Thread MDaemon
Your message does not contain a valid command for this mail server
to process.  No action has been taken.

Message-ID: <[EMAIL PROTECTED]>
>From  : [EMAIL PROTECTED]
Date  : Thu, 10 Jul 2003 22:35:11 -0700

: Message contains [1] file attachments

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

Re: Help! Symbolic Links and Tomcat 4.1.18

2003-07-10 Thread Bill Barker
a) allowLinking doesn't work right in 4.1.18.  You need
caseSensitive="false" as well.
b) I wasn't aware that Windows supported symlinks.
c) It looks like you have a mis-match between your Tomcat Context paths, and
your IIS VirtualDirectories.

"Pat Pomatto" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Should I still edit my server.xml? I also should mention I'm running IIS
> as a server and using Virtual Directories for sym links. I tried virtual
> directories without editing the server.xml but that did not work at all.
>
>
> -Original Message-
> From: Matt Swensson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 10, 2003 4:37 PM
> To: Tomcat Users List
> Subject: Re: Help! Symbolic Links and Tomcat 4.1.18
>
> What if you just set up a symbolic link inside the
> webapp itself going to the actual directory.
>
> for example you have a directory /media/ - in your
> webapps you create a symbolic link to the media
> directory but access it as if it is a local dir.
> ../webapps/myWebApp/media->/media/
>
>
> > Has anyone gotten symbolic links working with Tomcat
> > 4.1.18? I inserted
> > into my server.xml:
> >
> >
> >
> >  > debug="0">
> > >
> className="org.apache.naming.resources.FileDirContext"
> > allowLinking="true"  />
> > 
> >
> >
> >
> > the docBase is set to an images directory that I
> > want all my web
> > applications to share. Once Tomcat is restarted
> > errors get thrown. Am I
> > completely off base? Does anyone have a suggestion
> > how to share images
> > among all of your web applications? Please any and
> > all suggestion
> > greatly appreciated.
> >
> >
> >
> > Pat Pomatto
> >
> >
> >
> >
>
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



tomcat 4.0.6 sendRedirect takes a long time

2003-07-10 Thread Jason Coleman
Hi
I previously have been using tomcat 3. When i recently upgraded to tomcat 4.0.6, the 
response.sendRedirect() method seems to take about 5mins to actually work. THis never 
was a problem with tomcat 3, is this a known problem in this version?

thanks Jason


More java.lang.NoClassDefFoundError

2003-07-10 Thread taf
Well, I'm back again for some help.  I'm running Java 1.3.1, Tomcat 3.3.1

I have a small proof of concept java program which uses javax.mail and which 
successfully sends off a note.

When I incorporate the proof of concept code into a servlet, I get:

java.lang.NoClassDefFoundError: javax/activation/DataSource

What am I missing that the straight Java code runs but the servlet can't seem to find 
the parts used by the proof code?

Is there a general approach for dealing with NoClassDef errors?  I know that the 
message indicates something other than ClassNotFound, but what really does it mean?  
Pointers to existing doc gratefully received.

Thanks!

Regards, 
Terry Fuller
[EMAIL PROTECTED]
---


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



Re: AUTHENTICATE question with WEBDAV.

2003-07-10 Thread Bill Barker
The simplest solution is to enable the SingleSignOnValve.  This allows any
login to any Context to be passes to any other Context.  If this doesn't
meet your needs, then you can:
1) Write a custom Valve to pickup the User.
2) Write a custom Authenticator that knows how to pickup the User.

"Dinh, Chinh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I have a question about WEBDAV and How authenticate works.
>
> If i have this in web.xml
>
> 
>   BASIC
>   MyCustomRealm
> 
>
> It will get an Popup Log in dialog, and it will invoke my realm's
> authenticate() method, with username and password being entered by
> the user.
>
> However, I do not want the log in dialog to pop up in all cases.
> There's a case that the user is already authenticated BEFORE he tries
> to run the webdav servlet, and in this case, he wants to bypass the
> log in dialog.
>
> Do you know How to pass in the Authenticator class some information
> so that it doesn't need to invoke the login dialog if the user is already
> authenticated ? What information would the authenticator need ?
>
> Thanks.
> - Chinh
>
>
>
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!




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



test

2003-07-10 Thread Anand Kapadi
test mail

_
HCL Beanstalk PCs. You could win one. 
http://server1.msn.co.in/sp03/hclbeanstalktour/index.asp Interested?

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


Re: How to invoke a remote program that need authentication

2003-07-10 Thread Jacob Kjome
I assume you are using Basic AUTH here, right?  Then send the 
username/password combo like this..

http://myusername:[EMAIL PROTECTED]/

Obviously, this kind of puts the username/password combo out there is clear 
text for all to see.  However, that happens even with normal Basic 
AUTH.  Base64 encoding isn't encryption.  If this is a concern, then use 
SSL with Basic AUTH.

Jake

At 08:58 PM 7/10/2003 -0700, you wrote:
Hi,
In client side i wrote a php script trying to invoke a  cgi script in web 
server

$fp = fsockopen (http://webserver, 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)\n";
} else {
   fputs ($fp, "GET /bintest.cgi?" 
HTTP/1.0\r\nHost:http://webserver\r\n\r\n";);
}

The web server will chanllenge me to supply user name and password.
How can I write the username and password into my php script in order to 
invoke the cgi script .
Any help will be really appreciated.
bin





-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.


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


How to invoke a remote program that need authentication

2003-07-10 Thread bin cai
Hi,
In client side i wrote a php script trying to invoke a  cgi script in web server
 
$fp = fsockopen (http://webserver, 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)\n";
} else {
   fputs ($fp, "GET /bintest.cgi?" HTTP/1.0\r\nHost:http://webserver\r\n\r\n";);
}
 
The web server will chanllenge me to supply user name and password.
How can I write the username and password into my php script in order to invoke the 
cgi script .
Any help will be really appreciated.
bin

 
 


-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

Re: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (

2003-07-10 Thread Eric J. Pinnell
I throw this against the wall and see what sticks...

JK2 doesn't seem to be using my settings in my workers2.properties file
such as creating the shm file or mapping the URIs listed to Tomcat, what's
wrong?

JK2 is not finding your workers2.properties file.  Specify it's location
in your httpd.conf file by adding:

JkSet config.file /full/system/path/to/workers2.properties

?

-e


On Thu, 10 Jul 2003, Tim Funk wrote:

> OK - I read the thread. Can someone summarize this one into a question and
> answer?
>
> -Tim
>
> Tim Funk wrote:
> > Duly noted (now I just have to read the what is below (and the rest of
> > the thread)
> >
> > -Tim
> >
> > John Turner wrote:
> >
> >>
> >> This should probably go in the FAQ under miscellaneous.
> >>
> >> John
> >>
> >> On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >>> Hi,
> >>>
> >>> I think we did this last week... with RH8.  The solution was to put
> >>>
> >>> JkSet config.file /full/system/path/to/workers2.properties
> >>>
> >>> in the httpd.conf file.  Many times JK2 doesn't see your properties file
> >>> and takes some wierd kind of self initiated defaults.
> >>>
> >>> -e
> >>>
> >>> On Thu, 10 Jul 2003, Bentzy Sagiv wrote:
> >>>
> 
>  My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX
>  RH8
> 
>  I'm following the HOWTO at
>  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
> 
>  I download mod jk_2 from
>  http://jakarta.apache.org/builds/jakarta-tomcat-
>  connectors/jk2/release/v2.0.
>  1/bin/linux/i386/mod_jk2-2.0.43.so
> 
>  I add to the original httpd.conf file:
> 
>  ServerName 127.0.0.1:80 and
>  LoadModule jk2_module modules/mod_jk2.so
> 
>  I copy the workers2.properties from the HOWTO as is(just changed
>  ../apache/.. to ../apache2/.. )
> 
>  I start Tomcat,it works and catalina.out looks OK.
>  I start Apache,it works and error_log looks BAD: caught SIGTERM,
>  shutting
>  down :(
> 
>  [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down
>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
>  directive is depriciated
>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
>  directive is depriciated
>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
>  directive is depriciated
>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
>  directive is depriciated
>  [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0
>  configured -- resuming normal operations
>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>  /usr/local/apache2/conf/workers2.properties
>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>  /usr/local/apache2/conf/workers2.properties
>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>  /usr/local/apache2/conf/workers2.properties
>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>  /usr/local/apache2/conf/workers2.properties
>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>  /usr/local/apache2/conf/workers2.properties
>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>  [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok
>  /usr/local/apache2/conf/workers2.properties
>  [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1
> 
> 
>  What the hell is the problem?
> 
>  Please your help!!
> 
>  bentzy
> 
> 
> 
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Problems with mailer taglib

2003-07-10 Thread Eulogio Robles
I have two pages (mailer1.jsp and mailer2.jsp). Both are almost 
identical : they receive four parameters (to, from, subject and 
message), and generate an email message using Javamail.

mailer1.jsp uses a JSP scriplet, invoking standard Java Mail API calls 
to send the message.
mailer2.jsp uses taglib-mailer and taglib-request and a JNDI mail 
session resource.

When I use mailer1, all messages go out without problems.

The problem is, when I use mailer2.jsp, the first message goes out to 
the intended recipient. Any message that is sent from there, even from 
other users on different PC's, go to the same first recipient, no matter 
what address is specified by each user. All the rest (subject and 
message body) is different for each message. Only the original first 
recipient is "shared" by all sessions.

The JNDI resource is defined on the application context on server.xml, 
as follows :

//it was "shareable", same result
   
 
   mail.smtp.host
   my-mail-host
 
   

and this is the taglib sender code on mailer2.jsp :

<[EMAIL PROTECTED] uri="/WEB-INF/taglibs-mailer.tld" prefix="mt"%>
<[EMAIL PROTECTED] session="true" isThreadSafe="true" errorPage="/errorpage.jsp" 
isErrorPage="false"%>
<[EMAIL PROTECTED] uri="/WEB-INF/taglibs-request.tld" prefix="req"%>

   
   
 
   
   
 
   
   
 
   
   
 
   
   
 
   
   
 The following errors occured
 
   
 
 Please back up a page, fix the error and resubmit.
   


I first noticed the problem, because I have a page (a form) that calls a 
second page that must generate two separate mail messages, with 
different texts for two separate recipients. It calls mailerX.jsp twice, 
via two separate  directives. When I include mailer2, both 
messages are delivered to whatever user first invoked it (mailer2) on 
some session. Both messages are indeed different, each one with its own 
subject and body. On the other hand, mailer1.jsp correctly delivers each 
message to each intended user.

I am using Apache 2 and Tomcat  4 (all latest versions).

Any ideas?

Thanks in advance,

Eulogio Robles

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


log4j with tomcat

2003-07-10 Thread Santos Jha
Hello all,

I am new to log4j.Here is my problem
In order to make log4j work with my servlet I wrote a xml configuration 
file as described in the log4j manual. I  get the refrence of this file 
name through web xml and and try to log to this file. It creates a log file
and all the calls  in the servlet where I am  refrencing this xml goes 
to this log file. Till now everything looks good.
But all the calls that I make in the classes that I use in servlet don't 
go to this file. Do I have to do something special to make that happen.

Any help will be highly appreciated.
Thank you.
Santos


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


Re: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (

2003-07-10 Thread Tim Funk
OK - I read the thread. Can someone summarize this one into a question and 
answer?

-Tim

Tim Funk wrote:
Duly noted (now I just have to read the what is below (and the rest of 
the thread)

-Tim

John Turner wrote:

This should probably go in the FAQ under miscellaneous.

John

On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell 
<[EMAIL PROTECTED]> wrote:

Hi,

I think we did this last week... with RH8.  The solution was to put

JkSet config.file /full/system/path/to/workers2.properties

in the httpd.conf file.  Many times JK2 doesn't see your properties file
and takes some wierd kind of self initiated defaults.
-e

On Thu, 10 Jul 2003, Bentzy Sagiv wrote:

My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX 
RH8

I'm following the HOWTO at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
I download mod jk_2 from
http://jakarta.apache.org/builds/jakarta-tomcat- 
connectors/jk2/release/v2.0.
1/bin/linux/i386/mod_jk2-2.0.43.so

I add to the original httpd.conf file:

ServerName 127.0.0.1:80 and
LoadModule jk2_module modules/mod_jk2.so
I copy the workers2.properties from the HOWTO as is(just changed
../apache/.. to ../apache2/.. )
I start Tomcat,it works and catalina.out looks OK.
I start Apache,it works and error_log looks BAD: caught SIGTERM, 
shutting
down :(

[Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0
configured -- resuming normal operations
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1
What the hell is the problem?

Please your help!!

bentzy



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

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






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



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


JSP not refresh

2003-07-10 Thread Johnson
Hi all,

I have this problem, when I make any changes to my jsp source and run
it, it doesn't refresh the latest changes.
But when I move it into another folder, it was working fine. Any help
would be greatly appreciated.

I m running on Win2k with Tomcat; have set "Check for newer versions of
stored page" to "Every visit to the page".

Cheers
Johnson


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



Re: TC 4.1 + symbolic linking

2003-07-10 Thread Tim Funk
Tomcat by default doesn't like symbolic links. Its a security vulnerablility. 
To use sym links - you must tell tomcat to use them.

http://marc.theaimsgroup.com/?l=tomcat-user&m=105159411609623&w=2

-Tim

Norris Shelton wrote:
We have some HTML files that are on another machine.  A link was
created (htmldoc).
I then modified the server.xml by adding the following to the
context definition:

The context will not load (no errors).  I even added an entry in
the catalina.policy:
// The permissions granted to the context WEB-INF/classes
directory
grant codeBase
"file:${catalina.home}/webapps/siteexplorer/htmldoc/-" {
};
If I remove the allowLinking resource, the app starts correctly.
 Anyone have any ideas on what the problem is.  

=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


Re: Jar in war to access own property files - possible?

2003-07-10 Thread Tim Funk
You should be able to do this (I think)

Are you doing:
Thread.getContextClassLoader().getResourceAsStream(...)
-Tim

Andy Scott wrote:
Hi,
I have a utility jar file that has classes using
property files within the jar.
This jar is then put into a war as part of a seperate
web application.
When the webapp is run I get failures which seem to be
due to the fact that the classes in the jar cannot
access the property files, also in the jar.
Is this not possible?
Andy
 


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


Re: custom error page for mod_jk

2003-07-10 Thread Tim Funk
In JK2 you can do this. I don't think this can be done with jk.

-Tim

Boris Folgmann wrote:
Hi!

Does anybody know how one could set up a maintenance page for Apache that
is automatically displayed when mod_jk can not reach tomcat, because it's
down for maintenance? At the moment I get the Error 500 page. Of course I
could overwrite this with ErrorDocument in httpd.conf, but then it's not
possible to distinguish between real errors and maintenace. Is it possible
to let apache display a HTML page that is shadowed when the application is
running?
cu,
	boris
 


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


Re: How to make Tomcat reread user's role from database

2003-07-10 Thread Tim Funk
A simple alternative is to add a page which has a meta-refresh - and the user 
gets a message saying you'll be redirected in a moment. Then meta refresh 
action automagically logs them back in.

-Tim

Michael Mattox wrote:
If it works as expected, then (Michael M) what you might consider is on
the servlet that 'upgrades' the user from trial to 'not trial'
invalidate the session, and redirect to a protected page. This would
make the container authenticate the user again, meaning the user would
need to login again, but at least they would be kicked out of their old
role.


I should have given some more details, because it is more complicated than
that.  My subscription form actually POSTS to the WorldPay server and the
user enters their credit card.  The WorldPayServer then sends me an HTTP
Post to a Struts action with the data saying the transaction was successful,
and I update the database to change the user's role from trial to gold for
example.  Since this database change is done in another thread, I don't have
access to invalidate the user's session.
Here's what I've done so far:

I've customized the page WordPay returns to the user saying the payment is
successful.  I've added a link back to our site, but the link actually logs
them out and redirects them to the homepage.  From there they log in again.
I will probably make it even more user friend by inserting a page that says
they need to login again.  This seems to be working.
Michael



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



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


RE: Tomcat-4.1.24

2003-07-10 Thread James Courtney
Also good.  Just something more informative.  Waiting for the class loader to fail 
because the java.io.tmpdir isn't available is not particularly elegant or transparent.

Jamey

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:25 PM
To: Tomcat Users List
Subject: RE: Tomcat-4.1.24


How about creating it if it doesn't exist?

Jake

At 05:22 PM 7/10/2003 -0700, you wrote:
>HAH, we just had that problem and fixed it about 5 minutes ago.  Maybe 
>Tomcat should check for it's temp directory upon startup and error out in 
>a more informative way if it doesn't exist.
>
>Jamey
>
>
>
>James Courtney
>InPhonic, Inc.
>
>-Original Message-
>From: Ray Madigan [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 10, 2003 5:17 PM
>To: Tomcat Users List
>Subject: RE: Tomcat-4.1.24
>
>
>Sorry - sometimes we do stupid things- lol
>
>I forgot to create the temp directory in $CATALINA_BASE
>
>Thanks
>
>-Original Message-
>From: Ray Madigan [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 10, 2003 1:02 PM
>To: Tomcat-User
>Subject: Tomcat-4.1.24
>
>
>I am attempting to move my application over to tomcat 4.1.24 from tomcat
>4.0.4 and I get the following error message:
>
>lost of log messages
>
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/jakarta-oro.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jakarta-oro.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/jdbc7.1-1.2.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdbc7.1-1.2.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jdom.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdom.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jstl.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jstl.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/standard.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/standard.jar
>2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/struts.jar
>to /usr/local/rtizon/webapps/Main/WEB-INF/lib/struts.jar
>2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/xercesImpl.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/xercesImpl.jar
>2003-07-10 12:40:59 ContextConfig[/Main] Exception processing JAR at
>resource path /WEB-INF/lib/jakarta-oro.jar
>javax.servlet.ServletException: Exception processing JAR at resource path
>/WEB-INF/lib/jakarta-oro.jar
> at
>org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
> at
>org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
> at 
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
>
>Has anyone seen this and know why?
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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


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



RE: Tomcat-4.1.24

2003-07-10 Thread Jacob Kjome
How about creating it if it doesn't exist?

Jake

At 05:22 PM 7/10/2003 -0700, you wrote:
HAH, we just had that problem and fixed it about 5 minutes ago.  Maybe 
Tomcat should check for it's temp directory upon startup and error out in 
a more informative way if it doesn't exist.

Jamey



James Courtney
InPhonic, Inc.
-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:17 PM
To: Tomcat Users List
Subject: RE: Tomcat-4.1.24
Sorry - sometimes we do stupid things- lol

I forgot to create the temp directory in $CATALINA_BASE

Thanks

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 1:02 PM
To: Tomcat-User
Subject: Tomcat-4.1.24
I am attempting to move my application over to tomcat 4.1.24 from tomcat
4.0.4 and I get the following error message:
lost of log messages

2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jakarta-oro.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jdbc7.1-1.2.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdbc7.1-1.2.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jdom.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdom.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jstl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jstl.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/standard.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/standard.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/struts.jar
to /usr/local/rtizon/webapps/Main/WEB-INF/lib/struts.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/xercesImpl.jar
2003-07-10 12:40:59 ContextConfig[/Main] Exception processing JAR at
resource path /WEB-INF/lib/jakarta-oro.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/jakarta-oro.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)

Has anyone seen this and know why?

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


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


RE: Tomcat: j_security_check: Form Authentication

2003-07-10 Thread Muhammad Bilal
I want to have a synchronization between the authentication stuff. Like, I 
have a web site, and every user has some role, and every user can access 
some protected resource based on his role. Now I want to use JDBC realm for 
this purpose with Form auth. so that user logs into the site only once and 
use it according to his access rights, instead he requests for a protected 
resource and then he goes to login page. You see, its quite logical that 
user should have a leverage to go to login page first or to access a 
protected resource. If things work for him in latter case why not in former?

I believe there must be some thing to do it, after all tomcat's default 
admin site is doing the same thing.

Any help?

Bilal

At 08:51 AM 10/07/2003 -0500, you wrote:
The problem is in the error message:
Invalid direct reference to form login page
In brief:  With container-based auth, when a user attempts to access a
protected resource, the container will 'remember' which resource they
tried to access, and send them off to the form login page, specified in
web.xml.  If they successfully authenticate, then the container will
then send them off to the original resource.
If you go directly to login.jsp... where are you supposed to go after ?

> -Original Message-
> From: Muhammad Bilal [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 10, 2003 4:00 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat: j_security_check: Form Authentication
>
>
> Hi,
>
> I am using Form Authentication with Tomcat 4.1.18. Every thing seems
> working, when I try to access a protected resource directly,
> it takes me to
> the login.jsp and if enter correct user/password it logs me
> in and takes to
> protected resource. But if I try to go to login.jsp first and
> enters my
> user/password it takes to some thing like
> http://203.32.143.146:8080/test/j_security_check;jsessionid=30
> 3C0E68008E1E54F0E2CBAF43553B27
> and displays
> HTTP Status 400 - Invalid direct reference to form login page
> --
> --
> type Status report
> message Invalid direct reference to form login page
> description The request sent by the client was syntactically
> incorrect
> (Invalid direct reference to form login page).
> --
> --
> Apache Tomcat/4.1.18
>
> j_security_check is the servlet which uses JDBCRealm, I need
> to know a bit
> of its detail how it works, and how is it possible that we go
> to login.jsp
> first and then it takes to page we want after success, like the admin
> section works of tomcat http://localhost:8080/admin. Btw, I
> noticed also,
> if we try to give blank user/password on admin page and click
> to submit, it
> takes to similar kind of error.
>
> I have following configurations:
> In server.xml
>  
>   reloadable="true"
> crossContext="true">
> className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_test_log." suffix=".txt"  timestamp="true"/>
> value="15"/>
> value="context.param.value"
> override="false"/>
>
> className="org.apache.catalina.realm.JDBCRealm" debug="99"
>   driverName="weblogic.jdbc.mssqlserver4.Driver"
>
> connectionURL="jdbc:weblogic:mssqlserver4:[EMAIL PROTECTED]"
>   connectionName="dev" connectionPassword="web"
>   userTable="users" userNameCol="user_name"
> userCredCol="user_pass"
>   userRoleTable="user_roles"
> roleNameCol="role_name" />
>  
> In web.xml under /test/WEB-INF
>
> 
>  Test by Bilal
>  It is a test context for
> authentication.
>   
>   
>   OnJava
> Application
>   /protected/*
>   DELETE
>   GET
>   POST
>   PUT
>   
>   
>   onjavauser
>   
>   
>   NONE
>   
>   
>   
>   FORM
>   Example Form-Based Authentication
> Area
>   
>   /login.jsp
>   /error.jsp
>   
>   
> 
>
> In log:
>
> 2003-07-10 18:27:52 WebappLoader[/test]: Reloading checks are
> enabled for
> this Context
> 2003-07-10 18:27:53 ContextConfig[/test]: WARNING: Security role name
> onjavauser used in an  without being defined in a
> 
> 2003-07-10 18:27:54 ContextConfig[/test]: Configured an
> authenticator for
> method FORM
> 2003-07-10 18:27:54 StandardManager[/test]: Seeding random
> number generator
> class java.security.SecureRandom
> 2003-07-10 18:27:54 StandardManager[/test]: Seeding of random number
> generator has been completed
> 2003-07-10 18:27:54 StandardWrapper[/test:default]: Loading container
> servlet default
> 2003-07-10 18:27:54 StandardWrapper[/test:invoker]: Loading 

RE: Tomcat-4.1.24

2003-07-10 Thread James Courtney
HAH, we just had that problem and fixed it about 5 minutes ago.  Maybe Tomcat should 
check for it's temp directory upon startup and error out in a more informative way if 
it doesn't exist.

Jamey



James Courtney
InPhonic, Inc.

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:17 PM
To: Tomcat Users List
Subject: RE: Tomcat-4.1.24


Sorry - sometimes we do stupid things- lol

I forgot to create the temp directory in $CATALINA_BASE

Thanks

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 1:02 PM
To: Tomcat-User
Subject: Tomcat-4.1.24


I am attempting to move my application over to tomcat 4.1.24 from tomcat
4.0.4 and I get the following error message:

lost of log messages

2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jakarta-oro.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jdbc7.1-1.2.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdbc7.1-1.2.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jdom.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdom.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jstl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jstl.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/standard.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/standard.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/struts.jar
to /usr/local/rtizon/webapps/Main/WEB-INF/lib/struts.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/xercesImpl.jar
2003-07-10 12:40:59 ContextConfig[/Main] Exception processing JAR at
resource path /WEB-INF/lib/jakarta-oro.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/jakarta-oro.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)

Has anyone seen this and know why?


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


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


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



RE: Tomcat-4.1.24

2003-07-10 Thread Ray Madigan
Sorry - sometimes we do stupid things- lol

I forgot to create the temp directory in $CATALINA_BASE

Thanks

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 1:02 PM
To: Tomcat-User
Subject: Tomcat-4.1.24


I am attempting to move my application over to tomcat 4.1.24 from tomcat
4.0.4 and I get the following error message:

lost of log messages

2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jakarta-oro.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jdbc7.1-1.2.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdbc7.1-1.2.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jdom.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdom.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jstl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jstl.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/standard.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/standard.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/struts.jar
to /usr/local/rtizon/webapps/Main/WEB-INF/lib/struts.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/xercesImpl.jar
2003-07-10 12:40:59 ContextConfig[/Main] Exception processing JAR at
resource path /WEB-INF/lib/jakarta-oro.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/jakarta-oro.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)

Has anyone seen this and know why?


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


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



Re: SSL Certificate in TOMCAT (PLUMTREE)

2003-07-10 Thread Jeff Owens
I had this problem.  Is the certificate signed by a well-
known CA (certificate authority) ?  My problem was
because the company signed their own certificates.

If you absolutely have to get past it, you could override
the X509TrustManager and HostnameVerifier classes.
Just be careful, there's more than 1 reason why this
could be dangerous - depending on your circumstances.


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 10, 2003 3:49 PM
Subject: SSL Certificate in TOMCAT (PLUMTREE)


> I am running TOMCAT(over 8080 non-SSL)
> 
> and it gives me this when I try to connect/load an image 
> from a secure server
> 
> Exception Message: java.security.cert.CertificateException: 
> Could not find trusted certificate 
> javax.net.ssl.SSLHandshakeException: 
> java.security.cert.CertificateException: Could not find 
> trusted certificate at 
> com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) 
> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) 
> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) 
> at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at 
> com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at 
> com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275) at 
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at 
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at 
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake
> (DashoA6275) at 
> sun.net.www.protocol.https.HttpsClient.afterConnect
> (DashoA6275) at 
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection
> .connect(DashoA6275) at 
> com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectio
> nOldImpl.connect(DashoA6275) at 
> com.plumtree.content.client.http.DiagnosticTests.testLocation
> OfCommunityTemplatingStyleSheets 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: shm and jk2?

2003-07-10 Thread James Courtney
Let me answer that myself and see if anyone corrects me.

Apache 2.0.45 is still a multiprocess application using the worker module.  Thus, 
presumably eash process has a copy of the mod_jk2 endpoint in memory, all of which 
must remain in sync for certain operations thus requiring the use of shared memory and 
the shm file.

Jamey



-Original Message-
From: James Courtney 
Sent: Thursday, July 10, 2003 3:08 PM
To: Tomcat Users List (E-mail)
Subject: shm and jk2?


What is the shm segment of the workers2.properties file for?  Is it actually used for 
a pure channel socket/lb configuration?

jk2 2.0.2
Tomcat 4.1.24
Apache 2.0.45

Thanks!

Jamey

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



SSL Certificate in TOMCAT (PLUMTREE)

2003-07-10 Thread ceo
I am running TOMCAT(over 8080 non-SSL)

and it gives me this when I try to connect/load an image 
from a secure server

Exception Message: java.security.cert.CertificateException: 
Could not find trusted certificate 
javax.net.ssl.SSLHandshakeException: 
java.security.cert.CertificateException: Could not find 
trusted certificate at 
com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) 
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) 
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) 
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake
(DashoA6275) at 
sun.net.www.protocol.https.HttpsClient.afterConnect
(DashoA6275) at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection
.connect(DashoA6275) at 
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectio
nOldImpl.connect(DashoA6275) at 
com.plumtree.content.client.http.DiagnosticTests.testLocation
OfCommunityTemplatingStyleSheets 

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



Apache 2.0.46 + Tomcat 4.1.24 -- ${serverRoot}?

2003-07-10 Thread Jay Garala
Hi Folks,
 
  I am getting this strange message (***) when I start up Tomcat:
 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
*** [Thu Jul 10 18:23:49 2003] (error ) [jk_config_file.c (279)]
config.update(): Can't find config file
${serverRoot}/conf/workers2.properties
*** [Thu Jul 10 18:23:49 2003] ( info ) [jk_config.c (251)]
config.setAttribute() Error setting config: file
${serverRoot}/conf/workers2.properties
[Thu Jul 10 18:23:49 2003] ( info ) [jk_logger_file.c (184)]  Initializing
log file stderr
[Thu Jul 10 18:23:49 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
[Thu Jul 10 18:23:49 2003] ( info ) [jk_workerenv.c (403)]  workerEnv.init()
ok ${serverRoot}/conf/workers2.properties
[INFO] AprImpl - -JK2: Initialized apr
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/261
config=C:\Tomcat\bin\..\conf\jk2.properties
 
How do you set the ${serverRoot}??  
 
Thanks 
 
Jay


RE: Help! Symbolic Links and Tomcat 4.1.18

2003-07-10 Thread Matt Swensson
I don't have experience with IIS so I am not sure how
symbolic links should be working.

wish i could be of more help.
what are the errors being thrown?


> Should I still edit my server.xml? I also should
> mention I'm running IIS
> as a server and using Virtual Directories for sym
> links. I tried virtual
> directories without editing the server.xml but that
> did not work at all.
> 
> 
> -Original Message-
> Sent: Thursday, July 10, 2003 4:37 PM
> To: Tomcat Users List
> Subject: Re: Help! Symbolic Links and Tomcat 4.1.18
> 
> What if you just set up a symbolic link inside the
> webapp itself going to the actual directory.  
> 
> for example you have a directory /media/ - in your
> webapps you create a symbolic link to the media
> directory but access it as if it is a local dir.
> ../webapps/myWebApp/media->/media/
> 
> 
> > Has anyone gotten symbolic links working with
> Tomcat
> > 4.1.18? I inserted
> > into my server.xml:
> > 
> >  
> > 
> >  > debug="0">
> > >
>
className="org.apache.naming.resources.FileDirContext"
> > allowLinking="true"  />
> > 
> >  
> >  
> > 
> > the docBase is set to an images directory that I
> > want all my web
> > applications to share. Once Tomcat is restarted
> > errors get thrown. Am I
> > completely off base? Does anyone have a suggestion
> > how to share images
> > among all of your web applications? Please any and
> > all suggestion
> > greatly appreciated.
> > 
> >  
> > 
> > Pat Pomatto
> > 
> >  
> > 
> > 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: jk2.properties

2003-07-10 Thread James Courtney
Thanks Simon.  It's just odd that it's settings don't override what's in server.xml or 
that you can set the same thing both places.  I could see using jk2.properties for 
extended properties specific to each channel type but things like host and port that 
are specified in the server.xml are just confusing to repeat in jk2.properties.  Maybe 
the best approach is, as you say, to just comment the file but leave it there to avoid 
the warning.  Thanks!

Jamey


James Courtney
InPhonic, Inc.

-Original Message-
From: Simon Pabst [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 3:07 PM
To: Tomcat Users List
Subject: Re: jk2.properties


I think you can leave all entries commented when you're using channelSockets,
however when you use channelUnix (fast unix sockets) you need some entries 
in jk2.properties.
(see http://www.pubbitch.org/jboss/mod_jk2.html for details)

At 14:28 10.07.2003 -0700, you wrote:
>Under what circumstances are the properties set in this file relevant?  At 
>least for channelSocket they seem to at best be overridden by those in the 
>server.xml for the corresponding CoyoteConnector.  I'm using Tomcat 4.1.24.
>
>Jamey


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


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



shm and jk2?

2003-07-10 Thread James Courtney
What is the shm segment of the workers2.properties file for?  Is it actually used for 
a pure channel socket/lb configuration?

jk2 2.0.2
Tomcat 4.1.24
Apache 2.0.45

Thanks!

Jamey


Re: jk2.properties

2003-07-10 Thread Simon Pabst
I think you can leave all entries commented when you're using channelSockets,
however when you use channelUnix (fast unix sockets) you need some entries 
in jk2.properties.
(see http://www.pubbitch.org/jboss/mod_jk2.html for details)

At 14:28 10.07.2003 -0700, you wrote:
Under what circumstances are the properties set in this file relevant?  At 
least for channelSocket they seem to at best be overridden by those in the 
server.xml for the corresponding CoyoteConnector.  I'm using Tomcat 4.1.24.

Jamey


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


RE: Help! Symbolic Links and Tomcat 4.1.18

2003-07-10 Thread Pat Pomatto
Should I still edit my server.xml? I also should mention I'm running IIS
as a server and using Virtual Directories for sym links. I tried virtual
directories without editing the server.xml but that did not work at all.


-Original Message-
From: Matt Swensson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 4:37 PM
To: Tomcat Users List
Subject: Re: Help! Symbolic Links and Tomcat 4.1.18

What if you just set up a symbolic link inside the
webapp itself going to the actual directory.  

for example you have a directory /media/ - in your
webapps you create a symbolic link to the media
directory but access it as if it is a local dir.
../webapps/myWebApp/media->/media/


> Has anyone gotten symbolic links working with Tomcat
> 4.1.18? I inserted
> into my server.xml:
> 
>  
> 
>  debug="0">
>
className="org.apache.naming.resources.FileDirContext"
> allowLinking="true"  />
> 
>  
>  
> 
> the docBase is set to an images directory that I
> want all my web
> applications to share. Once Tomcat is restarted
> errors get thrown. Am I
> completely off base? Does anyone have a suggestion
> how to share images
> among all of your web applications? Please any and
> all suggestion
> greatly appreciated.
> 
>  
> 
> Pat Pomatto
> 
>  
> 
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


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



RE: XML DOCTYPE problem

2003-07-10 Thread Brian Menke
Hi Robert, thanks for the tip. I did try moving it and the xml files to
different places inside my webapp subdirectory with no luck. But I didn't
try the web-inf directory. Unfortunately, I can't change the xml instance
itself, so I have to figure out a way to use it as is.

-Brian

-Original Message-
From: Robert Wray [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 10:41 AM
To: Tomcat Users List
Subject: RE: XML DOCTYPE problem


Have you tried moving your .dtd file to somewhere else? Try moving so that
is accessible via web or say in the /WEB-INF/dtds/innovtech/datasheet.dtd
of your application. Is there a particular reason you need to store all
your dtd's in "c:/dtds" ?

At 07:42 AM 10/07/2003 -0700, you wrote:
>This seems very strange. Almost any xml editor or xml system uses the
public
>or system identifier to point to a the DTD so it can vaildate the instance.
>The public or system identifier is part of EVERY valid xml file. There must
>be some way to handle it?? It's true that the jstl xml parser doesn't
>validate it, that's not what I need since I will be producing valid xml, I
>just need the jstl x:parse to ignore it so I don't get an error?? Someone
>must have run into this before.
>
>Thanks for the help though. I'll keep researching it.
>
>-Brian
>
>-Original Message-
>From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 10, 2003 1:15 AM
>To: Tomcat Users List
>Subject: RE: XML DOCTYPE problem
>
>
>And i think it even has to have a http:// in front
>
>-Original Message-
>From: Abid Ali Teepo
>Sent: 10. juli 2003 09:38
>To: Tomcat Users List
>Subject: RE: XML DOCTYPE problem
>
>
>I think the reference to a doctype has to be on the format
>www.somesite.com/dtd/data.dtd or similar
>
>Besides i don't thinkt it will actually validate against that
>DTD anyway 
>
>-Original Message-
>From: Brian Menke [mailto:[EMAIL PROTECTED]
>Sent: 10. juli 2003 07:21
>To: Tomcat Users List
>Subject: XML DOCTYPE problem
>
>
>Hi everyone,
>
>I have created a JSP page that use the jstl xml tag library, specifically
>using
>xpath. Everything works perfectly fine as long as I don't have a doctype
>declaration like the following in my XML instance:
>
>"c:/dtds/innovtech/datasheet.dtd">
>
>If I remove it, everything works great, but if I don't, I get a java error
>like this:
>
>org.apache.jasper.JasperException: Could not resolve entity reference:
>"///c:/dtds/innovtech/datasheet.dtd"
>
>I have to have the doctype in the xml. Does anyone know how I can fix
this??
>
>I did post this to the taglib email list, but it doesn't seem to get near
>the traffic as this group.
>
>Thanks!
>
>-Brian
>


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



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



WEBDAV and FORM-Based Authentication

2003-07-10 Thread Dinh, Chinh

Does anyone know if it is possible to have a FORM-based authentication with webdav 
servlet (which is open as a "web folder"). 

I have tried, but unsuccessfully.  If a servlet runs in a regular way (HTTP://), 
the form log-in page is displayed.  However, if the webdav servlet is open the 
"webdav" way (as a "web folder"), the form is never displayed ?  

Thanks . 

- Chinh


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

1 Manager 3 hosts.

2003-07-10 Thread Angus Mezick
1) I have 3 host elements in my server.xml.  Do I need to start a
manager for each host or can one manager access all hosts?
2) How do I set a context not to start on tomcat startup?  This is for
development, I have a bunch of code bases and don't want to start all of
them at the same time.


Angus Mezick
GuideStar - Philanthropic Research Inc.
427 Scotland St.
Williamsburg, Virginia 23185
PHONE: (757)299-4631 x35  FAX:(757)229-8912
[EMAIL PROTECTED] 
www.guidestar.org 

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



Re: Help! Symbolic Links and Tomcat 4.1.18

2003-07-10 Thread Matt Swensson
What if you just set up a symbolic link inside the
webapp itself going to the actual directory.  

for example you have a directory /media/ - in your
webapps you create a symbolic link to the media
directory but access it as if it is a local dir.
../webapps/myWebApp/media->/media/


> Has anyone gotten symbolic links working with Tomcat
> 4.1.18? I inserted
> into my server.xml:
> 
>  
> 
>  debug="0">
>
className="org.apache.naming.resources.FileDirContext"
> allowLinking="true"  />
> 
>  
>  
> 
> the docBase is set to an images directory that I
> want all my web
> applications to share. Once Tomcat is restarted
> errors get thrown. Am I
> completely off base? Does anyone have a suggestion
> how to share images
> among all of your web applications? Please any and
> all suggestion
> greatly appreciated.
> 
>  
> 
> Pat Pomatto
> 
>  
> 
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Help! Symbolic Links and Tomcat 4.1.18

2003-07-10 Thread Pat Pomatto
Has anyone gotten symbolic links working with Tomcat 4.1.18? I inserted
into my server.xml:

 


   

 
 

the docBase is set to an images directory that I want all my web
applications to share. Once Tomcat is restarted errors get thrown. Am I
completely off base? Does anyone have a suggestion how to share images
among all of your web applications? Please any and all suggestion
greatly appreciated.

 

Pat Pomatto

 



jk2.properties

2003-07-10 Thread James Courtney
Under what circumstances are the properties set in this file relevant?  At least for 
channelSocket they seem to at best be overridden by those in the server.xml for the 
corresponding CoyoteConnector.  I'm using Tomcat 4.1.24.

Jamey


Re: Run as nonroot user

2003-07-10 Thread Rick Roberts
You should only need to restart Apache if you have made changes to httpd.conf or 
to mod_jk2.conf (which is usually #Include(ed) in you httpd.conf file.

Which is a pretty rare occurance for me.

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


JNI and Servlet

2003-07-10 Thread Ke Song


Hi, I have an Java Application that access native library via JNI. The JNI native code 
opens a file and retrieve some info from the file. The application works properly in 
stand alone mode. However, when I run it as a Servlet, the native code is not able to 
find that file in the specified path. 

Anybody has any clue about what could be done to fix this?

thanks.

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



Re: webapplication as virtual host root

2003-07-10 Thread Simon Pabst
Just use an empty String as Context path in tomcat/conf/server.xml, for 
example:


If you want to have both URLs working but not configure everything twice,
another method would be to leave the application as is and use Apache's 
mod_rewrite to redirect all requests to the right URL,
for example:

RewriteEngine On
RewriteRule ^/$ /tgp/ [R]
# or with specified host
RewriteRule ^/$ http://localhost/tgp/ [R]
 (see http://httpd.apache.org/docs/misc/rewriteguide.html)

At 12:03 10.07.2003 -0700, you wrote:
i know this isn't the most sexy question in the world.  but, my webapp is 
getting pounded by traffic right now, and i need this to finish off a 
desperate performance enhancement . . .

does anyone know how to set a webapplication as the root of a virtual host 
using mod_jk2?  basically, i have a webapp /tgp that is accessible via 
http://localhost/tgp -- but i want this app to be accessible through a 
virtual host http://tgp --> http://localhost/tgp

if anyone could help, you would save me dozens of customers.


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


configuration

2003-07-10 Thread Jorge Castro
Hi

I am new to Tomcat and I am having trouble running my Web application.

I have deployed all my classes (including several servlets) under directory
/tomcat401_base/webapps/X
This part seems ok because, using the manager, I can verify that all the
servlets are up and running.

The problem starts when the servlets try to read files (xml, xsl, and other
type files) that they rely on.

These files are organised into four different directories : /data, /xsl,
/docs /email, and /xmli (all placed just under /X )
In addition, there is one other directory X/lib which contains jar files
that the application must access
to look for needed classes.

So far, I could not get the servlets to access the directories containing
the supporting files!

I read in a Tomcat guide that a possible solution would be to insert the
following node in the web.xml page for the application:


merchants.xml
./data/merchants.xml


Here, merchants.xml is a file (in directory /data) that one of the servlets
must access, at code line: getInitParameter("merchants.xml")

However, this did not work for me because I do not know the DTD for the
web.xml .

Given the above, I would appreciate if anyone could explain :

1- If the above "solution" is likely to work, and if yes where should I
include the  nodes in the web.xml file?

2- If there is a better alternative solution to solve this application
configuration problem?

3- How do I tell the application to look for classes in the /lib/*.jar
files?

Thank you

Jorge Castro


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



getParameter does not work with webdav servlet

2003-07-10 Thread Dinh, Chinh

Hi 

I found an interesting problem ...

If I run http://../webdavservlet?param1=YYY

 

req.getParameter("param1") returns “YYY”  ONLY IF I run the webdav servlet in the 
regular way (open IE -> type in the URL and return).  If I run webdav servlet the 
“webdav” way (File | Open – choose “Open as  webfolder” as you enter the same URL), 
req.getParameter("param1") returns NULL . 



Do you have any idea ? Is it possible to get the parameter from webdav servlet if we 
run webdav as  a webfolder ? Thanks.

- Chinh


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: Tomcat-4.1.24

2003-07-10 Thread Ray Madigan
The same war that worked in 4.0.4 was copied to the new $CATALINA_BASE
directory.  It worked fine in 4.0.4?

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 1:14 PM
To: Tomcat Users List
Subject: Re: Tomcat-4.1.24



corrupt jakarta-oro.jar perhaps?

Jake

At 01:01 PM 7/10/2003 -0700, you wrote:
>I am attempting to move my application over to tomcat 4.1.24 from tomcat
>4.0.4 and I get the following error message:
>
>lost of log messages
>.
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/jakarta-oro.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jakarta-oro.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/jdbc7.1-1.2.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdbc7.1-1.2.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jdom.jar
to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdom.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jstl.jar
to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/jstl.jar
>2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/standard.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/standard.jar
>2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/struts.jar
>to /usr/local/rtizon/webapps/Main/WEB-INF/lib/struts.jar
>2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR
>/WEB-INF/lib/xercesImpl.jar to
>/usr/local/rtizon/webapps/Main/WEB-INF/lib/xercesImpl.jar
>2003-07-10 12:40:59 ContextConfig[/Main] Exception processing JAR at
>resource path /WEB-INF/lib/jakarta-oro.jar
>javax.servlet.ServletException: Exception processing JAR at resource path
>/WEB-INF/lib/jakarta-oro.jar
> at
>org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930
)
> at
>org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
> at
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
>
>Has anyone seen this and know why?
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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


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



RE: Run as nonroot user

2003-07-10 Thread Eric J. Pinnell
It works for me.  Some people are superstitious and I have a tendancy to
bang things around.

You could always try it and see if it works for you.

-e

On Thu, 10 Jul 2003, Michele Neylon:: Blacknight Solutions wrote:

>
> > A better solution would be to run apache as a front end and
> > have it connect to tomcat.  Since tomcat listens on port 8009
> > a non-privliged user can stop and start it.  You can just let
> > apache run...  you won't have to restart it.
>
> That sounds like an interesting method. At the moment we have to manually
> restart both. I was of the understanding that you needed to stop and start
> Apache or else there would be problems with the JK2 connector. Did I miss
> something?
>
>
>
>
> #
> This message (and any attachment) is intended only for the
> recipient and may contain confidential and/or privileged
> material.  If you have received this in error, please contact the
> sender and delete this message immediately.  Disclosure, copying
> or other action taken in respect of this email or in
> reliance to it is prohibited.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: tracking downloads

2003-07-10 Thread Justin Ruthenbeck
A single String regex (or whatever) check like this isn't something 
considered "significant" overhead.  Tomcat is already matching patterns 
many times before it even gets to you.  Don't worry about the overhead.

justin

At 12:54 PM 7/10/2003, you wrote:
I like that idea but it would require that I check every single request for
a matching pattern ( a download) and it seems to me that would produce a
significant amount of overhead, slowing the appserver quite a bit?
Thanks,

-Mark

Justin Ruthenbeck wrote:
|| Why not write a filter that puts an entry in a database table after
|| the file has been successfully served?  This way you can log
|| whatever you want (who, what, when, size, ip address, duration,
|| application-specific info, etc).  The report could then be run
|| whenever you need the information and from any machine with access
|| to the database (not necessarily a Java reporting solution).
||
|| This seems logical, especially since you, "will not only need to
|| record the download but query the database (or in this case
|| documentum) in order to check for a specific attribute relevant to
|| the report."
||
|| justin
||
||
|| At 11:38 AM 7/10/2003, you wrote:
||| Angus Mezick wrote:
 You mean, like use the items in the access log?  You could always
 create a valve that watches for certain paths and updates a DB/file
 entry or some such.
 --Angus

| -Original Message-
| From: Mark F [mailto:[EMAIL PROTECTED]
| Sent: Thursday, July 10, 2003 2:15 PM
| To: Tomcat Users List
| Subject: tracking downloads
|
|
| We need to track every time a file is downloaded from our
| server so that we may report on usage.  We are currently
| migrating to a new Java/JSP (Documentum and WDK) based Web
| application.  We wrote a perl script before under the old
| system to parse the log files and construct a report but I'm
| fairly certain there is a better way now that we are using
| Tomcat and Java.  I thought about using a filter to increment
| a counter every time a request matched a particular pattern
| and I also thought about using the log file approach again
| this time using a java logging package but I'm not really
| sure what the best approach would be.  Especially since we
| will not only need to record the download but query the
| database (or in this case documentum) in order to check for a
| specific attribute relevant to the report.
|
| Any ideas on how best to accomplish this are appreciated.
|
| -Mark
|

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
|||
|||
||| -
||| To unsubscribe, e-mail: [EMAIL PROTECTED]
||| For additional commands, e-mail: [EMAIL PROTECTED]
||
||
|| 
|| Justin Ruthenbeck
|| Software Engineer, NextEngine Inc.
|| justinr - AT - nextengine DOT com
|| Confidential
|| See http://www.nextengine.com/confidentiality.php
|| 
||
||
|| -
|| To unsubscribe, e-mail: [EMAIL PROTECTED]
|| For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
   See http://www.nextengine.com/confidentiality.php

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


Re: Tomcat-4.1.24

2003-07-10 Thread Jacob Kjome
corrupt jakarta-oro.jar perhaps?

Jake

At 01:01 PM 7/10/2003 -0700, you wrote:
I am attempting to move my application over to tomcat 4.1.24 from tomcat
4.0.4 and I get the following error message:
lost of log messages
.
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jakarta-oro.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jdbc7.1-1.2.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdbc7.1-1.2.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jdom.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdom.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jstl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jstl.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/standard.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/standard.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/struts.jar
to /usr/local/rtizon/webapps/Main/WEB-INF/lib/struts.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/xercesImpl.jar
2003-07-10 12:40:59 ContextConfig[/Main] Exception processing JAR at
resource path /WEB-INF/lib/jakarta-oro.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/jakarta-oro.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)

Has anyone seen this and know why?

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


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


TC 4.1 + symbolic linking

2003-07-10 Thread Norris Shelton
We have some HTML files that are on another machine.  A link was
created (htmldoc).

I then modified the server.xml by adding the following to the
context definition:


The context will not load (no errors).  I even added an entry in
the catalina.policy:
// The permissions granted to the context WEB-INF/classes
directory
grant codeBase
"file:${catalina.home}/webapps/siteexplorer/htmldoc/-" {
};


If I remove the allowLinking resource, the app starts correctly.
 Anyone have any ideas on what the problem is.  

=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Run as nonroot user

2003-07-10 Thread Michele Neylon:: Blacknight Solutions

> A better solution would be to run apache as a front end and 
> have it connect to tomcat.  Since tomcat listens on port 8009 
> a non-privliged user can stop and start it.  You can just let 
> apache run...  you won't have to restart it.

That sounds like an interesting method. At the moment we have to manually
restart both. I was of the understanding that you needed to stop and start
Apache or else there would be problems with the JK2 connector. Did I miss
something?




#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 


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



Tomcat-4.1.24

2003-07-10 Thread Ray Madigan
I am attempting to move my application over to tomcat 4.1.24 from tomcat
4.0.4 and I get the following error message:

lost of log messages
.
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jakarta-oro.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/jdbc7.1-1.2.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdbc7.1-1.2.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jdom.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jdom.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/jstl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/jstl.jar
2003-07-10 12:40:58 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/standard.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/standard.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR /WEB-INF/lib/struts.jar
to /usr/local/rtizon/webapps/Main/WEB-INF/lib/struts.jar
2003-07-10 12:40:59 WebappLoader[/Main]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
/usr/local/rtizon/webapps/Main/WEB-INF/lib/xercesImpl.jar
2003-07-10 12:40:59 ContextConfig[/Main] Exception processing JAR at
resource path /WEB-INF/lib/jakarta-oro.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/jakarta-oro.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)

Has anyone seen this and know why?


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



RE: tracking downloads

2003-07-10 Thread Angus Mezick
Actually, as I think on it more I realize that if you do not absolutely
need real time reporting of when a download has occurred you are better
off just processing the access log.  Anything in the server will just be
more server overhead.  Might not matter, depends on how busy your system
is and if you plan on getting posted to slashdot.org's front page in the
near future :)
--Angus

> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 10, 2003 3:56 PM
> To: Tomcat Users List
> Subject: Re: tracking downloads
> 
> 
> 
> After the file has been served, do a forward to another page 
> or servlet 
> that makes the DB entry.
> 
> John
> 
> On Thu, 10 Jul 2003 14:54:49 -0500, Mark F <[EMAIL PROTECTED]> wrote:
> 
> > I like that idea but it would require that I check every 
> single request 
> > for
> > a matching pattern ( a download) and it seems to me that 
> would produce a
> > significant amount of overhead, slowing the appserver quite a bit?
> >
> > Thanks,
> >
> > -Mark
> >
> > Justin Ruthenbeck wrote:
> > || Why not write a filter that puts an entry in a database 
> table after
> > || the file has been successfully served?  This way you can log
> > || whatever you want (who, what, when, size, ip address, duration,
> > || application-specific info, etc).  The report could then be run
> > || whenever you need the information and from any machine 
> with access
> > || to the database (not necessarily a Java reporting solution).
> > ||
> > || This seems logical, especially since you, "will not only need to
> > || record the download but query the database (or in this case
> > || documentum) in order to check for a specific attribute 
> relevant to
> > || the report."
> > ||
> > || justin
> > ||
> > ||
> > || At 11:38 AM 7/10/2003, you wrote:
> > ||| Angus Mezick wrote:
> >  You mean, like use the items in the access log?  You 
> could always
> >  create a valve that watches for certain paths and 
> updates a DB/file
> >  entry or some such.
> >  --Angus
> > 
> > | -Original Message-
> > | From: Mark F [mailto:[EMAIL PROTECTED]
> > | Sent: Thursday, July 10, 2003 2:15 PM
> > | To: Tomcat Users List
> > | Subject: tracking downloads
> > |
> > |
> > | We need to track every time a file is downloaded from our
> > | server so that we may report on usage.  We are currently
> > | migrating to a new Java/JSP (Documentum and WDK) based Web
> > | application.  We wrote a perl script before under the old
> > | system to parse the log files and construct a report but I'm
> > | fairly certain there is a better way now that we are using
> > | Tomcat and Java.  I thought about using a filter to increment
> > | a counter every time a request matched a particular pattern
> > | and I also thought about using the log file approach again
> > | this time using a java logging package but I'm not really
> > | sure what the best approach would be.  Especially since we
> > | will not only need to record the download but query the
> > | database (or in this case documentum) in order to check for a
> > | specific attribute relevant to the report.
> > |
> > | Any ideas on how best to accomplish this are appreciated.
> > |
> > | -Mark
> > |
> > 
> >  
> - 
> >
> >
> >  To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> >  For additional commands, e-mail:
> >  [EMAIL PROTECTED]
> > |||
> > |||
> > ||| 
> -
> > ||| To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > ||| For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > ||
> > ||
> > || 
> > || Justin Ruthenbeck
> > || Software Engineer, NextEngine Inc.
> > || justinr - AT - nextengine DOT com
> > || Confidential
> > || See http://www.nextengine.com/confidentiality.php
> > || 
> > ||
> > ||
> > || 
> -
> > || To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > || For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> Using M2, Opera's revolutionary e-mail client: 
> http://www.opera.com/m2/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: tracking downloads

2003-07-10 Thread Cox, Charlie
you can map your filter for only those requests that you want to track. i.e.
/downloads/*

Charlie

> -Original Message-
> From: Mark F [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 10, 2003 3:55 PM
> To: Tomcat Users List
> Subject: Re: tracking downloads
> 
> 
> I like that idea but it would require that I check every 
> single request for
> a matching pattern ( a download) and it seems to me that 
> would produce a
> significant amount of overhead, slowing the appserver quite a bit?
> 
> Thanks,
> 
> -Mark
> 
> Justin Ruthenbeck wrote:
> || Why not write a filter that puts an entry in a database table after
> || the file has been successfully served?  This way you can log
> || whatever you want (who, what, when, size, ip address, duration,
> || application-specific info, etc).  The report could then be run
> || whenever you need the information and from any machine with access
> || to the database (not necessarily a Java reporting solution).
> ||
> || This seems logical, especially since you, "will not only need to
> || record the download but query the database (or in this case
> || documentum) in order to check for a specific attribute relevant to
> || the report."
> ||
> || justin
> ||
> ||
> || At 11:38 AM 7/10/2003, you wrote:
> ||| Angus Mezick wrote:
>  You mean, like use the items in the access log?  You could always
>  create a valve that watches for certain paths and 
> updates a DB/file
>  entry or some such.
>  --Angus
> 
> | -Original Message-
> | From: Mark F [mailto:[EMAIL PROTECTED]
> | Sent: Thursday, July 10, 2003 2:15 PM
> | To: Tomcat Users List
> | Subject: tracking downloads
> |
> |
> | We need to track every time a file is downloaded from our
> | server so that we may report on usage.  We are currently
> | migrating to a new Java/JSP (Documentum and WDK) based Web
> | application.  We wrote a perl script before under the old
> | system to parse the log files and construct a report but I'm
> | fairly certain there is a better way now that we are using
> | Tomcat and Java.  I thought about using a filter to increment
> | a counter every time a request matched a particular pattern
> | and I also thought about using the log file approach again
> | this time using a java logging package but I'm not really
> | sure what the best approach would be.  Especially since we
> | will not only need to record the download but query the
> | database (or in this case documentum) in order to check for a
> | specific attribute relevant to the report.
> |
> | Any ideas on how best to accomplish this are appreciated.
> |
> | -Mark
> |
> 
>  
> -
>  To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
>  For additional commands, e-mail:
>  [EMAIL PROTECTED]
> |||
> |||
> ||| 
> -
> ||| To unsubscribe, e-mail: [EMAIL PROTECTED]
> ||| For additional commands, e-mail: 
> [EMAIL PROTECTED]
> ||
> ||
> || 
> || Justin Ruthenbeck
> || Software Engineer, NextEngine Inc.
> || justinr - AT - nextengine DOT com
> || Confidential
> || See http://www.nextengine.com/confidentiality.php
> || 
> ||
> ||
> || 
> -
> || To unsubscribe, e-mail: [EMAIL PROTECTED]
> || For additional commands, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: tracking downloads

2003-07-10 Thread John Turner
After the file has been served, do a forward to another page or servlet 
that makes the DB entry.

John

On Thu, 10 Jul 2003 14:54:49 -0500, Mark F <[EMAIL PROTECTED]> wrote:

I like that idea but it would require that I check every single request 
for
a matching pattern ( a download) and it seems to me that would produce a
significant amount of overhead, slowing the appserver quite a bit?

Thanks,

-Mark

Justin Ruthenbeck wrote:
|| Why not write a filter that puts an entry in a database table after
|| the file has been successfully served?  This way you can log
|| whatever you want (who, what, when, size, ip address, duration,
|| application-specific info, etc).  The report could then be run
|| whenever you need the information and from any machine with access
|| to the database (not necessarily a Java reporting solution).
||
|| This seems logical, especially since you, "will not only need to
|| record the download but query the database (or in this case
|| documentum) in order to check for a specific attribute relevant to
|| the report."
||
|| justin
||
||
|| At 11:38 AM 7/10/2003, you wrote:
||| Angus Mezick wrote:
 You mean, like use the items in the access log?  You could always
 create a valve that watches for certain paths and updates a DB/file
 entry or some such.
 --Angus

| -Original Message-
| From: Mark F [mailto:[EMAIL PROTECTED]
| Sent: Thursday, July 10, 2003 2:15 PM
| To: Tomcat Users List
| Subject: tracking downloads
|
|
| We need to track every time a file is downloaded from our
| server so that we may report on usage.  We are currently
| migrating to a new Java/JSP (Documentum and WDK) based Web
| application.  We wrote a perl script before under the old
| system to parse the log files and construct a report but I'm
| fairly certain there is a better way now that we are using
| Tomcat and Java.  I thought about using a filter to increment
| a counter every time a request matched a particular pattern
| and I also thought about using the log file approach again
| this time using a java logging package but I'm not really
| sure what the best approach would be.  Especially since we
| will not only need to record the download but query the
| database (or in this case documentum) in order to check for a
| specific attribute relevant to the report.
|
| Any ideas on how best to accomplish this are appreciated.
|
| -Mark
|

 - 

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
|||
|||
||| -
||| To unsubscribe, e-mail: [EMAIL PROTECTED]
||| For additional commands, e-mail: [EMAIL PROTECTED]
||
||
|| 
|| Justin Ruthenbeck
|| Software Engineer, NextEngine Inc.
|| justinr - AT - nextengine DOT com
|| Confidential
|| See http://www.nextengine.com/confidentiality.php
|| 
||
||
|| -
|| To unsubscribe, e-mail: [EMAIL PROTECTED]
|| For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tracking downloads

2003-07-10 Thread Mark F
I like that idea but it would require that I check every single request for
a matching pattern ( a download) and it seems to me that would produce a
significant amount of overhead, slowing the appserver quite a bit?

Thanks,

-Mark

Justin Ruthenbeck wrote:
|| Why not write a filter that puts an entry in a database table after
|| the file has been successfully served?  This way you can log
|| whatever you want (who, what, when, size, ip address, duration,
|| application-specific info, etc).  The report could then be run
|| whenever you need the information and from any machine with access
|| to the database (not necessarily a Java reporting solution).
||
|| This seems logical, especially since you, "will not only need to
|| record the download but query the database (or in this case
|| documentum) in order to check for a specific attribute relevant to
|| the report."
||
|| justin
||
||
|| At 11:38 AM 7/10/2003, you wrote:
||| Angus Mezick wrote:
 You mean, like use the items in the access log?  You could always
 create a valve that watches for certain paths and updates a DB/file
 entry or some such.
 --Angus

| -Original Message-
| From: Mark F [mailto:[EMAIL PROTECTED]
| Sent: Thursday, July 10, 2003 2:15 PM
| To: Tomcat Users List
| Subject: tracking downloads
|
|
| We need to track every time a file is downloaded from our
| server so that we may report on usage.  We are currently
| migrating to a new Java/JSP (Documentum and WDK) based Web
| application.  We wrote a perl script before under the old
| system to parse the log files and construct a report but I'm
| fairly certain there is a better way now that we are using
| Tomcat and Java.  I thought about using a filter to increment
| a counter every time a request matched a particular pattern
| and I also thought about using the log file approach again
| this time using a java logging package but I'm not really
| sure what the best approach would be.  Especially since we
| will not only need to record the download but query the
| database (or in this case documentum) in order to check for a
| specific attribute relevant to the report.
|
| Any ideas on how best to accomplish this are appreciated.
|
| -Mark
|

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
|||
|||
||| -
||| To unsubscribe, e-mail: [EMAIL PROTECTED]
||| For additional commands, e-mail: [EMAIL PROTECTED]
||
||
|| 
|| Justin Ruthenbeck
|| Software Engineer, NextEngine Inc.
|| justinr - AT - nextengine DOT com
|| Confidential
|| See http://www.nextengine.com/confidentiality.php
|| 
||
||
|| -
|| To unsubscribe, e-mail: [EMAIL PROTECTED]
|| For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Memory usage

2003-07-10 Thread Matt Swensson
I use 'ps' to figure it out (are you using linux?)

I do something like:

ps aux | grep tomcat

i grep tomcat because that is the user my tomcat runs
as... you could also use 'top'



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: confused on debug level

2003-07-10 Thread Matt Swensson
So I figured out the problem.. it turns out that the
errors are now in another log. There was one log I
missed in my checks...



--- Matt Swensson <[EMAIL PROTECTED]> wrote:
> I have upgraded to tomcat 4.1.18 recently from
> 4.0.4. 
> When my JSP's compile and there is an error in one
> of
> the included files, the output I get in my error log
> is :
> 
> Compile failed; see the compiler error output for
> details.
> at
>
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
> at
>
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
> 
> 
> I used to get more verbose errors, like what exactly
> the problem was.  I have searched the archives and
> have turned debugging up in some areas (web.xml from
> WARNING to DEBUG, Content from 0 to debug=9), but I
> still get the same message.
> 
> Where am I supposed to turn it up?
> 
> Thanks,
> Matt
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Memory usage

2003-07-10 Thread Eric J. Pinnell
Hi,

You could turn on verbose garbage collection and it will give you
detailed info on the gc'ing.  It will show you how much memory it is
using...  like a kinda before the collection and after the collection
reading.  This isn't something you want to run in production (for a long
time at least).

add -verbosegc to your JAVA_OPTS

-e

On Thu, 10 Jul 2003, Luc Foisy wrote:

>
> Is there a quick and easy way to figure out the actual memory use of everything 
> related to the tomcat server?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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



RE: Memory usage

2003-07-10 Thread Angus Mezick
Checkout jvmstat on http://developers.sun.com/techtopics/emergingtech/

> -Original Message-
> From: Luc Foisy [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 10, 2003 3:19 PM
> To: Tomcat User List (E-mail)
> Subject: Memory usage
> 
> 
> 
> Is there a quick and easy way to figure out the actual memory 
> use of everything related to the tomcat server?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Memory usage

2003-07-10 Thread Luc Foisy

Is there a quick and easy way to figure out the actual memory use of everything 
related to the tomcat server?

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



Re: tracking downloads

2003-07-10 Thread Justin Ruthenbeck
Why not write a filter that puts an entry in a database table after the 
file has been successfully served?  This way you can log whatever you want 
(who, what, when, size, ip address, duration, application-specific info, 
etc).  The report could then be run whenever you need the information and 
from any machine with access to the database (not necessarily a Java 
reporting solution).

This seems logical, especially since you, "will not only need to record the 
download but query the database (or in this case documentum) in order to 
check for a specific attribute relevant to the report."

justin

At 11:38 AM 7/10/2003, you wrote:
Angus Mezick wrote:
| You mean, like use the items in the access log?  You could always
| create a valve that watches for certain paths and updates a DB/file
| entry or some such.
| --Angus
|
|| -Original Message-
|| From: Mark F [mailto:[EMAIL PROTECTED]
|| Sent: Thursday, July 10, 2003 2:15 PM
|| To: Tomcat Users List
|| Subject: tracking downloads
||
||
|| We need to track every time a file is downloaded from our
|| server so that we may report on usage.  We are currently
|| migrating to a new Java/JSP (Documentum and WDK) based Web
|| application.  We wrote a perl script before under the old
|| system to parse the log files and construct a report but I'm
|| fairly certain there is a better way now that we are using
|| Tomcat and Java.  I thought about using a filter to increment
|| a counter every time a request matched a particular pattern
|| and I also thought about using the log file approach again
|| this time using a java logging package but I'm not really
|| sure what the best approach would be.  Especially since we
|| will not only need to record the download but query the
|| database (or in this case documentum) in order to check for a
|| specific attribute relevant to the report.
||
|| Any ideas on how best to accomplish this are appreciated.
||
|| -Mark
||
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
   See http://www.nextengine.com/confidentiality.php

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


webapplication as virtual host root

2003-07-10 Thread Todd Fulton
i know this isn't the most sexy question in the world.  but, my webapp is getting 
pounded by traffic right now, and i need this to finish off a desperate performance 
enhancement . . .

does anyone know how to set a webapplication as the root of a virtual host using 
mod_jk2?  basically, i have a webapp /tgp that is accessible via http://localhost/tgp 
-- but i want this app to be accessible through a virtual host http://tgp --> 
http://localhost/tgp 

if anyone could help, you would save me dozens of customers.



Re: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (

2003-07-10 Thread Tim Funk
Duly noted (now I just have to read the what is below (and the rest of the 
thread)

-Tim

John Turner wrote:
This should probably go in the FAQ under miscellaneous.

John

On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell 
<[EMAIL PROTECTED]> wrote:

Hi,

I think we did this last week... with RH8.  The solution was to put

JkSet config.file /full/system/path/to/workers2.properties

in the httpd.conf file.  Many times JK2 doesn't see your properties file
and takes some wierd kind of self initiated defaults.
-e

On Thu, 10 Jul 2003, Bentzy Sagiv wrote:

My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8

I'm following the HOWTO at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
I download mod jk_2 from
http://jakarta.apache.org/builds/jakarta-tomcat- 
connectors/jk2/release/v2.0.
1/bin/linux/i386/mod_jk2-2.0.43.so

I add to the original httpd.conf file:

ServerName 127.0.0.1:80 and
LoadModule jk2_module modules/mod_jk2.so
I copy the workers2.properties from the HOWTO as is(just changed
../apache/.. to ../apache2/.. )
I start Tomcat,it works and catalina.out looks OK.
I start Apache,it works and error_log looks BAD: caught SIGTERM, 
shutting
down :(

[Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated
[Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0
configured -- resuming normal operations
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
[Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1
What the hell is the problem?

Please your help!!

bentzy



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

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






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


Re: LIBTOOL variable

2003-07-10 Thread John Turner
libtool.  ;)

http://www.gnu.org/directory/libtool.html

John

On Thu, 10 Jul 2003 14:36:56 -0400, Maureen Barger <[EMAIL PROTECTED]> 
wrote:

int he makefiles for mod_jk 1.2.2
what binary is the LIBTOOL path variable trying to set?
thanks.

Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/
Experience is something you don't get until just after you need it.

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache 2.0.40 and tomcat 4.1.24

2003-07-10 Thread Benjamin Cox
Well, there you have it!  Thanks, John. 
I figured this might do the job, but, despite my pleas, wasn't permitted 
to install anything I that wasn't an RPM due to my client's hosts' 
insanity :-(  So, I insisted on a different box, and we're happily 
running with some RPM version or another.

   Ben

John Turner wrote:

Dang, and you can get all of the info you need for free, right here.

The number one problem everyone will have with Red Hat and the 
connectors, JK or JK2, is that Red Hat's Apache IS NOT a standard 
Apache distribution.  It is a munged up distribution, and unless you 
know EXACTLY what Red Hat has done to the Apache source that they 
include with their distributions, trying to slam mod_jk in there or 
build JK or JK2 from source will be problematic at best, and 
impossible at worst.  Red Hat branched Apache 2.0.40.  They've 
(allegedly) applied all of the current fixes between .40 and .47 to 
their .40, but they haven't updated the version number.  And who knows 
what else they've done.

The NUMBER ONE thing you can do to make this ALL GO AWAY is to SKIP 
Red Hat's Apache, and install Apache from source.  Installing Apache 
from source is absolutely painless, and there are all sorts of 
step-by-step instructions for doing so available.

If you must use Red Hat's Apache, then probably the main problem you 
will have is the location of APR and apxs.  You will need to figure 
out where those are, and give the correct locations to the ./configure 
script.  You'll also probably need the actual RH Apache source RPM 
(httpd-devel???  I don't even remember now what its called), not just 
the RH Apache binary RPM.  All of this stuff goes away if you just 
download Apache from source and build it...it has everything you need 
and everything you need gets put exactly where you can find it.

John

On Thu, 10 Jul 2003 10:19:38 -0700, Benjamin Cox <[EMAIL PROTECTED]> 
wrote:

Though the information John sent you is definitely the right place to 
start, let me warn you that I, for one, never made Apache 2.0.40 work 
with Tomcat 4.1.24.  I was on RedHat 9, and tried upgrading my Apache 
via RPMs, but got stuck in dependency hell!  If you do make it work, 
please let me know how.
By the way, I know I wasn't alone because there's even a company 
selling a binary version that's supposed to tie these together for 
199 Euros.  We ended up switching servers before their email with the 
price came back, so I haven't tried it out.  It's just interesting to 
me that someone's making cash on this problem :-)
To check it out go to  http://www.activ8.at/knowledgebase/.  Scroll 
down to "mod_jk2 on RedHat 9" and click Details.
Good luck,

Ben

John Turner wrote:

http://jakarta.apache.org/tomcat/faq/connectors.html

http://www.google.com/search?hl=en&lr=lang_en&ie=UTF-8&oe=UTF- 
8&q=apache+tomcat+mod_jk+howto

John

On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa 
<[EMAIL PROTECTED]> wrote:

I am using mod_jk to integrate apache and tomcat, and I am somewhat
confused as to what modifications I should make to tomcat's server.xml
file. I can only find such documentation on JK2, and not mod_jk. Is 
it the
same setup?...If someone knows any good online documentation or 
briefly
explain what changes I should make to server.xml, please do.

-D











*---*
*Dumisani Nlebgwa*
*631 216 1622*
*You can't pronounce my name?*
*-but its so phonetic!*
*---*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






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






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


Re: JDBCRealm - Session not timing out

2003-07-10 Thread Rick Roberts
OK. I think that I have all the information I need to continue.

When I run this piece of code:

<%
session = request.getSession();
if( session.isNew() )
out.println( "New Session" );
else{
out.println( "Using Old Session" );
Enumeration enames = session.getAttributeNames();
while(enames.hasMoreElements()){
String name = (String)enames.nextElement();
Object value = session.getAttribute(name);
out.println( "" + name + " = " + value);
}
}
%>
I learn that session is NOT a new session (which means that the JDBCRealm 
created one for me) and that there are no objects placed into the session.

Thanks again for the help.

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Run as nonroot user

2003-07-10 Thread Eric J. Pinnell
Hi,

In order to open a port < 1024 you must be root.  So you have to be root
to listen on port 80.

You can install sudo access and let them run the start command as root but
by doing so you are giving the webmasters access to run a shell script as
root.  They could edit it and put anything they want in it.  Big time
security hole.

A better solution would be to run apache as a front end and have it
connect to tomcat.  Since tomcat listens on port 8009 a non-privliged user
can stop and start it.  You can just let apache run...  you won't have to
restart it.

-e

On Thu, 10 Jul 2003, [iso-8859-1] Fabricio Machado wrote:

>  Hi guys!
>  I'm just starting work with Tomcat 4.1.24 and I want
> to run it with an unprivileged user.
>  The webmasters are boring me every time they update
> some files in "webapps" directory... they ask me to
> shutdown/startup Tomcat... :-/
>
>  How can I solve this problem ?
>  Some docs ?
>
> thanks,
>
> Fabricio.
>
> ___
> Yahoo! Mail
> Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção 
> contra spam.
> http://br.mail.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Run as nonroot user

2003-07-10 Thread Mark W. Webb
set reoadable to true

Fabricio Machado wrote:

Hi guys!
I'm just starting work with Tomcat 4.1.24 and I want
to run it with an unprivileged user.
The webmasters are boring me every time they update
some files in "webapps" directory... they ask me to
shutdown/startup Tomcat... :-/
How can I solve this problem ?
Some docs ?
thanks,

Fabricio.

___
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção 
contra spam.
http://br.mail.yahoo.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: tracking downloads

2003-07-10 Thread Mark F
Thanks, I will check into this.  Would this add a lot of overhead to the
application?

-Mark


Angus Mezick wrote:
| You mean, like use the items in the access log?  You could always
| create a valve that watches for certain paths and updates a DB/file
| entry or some such.
| --Angus
|
|| -Original Message-
|| From: Mark F [mailto:[EMAIL PROTECTED]
|| Sent: Thursday, July 10, 2003 2:15 PM
|| To: Tomcat Users List
|| Subject: tracking downloads
||
||
|| We need to track every time a file is downloaded from our
|| server so that we may report on usage.  We are currently
|| migrating to a new Java/JSP (Documentum and WDK) based Web
|| application.  We wrote a perl script before under the old
|| system to parse the log files and construct a report but I'm
|| fairly certain there is a better way now that we are using
|| Tomcat and Java.  I thought about using a filter to increment
|| a counter every time a request matched a particular pattern
|| and I also thought about using the log file approach again
|| this time using a java logging package but I'm not really
|| sure what the best approach would be.  Especially since we
|| will not only need to record the download but query the
|| database (or in this case documentum) in order to check for a
|| specific attribute relevant to the report.
||
|| Any ideas on how best to accomplish this are appreciated.
||
|| -Mark
||
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]


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



LIBTOOL variable

2003-07-10 Thread Maureen Barger
int he makefiles for mod_jk 1.2.2
what binary is the LIBTOOL path variable trying to set?
thanks.

Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/
Experience is something you don't get until just after you need it.

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


Re: Apache 2.0.40 and tomcat 4.1.24

2003-07-10 Thread John Turner
Dang, and you can get all of the info you need for free, right here.

The number one problem everyone will have with Red Hat and the connectors, 
JK or JK2, is that Red Hat's Apache IS NOT a standard Apache distribution.  
It is a munged up distribution, and unless you know EXACTLY what Red Hat 
has done to the Apache source that they include with their distributions, 
trying to slam mod_jk in there or build JK or JK2 from source will be 
problematic at best, and impossible at worst.  Red Hat branched Apache 
2.0.40.  They've (allegedly) applied all of the current fixes between .40 
and .47 to their .40, but they haven't updated the version number.  And who 
knows what else they've done.

The NUMBER ONE thing you can do to make this ALL GO AWAY is to SKIP Red 
Hat's Apache, and install Apache from source.  Installing Apache from 
source is absolutely painless, and there are all sorts of step-by-step 
instructions for doing so available.

If you must use Red Hat's Apache, then probably the main problem you will 
have is the location of APR and apxs.  You will need to figure out where 
those are, and give the correct locations to the ./configure script.  
You'll also probably need the actual RH Apache source RPM (httpd-devel???  
I don't even remember now what its called), not just the RH Apache binary 
RPM.  All of this stuff goes away if you just download Apache from source 
and build it...it has everything you need and everything you need gets put 
exactly where you can find it.

John

On Thu, 10 Jul 2003 10:19:38 -0700, Benjamin Cox <[EMAIL PROTECTED]> 
wrote:

Though the information John sent you is definitely the right place to 
start, let me warn you that I, for one, never made Apache 2.0.40 work 
with Tomcat 4.1.24.  I was on RedHat 9, and tried upgrading my Apache via 
RPMs, but got stuck in dependency hell!  If you do make it work, please 
let me know how.
By the way, I know I wasn't alone because there's even a company selling 
a binary version that's supposed to tie these together for 199 Euros.  We 
ended up switching servers before their email with the price came back, 
so I haven't tried it out.  It's just interesting to me that someone's 
making cash on this problem :-)
To check it out go to  http://www.activ8.at/knowledgebase/.  Scroll down 
to "mod_jk2 on RedHat 9" and click Details.
Good luck,

Ben

John Turner wrote:

http://jakarta.apache.org/tomcat/faq/connectors.html

http://www.google.com/search?hl=en&lr=lang_en&ie=UTF-8&oe=UTF- 
8&q=apache+tomcat+mod_jk+howto

John

On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa 
<[EMAIL PROTECTED]> wrote:

I am using mod_jk to integrate apache and tomcat, and I am somewhat
confused as to what modifications I should make to tomcat's server.xml
file. I can only find such documentation on JK2, and not mod_jk. Is it 
the
same setup?...If someone knows any good online documentation or briefly
explain what changes I should make to server.xml, please do.

-D











*---*
*Dumisani Nlebgwa*
*631 216 1622*
*You can't pronounce my name?*
*-but its so phonetic!*
*---*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Run as nonroot user

2003-07-10 Thread Fabricio Machado
 Hi guys!
 I'm just starting work with Tomcat 4.1.24 and I want
to run it with an unprivileged user.
 The webmasters are boring me every time they update
some files in "webapps" directory... they ask me to
shutdown/startup Tomcat... :-/

 How can I solve this problem ?
 Some docs ?

thanks,

Fabricio.

___
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção 
contra spam.
http://br.mail.yahoo.com/

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



RE: tracking downloads

2003-07-10 Thread Angus Mezick
You mean, like use the items in the access log?  You could always create
a valve that watches for certain paths and updates a DB/file entry or
some such.
--Angus

> -Original Message-
> From: Mark F [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 10, 2003 2:15 PM
> To: Tomcat Users List
> Subject: tracking downloads
> 
> 
> We need to track every time a file is downloaded from our 
> server so that we may report on usage.  We are currently 
> migrating to a new Java/JSP (Documentum and WDK) based Web 
> application.  We wrote a perl script before under the old 
> system to parse the log files and construct a report but I'm 
> fairly certain there is a better way now that we are using 
> Tomcat and Java.  I thought about using a filter to increment 
> a counter every time a request matched a particular pattern 
> and I also thought about using the log file approach again 
> this time using a java logging package but I'm not really 
> sure what the best approach would be.  Especially since we 
> will not only need to record the download but query the 
> database (or in this case documentum) in order to check for a 
> specific attribute relevant to the report.
> 
> Any ideas on how best to accomplish this are appreciated.
> 
> -Mark
> 

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



mod_jk and apache virtual hosts

2003-07-10 Thread Todd Fulton
I'm using apache 1.3 and tomcat 4.1.18.  I'd like to map virtual host root directories 
directly to tomcat webapp root directories.  mod_webapp does this fine.  Does anyone 
know how to do this with mod_jk?  The ajp13 connector?


Todd

tracking downloads

2003-07-10 Thread Mark F
We need to track every time a file is downloaded from our server so that we may report 
on usage.  We are currently migrating to a new Java/JSP (Documentum and WDK) based Web 
application.  We wrote a perl script before under the old system to parse the log 
files and construct a report but I'm fairly certain there is a better way now that we 
are using Tomcat and Java.  I thought about using a filter to increment a counter 
every time a request matched a particular pattern and I also thought about using the 
log file approach again this time using a java logging package but I'm not really sure 
what the best approach would be.  Especially since we will not only need to record the 
download but query the database (or in this case documentum) in order to check for a 
specific attribute relevant to the report.

Any ideas on how best to accomplish this are appreciated.

-Mark


RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
Adding objects:

HttpSession session  = request.getSession();
session.setAttribute("foo", "Foo");



If at some point in your code, you want to "log out" a user,
session.invalidate();
Then when they request a protected resouce , the container "ought" to
re-authenticate them through FORM auth, because the session is where the
container "ought" to store this info.  But Again, I don't *know* this
for certain.

There are plenty of other methods of interest on session.  You might
also read the javadocs for request.getSession() and the differences when
you supply a boolean parameter in that method.
 
The jsession_id in your addressbar means only that the server cannot
determine (yet) if cookies are enabled on your client, and has
re-written the URL to contain the (in your case new) session id. Once
cookies are confirmed, the URL is no longer rewritten, unless you
container supports a configuration where URL rewriting is *always* done
(like iPlanet). 


> -Original Message-
> From: Rick Roberts [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 10, 2003 12:56 PM
> To: Tomcat Users List
> Subject: Re: JDBCRealm - Session not timing out
> 
> 
>  > I'm not entirely sure about Form AUTH, but Basic AUTH doesn't use
>  > sessions.  The browser caches the login information provided and
>  > re-sends it on each request.  So, there is no real "time 
> out" for Basic
>  > AUTH.  The only equivalent would be to close all open 
> browsers.  This
>  > deletes the cache of the Basic AUTH credentials forcing the user to
>  > re-enter it once a new browser is opened and the protected 
> web site is
>  > re-visited.
> 
> And that is exactly why Basic AUTH is unacceptable.  The only 
> way to login-in 
> with different user credentials is to kill all instances of 
> your browser.
> 
> I have seen references (hints) about invalidating the session 
> to force a 
> re-login.  However; I can not find any information that 
> explains how / when the 
> session is created or how I can use that session.
> 
> (I use frequently use session objects and am familiar with 
> how they work, but 
> using JDBCRealm is new to me)
> 
> When I set up for Form AUTH and navigate to the test URL, I 
> see the following:
> 
http://localhost/hd/login.jsp;jsessionid=9385A2CD74946FCFF922CC327699E22
E

Which seems to indicate that a session has been created.

Now, if it has been created, how can I use it?  I would like to add my
objects 
to the session object.

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


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


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



errors with make, aix 4.3.3, mod_jk 1.2.2

2003-07-10 Thread Maureen Barger
Me again, still plugging away at this compile.
I have run my configure script but am now getting an error with gmake.
Has anyone encountered similar?
[EMAIL PROTECTED]/jk/native> sudo gmake
Making all in common
gmake[1]: Entering directory 
`/users/mf12/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/common'
/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor 
--mode=compile gcc -I/usr/common/apache_1.3.27/include -g -O2 -DEAPI 
-DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DMOD_SSL=208114 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -g 
-O2 -DEAPI  -I /usr/common/jdk/jdk_1.3.0/include -I 
/usr/common/jdk/jdk_1.3.0/include/ -c jk_ajp12_worker.c
gmake[1]: 
/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor: 
Command not found
gmake[1]: *** [jk_ajp12_worker.lo] Error 127
gmake[1]: Leaving directory 
`/users/mf12/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/common'
gmake: *** [all-recursive] Error 1

Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Experience is something you don't get until just after you need it.

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


Re: Client prematurely closes connection = junk in reponse

2003-07-10 Thread Michael Wille
>>> [EMAIL PROTECTED] 07/09/03 10:44PM >>>
>See below...

>On Wed, 2003-07-09 at 15:10, Michael Wille wrote:
>> Hello All,
>> byte[] buffer = new byte[1024];
>> int numBytes = 0;
>> int totalBytes = 0;
>> while(totalBytes < fileLength) {
>> numBytes = fis.read(buffer);
>> totalBytes += numBytes;
>> outStream.write(buffer);
>> } 
>
>You don't want to write the whole buffer, just what was read. Try 
>write(buffer, 0, numBytes )

I've made that change you suggested, but I doubt that would cause the problem we are 
seeing.  Wouldn't it simply corrupt the file itself?

Here is a screenshot of the junk response we get:
http://phatness.com/~kmw/error.gif

In it, you can see the garbage being sent to the client, then the actual HTTP headers.

Thanks,
Mike



Re: JDBCRealm - Session not timing out

2003-07-10 Thread Rick Roberts
> I'm not entirely sure about Form AUTH, but Basic AUTH doesn't use
> sessions.  The browser caches the login information provided and
> re-sends it on each request.  So, there is no real "time out" for Basic
> AUTH.  The only equivalent would be to close all open browsers.  This
> deletes the cache of the Basic AUTH credentials forcing the user to
> re-enter it once a new browser is opened and the protected web site is
> re-visited.
And that is exactly why Basic AUTH is unacceptable.  The only way to login-in 
with different user credentials is to kill all instances of your browser.

I have seen references (hints) about invalidating the session to force a 
re-login.  However; I can not find any information that explains how / when the 
session is created or how I can use that session.

(I use frequently use session objects and am familiar with how they work, but 
using JDBCRealm is new to me)

When I set up for Form AUTH and navigate to the test URL, I see the following:

http://localhost/hd/login.jsp;jsessionid=9385A2CD74946FCFF922CC327699E22E

Which seems to indicate that a session has been created.

Now, if it has been created, how can I use it?  I would like to add my objects 
to the session object.

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JDBCRealm - Session not timing out

2003-07-10 Thread Rick Roberts
My application is now timing out correctly, using Form AUTH.
Not sure why it would not do it earlier, unless it had something to do with me 
deleting everything out of the working directory before trying the test again.

I will continue to test it and let you know what I see.

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AUTHENTICATE question with WEBDAV.

2003-07-10 Thread Dinh, Chinh

I have a question about WEBDAV and How authenticate works.

If i have this in web.xml


  BASIC
  MyCustomRealm


It will get an Popup Log in dialog, and it will invoke my realm's 
authenticate() method, with username and password being entered by
the user.

However, I do not want the log in dialog to pop up in all cases.
There's a case that the user is already authenticated BEFORE he tries
to run the webdav servlet, and in this case, he wants to bypass the 
log in dialog. 

Do you know How to pass in the Authenticator class some information 
so that it doesn't need to invoke the login dialog if the user is already
authenticated ? What information would the authenticator need ?

Thanks.
- Chinh



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: JK Connector url rewrite question

2003-07-10 Thread srevilak
> From: Noel Rappin <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: JK Connector url rewrite question
>
> I'm running an Apache/Tomcat combination using mod_jk.  Whenever I enter
> a URL to hit the apache server, somewhere along the redirect to tomcat
> the server portion of the url gets changed.
>
> So, if I type
>
> http://localhost/myapp
>
> I actually get in the browser
>
> http://my.hostname.com/myapp
>
> This even happens if I type the IP address, rather than a hostname.  I'd
> really like it to not do this, and just use the hostname or IP address
> that I type in, but I can't seem to find any hook to change this
> behavior.  Can anybody help?

In your apache configuration, do you have "UseCanonicalName Off"?  If
not, that may be your problem.

-- 
Steve

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



RE: XML DOCTYPE problem

2003-07-10 Thread Robert Wray
Have you tried moving your .dtd file to somewhere else? Try moving so that 
is accessible via web or say in the /WEB-INF/dtds/innovtech/datasheet.dtd 
of your application. Is there a particular reason you need to store all 
your dtd's in "c:/dtds" ?

At 07:42 AM 10/07/2003 -0700, you wrote:
This seems very strange. Almost any xml editor or xml system uses the public
or system identifier to point to a the DTD so it can vaildate the instance.
The public or system identifier is part of EVERY valid xml file. There must
be some way to handle it?? It's true that the jstl xml parser doesn't
validate it, that's not what I need since I will be producing valid xml, I
just need the jstl x:parse to ignore it so I don't get an error?? Someone
must have run into this before.
Thanks for the help though. I'll keep researching it.

-Brian

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 1:15 AM
To: Tomcat Users List
Subject: RE: XML DOCTYPE problem
And i think it even has to have a http:// in front

-Original Message-
From: Abid Ali Teepo
Sent: 10. juli 2003 09:38
To: Tomcat Users List
Subject: RE: XML DOCTYPE problem
I think the reference to a doctype has to be on the format
www.somesite.com/dtd/data.dtd or similar
Besides i don't thinkt it will actually validate against that
DTD anyway 
-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED]
Sent: 10. juli 2003 07:21
To: Tomcat Users List
Subject: XML DOCTYPE problem
Hi everyone,

I have created a JSP page that use the jstl xml tag library, specifically
using
xpath. Everything works perfectly fine as long as I don't have a doctype
declaration like the following in my XML instance:

If I remove it, everything works great, but if I don't, I get a java error
like this:
org.apache.jasper.JasperException: Could not resolve entity reference:
"///c:/dtds/innovtech/datasheet.dtd"
I have to have the doctype in the xml. Does anyone know how I can fix this??

I did post this to the taglib email list, but it doesn't seem to get near
the traffic as this group.
Thanks!

-Brian



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


RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 10, 2003 12:29 PM
> To: Tomcat Users List
> Subject: RE: JDBCRealm - Session not timing out
> 
> Basic AUTH gets resent automatically, you'd just start 
> them over with a 
> new session.  Don't make any assumptions that Basic AUTH and the 
> HttpSession know anything about each other.


My assumption was that the container is sufficiently intelligent enough
to recognize that the credentials as sent are from an expired session
(ie: this particular container *does* relate sessions to
authentications).  But as you say, if there is no built-in way to get a
browser to re-prompt for new Basic AUTH credentials if it already has a
set for that domain, then we're SOL, and we're better off going with
FORM if you want to tie authentication with sessions (which seems
natural for some applications).



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



RE: JDBCRealm - Session not timing out

2003-07-10 Thread Jacob Kjome
There is a fundamental difference between Basic AUTH and the 
HttpSession.  The former gets you general access to the application.  The 
latter is used for persistence of data across a given amount of time.  So, 
if the user let their session time out, but their browser is still open so 
the Basic AUTH gets resent automatically, you'd just start them over with a 
new session.  Don't make any assumptions that Basic AUTH and the 
HttpSession know anything about each other.

The only thing that might break is the logic in your own app if you fail to 
recognize the difference between authentication and the session.

Jake

At 12:13 PM 7/10/2003 -0500, you wrote:
I had thought (and replied so in a separate thread) that BASIC auth
would also time out.  But even if it doesn't...  How could J2EE work, if
the following didn't happen:
1. User gets authenticated with BASIC AUTH
2. User lets their session timeout
3. User requests a protected page.
4. container asks for credentials
5. browser sends them
6. container says: "those credentials are for an expired session, I'm
re-auth'ing you"
7. you get the OS-level prompt to login again.
If this *doesn't* happen, then isn't using BASIC AUTH to protect your
resources bound to break your app at some point?  Ex: shopping cart
beans in the session (that is no longer there, even though you are still
'authenticated').
Hopefully a Tomcat commiter will help us out.

I'd give this all a try myself, but it's lunchtime!  ;)



> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 10, 2003 11:16 AM
> To: Tomcat Users List
> Subject: Re: JDBCRealm - Session not timing out
>
>
> At 12:09 PM 7/10/2003 -0400, you wrote:
> >Should my JDBCRealm login reset when the session times out?
> >
> >I have tried it in both Basic AUTH and Form AUTH.
> >My session never times out.
>
> I'm not entirely sure about Form AUTH, but Basic AUTH doesn't use
> sessions.  The browser caches the login information provided
> and re-sends
> it on each request.  So, there is no real "time out" for
> Basic AUTH.  The
> only equivalent would be to close all open browsers.  This
> deletes the
> cache of the Basic AUTH credentials forcing the user to
> re-enter it once a
> new browser is opened and the protected web site is re-visited.
>
> Jake
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Apache 2.0.40 and tomcat 4.1.24

2003-07-10 Thread Eric J. Pinnell
I wish I could get 199 Euros for setting up apache/tomcat/JK-JK2 on Linux.

:)

I'd try to do everything from source.

-e

On Thu, 10 Jul 2003, Benjamin Cox wrote:

>   Though the information John sent you is definitely the right place to
> start, let me warn you that I, for one, never made Apache 2.0.40 work
> with Tomcat 4.1.24.  I was on RedHat 9, and tried upgrading my Apache
> via RPMs, but got stuck in dependency hell!  If you do make it work,
> please let me know how.
>   By the way, I know I wasn't alone because there's even a company
> selling a binary version that's supposed to tie these together for 199
> Euros.  We ended up switching servers before their email with the price
> came back, so I haven't tried it out.  It's just interesting to me that
> someone's making cash on this problem :-)
>   To check it out go to  http://www.activ8.at/knowledgebase/.  Scroll
> down to "mod_jk2 on RedHat 9" and click Details.
>   Good luck,
>
> Ben
>
> John Turner wrote:
>
> >
> > http://jakarta.apache.org/tomcat/faq/connectors.html
> >
> > http://www.google.com/search?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-
> > 8&q=apache+tomcat+mod_jk+howto
> >
> > John
> >
> > On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa
> > <[EMAIL PROTECTED]> wrote:
> >
> >> I am using mod_jk to integrate apache and tomcat, and I am somewhat
> >> confused as to what modifications I should make to tomcat's server.xml
> >> file. I can only find such documentation on JK2, and not mod_jk. Is
> >> it the
> >> same setup?...If someone knows any good online documentation or briefly
> >> explain what changes I should make to server.xml, please do.
> >>
> >> -D
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> *---*
> >> *Dumisani Nlebgwa*
> >> *631 216 1622*
> >> *You can't pronounce my name?*
> >> *-but its so phonetic!*
> >> *---*
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: war deployment and jsp pre-compilation

2003-07-10 Thread Johannes Fiala
Hi Reinhard,

Using TC 4.1.24+ you can use ant to first run JspC and deploy the 
resulting WAR using the manager app.

You can find more info here:
http://www.fwd.at/tomcat/buildmanagement-using-ant-howto.html

Johannes




Reinhard Nägele <[EMAIL PROTECTED]> 
10.07.2003 15:38
Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
[EMAIL PROTECTED]
cc

Subject
war deployment and jsp pre-compilation






We deploy our application as war file with the manager. "unpackWars" is 
set to false. Is it possible to deploy pre-compiled JSPs with this 
approach? I guess this would imply that we'd have to have a context.xml 
in our war file specifying that Tomcat should load the compiled JSP 
classes from the war file instead of from its working directory. Can 
this be done?

Reinhard



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




Re: Apache 2.0.40 and tomcat 4.1.24

2003-07-10 Thread Benjamin Cox
 Though the information John sent you is definitely the right place to 
start, let me warn you that I, for one, never made Apache 2.0.40 work 
with Tomcat 4.1.24.  I was on RedHat 9, and tried upgrading my Apache 
via RPMs, but got stuck in dependency hell!  If you do make it work, 
please let me know how.
 By the way, I know I wasn't alone because there's even a company 
selling a binary version that's supposed to tie these together for 199 
Euros.  We ended up switching servers before their email with the price 
came back, so I haven't tried it out.  It's just interesting to me that 
someone's making cash on this problem :-)
 To check it out go to  http://www.activ8.at/knowledgebase/.  Scroll 
down to "mod_jk2 on RedHat 9" and click Details.
 Good luck,

   Ben

John Turner wrote:

http://jakarta.apache.org/tomcat/faq/connectors.html

http://www.google.com/search?hl=en&lr=lang_en&ie=UTF-8&oe=UTF- 
8&q=apache+tomcat+mod_jk+howto

John

On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa 
<[EMAIL PROTECTED]> wrote:

I am using mod_jk to integrate apache and tomcat, and I am somewhat
confused as to what modifications I should make to tomcat's server.xml
file. I can only find such documentation on JK2, and not mod_jk. Is 
it the
same setup?...If someone knows any good online documentation or briefly
explain what changes I should make to server.xml, please do.

-D











*---*
*Dumisani Nlebgwa*
*631 216 1622*
*You can't pronounce my name?*
*-but its so phonetic!*
*---*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






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


Re: JK Connector url rewrite question

2003-07-10 Thread Simon Pabst
Hmm, sure you don't use a proxy connection toconnect to tomcat instead of 
mod_jk? :-)

My other guess would be to check Apache's httpd.conf for
UseCanonicalName and ServerName
If ServerName is my.hostname.com and UseCanonicalName is on Apache uses 
always Servername instead of the URL you typed in Browser,
if you want to keep the Browser typed URL set
UseCanonicalName Off

At 11:03 10.07.2003 -0400, you wrote:
I'm running an Apache/Tomcat combination using mod_jk.  Whenever I enter a 
URL to hit the apache server, somewhere along the redirect to tomcat the 
server portion of the url gets changed.

So, if I type

http://localhost/myapp

I actually get in the browser

http://my.hostname.com/myapp

This even happens if I type the IP address, rather than a hostname.  I'd 
really like it to not do this, and just use the hostname or IP address 
that I type in, but I can't seem to find any hook to change this 
behavior.  Can anybody help?

Noel Rappin



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


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


RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
I had thought (and replied so in a separate thread) that BASIC auth
would also time out.  But even if it doesn't...  How could J2EE work, if
the following didn't happen:

1. User gets authenticated with BASIC AUTH
2. User lets their session timeout
3. User requests a protected page.
4. container asks for credentials
5. browser sends them
6. container says: "those credentials are for an expired session, I'm
re-auth'ing you"
7. you get the OS-level prompt to login again.
 
If this *doesn't* happen, then isn't using BASIC AUTH to protect your
resources bound to break your app at some point?  Ex: shopping cart
beans in the session (that is no longer there, even though you are still
'authenticated').

Hopefully a Tomcat commiter will help us out.  

I'd give this all a try myself, but it's lunchtime!  ;)



> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 10, 2003 11:16 AM
> To: Tomcat Users List
> Subject: Re: JDBCRealm - Session not timing out
> 
> 
> At 12:09 PM 7/10/2003 -0400, you wrote:
> >Should my JDBCRealm login reset when the session times out?
> >
> >I have tried it in both Basic AUTH and Form AUTH.
> >My session never times out.
> 
> I'm not entirely sure about Form AUTH, but Basic AUTH doesn't use 
> sessions.  The browser caches the login information provided 
> and re-sends 
> it on each request.  So, there is no real "time out" for 
> Basic AUTH.  The 
> only equivalent would be to close all open browsers.  This 
> deletes the 
> cache of the Basic AUTH credentials forcing the user to 
> re-enter it once a 
> new browser is opened and the protected web site is re-visited.
> 
> Jake
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: How to make Tomcat reread user's role from database

2003-07-10 Thread Michael Mattox
> If it works as expected, then (Michael M) what you might consider is on
> the servlet that 'upgrades' the user from trial to 'not trial'
> invalidate the session, and redirect to a protected page. This would
> make the container authenticate the user again, meaning the user would
> need to login again, but at least they would be kicked out of their old
> role.

I should have given some more details, because it is more complicated than
that.  My subscription form actually POSTS to the WorldPay server and the
user enters their credit card.  The WorldPayServer then sends me an HTTP
Post to a Struts action with the data saying the transaction was successful,
and I update the database to change the user's role from trial to gold for
example.  Since this database change is done in another thread, I don't have
access to invalidate the user's session.

Here's what I've done so far:

I've customized the page WordPay returns to the user saying the payment is
successful.  I've added a link back to our site, but the link actually logs
them out and redirects them to the homepage.  From there they log in again.
I will probably make it even more user friend by inserting a page that says
they need to login again.  This seems to be working.

Michael



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



RE: Tomcat Load Balancing / Session Clustering - Tests

2003-07-10 Thread Simon Pabst
If you are using a webserver stresstest tool like siege 
(http://www.joedog.org/siege) be sure to have a delay (5secs or more) 
between the requests.
Because otherwise if the requests come too fast, the load balancing round 
robin will get screwed up (i think mod_jk(2)'s worker stats aren't updated 
quick enough),
like this:

Siege in benchmark mode (--benchmark on cmdline):
20 or more requests go to first tomcat
20 or more to second
20 or more to third
and so on...
Siege with delay of 5 secs (--delay=5):
1-2 requests to first tomcat
1-2 to second
...
And use something without a session for testing, like an image (or use 
worker.lb_xx.sticky_session=0)

At 12:15 10.07.2003 -0400, you wrote:
thanks Ben!

-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:35 AM
To: Tomcat Users List
Subject: Re: Tomcat Load Balancing / Session Clustering - Tests
Well, load testing on the Apache end would be the way to go for
scalability testing. You can monitor the network connections to the
Tomcat instances (use of netstat does well here; grep for the number of
connections to each port every N seconds or minutes, etc.).
To test the session stuff, try shutting down instances as you are
running through the app. Can you access each Tomcat instance
individually? The best way is to use each Tomcat's web server and to
access it on the port. Then, shut down that Tomcat and access another
Tomcat by its port. If your session continues unaffected, you are good
to go.
If you have a REALLY good load tester that can capture page data (i.e.,
return codes and pages from the web server), you could randomly shutdown
Tomcat instances while load testing to see how that affects the ouput.
HTH,

Ben Ricker
Wellinx.com
On Thu, 2003-07-10 at 09:52, Weissman, Alan wrote:
> Hey everyone,
>
> I've set up a few Tomcat instances in a cluster and would like to test the
> scalability of the cluster as well as make sure the session clustering is
> working.  Testing scalability is easy and I have load balncing software,
but
> whats the best way to make sure that sessions are clustering as expected?
>
> Thanks,
>
> Alan Weissman
> Systems Engineer
> Concord Financial Technologies
> [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Apache 2.0.40 and tomcat 4.1.24

2003-07-10 Thread John Turner
http://jakarta.apache.org/tomcat/faq/connectors.html

http://www.google.com/search?hl=en&lr=lang_en&ie=UTF-8&oe=UTF- 
8&q=apache+tomcat+mod_jk+howto

John

On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa 
<[EMAIL PROTECTED]> wrote:

I am using mod_jk to integrate apache and tomcat, and I am somewhat
confused as to what modifications I should make to tomcat's server.xml
file. I can only find such documentation on JK2, and not mod_jk. Is it 
the
same setup?...If someone knows any good online documentation or briefly
explain what changes I should make to server.xml, please do.

-D











*---*
*   Dumisani Nlebgwa*
*   631 216 1622*
*   You can't pronounce my name?*
*   -but its so phonetic!   *
*---*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache 2.0.40 and tomcat 4.1.24

2003-07-10 Thread Dumisani Nlebgwa
I am using mod_jk to integrate apache and tomcat, and I am somewhat
confused as to what modifications I should make to tomcat's server.xml
file. I can only find such documentation on JK2, and not mod_jk. Is it the
same setup?...If someone knows any good online documentation or briefly
explain what changes I should make to server.xml, please do.

-D











*---*
*   Dumisani Nlebgwa*
*   631 216 1622*
*   You can't pronounce my name?*
*   - but its so phonetic!  *
*---*


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



  1   2   >