RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-22 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]

 Subject: RE: Problem with the classloader in 
 jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
 
 However, if you add a reference to the actual jar file (eg, 
 shared.loader=${catalina.home}/shared/lib/velocity-dep-1.3.1.j
 ar) you will not be able to use any classes from it but 
 rather will get ClassNotFoundException. This is the actual problem!

This appears to be the same situation described in Bugzilla entry 23344
(see
http://issues.apache.org/bugzilla/show_bug.cgi?id=23344
for details) which was marked as fixed in September 2003 in level
5.0.12.  Apparently, individual jars should be added as URLs rather than
normal file system paths.  I suppose that means using
file:///path/file.jar, but I haven't tried it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: mod_jk working together with mod_userdir - possible or not?

2005-04-22 Thread Mladen Turk
Torsten Krah wrote:
Hello,
is there any chance, to get mod_jk so configured, that it can handle jsp
files, servlets ( complete webapps ) in the apache mod_userdir
directory?
I want to have ~/pubic_html/*.jsp interpreted by tomcat but it seems
mod_jk isnt able to handle it, am i right or wrong?
Any solutions for this problem? Pros  Cons?
mod_userdir like most other apache modules presume that you are
dealing with file system.
For managing virtual uri spaces you will need to use mod_rewrite.
Mod_rewrite documentation has an example how to deal with home
directories.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-22 Thread Akoulov, Alexandre [IT]
Apparently, individual jars should be added as URLs rather than
normal file system paths.  I suppose that means using
file:///path/file.jar, but I haven't tried it.

I guess that would work because Bootstrap.java has the following piece of code 
in its createClassLoader(String, ClassLoader)

-
// Check for a JAR URL repository
try {
urlList.add(new URL(repository));
continue;
} catch (MalformedURLException e) {
// Ignore
}
-

Chuck, but would not be better if we fix the actual problem in the 
ClassLoaderFactory#createClassLoader. Then people would not be spending time 
working out why they cannot load a jar file :)  We already have a fix - see 
below :

---FIX-in 
ClassLoaderFactory#createClassLoader---
// Add unpacked directories
//if (unpacked != null) {
//for (int i = 0; i  unpacked.length; i++)  {
//File file = unpacked[i];
//if (!file.exists() || !file.canRead())
//continue;
//if (debug = 1)
//log(  Including directory or JAR  
//+ file.getAbsolutePath());
//URL url = new URL(file, null,
//  file.getCanonicalPath() + File.separator);
//list.add(url.toString());
//}
//}
// 
if (unpacked != null) {
for (int i = 0; i  unpacked.length; i++)  {
File file = unpacked[i];
if (!file.exists() || !file.canRead())
continue;
if (debug = 1)
log(  Including directory or JAR  
+ file.getAbsolutePath());

// THE FIX !!!
StringBuffer filePath = new 
StringBuffer(file.getCanonicalPath());
if ( file.isDirectory() ) { 
// Only add a file separator if a file represents a 
directory
filePath.append(File.separator);
}

URL url = new URL(file, null, filePath.toString());
list.add(url.toString());
}
}




Please let me know what you think




-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Friday, 22 April 2005 4:09 PM
To: Tomcat Users List
Subject: RE: Problem with the classloader in jakarta-tomcat-5.0.28 -
cannot add a jar file to class repository


 From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]

 Subject: RE: Problem with the classloader in 
 jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
 
 However, if you add a reference to the actual jar file (eg, 
 shared.loader=${catalina.home}/shared/lib/velocity-dep-1.3.1.j
 ar) you will not be able to use any classes from it but 
 rather will get ClassNotFoundException. This is the actual problem!

This appears to be the same situation described in Bugzilla entry 23344
(see
http://issues.apache.org/bugzilla/show_bug.cgi?id=23344
for details) which was marked as fixed in September 2003 in level
5.0.12.  Apparently, individual jars should be added as URLs rather than
normal file system paths.  I suppose that means using
file:///path/file.jar, but I haven't tried it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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]



Jk and IIS 6 slow

2005-04-22 Thread Michael Südkamp
Hello,

We have a problem with the II6/JK-connection on some of our Windows 2003
webservers (IIS 6).
Each request waits inside the JK connector for about 15 seconds until it is
forwarded to Tomcat.

I replaced our JK DLL with the recent version I found (1.2.10) and have the
same problem.
I set the JK log level to DEBUG and here are the two lines where the pause
occurs (notice the timestamp difference).

[Fri Apr 22 10:43:53 2005] [1276:1484] [debug]
HttpFilterProc::jk_isapi_plugin.c (842): [/examples/jsp] is a servlet url -
should redirect to ajp13
[Fri Apr 22 10:44:08 2005] [1276:1084] [debug]
wc_get_worker_for_name::jk_worker.c (94): found a worker ajp13

The strange thing is that other W2003 webservers we set up the same way have
not this problem. We are even sure that the problem webservers had not had
this problem some weeks ago.

Best regards

Michael


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



tomcat/apache/mod_jk/multiple tomcat apps, port 80

2005-04-22 Thread t.n.a.
Hi all,
I'm having trouble getting Apache to forward requests to two webapps deployed on
Tomcat. Tomcat alone works fine (webapps work on port 8080), and apache
seems to forward requests to other servlets on my ISP's server the way it 
should.
Some snippets of configuration files I got from my hosting company are 
confusing -
Tomcat isn't generating mod_jk.conf (in {tomcatdir}/conf/auto or anywhere
else), apache is using  mod_jk with jk.conf which has a worker configuration,
but no JkMount directives in apache.conf. This works for other people, but
not for me. It seems to me that somewhere there is a JkMount *.jsp ajp13
directive in apache.conf - our applications use Tapestry so there's no
JSPs...in effect, apache handles requests to my apps instead of tomcat, when 
using port 80.
My guess is that JkMount is the proper way to configure mod_jk for my
VirtualHost, how to use it for Tapestry applications?
Thanks for your time,
Tomislav
P.S.
The tomcat server admin tells me it might have something to do with having 
separate apps in subdirectories of public_html, each of which has it's own 
web.xml, but I don't believe this to be the problem: deploying an app in the 
public_html folder doesn't change server behaviour.

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


Re: System property on Tomcat

2005-04-22 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#properties
-Tim
Kanda Upendra wrote:
Hi,
 

   Could someone tell how to pass in a user defined system property to
Tomcat at statup?

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


Newbi. How to install log4j ?

2005-04-22 Thread Markose Mathews
Hello,

How to install log4j for a virtual host?
I am running tomcat.5.0.x + apache + jk connector?
I am an absolute newbie . can`t understand the documentation
as i`m not a programer. any help will be appreciated?

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



Clustering application scope replication

2005-04-22 Thread Joakim Ahlén
Hi!

We have a cluster of two tomcat 5.5.9-machines using session replication. 
However, we also have data in application scope (set with 
getServletContext().setAttribute(...)) which as far as i have found in the 
docs, is not replicated.

Is there any way to accomplish this with tomcat? If not, is there any plan to 
develop support for it? Do other application servers have support for this?

Hope you can help me.

Regards

Joakim

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



RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-22 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]

 Subject: RE: Problem with the classloader in 
 jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
 
 Please let me know what you think

It doesn't really matter what I think - I'm not a Tomcat developer.  If
you believe the area needs changing, you'll need to submit a Bugzilla
report and convince Remy.  Best if you report it against the 5.5 leg,
since that's the one under active development.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Clustering application scope replication

2005-04-22 Thread Jess Holle
The servlet spec says this data is local to a given JVM.
I suppose a servlet engine could expand beyond the spec, but I'd be 
surprised if Tomcat did here.

Joakim Ahlén wrote:
Hi!
We have a cluster of two tomcat 5.5.9-machines using session replication. 
However, we also have data in application scope (set with 
getServletContext().setAttribute(...)) which as far as i have found in the 
docs, is not replicated.
Is there any way to accomplish this with tomcat? If not, is there any plan to 
develop support for it? Do other application servers have support for this?
Hope you can help me.
Regards
Joakim
-
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: Clustering application scope replication

2005-04-22 Thread Joakim Ahlén
Ok, too bad. Is there any way of storing objects if we want them in cluster 
scope? 

An ugly hack would be to use one single HttpSession with a special session-id 
to store global objects, and somehow fetch objects from within this HttpSession 
from inside requests that belongs to other sessions. I can't see how this could 
be done though, since request.getSession() can't fetch other sessions than its 
own. This would probably also have to include some tomcat specific magic which 
i wouldn't want.

Any help is appreciated on how to handle this problem! 

Thanks

Joakim

On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote:
 The servlet spec says this data is local to a given JVM.
 
 I suppose a servlet engine could expand beyond the spec, but I'd be 
 surprised if Tomcat did here.
 
 Joakim Ahlén wrote:
 
 Hi!
 
 We have a cluster of two tomcat 5.5.9-machines using session replication. 
 However, we also have data in application scope (set with 
 getServletContext().setAttribute(...)) which as far as i have found in the 
 docs, is not replicated.
 
 Is there any way to accomplish this with tomcat? If not, is there any plan 
 to develop support for it? Do other application servers have support for 
 this?
 
 Hope you can help me.
 
 Regards
 
 Joakim
 
 -
 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: Newbi. How to install log4j ?

2005-04-22 Thread Markose Mathews
I`ve tried the following steps:


1. Download the log4j distribution from
http://jakarta.apache.org/log4j/docs/download.html.

2. Extract the archived files to some suitable directory.

3. Add the file dist/lib/log4j-1.2.6.jar to your CLASSPATH environment variable.

4. Download http://apache.rmplc.co.uk/dist/xml/xerces-j/Xerces-J-bin.2.6.0.zip
and unzip it to a temporary directory. Copy the files xercesImpl.jar
and xmlParserAPIs.jar to some permanent location and append their
paths to the CLASSPATH environment variable.

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



Tomcat Settings andding a slash to my url ???

2005-04-22 Thread oceatoon
Hi every one 

I'm using Tomcat5 in which I deployed a Cocoon App, and as my Authentication
Manager passes a url to Tomcat, he (Tomcat) adds a slash at the end, This
changes the whole context for the following redirection.

I give /login to the authentication if I'm not logged he should send me back
to /login , but he sends me to /login/ ??? and if I am logged instead of
sending me to /mypage, he stays in /login/mypage which offcourse does not
exist 

Is there a way to desable this slash addition ?
or a solution to his problem ?

Thanks for the help
Regards
Tibor



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



Re: tomcat connectors

2005-04-22 Thread Lionel Farbos
Hi,

As described here : 
http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html
the goal of socket_timeout is very different than recyle_timeout :

socket_timeout is a timeout during the activity (between apache and tomcat)
recycle_timeout is a timeout after the activity; when the exchanges between 
apache and tomcat are finished, the socket remains open during recycle_timeout 
of inactivity (this feature is close to cache_timeout). 

Regards.
On Wed, 20 Apr 2005 17:30:32 -0700 (PDT)
Patty O'Reilly [EMAIL PROTECTED] wrote:

 The descriptions of recycle_timeout and socket_timeout seem very
 similar in the Jakarta Tomcat Connector doc. Does anyone know when
 you would use one over the other, or should both directives be
 used together?
 
 I'm using 1.2.8 for Apache 2.0.52 + RHAS3.
 
 Many thanks
 --patty
 
 -
 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: Clustering application scope replication

2005-04-22 Thread Lionel Farbos
Hi

For your needs, you can use 
session replication 
(http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html)
or 
your own mechanisms and tables with datas in a database ...
Regards.

On Fri, 22 Apr 2005 15:15:54 +0200
Joakim Ahlén [EMAIL PROTECTED] wrote:

 Ok, too bad. Is there any way of storing objects if we want them in cluster 
 scope? 
 
 An ugly hack would be to use one single HttpSession with a special session-id 
 to store global objects, and somehow fetch objects from within this 
 HttpSession from inside requests that belongs to other sessions. I can't see 
 how this could be done though, since request.getSession() can't fetch other 
 sessions than its own. This would probably also have to include some tomcat 
 specific magic which i wouldn't want.
 
 Any help is appreciated on how to handle this problem! 
 
 Thanks
 
 Joakim
 
 On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote:
  The servlet spec says this data is local to a given JVM.
  
  I suppose a servlet engine could expand beyond the spec, but I'd be 
  surprised if Tomcat did here.
  
  Joakim Ahlén wrote:
  
  Hi!
  
  We have a cluster of two tomcat 5.5.9-machines using session replication. 
  However, we also have data in application scope (set with 
  getServletContext().setAttribute(...)) which as far as i have found in the 
  docs, is not replicated.
  
  Is there any way to accomplish this with tomcat? If not, is there any plan 
  to develop support for it? Do other application servers have support for 
  this?
  
  Hope you can help me.
  
  Regards
  
  Joakim
  
  -
  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]



Help with JDBCRealm config on Tomcat 4.1

2005-04-22 Thread joelsherriff
Hope someone can help me - I'm still a relative newbie to tomcat, am baffled
at this point and I can't even get it configured so that I
can get debug info to find out what's wrong.

I've added a context to my server.xml for the webapp I'm trying to set up
JDBCRealm authentication for:

  Context path=/blojsom docBase=blojsom debug=99 
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_blojsom_log. suffix=.txt timestamp=true /
Realm  className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/mydatabase?user=xx;password=xx

connectionName=xx connectionPassword=xx
digest=MD5
userTable=users userNameCol=userid
userCredCol=md5password
userRoleTable=user_roles roleNameCol=role_name /
  /Context

And, of course, added the supporting tables and roles to my database.  When
I attempt to access a page from the webapp,
my login.jsp page is displayed, and when I attempt to login, my error.jsp
page is displayed.   I didn't expect this to work
correctly the first time I configured it,  and it's not, but my problem is
that I can't figure out how to debug it at all.  The
Logger I have configured in the webapp's Context does nothing - doesn't
create the log file and nothing is logged
anywhere else either.   How can I further debug it?

Now, if I take the Realm out of the Context (applying it to the entire
server), I get an exception in my catalina_log:

2005-04-22 15:26:10 JDBCRealm[Standalone]: Exception performing
authentication
java.sql.SQLException: org.gjt.mm.mysql.Driver
 at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:588)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:343)

Though it doesn't say it precisely, I think this implies that it's not
connecting to the DB, but the db, user and password values are all correct.

Basically, I have three problems:  why can't I get logging to work from
within a specific context,  am I doing something wrong in my attempt
to get JDBCRealm authentication to work, and what is the right way to debug
the problem further, if the solution isn't obvious?

Also, I've added to my webapp's web.xml file:

security-constraint
web-resource-collection
web-resource-nameEntire Application/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-nameusers/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
realm-nameUsers/realm-name
form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/error.jsp/form-error-page
/form-login-config
/login-config

security-role
description
Some Stuff
/description
role-nameusers/role-name
/security-role





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


Re: Tomcat in a clustered Enviroment

2005-04-22 Thread Peter Rossbach
Hello,
which tomcat, os, jvm you used?
On windows without network cable the cluster need an explizit binding
 Membership
 className=org.apache.catalina.cluster.mcast.McastService
 mcastAddr=228.0.0.4
 mcastBindAddress=127.0.0.1
 mcastPort=45564
 mcastFrequency=500
 mcastDropTime=3000/
Peter
Josef Whiter schrieb:
Hello,
Does tomcat just not bind to virtual interfaces, or other IP addresses
in general?  If anybody has any suggestions on this issue it would be
very helpful, since i cant seem to get this cluster up and running.
Thank you,
Josef Whiter
-
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]


Where is Jakarta's common email jar file

2005-04-22 Thread Lorenzo Jiménez
Hi,

Do anyone knows where to download latest Jakarta's commons email jar. I tried 
in Jakarta commons website, but I cannot find it.

Thanks,

Lorenzo








-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



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



Re: Where is Jakarta's common email jar file

2005-04-22 Thread David Smith
Cool.  I didn't even know Commons had an email project.
--David
Patrick Thomas wrote:
Lorenzo,
I don't know about a jar file, but you can look at the CVS repository
for the java files. (Look in src/java/ for the package root) They're
packaged, so you could make the jar yourself easily enough. (jar -cvf
new jar name files to jar)
http://cvs.apache.org/viewcvs/jakarta-commons/email/
(linked from http://jakarta.apache.org/commons/email/ )
~Patrick
On 4/22/05, Lorenzo Jiménez [EMAIL PROTECTED] wrote:
 

Hi,
Do anyone knows where to download latest Jakarta's commons email jar. I tried 
in Jakarta commons website, but I cannot find it.
Thanks,
Lorenzo
-
Si usted no es el destinatario indicado en este mensaje o responsable como 
persona
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm
If you are not the addressee indicated in this message (or responsible for 
delivery of the
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail.
http://www.nacion.com/disclaimer/index_en2.htm
-
-
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: Clustering application scope replication

2005-04-22 Thread J. Ryan Earl
How does Tomcat know what to serialize?  Does it just use the Reflection
package and serialize out -everything- that implements java.io.Serializable?

-ryan

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED]
Sent: Friday, April 22, 2005 9:11 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Clustering application scope replication


Hi

For your needs, you can use
session replication
(http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html)
or
your own mechanisms and tables with datas in a database ...
Regards.

On Fri, 22 Apr 2005 15:15:54 +0200
Joakim Ahlén [EMAIL PROTECTED] wrote:

 Ok, too bad. Is there any way of storing objects if we want them in
cluster scope?

 An ugly hack would be to use one single HttpSession with a special
session-id to store global objects, and somehow fetch objects from within
this HttpSession from inside requests that belongs to other sessions. I
can't see how this could be done though, since request.getSession() can't
fetch other sessions than its own. This would probably also have to include
some tomcat specific magic which i wouldn't want.

 Any help is appreciated on how to handle this problem!

 Thanks

 Joakim

 On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote:
  The servlet spec says this data is local to a given JVM.
 
  I suppose a servlet engine could expand beyond the spec, but I'd be
  surprised if Tomcat did here.
 
  Joakim Ahlén wrote:
 
  Hi!
  
  We have a cluster of two tomcat 5.5.9-machines using session
replication.
  However, we also have data in application scope (set with
  getServletContext().setAttribute(...)) which as far as i have found in
the
  docs, is not replicated.
  
  Is there any way to accomplish this with tomcat? If not, is there any
plan
  to develop support for it? Do other application servers have support
for
  this?
  
  Hope you can help me.
  
  Regards
  
  Joakim
  
  -
  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: Where is Jakarta's common email jar file

2005-04-22 Thread David Smith
You sure you don't really want JavaMail from Sun?
http://java.sun.com/products/javamail/index.jsp
You'll also need Java Activation Framework.
--David
Lorenzo Jiménez wrote:
Hi,
Do anyone knows where to download latest Jakarta's commons email jar. I tried 
in Jakarta commons website, but I cannot find it.
Thanks,
Lorenzo



-
Si usted no es el destinatario indicado en este mensaje o responsable como persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for delivery of the 
message to such person), you may not copy or send this message to anyone, please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-

-
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: Where is Jakarta's common email jar file

2005-04-22 Thread Lorenzo Jiménez
Thanks for the replys.

Commons email is an api that extends javamail.


Lorenzo


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 22 de Abril de 2005 12:40 p.m.
To: Tomcat Users List
Subject: Re: Where is Jakarta's common email jar file

You sure you don't really want JavaMail from Sun?

http://java.sun.com/products/javamail/index.jsp

You'll also need Java Activation Framework.

--David

Lorenzo Jiménez wrote:

Hi,

Do anyone knows where to download latest Jakarta's commons email jar. I tried 
in Jakarta commons website, but I cannot find it.

Thanks,

Lorenzo








-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite 
http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to 
this e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



-
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]


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



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



RE: development environment

2005-04-22 Thread Mike Jackson
Laptop 
P4 2.0GHZ / 1 GB 
Windows XP Pro (sp2)
Eclipse 3.x
1600x1200

Desktop
AMD64 3200+ / 1 GB
Windows XP Pro (sp2)
Eclipse 3.x
1600x1200

Alternate Desktop
Ultra Sparc 3 1GHZ / 1.5 GB
Solaris 10
Eclipse 3.x
1600x1200

--mikej
-=-
mike jackson
[EMAIL PROTECTED]



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



Re: Clustering application scope replication

2005-04-22 Thread Will Hartung
 From: Joakim Ahlén [EMAIL PROTECTED]
 Sent: Friday, April 22, 2005 5:54 AM

 Hi!

 We have a cluster of two tomcat 5.5.9-machines using session
 replication. However, we also have data in application scope (set with
 getServletContext().setAttribute(...)) which as far as i have found in
 the docs, is not replicated.

You need a cluster aware caching solution. Session replication is more for
failover and such.

Look at something like OSCache and its ilk to get the functionality that you
need.

Regards,

Will Hartung
([EMAIL PROTECTED])


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



Re: Clustering application scope replication

2005-04-22 Thread Will Hartung
 From: J. Ryan Earl [EMAIL PROTECTED]
 Sent: Friday, April 22, 2005 7:44 AM

 How does Tomcat know what to serialize?  Does it just use the Reflection
 package and serialize out -everything- that implements
java.io.Serializable?

When you do a setAttribute(key, object), it serializes the object out for
replication, so, both your key and object needs to be serializable. It uses
the generic Java writeObject method.

This is why you need to use setAttribute to ensure your changes are
replicated, and why you can not just change an object directly and expect it
to be replicated.

So, if you are storing, say, a long ArrayList of objects in your session
(like, say, query results), you must use setAttribute(yourList) each time
you make a change to anything in the list, and then it serializes the ENTIRE
list for replication, not just your changes. (And thus we see some of the
limits of replication, at least some of the things you need to be aware of.)

Regards,

Will Hartung
([EMAIL PROTECTED])


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



Re: why is my security not working?

2005-04-22 Thread Mark Thomas
try:
 web-resource-collection
   web-resource-nameAdmin/web-resource-name
   url-pattern/*/url-pattern
  /web-resource-collection
