Re: Apache mod_jk and Tomcat not working correctly

2008-10-27 Thread Wayne Bragg
I  got it to work almost with some of these changes. In particular the 
JkMount /dwr-examples/* ajp13worker1.

That was the problem.

Now the only thing that is causing a problem are a couple of a policy 
violations. This happened before and I had to delete them.

How do I find which ones they are and where they are?

[Mon Oct 27 00:42:31 2008] [error] [client 127.0.0.1] ModSecurity: Warning. 
Pattern match 
(?:b(?:on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)|key(?:press|down|up)|c(?:hange|lick)|s(?:elec|ubmi)t|(?:un)?load|dragdrop|resize|focus|blur)bW*?=|abortb)|(?:l(?:owsrcbW*?b(?:(?:java|vb)script|shell)|ivescript)|(?:href|url)bW*?b(?:(?:java|vb)script|shell)|mocha):|typebW*?b(?:textb(?:W*?b(?:j(?:ava)?|ecma)scriptb| 
[vbscript])|applicationbW*?bx-(?:java|vb)scriptb)|s(?:(?:tylebW*=.*bexpressionbW*|ettimeoutbW*?)(|rcbW*?b(?:(?:java|vb)script|shell|http):)|(?:c(?:opyparentfolder|reatetextrange)|get(?:special|parent)folder|background-image:|@import)b|a(?:ctivexobjectb|lertbW*?())|(?:(?:bodyb.*?b(?:backgroun|onloa)d|inputb.*?btypebW*?bimage)b|![CDATA[|script|meta)|.(?:(?:execscrip|addimpor)t|(?:fromcharcod|cooki)e|innerhtml)b) 
at REQUEST_FILENAME. [id 950004] [msg Cross-site Scripting (XSS) Attack] 
[severity CRITICAL] [hostname localhost] [uri /msgboard/js/cookie.js] 
[unique_id [EMAIL PROTECTED]]
[Mon Oct 27 01:06:10 2008] [error] [client 127.0.0.1] ModSecurity: Warning. 
Match of rx 
^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$ 
against REQUEST_HEADERS:Content-Type required. [id 960010] [msg Request 
content encoding is not allowed by policy] [severity WARNING] [hostname 
localhost] [uri /dwr-examples/dwr/call/plaincall/Intro.getInsert.dwr] 
[unique_id 7XnhS8CoAWUAAAwciBDz]


Thanks alot for the help, your masters!

- Original Message - 
From: Rainer Jung [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 27, 2008 12:07 AM
Subject: Re: Apache mod_jk and Tomcat not working correctly



Wayne Bragg schrieb:

my setup:
   WinXP Home
   Wed-Dev install of:
   Apache/2.2.3 (Win32)
   Tomcat 5
   PHP 5.2.0


Before proceeding consider taking more recent minor versions, like
2.2.10, PHP 5.2.6 and you didn't tell us your Tomcat version. Your
mod_jk below is 1.2.19, which is *very* outdated, use 1.2.26.


I have mod_jk connector set up the following way according to
instructions:

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/

Directory /www/tomcat5/webapps/dwr-examples/
 Options Indexes FollowSymLinks


If you don't need those options drop them.


 AllowOverride None
 Order deny,allow
 Deny from all
 Allow from all

 AddType text/html .php .phps
 AddHandler application/x-httpd-php .php
 AddHandler application/x-httpd-php-source .phps
/Directory

mod_jk setup:
   LoadModule jk_module modules/mod_jk.so

IfModule jk_module
JkWorkersFile conf/Suite-extra/workers.properties


We don't know the contents of this file.


JkLogFile logs/mod_jk.log
JkLogLevel warn
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 


You shouldn't nedd a JkLogStampFormat. Only use it, if you think you
need it.


JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories


Delete +ForwardURICompat from the list if you are not sure you need it.


JkRequestLogFormat %w %V %T


You should use logging of mod_jk notes in the access log instead.


   Location /*/WEB-INF/*
# AllowOverride None
 deny from all
/Location

   JkMount /dwr-examples/*.jsp ajp13worker1
   JkMount /dwr-examples/*.jspx ajp13worker1


Your testing URL /dwr-examples/dwr does not match any of those two
rules, so it won't get send to Tomcat.


   JkUnMount /dwr-examples/*.html  ajp13worker1
   JkUnMount /dwr-examples/*.htm  ajp13worker1
   JkUnMount /dwr-examples/*.png  ajp13worker1
   JkUnMount /dwr-examples/*.jpg  ajp13worker1
   JkUnMount /dwr-examples/*.jpeg  ajp13worker1
   JkUnMount /dwr-examples/*.gif  ajp13worker1
   JkUnMount /dwr-examples/*.ico  ajp13worker1
   JkUnMount /dwr-examples/*.php  ajp13worker1


What about

   JkMount /dwr-examples/* ajp13worker1
   JkUnMount /*.html  ajp13worker1
   JkUnMount /*.htm  ajp13worker1
   JkUnMount /*.png  ajp13worker1
   JkUnMount /*.jpg  ajp13worker1
   JkUnMount /*.jpeg  ajp13worker1
   JkUnMount /*.gif  ajp13worker1
   JkUnMount /*.ico  ajp13worker1
   JkUnMount /*.php  ajp13worker1

instead?


/IfModule

Everthing works using port 8080 but I am getting the following error in 
the

error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs
http://localhost/dwr-examples/


[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 
configured

[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev 

Downloading issues in IE via https

2008-10-27 Thread Nar Karapetyan
Hello, 

the issue I encounter might not directly be related with Tomcat. However if 
anyone hase a clue
of how can I overcome that, I'd like to learn it.

The thing is that when I connect to my web page via https, IE7 hints a message 
that the certificate
is not error free, but I am able to explore the site without any difficulties. 
FF does not report any issues
related with the certificate.

However, when I try to download a file I receive the following IE error message 
(also attached the jpg screenshot).

Internet Explorer cannot download downloadFile.action from localhost.
Internet Explorer was not able to open this Internet site. The requested site 
is either unavailable or cannot be found. Please
try again later

But if I choose Open instead of Save - this will work fine.

Any clue of what could be the problem?
Any web pages about this are welcome.


Thank you,
Kind regards,Nareg Garabedian



  -
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re:

2008-10-27 Thread Hisham Farahat
 Dear All,
I have a problem with my web application. I configured tomcat 6.0 to
authenticate users through Realm ( LDAP), it connects to an active directory
server. Everything seems OK, but sometimes the connection could not be
established ( Connection refused ) and it continues with this state for ~ 10
minutes. Stopping and starting tomcat again won't affect anything, I should
restart the machine so that users can access the web application normally (
or just wait for 10 minutes). How can I solve this problem?
Regards,
-- 
Hisham Farahat


Re: Apache mod_jk and Tomcat not working correctly

2008-10-27 Thread André Warnier

Hi.
Forget my earlier response, and look at Rainer's.
He spotted what I did not, in your JkMount.
You don't have any JkMount that will match /dwr-examples/dwr, and that 
is the problem.
But go back, read Rainer's answer, do the different things that he says 
(cleaning up mostly), and read the stuff below if you still do not get it.



the Why :

When Apache gets asked for a URL, and it realises that this URL 
corresponds to a directory (not a file), it will :
- try and locate, in that directory, a document that matches one of the 
ones indicated in its DirectoryIndex directive.  If it finds one, it 
will return it to the browser, and he's done.
- if it doesn't, it will look if he's authorised to create himself a 
directory list of files (Options Indexes).  If he is, he will create 
such a document, send it back to the browser, and he's done.

- if the above all fails, Apache returns a not found error.
That's a bit simplified, but it's the idea.

What probably happens in your case :
1) You enter the URL http://localhost/dwr-examples/;
2) Apache gets this request, and tries to match /dwr-examples/ with all 
your Alias and JkMount directives.
3) It does not find a match with JkMount, but finds a match with your 
Alias directive :

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
4) So it serves this content itself.  It looks in 
/www/tomcat5/webapps/dwr-examples/ to find a DirectoryIndex file 
(you did not say what you put there).  Suppose it finds one there, 
called index.html. It sends it to the browser and he's done.
5) Now something in this file tells the browser to load the page 
http://localhost/dwr-examples/dwr;, so it does.
(I am guessing here, but you should be able to see what happens, in 
sequence, in your Apache access log)
6) Apache gets this new request (for /dwr-examples/dwr), and starts 
again trying to match it with Alias and JkMount.  It again does not 
match any JkMount, but it does match the same Alias as before, so Apache 
tries to serve this new request from the directory 
/www/tomcat5/webapps/dwr-examples/ (loking for dwr in there).
7) It does not find anything there called dwr, so it returns the error 
you are seeing in the log.


By doing what Rainer is recommending :
JkMount /dwr-examples/* workername
and then un-mounting selected parts of that, like
JkUnMount /dwr-examples/*.html workername
...
you avoid the above, because your call to
/dwr-examples/dwr will now match the first JkMount, so it will be 
re-directed to Tomcat (and Apache will not try to do it itself), and 
Tomcat (presumably) knows what to do with /dwr-examples/dwr.






Wayne Bragg wrote:
Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not 
any jsp or jspx that is called for



Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
also covers URLs like /dwr-examples/dwr, and so it is Apache trying to
serve it, it is never re-directed to Tomcat by mod_jk, it does not even
get that far.


I kind of get what you are saying and will try


AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

(I put html?|jog|php .. because I don't remember how to say not .jsp)


but the alias structure I posted is the way I always had it and it 
worked, but not before I made some other fixes that I don't remember.


I'm not quite understanding what you want me to try though.
Do you mean get rid of the current Alias code and replace it with

AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$ 
/www/tomcat5/webapps/dwr-examples/$1


or use it in addition to it and where exactly should it go?
Prior to the JkMount /dwr-examples/*.jsp ajp13worker1

Forgive me for being so dense but this is new to me!

- Original Message - From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 6:36 PM
Subject: Re: Apache mod_jk and Tomcat not working correctly



I think your Alias at the beginning has more priority than your
JkMount later.
Not that the order in the config file matters, that's not what I mean.
What I mean is :
Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
also covers URLs like /dwr-examples/dwr, and so it is Apache trying to
serve it, it is never re-directed to Tomcat by mod_jk, it does not even
get that far.
Try maybe (one line)
AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

(I put html?|jog|php .. because I don't remember how to say not .jsp)


Wayne Bragg wrote:

I guess I need to add, going through http port 80 works with no errors
for everything except .jsp to tomcat

- Original Message - From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 5:41 PM
Subject: RE: Apache mod_jk and Tomcat not working correctly



Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80

Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and 

Hot deployment of a new version of war file while users are still working on the old one.

2008-10-27 Thread Joost Nachtergaele
Hot deployment of a new version of war file while users are still working on
the old one.

On a Tomcat server, users are using our application. 

I would like to be able to upload a new version, using the same name, so
current users continue using the old version(until session timeout), and new
users use the new version. 

In .net this is automatically, the .dll is in memory, new users get the new
.dll (about the only positive thing in .net?)

 

Tnx in advance,

Jst.



Re: Downloading issues in IE via https

2008-10-27 Thread André Warnier

Nar Karapetyan wrote:
Hello, 


the issue I encounter might not directly be related with Tomcat. However if 
anyone hase a clue
of how can I overcome that, I'd like to learn it.

The thing is that when I connect to my web page via https, IE7 hints a message 
that the certificate
is not error free, but I am able to explore the site without any difficulties. 
FF does not report any issues
related with the certificate.

However, when I try to download a file I receive the following IE error message 
(also attached the jpg screenshot).

Internet Explorer cannot download downloadFile.action from localhost.
Internet Explorer was not able to open this Internet site. The requested site 
is either unavailable or cannot be found. Please
try again later

But if I choose Open instead of Save - this will work fine.

Any clue of what could be the problem?
Any web pages about this are welcome.


I haven't a clue really.
Maybe there is a link between the fact that this is HTTPS, or with the 
earlier certificate-related message.
But then also, it would not be the first time that a browser does 
something strange or non-standard (and IE has some history behind it in 
that respect).
But obviously, since open and save in IE get different results, 
there must be something different happening in each case.


The best way to start with such issues is normally to put some mechanism 
on your server to see what the browser *really* sends to the server.

I think in Tomcat the RequestDumper Valve would probably help.

It may also help to see exactly what the browser is sending and 
receiving in terms of requests/responses and HTTP headers.

For Firefox, there is a useful add-on called LiveHttpHeaders to do that.
For IE, I don't know.
There is also something I often hear mentioned but do not know myself, 
called WireShark (?), which seems to be a program allowing to see the 
entire conversation back and forth.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:

2008-10-27 Thread Serge Fonville
I would need a little bit more information about your environment

Have you looked at te loggingHow is your network functioning
How is the realm configured
Has it always been like this or at some point
Are there specific times of day it occurs
How is the memory usage of tomcat
How busy is tomcat
What OS is it running on
Can you use ldap manually without errors

Regards,

Serge Fonville


On Mon, Oct 27, 2008 at 9:18 AM, Hisham Farahat [EMAIL PROTECTED]wrote:

  Dear All,
 I have a problem with my web application. I configured tomcat 6.0 to
 authenticate users through Realm ( LDAP), it connects to an active
 directory
 server. Everything seems OK, but sometimes the connection could not be
 established ( Connection refused ) and it continues with this state for ~
 10
 minutes. Stopping and starting tomcat again won't affect anything, I should
 restart the machine so that users can access the web application normally (
 or just wait for 10 minutes). How can I solve this problem?
 Regards,
 --
 Hisham Farahat



Re: Apache mod_jk and Tomcat not working correctly

2008-10-27 Thread Wayne Bragg
Your both right. It's fixed and working now. One other thing for reference 
purposes. There are a couple default policies in Apache that cause DWR to 
malfunction. I was able to locate them and commented them out. It may be one 
or both of the following policies.


##SecRule REQUEST_METHOD !^(?:GET|HEAD)$ chain, 
deny,log,status:501,id:960010,severity:4,msg:'Request content encoding is 
not allowed by policy'
##SecRule HTTP_Content-Type 
!^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$


and/or

##SecRule REQUEST_METHOD !^(?:GET|HEAD)$ chain, 
deny,log,status:501,id:960010,severity:4,msg:'Request content encoding is 
not allowed by policy'
##SecRule HTTP_Content-Type 
!^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$


I didn't check for sure which one is causing the problem with dwr because 
they were both causing errors in my log.


So as far as i am concerned the problem was solved.

Thank you to everyone that help me!

- Original Message - 
From: André Warnier [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 27, 2008 3:20 AM
Subject: Re: Apache mod_jk and Tomcat not working correctly



Hi.
Forget my earlier response, and look at Rainer's.
He spotted what I did not, in your JkMount.
You don't have any JkMount that will match /dwr-examples/dwr, and that
is the problem.
But go back, read Rainer's answer, do the different things that he says
(cleaning up mostly), and read the stuff below if you still do not get it.


the Why :

When Apache gets asked for a URL, and it realises that this URL
corresponds to a directory (not a file), it will :
- try and locate, in that directory, a document that matches one of the
ones indicated in its DirectoryIndex directive.  If it finds one, it
will return it to the browser, and he's done.
- if it doesn't, it will look if he's authorised to create himself a
directory list of files (Options Indexes).  If he is, he will create
such a document, send it back to the browser, and he's done.
- if the above all fails, Apache returns a not found error.
That's a bit simplified, but it's the idea.

What probably happens in your case :
1) You enter the URL http://localhost/dwr-examples/;
2) Apache gets this request, and tries to match /dwr-examples/ with all
your Alias and JkMount directives.
3) It does not find a match with JkMount, but finds a match with your
Alias directive :
Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
4) So it serves this content itself.  It looks in
/www/tomcat5/webapps/dwr-examples/ to find a DirectoryIndex file
(you did not say what you put there).  Suppose it finds one there,
called index.html. It sends it to the browser and he's done.
5) Now something in this file tells the browser to load the page
http://localhost/dwr-examples/dwr;, so it does.
(I am guessing here, but you should be able to see what happens, in
sequence, in your Apache access log)
6) Apache gets this new request (for /dwr-examples/dwr), and starts
again trying to match it with Alias and JkMount.  It again does not
match any JkMount, but it does match the same Alias as before, so Apache
tries to serve this new request from the directory
/www/tomcat5/webapps/dwr-examples/ (loking for dwr in there).
7) It does not find anything there called dwr, so it returns the error
you are seeing in the log.

By doing what Rainer is recommending :
JkMount /dwr-examples/* workername
and then un-mounting selected parts of that, like
JkUnMount /dwr-examples/*.html workername
...
you avoid the above, because your call to
/dwr-examples/dwr will now match the first JkMount, so it will be
re-directed to Tomcat (and Apache will not try to do it itself), and
Tomcat (presumably) knows what to do with /dwr-examples/dwr.





Wayne Bragg wrote:

Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not
any jsp or jspx that is called for


Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
also covers URLs like /dwr-examples/dwr, and so it is Apache trying to
serve it, it is never re-directed to Tomcat by mod_jk, it does not even
get that far.


I kind of get what you are saying and will try


AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

(I put html?|jog|php .. because I don't remember how to say not .jsp)


but the alias structure I posted is the way I always had it and it
worked, but not before I made some other fixes that I don't remember.

I'm not quite understanding what you want me to try though.
Do you mean get rid of the current Alias code and replace it with

AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

or use it in addition to it and where exactly should it go?
Prior to the JkMount /dwr-examples/*.jsp ajp13worker1

Forgive me for being so dense but this is new to me!

- Original Message - From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 

Re:

2008-10-27 Thread Hisham Farahat
Thanx for your reply
1- yes , the log has this exception each time i need to login :

[Root exception is java.net.ConnectException: Connection refused: connect]]

2- What do you mean by functioning?
3-  this is the realm in server.xml ( By the way i tried to put it in both
server.xml and context.xml ,with both the same problem occured)
Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL =ldap://company.com:389/; connectionName=
CN=tomcat,CN=Users,DC=company,DC=com connectionPassword= ***
alternateURL =ldap://192.168.205.2:389/; userSubtree = true
referrals=follow userSearch=### userBase=DC=company,DC=com
roleBase=CN=Users,DC=company,DC=com roleName=description
roleSearch=member={0} roleSubtree = true allRolesMode=AuthOnly /

4- no, just 20% of the times when i logged in. sometimes it happens once a
day and sometimes i could not even login it contuisly doing this issue.

5- no randomly

6- the whole server takes 500 MB, it 's not that much.

7- if with busy you mean, how frequent users use it. Then no it is not, im
the only one it still in testing phase.

8- Windows server 2003

9- I think yes, if not then how users are logging to their domain using AD
accounts
On Mon, Oct 27, 2008 at 11:52 AM, Serge Fonville
[EMAIL PROTECTED]wrote:

 I would need a little bit more information about your environment

 Have you looked at te loggingHow is your network functioning
 How is the realm configured
 Has it always been like this or at some point
 Are there specific times of day it occurs
 How is the memory usage of tomcat
 How busy is tomcat
 What OS is it running on
 Can you use ldap manually without errors

 Regards,

 Serge Fonville


 On Mon, Oct 27, 2008 at 9:18 AM, Hisham Farahat [EMAIL PROTECTED]
 wrote:

   Dear All,
  I have a problem with my web application. I configured tomcat 6.0 to
  authenticate users through Realm ( LDAP), it connects to an active
  directory
  server. Everything seems OK, but sometimes the connection could not be
  established ( Connection refused ) and it continues with this state for ~
  10
  minutes. Stopping and starting tomcat again won't affect anything, I
 should
  restart the machine so that users can access the web application normally
 (
  or just wait for 10 minutes). How can I solve this problem?
  Regards,
  --
  Hisham Farahat
 




-- 
Hisham Farahat


Re:

2008-10-27 Thread Hisham Farahat
One more issue, most probably it occurs when i try to login after a previous
timed out  session

On Mon, Oct 27, 2008 at 12:18 PM, Hisham Farahat [EMAIL PROTECTED]wrote:

 Thanx for your reply
 1- yes , the log has this exception each time i need to login :

 [Root exception is java.net.ConnectException: Connection refused: connect]]

 2- What do you mean by functioning?
 3-  this is the realm in server.xml ( By the way i tried to put it in both
 server.xml and context.xml ,with both the same problem occured)
 Realm className=org.apache.catalina.realm.JNDIRealm debug=99
 connectionURL =ldap://company.com:389/; connectionName=
 CN=tomcat,CN=Users,DC=company,DC=com connectionPassword= ***
 alternateURL =ldap://192.168.205.2:389/; userSubtree = true
 referrals=follow userSearch=### userBase=DC=company,DC=com
 roleBase=CN=Users,DC=company,DC=com roleName=description
 roleSearch=member={0} roleSubtree = true allRolesMode=AuthOnly /

 4- no, just 20% of the times when i logged in. sometimes it happens once a
 day and sometimes i could not even login it contuisly doing this issue.

 5- no randomly

 6- the whole server takes 500 MB, it 's not that much.

 7- if with busy you mean, how frequent users use it. Then no it is not, im
 the only one it still in testing phase.

 8- Windows server 2003

 9- I think yes, if not then how users are logging to their domain using AD
 accounts

 On Mon, Oct 27, 2008 at 11:52 AM, Serge Fonville [EMAIL PROTECTED]
  wrote:

 I would need a little bit more information about your environment

 Have you looked at te loggingHow is your network functioning
 How is the realm configured
 Has it always been like this or at some point
 Are there specific times of day it occurs
 How is the memory usage of tomcat
 How busy is tomcat
 What OS is it running on
 Can you use ldap manually without errors

 Regards,

 Serge Fonville


 On Mon, Oct 27, 2008 at 9:18 AM, Hisham Farahat [EMAIL PROTECTED]
 wrote:

   Dear All,
  I have a problem with my web application. I configured tomcat 6.0 to
  authenticate users through Realm ( LDAP), it connects to an active
  directory
  server. Everything seems OK, but sometimes the connection could not be
  established ( Connection refused ) and it continues with this state for
 ~
  10
  minutes. Stopping and starting tomcat again won't affect anything, I
 should
  restart the machine so that users can access the web application
 normally (
  or just wait for 10 minutes). How can I solve this problem?
  Regards,
  --
  Hisham Farahat
 




 --
 Hisham Farahat




-- 
Hisham Farahat


Re:

2008-10-27 Thread André Warnier

Hisham Farahat wrote:

 Dear All,
I have a problem with my web application. I configured tomcat 6.0 to
authenticate users through Realm ( LDAP), it connects to an active directory
server. Everything seems OK, but sometimes the connection could not be
established ( Connection refused ) and it continues with this state for ~ 10
minutes. Stopping and starting tomcat again won't affect anything, I should
restart the machine so that users can access the web application normally (
or just wait for 10 minutes). How can I solve this problem?
Regards,


As someone else asked, you need to provide some additional details, such 
as :

- is this Tomcat running on your workstation ? else on what ?

With only the explanation above, I would guess that the LDAP server 
somehow (maybe after a few unsuccesful attempts with bad passwords ?), 
puts your Tomcat server on some blacklist, and refuses connections from it.
Maybe when you reboot the machine, it gets a different IP address and is 
thus no longer on the blacklist at first ?


It does not sound like a specific Tomcat issue though.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:

2008-10-27 Thread André Warnier

Hisham Farahat wrote:
[...]
Maybe also the next time, you could put a real subject line in your 
mails to the list ?

It may help others figuring out what you want.
;-)


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread Mark Thomas
forum123 wrote:
 We're setting up a simple Tomcat cluster using Tomcat 5.5.12.  There will be
 initially 2 Tomcat instances on 2 physical Linux servers in this cluster. 
 Is mounting a shared NFS folder appropriate for this?

Sharing the bin, common, server, shared and webapps directories is fine.
Sharing conf could be OK if you are careful
Sharing logs, temp and work is likely to cause problems.

Did you look into using CATALINA_HOME/CATALINA_BASE?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:

2008-10-27 Thread Hisham Farahat
It is on a separate server, running windows server 2003.
And no wrong passwords attempts, it happens from the 1st attempt.

Sorry for the title thing :)

On Mon, Oct 27, 2008 at 12:20 PM, André Warnier [EMAIL PROTECTED] wrote:

 Hisham Farahat wrote:

  Dear All,
 I have a problem with my web application. I configured tomcat 6.0 to
 authenticate users through Realm ( LDAP), it connects to an active
 directory
 server. Everything seems OK, but sometimes the connection could not be
 established ( Connection refused ) and it continues with this state for ~
 10
 minutes. Stopping and starting tomcat again won't affect anything, I
 should
 restart the machine so that users can access the web application normally
 (
 or just wait for 10 minutes). How can I solve this problem?
 Regards,


 As someone else asked, you need to provide some additional details, such as
 :
 - is this Tomcat running on your workstation ? else on what ?

 With only the explanation above, I would guess that the LDAP server somehow
 (maybe after a few unsuccesful attempts with bad passwords ?), puts your
 Tomcat server on some blacklist, and refuses connections from it.
 Maybe when you reboot the machine, it gets a different IP address and is
 thus no longer on the blacklist at first ?

 It does not sound like a specific Tomcat issue though.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Hisham Farahat


Re: Downloading issues in IE via https

2008-10-27 Thread Mark Thomas
Nar Karapetyan wrote:
 Hello, 
 
 the issue I encounter might not directly be related with Tomcat. However if 
 anyone hase a clue
 of how can I overcome that, I'd like to learn it.
 
 The thing is that when I connect to my web page via https, IE7 hints a 
 message that the certificate
 is not error free, but I am able to explore the site without any 
 difficulties. FF does not report any issues
 related with the certificate.
 
 However, when I try to download a file I receive the following IE error 
 message (also attached the jpg screenshot).
 
 Internet Explorer cannot download downloadFile.action from localhost.
 Internet Explorer was not able to open this Internet site. The requested site 
 is either unavailable or cannot be found. Please
 try again later
 
 But if I choose Open instead of Save - this will work fine.
 
 Any clue of what could be the problem?
 Any web pages about this are welcome.

Maybe this?
http://markmail.org/message/mpu2xk7xg2ultr6p

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hot deployment of a new version of war file while users are still working on the old one.

2008-10-27 Thread Mark Thomas
Joost Nachtergaele wrote:
 Hot deployment of a new version of war file while users are still working on
 the old one.
 
 On a Tomcat server, users are using our application. 
 
 I would like to be able to upload a new version, using the same name, so
 current users continue using the old version(until session timeout), and new
 users use the new version.

Not possible with a single Tomcat instance. Easy with a simple two node
cluster.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



encoding in URI after form-based redirect

2008-10-27 Thread Maxim Kuleshov
Hi!

Question refers to 5.5 branch (5.5.25 from ubuntu repos).

I use form-based authentication. If any protected URI containing
parameter value with non-ascii characters (%xx encoded of course)
is accessed before session starts, then after successful logon
request.getParameter() returns incorrectly interpreted value (as it was
in wrong encoding).

But subsequent GET to the same URI will result ok.

I use useBodyEncodingForURI=true mode in connector.

All content is UTF-8 encoded.

How could I fix of bypass such behaviour?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:

2008-10-27 Thread Serge Fonville
Perhaps if you download Symas OpenLDAP 2.3 (CDS v3) Silver
Editionjavascript:uiform_click('xanchor_2212_5') (Requires
registration) (an ldap server for windows), you can use the accompanying
uilities to try and do the same tomcat does.That way you can try to
determine if there is anything related to the configuration that is
incorrect.
Also if you increase the verbosity of the
logginghttp://tomcat.apache.org/tomcat-6.0-doc/logging.htmlyou might
be able to determine what exactly went wrong.

Hope this helps

Regards,

Serge Fonville

Links:


On Mon, Oct 27, 2008 at 10:33 AM, Hisham Farahat [EMAIL PROTECTED]wrote:

 It is on a separate server, running windows server 2003.
 And no wrong passwords attempts, it happens from the 1st attempt.

 Sorry for the title thing :)

 On Mon, Oct 27, 2008 at 12:20 PM, André Warnier [EMAIL PROTECTED] wrote:

  Hisham Farahat wrote:
 
   Dear All,
  I have a problem with my web application. I configured tomcat 6.0 to
  authenticate users through Realm ( LDAP), it connects to an active
  directory
  server. Everything seems OK, but sometimes the connection could not be
  established ( Connection refused ) and it continues with this state for
 ~
  10
  minutes. Stopping and starting tomcat again won't affect anything, I
  should
  restart the machine so that users can access the web application
 normally
  (
  or just wait for 10 minutes). How can I solve this problem?
  Regards,
 
 
  As someone else asked, you need to provide some additional details, such
 as
  :
  - is this Tomcat running on your workstation ? else on what ?
 
  With only the explanation above, I would guess that the LDAP server
 somehow
  (maybe after a few unsuccesful attempts with bad passwords ?), puts your
  Tomcat server on some blacklist, and refuses connections from it.
  Maybe when you reboot the machine, it gets a different IP address and is
  thus no longer on the blacklist at first ?
 
  It does not sound like a specific Tomcat issue though.
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Hisham Farahat



Tomcat server with two websites with two different authentications

2008-10-27 Thread Hisham Farahat
Dear All,
Can i configure tomcat to host to different websites? How can i do it? any
directions?
Moreover i need to have two different authentication methods for the two
websites, (e.g. one using LDAP and the other using normal tomcat user list (
tomcat-users.xml)
I hope some one help me in this.
regards,
-- 
Hisham Farahat


Re: Tomcat server with two websites with two different authentications

2008-10-27 Thread Tim Funk
You need to configure a Realm per Virtual Host (or if different webapps 
in the same vhost need different authentication schemes - the Realm 
element can be per context too)


http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html

-Tim

Hisham Farahat wrote:

Dear All,
Can i configure tomcat to host to different websites? How can i do it? any
directions?
Moreover i need to have two different authentication methods for the two
websites, (e.g. one using LDAP and the other using normal tomcat user list (
tomcat-users.xml)


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 and RMI

2008-10-27 Thread Gregor Schneider
Maybe one more statement to shed some light:

Tomcat does not have any built-in support for RMI-connectivity but for
the HTTP(S)-connectivity.

If you want to forward incoming HTTP(S)-Requests to your RMI-server,
you'll have to write a servlet which accepts the default
HTTP(S)-requests and transforms them to RMI-requests which then will
be sent by your servlet to your RMI-server.

Aftter hat your servlet has to read the RMI-response which then will
have to be transformed to an HTTP(S)-response which is sent back to
the HTTP(S)-client (usually a web-browser).

HTH

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 and RMI

2008-10-27 Thread Leon Rosenberg
Gregor,
I think you misunderstood the OP (or maybe I did)
but he wanted to receive incoming calls via RMI or HTTP, at least that
was what he posted, and not using tomcat as client...

regards
Leon

On Mon, Oct 27, 2008 at 11:58 AM, Gregor Schneider
[EMAIL PROTECTED] wrote:
 Maybe one more statement to shed some light:

 Tomcat does not have any built-in support for RMI-connectivity but for
 the HTTP(S)-connectivity.

 If you want to forward incoming HTTP(S)-Requests to your RMI-server,
 you'll have to write a servlet which accepts the default
 HTTP(S)-requests and transforms them to RMI-requests which then will
 be sent by your servlet to your RMI-server.

 Aftter hat your servlet has to read the RMI-response which then will
 have to be transformed to an HTTP(S)-response which is sent back to
 the HTTP(S)-client (usually a web-browser).

 HTH

 Gregor
 --
 what's puzzlin' you, is the nature of my game
 gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 and RMI

2008-10-27 Thread Gregor Schneider
Hi Leon

On Mon, Oct 27, 2008 at 12:03 PM, Leon Rosenberg
[EMAIL PROTECTED] wrote:
 Gregor,
 I think you misunderstood the OP (or maybe I did)
 but he wanted to receive incoming calls via RMI or HTTP, at least that
 was what he posted, and not using tomcat as client...


I see... however, what sense would that make?

If the OP wants to accept RMI-calls only, then why not get this job
done from his original RMI-server?

Puzzled...

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat server with two websites with two different authentications

2008-10-27 Thread Hisham Farahat
Thanks for your reply.
How can i configure the virtual hosts in tomcat?

On Mon, Oct 27, 2008 at 1:49 PM, Tim Funk [EMAIL PROTECTED] wrote:

 You need to configure a Realm per Virtual Host (or if different webapps in
 the same vhost need different authentication schemes - the Realm element can
 be per context too)

 http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html

 -Tim

 Hisham Farahat wrote:

 Dear All,
 Can i configure tomcat to host to different websites? How can i do it? any
 directions?
 Moreover i need to have two different authentication methods for the two
 websites, (e.g. one using LDAP and the other using normal tomcat user list
 (
 tomcat-users.xml)


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Hisham Farahat


Re: Tomcat server with two websites with two different authentications

2008-10-27 Thread Serge Fonville
In Tomcat there is already a host defined (localhost)Copy that block and you
have a new host (change the path though)
And look at the docs about realms, virtual hosts, engine and services and
their nesting

Regards,

Serge Fonville

On Mon, Oct 27, 2008 at 12:09 PM, Hisham Farahat [EMAIL PROTECTED]wrote:

 Thanks for your reply.
 How can i configure the virtual hosts in tomcat?

 On Mon, Oct 27, 2008 at 1:49 PM, Tim Funk [EMAIL PROTECTED] wrote:

  You need to configure a Realm per Virtual Host (or if different webapps
 in
  the same vhost need different authentication schemes - the Realm element
 can
  be per context too)
 
  http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html
 
  -Tim
 
  Hisham Farahat wrote:
 
  Dear All,
  Can i configure tomcat to host to different websites? How can i do it?
 any
  directions?
  Moreover i need to have two different authentication methods for the two
  websites, (e.g. one using LDAP and the other using normal tomcat user
 list
  (
  tomcat-users.xml)
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Hisham Farahat



Re: Tomcat 5.5 and RMI

2008-10-27 Thread Leon Rosenberg
On Mon, Oct 27, 2008 at 12:08 PM, Gregor Schneider
[EMAIL PROTECTED] wrote:
 Hi Leon

 On Mon, Oct 27, 2008 at 12:03 PM, Leon Rosenberg
 [EMAIL PROTECTED] wrote:
 Gregor,
 I think you misunderstood the OP (or maybe I did)
 but he wanted to receive incoming calls via RMI or HTTP, at least that
 was what he posted, and not using tomcat as client...


 I see... however, what sense would that make?

 If the OP wants to accept RMI-calls only, then why not get this job
 done from his original RMI-server?

because he (in my understanding) wants to accept calls to same
services via rmi OR http.

why not.
Leon


 Puzzled...

 Gregor
 --
 what's puzzlin' you, is the nature of my game
 gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat server with two websites with two different authentications

2008-10-27 Thread Mark Thomas
Hisham Farahat wrote:
 Thanks for your reply.
 How can i configure the virtual hosts in tomcat?

http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [***SPAM*** Score/Req: 20.50/05.00] Re: Hot deployment of a new version of war file while users are still working on the old one.

2008-10-27 Thread Joost Nachtergaele

Tnx for the quick reply.
Reading about clusters I see all session data needs to be Serializable, in
our case this is not possible.
What we use today is a load-balancer, disconnecting one server for new
connections, waiting for all sessions to expire, upgrade, and put the server
back on the load-balancer. This takes time, as some users are working all
day long. As the number of servers grows, this becomes a nightmare.

Does anybody now of a tool to do this job easier?

Tnx!
Jst.


 Hot deployment of a new version of war file while users are still working
on
 the old one.
 
 On a Tomcat server, users are using our application. 
 
 I would like to be able to upload a new version, using the same name, so
 current users continue using the old version(until session timeout), and
new
 users use the new version.

Not possible with a single Tomcat instance. Easy with a simple two node
cluster.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 and RMI

2008-10-27 Thread Martin Gainty

A bit of confusion on what the op wanted ..a standalone RMIServer or remote 
access to EJB RMI Server?

path of least resistance would be to suggest the standalone RMI server as leon 
suggested
of course most of us use RMI for remote access to EJBServer but the op did'nt 
quite ask for that so a bit of confusion 
is understandable on what he wanted..

Assuming the OP meant I want to implement a standalone RMIServer there is a 
fairly comprehensive tutorial located here
http://www.iam.ubc.ca/guides/javatut99/rmi/overview.html

@echo on
java
-cp .;F:\rmi\compute.jar;%CLASSPATH%
-Djava.rmi.server.codebase=file:/F:/RMI/compute.jar
-Djava.rmi.server.hostname=localhost
-Djava.security.policy=java.policy engine.ComputeEngine

where your java.policy contains requisite permissions to contact whatever host 
on port 1099
//Start RMI specific
// allows anyone to listen on un-privileged ports
permission java.net.SocketPermission localhost:1099-, 
connect,listen,resolve;
//permission java.security.AllPermission localhost:1099;
//End RMI specific

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Mon, 27 Oct 2008 12:32:29 +0100
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: Tomcat 5.5 and RMI
 
 On Mon, Oct 27, 2008 at 12:08 PM, Gregor Schneider
 [EMAIL PROTECTED] wrote:
  Hi Leon
 
  On Mon, Oct 27, 2008 at 12:03 PM, Leon Rosenberg
  [EMAIL PROTECTED] wrote:
  Gregor,
  I think you misunderstood the OP (or maybe I did)
  but he wanted to receive incoming calls via RMI or HTTP, at least that
  was what he posted, and not using tomcat as client...
 
 
  I see... however, what sense would that make?
 
  If the OP wants to accept RMI-calls only, then why not get this job
  done from his original RMI-server?
 
 because he (in my understanding) wants to accept calls to same
 services via rmi OR http.
 
 why not.
 Leon
 
 
  Puzzled...
 
  Gregor
  --
  what's puzzlin' you, is the nature of my game
  gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
  gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
When your life is on the go—take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/

Context.xml override problem

2008-10-27 Thread Jan Pernica

Hi I just installed Tomcat 6.0.16(18)

I have problem with overriding web.xml environment entries in 
context.xml. In tomcat 5.x it has worked fine. But now env-entry are not 
overriden by context.xml?

Any hint. I have added override=true to Context tag but with no success.

If I remove env-entry from web.xml then it works fine. Any hint?

Regards

Jan

--
Děkuji a s pozdravem

Jan Pernica
===
Pernica IT Solutions
Masarykovo náměstí 8
664 51 Šlapanice
Czech Republic
tel,fax: +420 544 245 068
mobile: +420 777 634 665
mailto:[EMAIL PROTECTED]
http://www.pernica.org




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: encoding in URI after form-based redirect

2008-10-27 Thread Caldarale, Charles R
 From: Maxim Kuleshov [mailto:[EMAIL PROTECTED]
 Subject: encoding in URI after form-based redirect

 Question refers to 5.5 branch (5.5.25 from ubuntu repos).

If possible, try the problem URI with the latest 5.5 version from the Tomcat 
web site.

 I use useBodyEncodingForURI=true mode in connector.
 All content is UTF-8 encoded.
 How could I fix of bypass such behaviour?

Have you read the FAQ?
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

Since everything should be UTF-8, have your tried setting the URIEncoding 
attribute to that in your Connector elements?  (You may want to remove the 
useBodyEncodingForURI when you do so.)

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Downloading issues in IE via https

2008-10-27 Thread Nar Karapetyan
Thanks for the responses on this matter to Mark Thomas and Andre' Warnier.
However I found a simpler solution to this, and just in case of anybody 
encounters
with this I'll provide it below.

Put the following just before starting to write into the output stream:

response.setHeader(Pragma, ); 
response.setHeader(Cache-Control, no-store,max-age=0,must-revalidate);

Note the first command - it's compulsory. Though the second line is the HTTP1.1 
replacement
of the first used in HTTP1.0 version, IE expects the first line.
As always Microsoft clings to the idea to solve things in its own ways.

...And, just for fun, look at the help  support message on this matter at 
microsoft's site
(I don't even want to capitalise that brand, though it is a name)
http://support.microsoft.com/kb/323308
It basically says You may download, but you have to give up the security 
concerns on the loose. 
Or even worse - how am I supposed to change clients registry settings from 
within my web page? Jeez!!!
Whatever.

Thanks,
Kind Regards,
Nareg Garabedian.
 
 Hello, 
 
 the issue I encounter might not directly be related with Tomcat. However if 
 anyone hase a clue
 of how can I overcome that, I'd like to learn it.
 
 The thing is that when I connect to my web page via https, IE7 hints a 
 message that the certificate
 is not error free, but I am able to explore the site without any 
 difficulties. FF does not report any issues
 related with the certificate.
 
 However, when I try to download a file I receive the following IE error 
 message (also attached the jpg screenshot).
 
 Internet Explorer cannot download downloadFile.action from localhost.
 Internet Explorer was not able to open this Internet site. The requested site 
 is either unavailable or cannot be found. Please
 try again later
 
 But if I choose Open instead of Save - this will work fine.
 
 Any clue of what could be the problem?
 Any web pages about this are welcome.
 



  

Re: Tomcat 5.5 and RMI

2008-10-27 Thread Johnny Kewl


- Original Message - 
From: Sven A [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Sunday, October 26, 2008 2:40 PM
Subject: Tomcat 5.5 and RMI




Hi,

I'm looking at options in running our standalone RMI application within a
servlet container since we're planning to build support for http. I'm
currently testing our app on Tomcat 5.5 and my question is if Tomcat by
default actually dispatch incoming RMI calls to different threads. Looking
at the server stats in Tomcat manager it doesn't seem to be the case in
terms of active number of threads etc.

My second question is if there are servlet containers out there that has
support for RMI connectivity and can dispatch incoming requests.

Thanks
S


Been there, done that ;)
Look at the link below...

eg I drop library (jar) into (harbor) servlet repository...

remote apps call it like this... in this case the class is called Factory, 
could be anything...


i_Factory = 
(I_Factory)vessel.loadRemoteClassInst(I_Factory.class,net.uitestapp.Factory);//load 
a class instance ON the harbor


i_Factory.DoSomeThing(Hello World); // etc etc local call against remote 
class


The calls are HTTP based...  no firewall problems...
Because HTTP every call is on its own thread...

If you want to share the class on multiple http threads... do the above with 
this call... loadRemoteSingleton


... combining remote apps with servlets and web services etc is all possible 
and easy.


And if you want to launch Swing apps or just the UI side of swing apps from 
tomcat and then make that talk to classes in tomcat, also very easy.

Its like Flex on steroids ;)

In the mailing lists we blabbing on about the financial crisis, ignore 
that Harbor hasnt fixed that yet ;)


Enjoy...

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---
If you cant pay in gold... get lost...
http://coolharbor.100free.com/debt/usadebt.htm



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: executor does not work with AJP connector

2008-10-27 Thread Joe Reger, Jr.
I upgraded to Tomcat 6.0.18 and am now getting a warning instead of an NPE:

org.apache.catalina.startup.ConnectorCreateRule _setExecutor
WARNING: Connector [EMAIL PROTECTED] does not
support external executors. Method
setExecutor(java.util.concurrent.Executor) not found.

So it looks like external executors won't work with the AJP connector.

The problem I'm having is on highly loaded members of an app tier. They end
up with a bunch of stuck AJP threads.  I wanted to use the maxIdleTime
property of the Executor to kill them off.

How should I deal with stuck/idle AJP threads?  I'm load balancing with
Apache 2.2 and mod_jk.

Thanks,

Joe

On Sun, Oct 26, 2008 at 9:42 PM, Joe Reger, Jr. [EMAIL PROTECTED] wrote:

 Kinda late to this party but I've gotten the same NPE issue when adding an
 Executor to an AJP Connector on 6.0.14 (Win2000Server).  But, I've also
 gotten it to work on 6.0.14 on a different machine (Windows XP)... same
 server.xml.  Experimenting with the problem server I found that I could keep
 the Executor defined but simply not reference it from the Connector and the
 server started up (probably not much news there.)

 Questions:

 1) Could this have something to do with a native OS feature somewhere in
 Tomcat?

 2) You mentioned that it worked on 6.0.16... anybody know if there was a
 fix or if it's just an intermittent issue?

 3) Should the Executor work with AJP?  I saw a post from earlier last year
 that said Executors don't support AJP.

 Thanks all!

 Joe


 On Wed, Feb 27, 2008 at 10:23 AM, Filip Hanik - Dev Lists 
 [EMAIL PROTECTED] wrote:

 just tried that with 6.0.16, and it worked

 Filip


 nitin dubey wrote:

 Nope.. here is the top portion of server.xml

 =
  Service name=Catalina
  !--The connectors can use a shared executor, you can define one or
 more named thread pools--
Executor name=tomcatThreadPool namePrefix=catalina-exec-
  maxThreads=150 minSpareThreads=4/
!-- A Connector represents an endpoint by which requests
 are received
 and responses are returned. Documentation at :
 Java HTTP Connector: /docs/config/http.html (blocking 
 non-blocking)
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port 8080
--
Connector port=8080 protocol=HTTP/1.1
 connectionTimeout=2   redirectPort=8443 /
!-- A Connector using the shared thread pool--
!--
Connector executor=tomcatThreadPool
   port=8080 protocol=HTTP/1.1
 connectionTimeout=2   redirectPort=8443 /
--  !-- Define a SSL HTTP/1.1 Connector on port 8443
 This connector uses the JSSE configuration, when using APR, the
   connector should be using the OpenSSL style configuration
 described in the APR documentation --
!--
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 protocol=AJP/1.3 redirectPort=8443
 allowTrace=falseexecutor=tomcatThreadPool
 connectionTimeout=2 /

 =

 --- On Wed, 27/2/08, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:



 From: Filip Hanik - Dev Lists [EMAIL PROTECTED]
 Subject: Re: executor does not work with AJP connector
 To: Tomcat Users List users@tomcat.apache.org
 Date: Wednesday, 27 February, 2008, 5:00 AM
 you might have forgotten to uncomment or configure that
 actual executor, hence the NPE

 Filip

 nitin dubey wrote:


 Hi,

 I tried configuring executor in tomcat 6.0.14 for AJP


 Connector like following:


 !-- Define an AJP 1.3 Connector on port 8009


 --


 Connector port=8009


 protocol=AJP/1.3 redirectPort=8443
 allowTrace=false

executor=tomcatThreadPool


 connectionTimeout=2 /


 While starting tomcat it gives this error.  Any


 problem with the configuration OR this is a bug?


 Feb 26, 2008 1:42:36 PM


 org.apache.tomcat.util.digester.Digester startElement


 SEVERE: Begin event threw exception
 java.lang.NullPointerException
at



 org.apache.catalina.startup.ConnectorCreateRule._setExecutor(ConnectorCreateRule.java:61)


at



 org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:54)


at


 org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)


at



 org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)


at



 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)


at



 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)


at



 

Re: encoding in URI after form-based redirect

2008-10-27 Thread Maxim Kuleshov
On Mon, 27 Oct 2008 08:36:03 -0500
Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Maxim Kuleshov [mailto:[EMAIL PROTECTED]
  Subject: encoding in URI after form-based redirect
 
  Question refers to 5.5 branch (5.5.25 from ubuntu repos).
 
 If possible, try the problem URI with the latest 5.5 version from the
 Tomcat web site.
 
  I use useBodyEncodingForURI=true mode in connector.
  All content is UTF-8 encoded.
  How could I fix of bypass such behaviour?
 
 Have you read the FAQ?
 http://wiki.apache.org/tomcat/FAQ/CharacterEncoding
 

Thanks. I read about characterEncoding issue couple of years ago,
when had upgraded to 5.5 branch.

 Since everything should be UTF-8, have your tried setting the
 URIEncoding attribute to that in your Connector elements?  (You may
 want to remove the useBodyEncodingForURI when you do so.)

The problem is - not everything. There is at least one legacy
application written for cp1251.

I treat the problem as a bug, because exactly the same request
produces two different results, dependent on where page was redirected
from - form-based authenticator or anything else.

If setCharacterEncoding doesn't work by reason of
FormAuthenticator already accessed request content, when how I could
intercept it?

I've already tried custom FormAuthenticator valve config
(characterEncoding field, but it seems it only affects login and
password parameters).

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm more confused than ever about where STDOUT goes

2008-10-27 Thread Wm.A.Stafford

Mark,
Thanks for taking an interest.  I ran 'catalina.bat run' and got the 
following:


C:\Program Files\Apache Software 
Foundation\apache-tomcat-5.5.27\bincatalina.bat run
Using CATALINA_BASE:   C:\Program Files\Apache Software 
Foundation\apache-tomcat-5.5.27
Using CATALINA_HOME:   C:\Program Files\Apache Software 
Foundation\apache-tomcat-5.5.27
Using CATALINA_TMPDIR: C:\Program Files\Apache Software 
Foundation\apache-tomcat-5.5.27\temp

Using JRE_HOME:C:\Program Files\Java\jdk1.5.0_0

As before, new log files are created but there is no content.

Thanks for any advice,
-=bill

Mark Thomas wrote:

Wm.A.Stafford wrote:
  

First of all, thanks to Martin and Chuck for the replies to my original
question about Tomcat 5.5 logging.

To reiterate: I've installed Tomcat5.5.27 on Windows XP as a stand alone
(not service) server and I do not see any of the logged info that I
would expect when I start Tomcat.  At the very least I should see a
whole lot of logging from Spring.  I'm not clear as to whether Tomcat
itself logs anything to stdout during startup.

As per suggestions of Martin and Chuck:
1. I added swallowOutput=true to the context tag in
CATALINA_HOME/conf/context.xml.  I also tried false.
2. I created a CATALINA_HOME/common/classes/logging.properties as shown
on http://tomcat.apache.org/tomcat-5.5-doc/logging.html

I still don't see any output anywhere.  On startup TC creates five files
in the logs dir but all are empty.  I have one Spring app deployed so I
know that something should be written to stdout even if TC writes nothing.



If you aren't seeing anything then something is very wrong. Open a command
prompt, navigate to $CATALINA_BASE/bin and type the following:

catalina.run run

What do you see?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 and RMI

2008-10-27 Thread Johnny Kewl


- Original Message - 
From: Johnny Kewl [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 27, 2008 4:02 PM
Subject: Re: Tomcat 5.5 and RMI




- Original Message - 
From: Sven A [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Sunday, October 26, 2008 2:40 PM
Subject: Tomcat 5.5 and RMI




Hi,

I'm looking at options in running our standalone RMI application within a
servlet container since we're planning to build support for http. I'm
currently testing our app on Tomcat 5.5 and my question is if Tomcat by
default actually dispatch incoming RMI calls to different threads. 
Looking

at the server stats in Tomcat manager it doesn't seem to be the case in
terms of active number of threads etc.

My second question is if there are servlet containers out there that has
support for RMI connectivity and can dispatch incoming requests.

Thanks
S


Been there, done that ;)
Look at the link below...

eg I drop library (jar) into (harbor) servlet repository...

remote apps call it like this... in this case the class is called Factory, 
could be anything...


i_Factory = 
(I_Factory)vessel.loadRemoteClassInst(I_Factory.class,net.uitestapp.Factory);//load 
a class instance ON the harbor


i_Factory.DoSomeThing(Hello World); // etc etc local call against remote 
class


The calls are HTTP based...  no firewall problems...
Because HTTP every call is on its own thread...


I'm told I should clarify this a little...
It works just like http requests work... Tomcat grabs a thread from the 
pool, this thread is used for the call, if the remote app makes many calls, 
the connection is held on a keep a live, so thread assignement is quick 
between calls... protocol is binary not soap so very quick.

If data packets are large, chunking and all that good stuff just happens...

I can remember the details off hand but that thread marshalling was 
extremely complex, I spent a good few weeks getting it right, else your 
class loaders are screwed and dont see each other properly which is what I 
think you asking...


So there you have it... to give you an idea of what you into... it took 3 of 
us 2 years to perfect ;)


But its free... you lucky ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---
If you cant pay in gold... get lost...
http://coolharbor.100free.com/debt/usadebt.htm



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm more confused than ever about where STDOUT goes

2008-10-27 Thread Mark Thomas
Wm.A.Stafford wrote:
 Mark,
 Thanks for taking an interest.  I ran 'catalina.bat run' and got the
 following:
 
 C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27\bincatalina.bat run
 Using CATALINA_BASE:   C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27
 Using CATALINA_HOME:   C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27
 Using CATALINA_TMPDIR: C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27\temp
 Using JRE_HOME:C:\Program Files\Java\jdk1.5.0_0
 
 As before, new log files are created but there is no content.

Does this then return to the command prompt?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [***SPAM*** Score/Req: 20.50/05.00] Re: Hot deployment of a new version of war file while users are still working on the old one.

2008-10-27 Thread Ronald Klop

You don't give much details about your problems. But I think you have some 
long-living big datastructures which are hold in the session, so you can't 
cluster your sessions.

You could redesign your application to make it more scalable. In the end that 
is your problem, so it's the solution also.
Other solutions wil be short term and only increase your nightmare on the long 
term.

Maybe you can put your datastructure in a database so you don't need to have it 
in a session.

Ronald.


Op maandag, 27 oktober 2008 om 13:44 uur schreef Tomcat Users List 
users@tomcat.apache.org:



Subject: RE: [***SPAM*** Score/Req: 20.50/05.00] Re: Hot deployment of a new 
version of w...
Date: Mon Oct 27 13:44:05 CET 2008
From: Joost Nachtergaele [EMAIL PROTECTED]



Tnx for the quick reply.
Reading about clusters I see all session data needs to be Serializable, in
our case this is not possible.
What we use today is a load-balancer, disconnecting one server for new
connections, waiting for all sessions to expire, upgrade, and put the server
back on the load-balancer. This takes time, as some users are working all
day long. As the number of servers grows, this becomes a nightmare.

Does anybody now of a tool to do this job easier?

Tnx!
Jst.


 Hot deployment of a new version of war file while users are still working
on
 the old one.
 
 On a Tomcat server, users are using our application. 
 
 I would like to be able to upload a new version, using the same name, so

 current users continue using the old version(until session timeout), and
new
 users use the new version.

Not possible with a single Tomcat instance. Easy with a simple two node
cluster.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








Tomcat startup time

2008-10-27 Thread Alfred Hirschwall
Hi,

I noticed that Tomcat startup time nearly tripled between versions 5.5.15
and 5.5.16 and
doubled when 6.0.18 is compared to 5.5.15.

My setup: server.xml contains 11 Host definitions with 4 Alias
definitions on average
per Host. I have only one context.xml in conf/Catalina/somehost.com (to
reduce startup
time during development).

It is possible to reduce startup time for 5.5.16 and 6.0.18 when I take out
currently unused
Host definitions, but this is cumbersome during development and testing.

Does someone know what is causing this problem? Is there a way to get better
startup times without removing Host or Alias definitions?

Regards,
Alf


Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread forum123


markt-2 wrote:
 
 
 Sharing the bin, common, server, shared and webapps directories is fine.
 Sharing conf could be OK if you are careful
 Sharing logs, temp and work is likely to cause problems.
 
 Did you look into using CATALINA_HOME/CATALINA_BASE?
 
 

Yes, we use CATALINA_HOME/CATALINA_BASE to have the Tomcat binaries
installed in a separate location while the current instance in another
location.

How do I set so that just the work directory is different per instance? 
There's probably a catalina variable for this?  Haven't found it...

I can write a small startup script that will determine the hostname and use
a different work (in the same CATALINA_BASE) directory but different name
like work1 and work2.  Each app server would get its own work directory.
-- 
View this message in context: 
http://www.nabble.com/Tomcat-Cluster-and-NFS-mounted-webapp-tp20176721p20190968.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread Serge Fonville
Even though I have little experience with tomcat clusteringFor this
situation I would specify one work directory in the config files (located on
nfs) that points to a local directory
that way everything can be shared except the work directory

Hope this helps

Regards,

Serge Fonville

On Mon, Oct 27, 2008 at 5:16 PM, forum123 [EMAIL PROTECTED] wrote:



 markt-2 wrote:
 
 
  Sharing the bin, common, server, shared and webapps directories is fine.
  Sharing conf could be OK if you are careful
  Sharing logs, temp and work is likely to cause problems.
 
  Did you look into using CATALINA_HOME/CATALINA_BASE?
 
 

 Yes, we use CATALINA_HOME/CATALINA_BASE to have the Tomcat binaries
 installed in a separate location while the current instance in another
 location.

 How do I set so that just the work directory is different per instance?
 There's probably a catalina variable for this?  Haven't found it...

 I can write a small startup script that will determine the hostname and use
 a different work (in the same CATALINA_BASE) directory but different name
 like work1 and work2.  Each app server would get its own work
 directory.
 --
 View this message in context:
 http://www.nabble.com/Tomcat-Cluster-and-NFS-mounted-webapp-tp20176721p20190968.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Tomcat clustering

2008-10-27 Thread Andrew Hole
Hi Guys!

What means the following error? What I'm doing wrong?

FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms.
27/Out/2008 17:12:10
org.apache.catalina.cluster.session.ClusterSessionListener messageReceived
SEVERE: Context manager doesn't exist:



Thanks a lot


Re: Tomcat clustering

2008-10-27 Thread Filip Hanik - Dev Lists
It means that the application that it is trying to request data from is 
not deployed on the server.


for example, if you have applicate /test installed on server A, then it 
will have to be installed on server B as well, if it isn't, you'll get a 
message like the one below


Filip

Andrew Hole wrote:

Hi Guys!

What means the following error? What I'm doing wrong?

FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms.
27/Out/2008 17:12:10
org.apache.catalina.cluster.session.ClusterSessionListener messageReceived
SEVERE: Context manager doesn't exist:



Thanks a lot

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm more confused than ever about where STDOUT goes

2008-10-27 Thread Wm.A.Stafford

Mark,

'catalina.bat' run does not return to the command line.   It takes a 
ctrl/c to stop the process.


-=bill

Mark Thomas wrote:

Wm.A.Stafford wrote:
  

Mark,
Thanks for taking an interest.  I ran 'catalina.bat run' and got the
following:

C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27\bincatalina.bat run
Using CATALINA_BASE:   C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27
Using CATALINA_HOME:   C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27
Using CATALINA_TMPDIR: C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27\temp
Using JRE_HOME:C:\Program Files\Java\jdk1.5.0_0

As before, new log files are created but there is no content.



Does this then return to the command prompt?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat clustering

2008-10-27 Thread Andrew Hole
I would like to cluster two different applications in same machine (each in
different Tomcat instance).
Is it possible?







On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED]
 wrote:

 It means that the application that it is trying to request data from is not
 deployed on the server.

 for example, if you have applicate /test installed on server A, then it
 will have to be installed on server B as well, if it isn't, you'll get a
 message like the one below

 Filip


 Andrew Hole wrote:

 Hi Guys!

 What means the following error? What I'm doing wrong?

 FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms.
 27/Out/2008 17:12:10
 org.apache.catalina.cluster.session.ClusterSessionListener messageReceived
 SEVERE: Context manager doesn't exist:



 Thanks a lot





 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: encoding in URI after form-based redirect

2008-10-27 Thread Maxim Kuleshov

On Mon, 27 Oct 2008 08:36:03 -0500
Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: Maxim Kuleshov [mailto:[EMAIL PROTECTED]
 Subject: encoding in URI after form-based redirect

 Question refers to 5.5 branch (5.5.25 from ubuntu repos).

If possible, try the problem URI with the latest 5.5 version from the
Tomcat web site.



Vanilla 5.5.27 from apache.org has the same effect.

Moreover, URIEncoding does not help at all. First page execution
incorrectly interprets URI encoding. The second (i.e. after F5) works
fine.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm more confused than ever about where STDOUT goes

2008-10-27 Thread Mark Thomas
Wm.A.Stafford wrote:
 Mark,
 
 'catalina.bat' run does not return to the command line.   It takes a
 ctrl/c to stop the process.
 
 -=bill

Hmm. Can you start again with a clean install from an ASF zip distro?
Something is somewhere is seriously messed up.

Mark

 
 Mark Thomas wrote:
 Wm.A.Stafford wrote:
  
 Mark,
 Thanks for taking an interest.  I ran 'catalina.bat run' and got the
 following:

 C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27\bincatalina.bat run
 Using CATALINA_BASE:   C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27
 Using CATALINA_HOME:   C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27
 Using CATALINA_TMPDIR: C:\Program Files\Apache Software
 Foundation\apache-tomcat-5.5.27\temp
 Using JRE_HOME:C:\Program Files\Java\jdk1.5.0_0

 As before, new log files are created but there is no content.
 

 Does this then return to the command prompt?

 Mark



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

   
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat clustering

2008-10-27 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat clustering

 I would like to cluster two different applications in same
 machine (each in different Tomcat instance).

That's not clustering - it's just two separate Tomcat installations.  
Clustering is defined as the *same* applications cooperatively deployed on 
multiple Tomcats.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat clustering

2008-10-27 Thread Filip Hanik - Dev Lists

not sure I understand

Is this your layout then?

Machine1
 TomcatA
   ApplicationA1
 TomcatB
   ApplicationB1

since ApplicationA1 and ApplicationB1 are different, there is nothing to 
cluster, there is no state to share


Filip

Andrew Hole wrote:

I would like to cluster two different applications in same machine (each in
different Tomcat instance).
Is it possible?







On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED]
  

wrote:



  

It means that the application that it is trying to request data from is not
deployed on the server.

for example, if you have applicate /test installed on server A, then it
will have to be installed on server B as well, if it isn't, you'll get a
message like the one below

Filip


Andrew Hole wrote:



Hi Guys!

What means the following error? What I'm doing wrong?

FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms.
27/Out/2008 17:12:10
org.apache.catalina.cluster.session.ClusterSessionListener messageReceived
SEVERE: Context manager doesn't exist:



Thanks a lot



  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Tomcat 6 - Problems with encoding

2008-10-27 Thread JSimas

Hi.

I'm using Apache Tomcat 6.0.14, wich deploys a Struts 1.x web application.

I was using encoding ISO-LATIN-1 but i was having problems with the euro (€)
char. Every time that i use a € char in a text box or in a text area, when
the request arrives at struts Request Processor the value is already
deformed.

I've tried to change the encoding into UTF-8 but i also have problems.

Using a HTTP Sniffer, this is what i could gather:

HTTP Post Request into Tomcat:

POST /DRCIEWeb/drcieFlow.do2 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/xaml+xml,
application/vnd.ms-xpsdocument, application/x-ms-xbap,
application/x-ms-application, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-silverlight, application/x-silverlight-2-b2, */*
Referer: http://localhost:2001/WebApp/webFlow.do2
Accept-Language: pt
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR
3.0.04506.648; .NET CLR 3.5.21022)
Host: localhost:2001
Content-Length: 733
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: menuPos=%260-1%261-1; JSESSIONID=665E5243A08AF2A83D586E9181487F64
_flowExecutionKey=_cDB824BB0-C9AA-F9D1-519F-27E8542F8DE9_k82B5EDEF-9F28-712A-FBAE-5D2965221283anoEconomico=2008siglaDirecaoServico=requerente.nif=requerente.nome=nomescgp=ac=[EMAIL
 PROTECTED]

The bolded text is the input text wich is: @€. However the € char is encoded
using UTF-8 wich is represented by the %E2%82%AC string.

When the request arrives in the Request Processor of Struts this is the
value: @€

There is probably something that i should configure in Tomcat for this to
work.. however i'm completely lost!

Can anyone help me please

Thanks in advance.

Best Regards

João Simas

-- 
View this message in context: 
http://www.nabble.com/Tomcat-6---Problems-with-encoding-tp20193292p20193292.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat clustering

2008-10-27 Thread Andrew Hole
Yes.

Machine1
 TomcatA
  ApplicationA1
 TomcatB
  ApplicationB1

But both applications have been developed by me and I want to share an
object between applications. If the object have been created in application
A, I would like to replicate information to application B.

Thanks


On Mon, Oct 27, 2008 at 6:18 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED]
 wrote:

 not sure I understand

 Is this your layout then?

 Machine1
  TomcatA
   ApplicationA1
  TomcatB
   ApplicationB1

 since ApplicationA1 and ApplicationB1 are different, there is nothing to
 cluster, there is no state to share

 Filip


 Andrew Hole wrote:

 I would like to cluster two different applications in same machine (each
 in
 different Tomcat instance).
 Is it possible?







 On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists 
 [EMAIL PROTECTED]


 wrote:





 It means that the application that it is trying to request data from is
 not
 deployed on the server.

 for example, if you have applicate /test installed on server A, then it
 will have to be installed on server B as well, if it isn't, you'll get a
 message like the one below

 Filip


 Andrew Hole wrote:



 Hi Guys!

 What means the following error? What I'm doing wrong?

 FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms.
 27/Out/2008 17:12:10
 org.apache.catalina.cluster.session.ClusterSessionListener
 messageReceived
 SEVERE: Context manager doesn't exist:



 Thanks a lot





 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]









 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread Caldarale, Charles R
 From: forum123 [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat Cluster and NFS mounted webapp

 How do I set so that just the work directory is different
 per instance?

Look at the workDir attribute of the Host and Context elements.

By the way, you might want to consider moving up to a more recent 5.5 version 
(5.5.27 is current).  Lots of fixes have gone in since 5.5.12 was released over 
three years ago.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 - Problems with encoding

2008-10-27 Thread Mark Thomas
JSimas wrote:
 Hi.
 
 I'm using Apache Tomcat 6.0.14, wich deploys a Struts 1.x web application.
 
 I was using encoding ISO-LATIN-1 but i was having problems with the euro (€)
 char. Every time that i use a € char in a text box or in a text area, when
 the request arrives at struts Request Processor the value is already
 deformed.
 
 I've tried to change the encoding into UTF-8 but i also have problems.
 
 Using a HTTP Sniffer, this is what i could gather:
 
 HTTP Post Request into Tomcat:
 
 POST /DRCIEWeb/drcieFlow.do2 HTTP/1.1
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
 application/x-shockwave-flash, application/xaml+xml,
 application/vnd.ms-xpsdocument, application/x-ms-xbap,
 application/x-ms-application, application/vnd.ms-excel,
 application/vnd.ms-powerpoint, application/msword,
 application/x-silverlight, application/x-silverlight-2-b2, */*
 Referer: http://localhost:2001/WebApp/webFlow.do2
 Accept-Language: pt
 Content-Type: application/x-www-form-urlencoded
 UA-CPU: x86
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR
 3.0.04506.648; .NET CLR 3.5.21022)
 Host: localhost:2001
 Content-Length: 733
 Connection: Keep-Alive
 Cache-Control: no-cache
 Cookie: menuPos=%260-1%261-1; JSESSIONID=665E5243A08AF2A83D586E9181487F64
 _flowExecutionKey=_cDB824BB0-C9AA-F9D1-519F-27E8542F8DE9_k82B5EDEF-9F28-712A-FBAE-5D2965221283anoEconomico=2008siglaDirecaoServico=requerente.nif=requerente.nome=nomescgp=ac=[EMAIL
  PROTECTED]
 
 The bolded text is the input text wich is: @€. However the € char is encoded
 using UTF-8 wich is represented by the %E2%82%AC string.
 
 When the request arrives in the Request Processor of Struts this is the
 value: @€
 
 There is probably something that i should configure in Tomcat for this to
 work.. however i'm completely lost!
 
 Can anyone help me please

http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 - Problems with encoding

2008-10-27 Thread Leon Rosenberg
€ sign is not part of ISO-8859-1 use ISO-8859-15 instead.

regards
Leon

On Mon, Oct 27, 2008 at 7:19 PM, JSimas [EMAIL PROTECTED] wrote:

 Hi.

 I'm using Apache Tomcat 6.0.14, wich deploys a Struts 1.x web application.

 I was using encoding ISO-LATIN-1 but i was having problems with the euro (€)
 char. Every time that i use a € char in a text box or in a text area, when
 the request arrives at struts Request Processor the value is already
 deformed.

 I've tried to change the encoding into UTF-8 but i also have problems.

 Using a HTTP Sniffer, this is what i could gather:

 HTTP Post Request into Tomcat:

 POST /DRCIEWeb/drcieFlow.do2 HTTP/1.1
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
 application/x-shockwave-flash, application/xaml+xml,
 application/vnd.ms-xpsdocument, application/x-ms-xbap,
 application/x-ms-application, application/vnd.ms-excel,
 application/vnd.ms-powerpoint, application/msword,
 application/x-silverlight, application/x-silverlight-2-b2, */*
 Referer: http://localhost:2001/WebApp/webFlow.do2
 Accept-Language: pt
 Content-Type: application/x-www-form-urlencoded
 UA-CPU: x86
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR
 3.0.04506.648; .NET CLR 3.5.21022)
 Host: localhost:2001
 Content-Length: 733
 Connection: Keep-Alive
 Cache-Control: no-cache
 Cookie: menuPos=%260-1%261-1; JSESSIONID=665E5243A08AF2A83D586E9181487F64
 _flowExecutionKey=_cDB824BB0-C9AA-F9D1-519F-27E8542F8DE9_k82B5EDEF-9F28-712A-FBAE-5D2965221283anoEconomico=2008siglaDirecaoServico=requerente.nif=requerente.nome=nomescgp=ac=[EMAIL
  PROTECTED]

 The bolded text is the input text wich is: @€. However the € char is encoded
 using UTF-8 wich is represented by the %E2%82%AC string.

 When the request arrives in the Request Processor of Struts this is the
 value: @€

 There is probably something that i should configure in Tomcat for this to
 work.. however i'm completely lost!

 Can anyone help me please

 Thanks in advance.

 Best Regards

 João Simas

 --
 View this message in context: 
 http://www.nabble.com/Tomcat-6---Problems-with-encoding-tp20193292p20193292.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm more confused than ever about where STDOUT goes