You don't need to include the context in your url patterns.
Mark
teknokrat wrote:
I have placed the following context file
Context path=/myAdmin
cachingAllowed=false
cacheTTL=0
cacheMaxSize=0
swallowOutput=false


Realm className=org.apache.catalina.realm.UserDatabaseRealm 
debug=5/

/Context

and i have added to web.xml
 security-constraint
web-resource-collection
  web-resource-nameAdmin/web-resource-name
  url-pattern/myAdmin/*/url-pattern
 /web-resource-collection
auth-constraint
role-nameme/role-name
/auth-constraint
  /security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameAdmin/realm-name
/login-config

 security-role
descriptionThe role/description
role-nameme/role-name
  /security-role

Yet, I can still access the webapp without tomcat asking for a username 
and password. I have added the role and users to tomcat-users.xml too.

thanks
-
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]


JNDI jdbc resource

2005-04-22 Thread John Reynolds
I am trying to configure JNDI resources on tomcat 5, i used the admin
tool to setup the resource, and checked the server.xml with
documentation on the tomcat site, i have copied the mysql jdbc driver
jar into commons/lib.


when i deploy an application that uses this resource, the following
exption is thrown 

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at
com.storbit.helpdesk.config.HelpdeskConfig.init(HelpdeskConfig.java:25)
at
com.storbit.helpdesk.servlets.SignonFilter.init(SignonFilter.java:31)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3698)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1567)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
... 50 more


any help would be appreciated
John


John 

running multiple instances of tomcat as windows service - service won't start

2005-04-22 Thread Jaynika Barot
hi all,

we are using tomcat 5.0.28 on windows server.  I have been trying to
install multiple tomcat instances . Our goal is to run multiple
instances on port 80 of virtual IPs. But for testing, i'm using
differnt port numbers instead of ips..

Here r the steps i performed,

(a) installed tomcat on c:\TC1
(b) copied conf,logs,shared,temp,webapps, work  folders from c:\TC1 into c:\TC2
(c) changed port entries into TC2\conf\server.xml
Server port=8006 , Connector port=8081
(d) on cmd prompt

c:\TC1\bin set CATALINA_BASE=C:\TC2
c:\TC1\binservice.bat install TC2

This will install the TC2 windows service, but the service won't start
. If i check the properites of the service, it's pointing to
C:\TC1\bin\tomcat5.exe //RS//tc2

What is wrong??

I couldn't find any step by step guide to setup multiple instances of
tomcat as windows service on Tomcat users list or any other web
resource.

Any pointers will be appreciated.

Thanks,
Jaynika

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



Re: Clustering application scope replication

2005-04-22 Thread Lionel Farbos
As it is explained in the doc :
All your session attributes must implement java.io.Serializable

On Fri, 22 Apr 2005 09:44:01 -0500
J. Ryan Earl [EMAIL PROTECTED] wrote:

 How does Tomcat know what to serialize?  Does it just use the Reflection
 package and serialize out -everything- that implements java.io.Serializable?
 
 -ryan
 
 -Original Message-
 From: Lionel Farbos [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 22, 2005 9:11 AM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Clustering application scope replication
 
 
 Hi
 
 For your needs, you can use
 session replication
 (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html)
 or
 your own mechanisms and tables with datas in a database ...
 Regards.
 
 On Fri, 22 Apr 2005 15:15:54 +0200
 Joakim Ahlén [EMAIL PROTECTED] wrote:
 
  Ok, too bad. Is there any way of storing objects if we want them in
 cluster scope?
 
  An ugly hack would be to use one single HttpSession with a special
 session-id to store global objects, and somehow fetch objects from within
 this HttpSession from inside requests that belongs to other sessions. I
 can't see how this could be done though, since request.getSession() can't
 fetch other sessions than its own. This would probably also have to include
 some tomcat specific magic which i wouldn't want.
 
  Any help is appreciated on how to handle this problem!
 
  Thanks
 
  Joakim
 
  On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote:
   The servlet spec says this data is local to a given JVM.
  
   I suppose a servlet engine could expand beyond the spec, but I'd be
   surprised if Tomcat did here.
  
   Joakim Ahlén wrote:
  
   Hi!
   
   We have a cluster of two tomcat 5.5.9-machines using session
 replication.
   However, we also have data in application scope (set with
   getServletContext().setAttribute(...)) which as far as i have found in
 the
   docs, is not replicated.
   
   Is there any way to accomplish this with tomcat? If not, is there any
 plan
   to develop support for it? Do other application servers have support
 for
   this?
   
   Hope you can help me.
   
   Regards
   
   Joakim
   
   -
   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]
 
 

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



force purge of All http sessions

2005-04-22 Thread Jimmy Ray
Is there a way to purge all the sessions on a Tomcat
instance?

Tomcat 5.0.28
JVM 1.4.2..

Regards,

Jimmy Ray



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] Re: development environment

2005-04-22 Thread Frank W. Zammetti
* Pentium IV 2.8GHz, 2G RAM, dual 21 monitors (CRT's... they're still 
far better to me, screw size!)

* Windows XP Professional as main OS and Redhat8/WinNT/Win98/Mandrake in 
VMWare for testing

* UltraEdit  Directory Opus - This is essentially my development 
environment, these two are where I spend 90% of my time during the day

* Tomcat locally for all development as well as an instance on the 
Redhat VM, a secondary PC next to me (lesser hardware specs, but still 
decent) running Windows 2000 has WebSphere 5.1 which is our production 
app server of choice

* Maxthon and Firefox for testing
* Oracle 9i for all database development
* SourceSafe for some things, CVS for others (we are moving to all CVS, 
but SS is still in use right now)

That's the important stuff I figure.  That's at work by the way, but I 
have an almost identical setup in my home office (laptop instead of 
secondary PC is the big difference), configured in a very similar way, 
so with the full VPN access to work, I can work almost as effectively at 
home as at work, not to mention work on my own stuff off-hours.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Patrick Lacson wrote:
hi All,
I'm curious to what everyone's dev environment looks like.  Here's mine:
hardware
Penium IV 2.0Ghz / 1GB Ram
OS
Windows XP Pro
IDE / Tools
Eclipse 3.x / Emacs

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


Re: why is my security not working?

2005-04-22 Thread teknokrat
Whew, that worked. Thanks!
Do I still need the realm setting in my context file or not? and should 
it refer to UserDatabaseRealm or MemoryRealm?

Mark Thomas wrote:
try:
 web-resource-collection
   web-resource-nameAdmin/web-resource-name
   url-pattern/*/url-pattern
  /web-resource-collection