2008-10-27 Thread Wm.A.Stafford

Mark,
   Thanks for taking the time to look into the problem.  I'll take your 
advice and do a new install.


   What should I see when I start Tomcat with 'catalina.bat run'?

   -=bill

Mark Thomas wrote:

Wm.A.Stafford wrote:
  

Mark,

'catalina.bat' run does not return to the command line.   It takes a
ctrl/c to stop the process.

-=bill



Hmm. Can you start again with a clean install from an ASF zip distro?
Something is somewhere is seriously messed up.

Mark

  

Mark Thomas wrote:


Wm.A.Stafford wrote:
 
  

Mark,
Thanks for taking an interest.  I ran 'catalina.bat run' and got the
following:

C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27\bincatalina.bat run
Using CATALINA_BASE:   C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27
Using CATALINA_HOME:   C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27
Using CATALINA_TMPDIR: C:\Program Files\Apache Software
Foundation\apache-tomcat-5.5.27\temp
Using JRE_HOME:C:\Program Files\Java\jdk1.5.0_0

As before, new log files are created but there is no content.



Does this then return to the command prompt?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm more confused than ever about where STDOUT goes

2008-10-27 Thread Mark Thomas
Wm.A.Stafford wrote:
 Mark,
Thanks for taking the time to look into the problem.  I'll take your
 advice and do a new install.
 
What should I see when I start Tomcat with 'catalina.bat run'?

What you saw before plus ~10 lines of start up messages.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



configure the Heap Size

2008-10-27 Thread Frank Uccello
Is it possible to set the Heap size in the server.xml file and if so
what the syntax





Re: Tomcat clustering

2008-10-27 Thread Filip Hanik - Dev Lists
nothing like that is built in, you'd have to write that code for the 
object sharing yourself
you could use the tomcat internals to achieve what you want, but you'd 
have to do a bit of legwork.

Filip

Andrew Hole wrote:

Yes.

Machine1
 TomcatA
  ApplicationA1
 TomcatB
  ApplicationB1

But both applications have been developed by me and I want to share an
object between applications. If the object have been created in application
A, I would like to replicate information to application B.

Thanks


On Mon, Oct 27, 2008 at 6:18 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED]
  

wrote:



  

not sure I understand

Is this your layout then?

Machine1
 TomcatA
  ApplicationA1
 TomcatB
  ApplicationB1

since ApplicationA1 and ApplicationB1 are different, there is nothing to
cluster, there is no state to share

Filip


Andrew Hole wrote:



I would like to cluster two different applications in same machine (each
in
different Tomcat instance).
Is it possible?







On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists 
[EMAIL PROTECTED]


  