You don't need to include the context in your url patterns.
Mark
teknokrat wrote:
I have placed the following context file
Context path=/myAdmin
cachingAllowed=false
cacheTTL=0
cacheMaxSize=0
swallowOutput=false

Realm className=org.apache.catalina.realm.UserDatabaseRealm 
debug=5/
/Context

and i have added to web.xml
 security-constraint
web-resource-collection
  web-resource-nameAdmin/web-resource-name
  url-pattern/myAdmin/*/url-pattern
 /web-resource-collection
auth-constraint
role-nameme/role-name
/auth-constraint
  /security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameAdmin/realm-name
/login-config
 security-role
descriptionThe role/description
role-nameme/role-name
  /security-role
Yet, I can still access the webapp without tomcat asking for a 
username and password. I have added the role and users to 
tomcat-users.xml too.

thanks
-
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]


VM thread dump from windows service

2005-04-22 Thread Patrick Lacson
If I run tomcat as a windows service, what is the best way to get a VM
thread dump?  From a command window it's pretty easy with the
Control-Break command.. what are my options for doing the equivalent
from a running tomcat windows service?

Thanks,
Patrick

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



development environment

2005-04-22 Thread Patrick Lacson
hi All,

I'm curious to what everyone's dev environment looks like.  Here's mine:

hardware
Penium IV 2.0Ghz / 1GB Ram

OS
Windows XP Pro

IDE / Tools
Eclipse 3.x / Emacs

-- 
Patrick

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



Re: Tomcat in a clustered Enviroment

2005-04-22 Thread Josef Whiter
Hello,

Its IBM's 1.4.2 jvm, Red Hat Enterprise Linux 3 and tomcat 5.0.28.  I
will look into that directive.  Thank you,

Josef Whiter

On Fri, 22 Apr 2005, Peter Rossbach wrote:

 Hello,
 
 which tomcat, os, jvm you used?
 
 On windows without network cable the cluster need an explizit binding
 
  Membership
  className=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.4
  mcastBindAddress=127.0.0.1
  mcastPort=45564
  mcastFrequency=500
  mcastDropTime=3000/
 
 Peter
 
 
 Josef Whiter schrieb:
 
 Hello,
 
 Does tomcat just not bind to virtual interfaces, or other IP addresses
 in general?  If anybody has any suggestions on this issue it would be
 very helpful, since i cant seem to get this cluster up and running.
 Thank you,
 
 Josef Whiter
 
 -
 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: Clustering application scope replication

2005-04-22 Thread J. Ryan Earl
I've read that document many times, and that does not answer my question.

-ryan

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED]
Sent: Friday, April 22, 2005 9:50 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Clustering application scope replication


As it is explained in the doc :
All your session attributes must implement java.io.Serializable

On Fri, 22 Apr 2005 09:44:01 -0500
J. Ryan Earl [EMAIL PROTECTED] wrote:

 How does Tomcat know what to serialize?  Does it just use the Reflection
 package and serialize out -everything- that implements
java.io.Serializable?

 -ryan

 -Original Message-
 From: Lionel Farbos [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 22, 2005 9:11 AM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Clustering application scope replication


 Hi

 For your needs, you can use
 session replication
 (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html)
 or
 your own mechanisms and tables with datas in a database ...
 Regards.

 On Fri, 22 Apr 2005 15:15:54 +0200
 Joakim Ahlén [EMAIL PROTECTED] wrote:

  Ok, too bad. Is there any way of storing objects if we want them in
 cluster scope?
 
  An ugly hack would be to use one single HttpSession with a special
 session-id to store global objects, and somehow fetch objects from within
 this HttpSession from inside requests that belongs to other sessions. I
 can't see how this could be done though, since request.getSession() can't
 fetch other sessions than its own. This would probably also have to
include
 some tomcat specific magic which i wouldn't want.
 
  Any help is appreciated on how to handle this problem!
 
  Thanks
 
  Joakim
 
  On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote:
   The servlet spec says this data is local to a given JVM.
  
   I suppose a servlet engine could expand beyond the spec, but I'd be
   surprised if Tomcat did here.
  
   Joakim Ahlén wrote:
  
   Hi!
   
   We have a cluster of two tomcat 5.5.9-machines using session
 replication.
   However, we also have data in application scope (set with
   getServletContext().setAttribute(...)) which as far as i have found
in
 the
   docs, is not replicated.
   
   Is there any way to accomplish this with tomcat? If not, is there any
 plan
   to develop support for it? Do other application servers have support
 for
   this?
   
   Hope you can help me.
   
   Regards
   
   Joakim
   
   -
   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]




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



Adding Connectors to embedded Tomcat on the fly

2005-04-22 Thread Sander A. Smith
I've got an embedded Tomcat application that's running on 5.0.24 and 
it works great. Something I need to do is open and close ports while 
the application runs. The documentation says that you can do this on 
the fly in the form of adding/deleting Connectors to the Embedded 
object. I've got this up and running, although I have noticed that the 
Connectors are in a inactive state when first added, and must be 
initialized. I couldn't figure out if I must call start() or initialize
() so I call both.

Anyway, things are working fine until I try to open a secure port. I 
have secure ports that were created at startup, so I know that the 
infrastructure (ie how I create the connectors, the state of my 
keystore, etc) is okay. 

When I call start() on a secure connector I'm getting an exception 
that says:

java.io.FileNotFoundException: C:\Documents and 
Settings\Sander\.keystore (The system cannot find the file specified)

This seems odd because it is trying to go after the default keystore 
(which doesn't exist, mine is named something else). I'm verifying 
that I've properly set the keystore file in the connector, but this 
seems to be ignored.

Any ideas why this is happening and my keystore is being ignored?


Sander

-- 
Sander A. Smith
President

Sericon Technology Inc.
71 Marquette Ave.
Toronto, Ontario M6A 1X8
(416)781-3988

www.sericontech.com

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



RE: Clustering application scope replication

2005-04-22 Thread J. Ryan Earl
Let me rephrase the question, how does Tomcat determine what is a session
attribute.  What if there are classes that implement java.io.Serializable
that have nothing to do with session attributes?

-ryan

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED]
Sent: Friday, April 22, 2005 10:19 AM
To: Lionel Farbos; Tomcat Users List
Subject: RE: Clustering application scope replication


I've read that document many times, and that does not answer my question.

-ryan

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED]
Sent: Friday, April 22, 2005 9:50 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Clustering application scope replication


As it is explained in the doc :
All your session attributes must implement java.io.Serializable

On Fri, 22 Apr 2005 09:44:01 -0500
J. Ryan Earl [EMAIL PROTECTED] wrote:

 How does Tomcat know what to serialize?  Does it just use the Reflection
 package and serialize out -everything- that implements
java.io.Serializable?

 -ryan

 -Original Message-
 From: Lionel Farbos [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 22, 2005 9:11 AM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Clustering application scope replication


 Hi

 For your needs, you can use
 session replication
 (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html)
 or
 your own mechanisms and tables with datas in a database ...
 Regards.

 On Fri, 22 Apr 2005 15:15:54 +0200
 Joakim Ahlén [EMAIL PROTECTED] wrote:

  Ok, too bad. Is there any way of storing objects if we want them in
 cluster scope?
 
  An ugly hack would be to use one single HttpSession with a special
 session-id to store global objects, and somehow fetch objects from within
 this HttpSession from inside requests that belongs to other sessions. I
 can't see how this could be done though, since request.getSession() can't
 fetch other sessions than its own. This would probably also have to
include
 some tomcat specific magic which i wouldn't want.
 
  Any help is appreciated on how to handle this problem!
 
  Thanks
 
  Joakim
 
  On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote:
   The servlet spec says this data is local to a given JVM.
  
   I suppose a servlet engine could expand beyond the spec, but I'd be
   surprised if Tomcat did here.
  
   Joakim Ahlén wrote:
  
   Hi!
   
   We have a cluster of two tomcat 5.5.9-machines using session
 replication.
   However, we also have data in application scope (set with
   getServletContext().setAttribute(...)) which as far as i have found
in
 the
   docs, is not replicated.
   
   Is there any way to accomplish this with tomcat? If not, is there any
 plan
   to develop support for it? Do other application servers have support
 for
   this?
   
   Hope you can help me.
   
   Regards
   
   Joakim
   
   -
   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]




-
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: development environment

2005-04-22 Thread Anoop kumar V
here is what we have:

Pentium IV 2.5 Ghz / 1.5 GB Ram

OS Windows XP

IDE - IntelliJ IDEA (I give it a 9 on 10 - its that good)
We use cvs - WinCVS / TortoiseCVS for version control. with Win Merge.

MySQL as a breeding database although prod has Sybase and DB2. DB
Visualiser as the db client.
Ant build tool / tomcat staging platform.

Firefox for the browser but seems like the clients are IE only. I am
being forced to test on IE as most of the javascript my team has built
works only on IE and not on Firefox. (I argue that the js has bugs!!!)

-Anoop

On 4/22/05, Patrick Lacson [EMAIL PROTECTED] wrote:
 hi All,
 
 I'm curious to what everyone's dev environment looks like.  Here's mine:
 
 hardware
 Penium IV 2.0Ghz / 1GB Ram
 
 OS
 Windows XP Pro
 
 IDE / Tools
 Eclipse 3.x / Emacs
 
 --
 Patrick
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

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



logging per context

2005-04-22 Thread Scott Purcell
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

Hello, 
I have just read this document about tomcat 5.5 ability to use logger. From 
the example there show putting the log4j.properties into the common/classes 
folder. But doing this of course, puts all logging here.

I really ... really would like to be able to create a separate log file for 
each context I am running.

Can this be done?

Thanks,
Scott



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



javax.Servlet.RequestDispatcher

2005-04-22 Thread Joe Bautista
Hi everyone,

I found an object in my code that uses the javx.Servlet.RequestDispatcher
class. But I looked up this class on the Web and it looks like an Inteface.
Does anyone know how it is implemented in the Tomcat source code?

Regards,
Joe


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



Re: development environment

2005-04-22 Thread Joe Riopel
p4 3.4 1GB RAM
VIM ( Sometimes NetBeans )
MySQL ( 4.1.7 )

On 4/22/05, Anoop kumar V [EMAIL PROTECTED] wrote:
 here is what we have:
 
 Pentium IV 2.5 Ghz / 1.5 GB Ram
 
 OS Windows XP
 
 IDE - IntelliJ IDEA (I give it a 9 on 10 - its that good)
 We use cvs - WinCVS / TortoiseCVS for version control. with Win Merge.
 
 MySQL as a breeding database although prod has Sybase and DB2. DB
 Visualiser as the db client.
 Ant build tool / tomcat staging platform.
 
 Firefox for the browser but seems like the clients are IE only. I am
 being forced to test on IE as most of the javascript my team has built
 works only on IE and not on Firefox. (I argue that the js has bugs!!!)
 
 -Anoop
 
 On 4/22/05, Patrick Lacson [EMAIL PROTECTED] wrote:
  hi All,
 
  I'm curious to what everyone's dev environment looks like.  Here's mine:
 
  hardware
  Penium IV 2.0Ghz / 1GB Ram
 
  OS
  Windows XP Pro
 
  IDE / Tools
  Eclipse 3.x / Emacs
 
  --
  Patrick
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 --
 Thanks and best regards,
 Anoop
 
 -
 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: Clustering application scope replication

2005-04-22 Thread Dale, Matt

Only objects that you put in the session would be a session attribute. Any 
other classes are irrelevant whether they are serializable or not.

Ta
Matt

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED]
Sent: 22 April 2005 16:24
To: Tomcat Users List; Lionel Farbos
Subject: RE: Clustering application scope replication


Let me rephrase the question, how does Tomcat determine what is a session
attribute.  What if there are classes that implement java.io.Serializable
that have nothing to do with session attributes?

-ryan

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED]
Sent: Friday, April 22, 2005 10:19 AM
To: Lionel Farbos; Tomcat Users List
Subject: RE: Clustering application scope replication


I've read that document many times, and that does not answer my question.

-ryan

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED]
Sent: Friday, April 22, 2005 9:50 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Clustering application scope replication


As it is explained in the doc :
All your session attributes must implement java.io.Serializable

On Fri, 22 Apr 2005 09:44:01 -0500
J. Ryan Earl [EMAIL PROTECTED] wrote:

 How does Tomcat know what to serialize?  Does it just use the Reflection
 package and serialize out -everything- that implements
java.io.Serializable?

 -ryan

 -Original Message-
 From: Lionel Farbos [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 22, 2005 9:11 AM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Clustering application scope replication


 Hi

 For your needs, you can use
 session replication
 (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html)
 or
 your own mechanisms and tables with datas in a database ...
 Regards.

 On Fri, 22 Apr 2005 15:15:54 +0200
 Joakim Ahlén [EMAIL PROTECTED] wrote:

  Ok, too bad. Is there any way of storing objects if we want them in
 cluster scope?
 
  An ugly hack would be to use one single HttpSession with a special
 session-id to store global objects, and somehow fetch objects from within
 this HttpSession from inside requests that belongs to other sessions. I
 can't see how this could be done though, since request.getSession() can't
 fetch other sessions than its own. This would probably also have to
include
 some tomcat specific magic which i wouldn't want.
 
  Any help is appreciated on how to handle this problem!
 
  Thanks
 
  Joakim
 
  On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote:
   The servlet spec says this data is local to a given JVM.
  
   I suppose a servlet engine could expand beyond the spec, but I'd be
   surprised if Tomcat did here.
  
   Joakim Ahlén wrote:
  
   Hi!
   
   We have a cluster of two tomcat 5.5.9-machines using session
 replication.
   However, we also have data in application scope (set with
   getServletContext().setAttribute(...)) which as far as i have found
in
 the
   docs, is not replicated.
   
   Is there any way to accomplish this with tomcat? If not, is there any
 plan
   to develop support for it? Do other application servers have support
 for
   this?
   
   Hope you can help me.
   
   Regards
   
   Joakim
   
   -
   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]




-
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: IIS 6.0 with isapi_redirect.dll (jk 1.2.10) filter does not log page requests

2005-04-22 Thread Mladen Turk
Haris Papadopoulos wrote:
IIS logs do not contain any information about the page that Tomcat serves.
Instead, the following line:
2005-04-21 14:58:12 192.168.1.59 GET /jakarta/isapi_redirect.dll - 80 -
192.168.1.11
Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.7.5)+Gecko/20041107+Firefox/1.0 

Like said for your bugizilla entry on that subject:
This is not a bug, but rather enchantment request.
Neither JK nor JK2 never made any attempt to log a client
request inside IIS, so this can not be a bug.
I'll see if some sort of logging can be made, but no promises :)
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat connectors

2005-04-22 Thread Patty O'Reilly
Thanks very much for responding. I'm still stuggling with an ever
growing number of connections to the apache server and an ever growing
number of threads on my tomcat server. I'm fairly certain it is
not the application. I have all three timeouts set but no joy.

worker.ifa-prod.jweb1.cachesize=1
worker.ifa-prod.jweb1.cache_timeout=600
worker.ifa-prod.jweb1.socket_keepalive=1
worker.ifa-prod.jweb1.socket_timeout=300
worker.ifa-prod.jweb1.recycle_timeout=300

--patty

On Fri, 22 Apr 2005, Lionel Farbos wrote:

 Date: Fri, 22 Apr 2005 16:03:59 +0200
 From: Lionel Farbos [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Cc: [EMAIL PROTECTED]
 Subject: Re: tomcat connectors

 Hi,

 As described here : 
 http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html
 the goal of socket_timeout is very different than recyle_timeout :

 socket_timeout is a timeout during the activity (between apache and tomcat)
 recycle_timeout is a timeout after the activity; when the exchanges between 
 apache and tomcat are finished, the socket remains open during 
 recycle_timeout of inactivity (this feature is close to cache_timeout).

 Regards.
 On Wed, 20 Apr 2005 17:30:32 -0700 (PDT)
 Patty O'Reilly [EMAIL PROTECTED] wrote:

  The descriptions of recycle_timeout and socket_timeout seem very
  similar in the Jakarta Tomcat Connector doc. Does anyone know when
  you would use one over the other, or should both directives be
  used together?
 
  I'm using 1.2.8 for Apache 2.0.52 + RHAS3.
 
  Many thanks
  --patty
 
  -
  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: development environment

2005-04-22 Thread Mauricio Nuñez
El vie, 22-04-2005 a las 13:46 -0700, Patrick Lacson escribi:
 hi All,
 
 I'm curious to what everyone's dev environment looks like.  Here's mine:
 

Hi,

Ubuntu Linux 5.04 
Intel(R) Pentium(R) 4 CPU 3.00GHz
1G RAM
Eclipse 3.0.2



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



Re: development environment

2005-04-22 Thread Larry Meadors
Gentoo (2.4 kernel) on Intel 2.8GHz w/ 1GB RAM - IntelliJ IDEA.


Re: [Pragma] = [No-cache] header added automatically

2005-04-22 Thread Mark Leone
You've run into http://issues.apache.org/bugzilla/show_bug.cgi?id=28750
See the above link for an explanation, and to configure Tomcat to avoid 
this M$ feature, see 
http://issues.apache.org/bugzilla/show_bug.cgi?id=27122

The problem is that IE interprets the no-cache cache control HTTP 
headers as forbidding the temporary caching IE does while streaming a 
file into an app or the local file system, contrary to the semantics 
defined for these headers in the HTTP spec (we're all shocked, I know). 
Thus when the app or file system requests the file that was supposed to 
be downloaded, IE doesn't find it, and cleverly reports that the site is 
unreachable.

Tomcat adds the No-cache directives to the Pragma and Cache-Control 
HTTP headers when a client retrieves a file from within a context in 
Tomcat that is protected by a security constraint. To disable this, you 
just have to configure the authenticator to not do this. Put the 
following in your server.xml file for each context from which you want 
to download files:

Context path=/myapp docBase=myapp
 Valve className=org.apache.catalina.authenticator.FormAuthenticator
 disableProxyCaching=false /
/Context
Note that if you're not using Form authentication, then substitue the 
class name of the authenticator you're using.

Goldman, Stephen M. wrote:
I am running Tomcat 5.5.7 with Apache 2.0.54  and mod_jk 1.2.10 with SSL and
am experiencing problems downloading files using IE. Microsoft has a
technical bulletin on this issue (Q323308).   Microsoft has a registry hack
to fix this, but to do this on all of the companies machines is not an
option.  Looking at the mod_jk  log is seems that Tomcat is automatically
adding the no cache header to the download.  Is there anyway to disable
this?  


[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (606): status = 200
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (613): Number of headers is = 6
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[0] [Set-Cookie] =
[JSESSIONIDSSO=CDBF403D94E7C8CEF1B65F9C32717B75; Expires=Thu, 01-Jan-1970
00:00:10 GMT]
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Pragma] =
[No-cache]
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[2] [Cache-Control] =
[no-cache]
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[3] [Expires] = [Wed,
31 Dec 1969 16:00:00 PST]
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[4] [Content-Type] =
[text/html;charset=iso-8859-1]
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[5] [Content-Length] =
[4969]
[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13
pos=0 len=4973 max=8192
 

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


Re: mod_jk working together with mod_userdir - possible or not?

2005-04-22 Thread Steve Ochani
In order to get Tomcat to handle requests as in

http://www.xyz.com/~username

you need to use the Tomcat UserConfig class and then have apache pass off all 
requests to .jsp to tomcat with mod_jk.

Details to use UserConfig in tomcat are at a few places including

http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html?page=2

(tip #7)

Test if first by

http://www.xyz.com:8080/~username/nameOfFile.jsp

If you get beans and servlets working in user's public_html directory let me 
know 
because I've tried for 2 weeks and couldn't get them to work.

Good luck




On 22 Apr 2005 at 4:09, Torsten Krah wrote:

 Hello,
 
 is there any chance, to get mod_jk so configured, that it can handle jsp
 files, servlets ( complete webapps ) in the apache mod_userdir
 directory?
 I want to have ~/pubic_html/*.jsp interpreted by tomcat but it seems
 mod_jk isnt able to handle it, am i right or wrong?
 Any solutions for this problem? Pros  Cons?
 
 best regards
 
 Torsten Krah
 
 
 -
 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]



why is my security not working?

2005-04-22 Thread teknokrat
I have placed the following context file
Context path=/myAdmin
cachingAllowed=false
cacheTTL=0
cacheMaxSize=0
swallowOutput=false


Realm className=org.apache.catalina.realm.UserDatabaseRealm 
debug=5/

/Context
and i have added to web.xml
 security-constraint
web-resource-collection
web-resource-nameAdmin/web-resource-name
url-pattern/myAdmin/*/url-pattern
/web-resource-collection
auth-constraint
role-nameme/role-name
/auth-constraint
 /security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameAdmin/realm-name