wrote:





  

It means that the application that it is trying to request data from is
not
deployed on the server.

for example, if you have applicate /test installed on server A, then it
will have to be installed on server B as well, if it isn't, you'll get a
message like the one below

Filip


Andrew Hole wrote:





Hi Guys!

What means the following error? What I'm doing wrong?

FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms.
27/Out/2008 17:12:10
org.apache.catalina.cluster.session.ClusterSessionListener
messageReceived
SEVERE: Context manager doesn't exist:



Thanks a lot





  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat clustering

2008-10-27 Thread Andrew Hole
Well,

I would like in the future to have application A and B in different
machines, and for that i need to use some way to share session data.

Thanks

On Mon, Oct 27, 2008 at 8:19 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED]
 wrote:

 nothing like that is built in, you'd have to write that code for the object
 sharing yourself
 you could use the tomcat internals to achieve what you want, but you'd have
 to do a bit of legwork.
 Filip


 Andrew Hole wrote:

 Yes.

 Machine1
  TomcatA
  ApplicationA1
  TomcatB
  ApplicationB1

 But both applications have been developed by me and I want to share an
 object between applications. If the object have been created in
 application
 A, I would like to replicate information to application B.

 Thanks


 On Mon, Oct 27, 2008 at 6:18 PM, Filip Hanik - Dev Lists 
 [EMAIL PROTECTED]


 wrote:





 not sure I understand

 Is this your layout then?

 Machine1
  TomcatA
  ApplicationA1
  TomcatB
  ApplicationB1

 since ApplicationA1 and ApplicationB1 are different, there is nothing to
 cluster, there is no state to share

 Filip


 Andrew Hole wrote:



 I would like to cluster two different applications in same machine (each
 in
 different Tomcat instance).
 Is it possible?







 On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists 
 [EMAIL PROTECTED]




 wrote:







 It means that the application that it is trying to request data from is
 not
 deployed on the server.

 for example, if you have applicate /test installed on server A, then it
 will have to be installed on server B as well, if it isn't, you'll get
 a
 message like the one below

 Filip


 Andrew Hole wrote:





 Hi Guys!

 What means the following error? What I'm doing wrong?

 FINE: Assuming clocks are synched: Replication for GET-ALL- took=47
 ms.
 27/Out/2008 17:12:10
 org.apache.catalina.cluster.session.ClusterSessionListener
 messageReceived
 SEVERE: Context manager doesn't exist:



 Thanks a lot







 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]









 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]









 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat clustering