/login-config

 security-role
descriptionThe role/description
role-nameme/role-name
/security-role
Yet, I can still access the webapp without tomcat asking for a username 
and password. I have added the role and users to tomcat-users.xml too.

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


Re: development environment

2005-04-22 Thread epyonne
These are mine (just the two primary machines as I have too many to list
them all):

1. Laptop: Centrino, 512MB RAM, 80GB harddrive, 802.11g, Virtual PC with
Windows XP Pro and SUSE Linux, Teradata V2R5 database, Oracle 9.2 database,
Tomcat, Eclipse, Macromedia MX Suite.

2. Desktop: Dual 3.6-GHz Intel Xeon, 1GB 400-MHz DDR2 SDRAM, three 36GB
15,000-rpm SCSI drives in a RAID 5 array, Virtual PC with Windows 2003, SUSE
Linux, and Solaris 9 operating systems, Teradata V2R5 database, Oracle 9.2
and 10g databases, MySQL 4.1 database, MS SQL Server 2005, Ascential
DataStage, Informatica, JBOSS, Tomcat, Eclipse, JBuilder Enterprise, MS
Visual Studio.NET 2003, Macromedia MX Suite, and so on.

Epy.


- Original Message -
From: Patrick Lacson [EMAIL PROTECTED]
To: Tomcat User-List tomcat-user@jakarta.apache.org
Sent: Friday, April 22, 2005 3:46 PM
Subject: development environment


hi All,

I'm curious to what everyone's dev environment looks like.  Here's mine:

hardware
Penium IV 2.0Ghz / 1GB Ram

OS
Windows XP Pro

IDE / Tools
Eclipse 3.x / Emacs

--
Patrick

-
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: why is my security not working?

2005-04-22 Thread teknokrat
I should mention I am on tomcat 5.0.28
teknokrat wrote:
I have placed the following context file
Context path=/myAdmin
cachingAllowed=false
cacheTTL=0
cacheMaxSize=0
swallowOutput=false


Realm className=org.apache.catalina.realm.UserDatabaseRealm 
debug=5/

/Context

and i have added to web.xml
 security-constraint
web-resource-collection
  web-resource-nameAdmin/web-resource-name
  url-pattern/myAdmin/*/url-pattern
 /web-resource-collection
auth-constraint
role-nameme/role-name
/auth-constraint
  /security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameAdmin/realm-name
/login-config

 security-role
descriptionThe role/description
role-nameme/role-name
  /security-role

Yet, I can still access the webapp without tomcat asking for a username 
and password. I have added the role and users to tomcat-users.xml too.

thanks

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


IIS 6.0 with isapi_redirect.dll (jk 1.2.10) filter does not log page requests

2005-04-22 Thread Haris Papadopoulos
IIS logs do not contain any information about the page that Tomcat serves.
Instead, the following line:
2005-04-21 14:58:12 192.168.1.59 GET /jakarta/isapi_redirect.dll - 80 -
192.168.1.11
Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.7.5)+Gecko/20041107+Firefox/1.0
- 200 0 0
appears each time a redirection occurs.
I consider it a bug since one can not obtain useful Web statistics from 
IIS logs or from Tomcat logs (static content gets logged by IIS while 
dynamic gets logged by Tomcat).
I also submitted a bug in bugzilla with ID 34577
If anyone knows a resolution or a workaround, please reply.

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


Need help!

2005-04-22 Thread Sergey Livanov

Client's server with applications stops ~ 1 in two days.
Configuration: Win2003 server, sp4, Tomcat 5.12, Oracle 9.2.
I'd like to ask a couple of questions

1. Is there a method to have a load on 80 rt, determine the number of
   inquiries and see how the system operates?

2. Do I need the Shareable parameter in  web.xml?
  resource-ref
  descriptionDatabase Reference/description
  res-ref-nameORAPOOL/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  res-sharing-scopeShareable/res-sharing-scope
   /resource-ref

3. Are my Tomcat Connection pool parameters normal?
 Resource auth=Container
   description=Oracle 9i database 
   name=portalDataSource 
   scope=Shareable
   type=javax.sql.DataSource /

ResourceParams name=portalDataSource
parameter
   namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
   namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
   nameurl/name
  valuejdbc:oracle:thin:@192.168.0.10:1521:APPL/value
 /parameter
parameter
   nameusername/name
   valueusername/value
/parameter
parameter
   namepassword/name
   valuepwd/value
/parameter
parameter
  namemaxActive/name
  value80/value
/parameter
parameter
  namemaxIdle/name
  value40/value
/parameter
parameter
  namemaxWait/name
  value1/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter

   /ResourceParams

Any advises ?


Help  advises are appreciated !


regards,
 Sergey  mailto:[EMAIL PROTECTED]


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



Tomcat 5.5 - WAR file deployment and Context/

2005-04-22 Thread R A

When Tomcat deployed the WAR file, it created an xml file named the war file in 
the J:\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost directory. 
This entry is similar to the one in the server.xml file.  I read the doco for 
Context, and it seems as though it can be placed in a few directories.

My question: I assume both files(server.xml and the one under Catalina) include 
the same Context / attrinutes, but which one has priority or  which one is 
executed last. I assume the xml file under Catalina executes last, since it was 
designed for hot deploying WAR files, overriding any current setting??


WAR file updates. I read the doco for the deployOnStartup switch, and it states 
that if an app with the WAR file name exist, it is deleted and redeployed. Is 
there any setting that redeploys without deleting the current  webapp??


 

 

 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Pragma] = [No-cache] header added automatically

2005-04-22 Thread Goldman, Stephen M.
I am running Tomcat 5.5.7 with Apache 2.0.54  and mod_jk 1.2.10 with SSL and
am experiencing problems downloading files using IE. Microsoft has a
technical bulletin on this issue (Q323308).   Microsoft has a registry hack
to fix this, but to do this on all of the companies machines is not an
option.  Looking at the mod_jk  log is seems that Tomcat is automatically
adding the no cache header to the download.  Is there anyway to disable
this?  

 

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (606): status = 200

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (613): Number of headers is = 6

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[0] [Set-Cookie] =
[JSESSIONIDSSO=CDBF403D94E7C8CEF1B65F9C32717B75; Expires=Thu, 01-Jan-1970
00:00:10 GMT]

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Pragma] =
[No-cache]

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[2] [Cache-Control] =
[no-cache]

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[3] [Expires] = [Wed,
31 Dec 1969 16:00:00 PST]

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[4] [Content-Type] =
[text/html;charset=iso-8859-1]

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_unmarshal_response::jk_ajp_common.c (669): Header[5] [Content-Length] =
[4969]

[Fri Apr 22 10:45:42 2005] [2848:1568] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13
pos=0 len=4973 max=8192



Re: VM thread dump from windows service

2005-04-22 Thread Anoop kumar V
Patrick,

I am not sure if this will help you but it is worth checking out Stack
trace at the following link:

http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp

let me know if it helped..
-Anoop

On 4/22/05, Patrick Lacson [EMAIL PROTECTED] wrote:
 If I run tomcat as a windows service, what is the best way to get a VM
 thread dump?  From a command window it's pretty easy with the
 Control-Break command.. what are my options for doing the equivalent
 from a running tomcat windows service?
 
 Thanks,
 Patrick
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

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



running multiple instances of tomcat as windows services - the service won't start

2005-04-22 Thread Jaynika Barot
hi all,

we are using tomcat 5.0.28 on windows server.  I have been trying to
install multiple tomcat instances . Our goal is to run multiple
instances on port 80 of virtual IPs. But for testing, i'm using
differnt port numbers instead of ips..

Here r the steps i performed,

(a) installed tomcat on c:\TC1
(b) copied conf,logs,shared,temp,webapps, work  folders from c:\TC1 into c:\TC2
(c) changed port entries into TC2\conf\server.xml
Server port=8006 , Connector port=8081
(d) on cmd prompt

c:\TC1\bin set CATALINA_BASE=C:\TC2
c:\TC1\binservice.bat install TC2

This will install the TC2 windows service, but the service won't start
. If i check the properites of the service, it's pointing to
C:\TC1\bin\tomcat5.exe //RS//tc2

What is wrong??

I couldn't find any step by step guide to setup multiple instances of
tomcat as windows service on Tomcat users list or any other web
resource.

Any pointers will be appreciated.

Thanks,
Jaynika

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



:doSecurityJpda with Tomcat 5.0.x

2005-04-22 Thread Marc Logemann
Hi,
i am trying to turn on Jpda AND securityManager on tomcat start without 
success. First it seems that its not possible to launch this 
configuration via parameters isnt it?

I modified the catalina.bat so that it reaches the :doSecurityJpda label 
on startup. Of course i ve set the policy file manually right before the 
%_EXECJAVA

Now i get:
JDWP unable to access JVMDI Version 1.
Maybe you need to start the VM with the -Xdebug option
Error occured during initialisation of VM
-Xrun library failed to init: jdwp
Can someone help me on this? Is there an easy way via catalina 
parameters and if not, how to start such a configuration?

Environment: Tomcat 5.0 latest, Windows, JRE 1.4.2_06
Thanks
--
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where is Jakarta's common email jar file

2005-04-22 Thread Patrick Thomas
Lorenzo,

I don't know about a jar file, but you can look at the CVS repository
for the java files. (Look in src/java/ for the package root) They're
packaged, so you could make the jar yourself easily enough. (jar -cvf
new jar name files to jar)

http://cvs.apache.org/viewcvs/jakarta-commons/email/

(linked from http://jakarta.apache.org/commons/email/ )

~Patrick

On 4/22/05, Lorenzo Jiménez [EMAIL PROTECTED] wrote:
 Hi,
 
 Do anyone knows where to download latest Jakarta's commons email jar. I tried 
 in Jakarta commons website, but I cannot find it.
 
 Thanks,
 
 Lorenzo
 
 -
 
 Si usted no es el destinatario indicado en este mensaje o responsable como 
 persona
 de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
 notifique
 al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes
 relacionados a este correo visite 
 http://www.nacion.com/disclaimer/index_es2.htm
 
 If you are not the addressee indicated in this message (or responsible for 
 delivery of the
 message to such person), you may not copy or send this message to anyone, 
 please notify
 to [EMAIL PROTECTED] Click here for important additional terms relating to 
 this e-mail.
 http://www.nacion.com/disclaimer/index_en2.htm
 
 -
 
 -
 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]