2008-10-27 Thread Filip Hanik - Dev Lists
but you are saying they are different applications, so what data could 
they possible share?


ie, if you have appA.war and appB.war, and they are totally different 
apps, then they shouldn't be sharing session data


only appA.war on one tomcat instance can share session data with 
appA.war on another tomcat instance


Filip

Andrew Hole wrote:

Well,

I would like in the future to have application A and B in different
machines, and for that i need to use some way to share session data.

Thanks

On Mon, Oct 27, 2008 at 8:19 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED]
  

wrote:



  

nothing like that is built in, you'd have to write that code for the object
sharing yourself
you could use the tomcat internals to achieve what you want, but you'd have
to do a bit of legwork.
Filip


Andrew Hole wrote:



Yes.

Machine1
 TomcatA
 ApplicationA1
 TomcatB
 ApplicationB1

But both applications have been developed by me and I want to share an
object between applications. If the object have been created in
application
A, I would like to replicate information to application B.

Thanks


On Mon, Oct 27, 2008 at 6:18 PM, Filip Hanik - Dev Lists 
[EMAIL PROTECTED]


  

wrote:





  

not sure I understand

Is this your layout then?

Machine1
 TomcatA
 ApplicationA1
 TomcatB
 ApplicationB1

since ApplicationA1 and ApplicationB1 are different, there is nothing to
cluster, there is no state to share

Filip


Andrew Hole wrote:





I would like to cluster two different applications in same machine (each
in
different Tomcat instance).
Is it possible?







On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists 
[EMAIL PROTECTED]




  

wrote:







  

It means that the application that it is trying to request data from is
not
deployed on the server.

for example, if you have applicate /test installed on server A, then it
will have to be installed on server B as well, if it isn't, you'll get
a
message like the one below

Filip


Andrew Hole wrote:







Hi Guys!

What means the following error? What I'm doing wrong?

FINE: Assuming clocks are synched: Replication for GET-ALL- took=47
ms.
27/Out/2008 17:12:10
org.apache.catalina.cluster.session.ClusterSessionListener
messageReceived
SEVERE: Context manager doesn't exist:



Thanks a lot







  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 6

2008-10-27 Thread Chris Lenart
I just let eclipse update the xml.   Why did it work and  stop?

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2008 10:32 PM
To: Tomcat Users List
Subject: Re: Tomcat 6


Your web.xml does not appear to conform to the servlet spec (2.4 or 2.5)

and you appear to have references to both in the web-app ...   root 
element.  You might want to take a look at the current spec and make 
some corrections to your web.xml.  For starters, don't use the javaee: 
namespace in any of your elements, and second, use either the correct 
web-app ... root element for servlet spec version 2.4 or 2.5.  Both 
servlet specs are supported by tomcat 6, so that's your choice.

--David


Chris Lenart wrote:
 I am using Oracle db :)
 I copied your web.xml and got this
 Oct 26, 2008 9:38:41 PM 
 org.apache.tomcat.util.digester.SetPropertiesRule begin
 WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} 
 Setting property 'source' to 
 'org.eclipse.jst.j2ee.server:PhotographyShop' did not find a matching 
 property. Oct 26, 2008 9:38:41 PM 
 org.apache.catalina.core.AprLifecycleListener
 init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:

C:\JAVA\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOW

S;C:/JAVA/jre6/bin/client;C:/JAVA/jre6/bin;C:\Database\Oracle\app\oracle

\product\10.2.0\server\bin;c:\Oracle\product\11.1.0\db_1\bin;C:\WINDOWS\
 system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python22;C:\Program
 Files\PC-Doctor for

Windows\;C:\JAVA\JAVA\bin;C:\JAVA\SDK\bin;;C:\PROGRA~1\COMMON~1\MUVEET~1
 \030625;C:\PROGRA~1\COMMON~1\MUVEET~1\030625
 Oct 26, 2008 9:38:41 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8082
 Oct 26, 2008 9:38:41 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 677 ms
 Oct 26, 2008 9:38:42 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Oct 26, 2008 9:38:42 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Oct 26, 2008 9:38:42 PM org.apache.tomcat.util.digester.Digester
 endElement
 SEVERE: End event threw exception
 java.lang.IllegalArgumentException: Can't convert argument: null
   at

org.apache.tomcat.util.IntrospectionUtils.convert(IntrospectionUtils.jav
 a:999)
   at

org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:5
 23)
   at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
   at

org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1140)
   at

com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(
 Unknown Source)
   at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
 canEndElement(Unknown Source)
   at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
 ragmentContentDriver.next(Unknown Source)
   at

com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unkn
 own Source)
   at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
 canDocument(Unknown Source)
   at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
 own Source)
   at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
 own Source)
   at
 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
 Source)
   at

com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unkno
 wn Source)
   at

com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.pars
 e(Unknown Source)
   at
 org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
   at

org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextCo
 nfig.java:365)
   at

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066)
   at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
 ava:261)
   at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
 pport.java:117)
   at

org.apache.catalina.core.StandardContext.start(StandardContext.java:4252
 )
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at

org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at