Re: UTF-8 2019 (right single quote) incorrect display

2006-03-20 Thread Antonio Petrelli

John-Paul Delaney ha scritto:

Hello List...  my first attempt at i18n is failing.
  


Are you using resource bundles? Or what? If yes, please post a reply 
because the answer will be very different from the one below.



I've converted MS smart quotes to utf 2019 symbol (right single quote) in my VIM
editor after setting encoding to UTF-8.  The quote displays ok in vim but in the
browser it displays badly ( in firefox - a+circumflex, and IE -
a+circumflex+garbage ).

The http servlet response content type character set is UTF-8.

I don't understand where I'm losing the utf encoding of the text.

Any assistance is greatly appreciated.

Tomcat 5.0.28 on FreeBSD.
  


I assume that you want to display the content of a text file as a response.
The best approach is to separate the file encoding from the servlet 
response encoding.
You should read the file using InputStreamReader around a 
FileInputStream with your preferred encoding. Then you should write the 
content using HttpServletResponse.setCharacterEncoding and then 
HttpServletRequest.getWriter
Another (bad, from my point of view) approach is to read through 
FileInputStream and write through HttpServletResponse.getOutputStream. I 
think it's wrong because you could have one encoding for the file and 
another for the response.

Ciao
Antonio

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



Re: keeping same session via apache2 mod_jk2 and tomcat5

2006-03-20 Thread Vahid Hedayati
Ok..

I am now using mo_jk rather than mod_jk2 and sessions still keeps changing

It is running on:
Apache/2.0.55 (Debian) mod_jk/1.2.14 mod_chroot/0.5 mod_perl/2.0.2
Perl/v5.8.8


_
more /etc/apache2/mods-enabled/jk.load
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
_
more /etc/apache2/mods-enabled/jk.conf
IfModule mod_jk.c
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel error
/IfModule
_
more /etc/apache2/sites-enabled/www.
IfModule mod_jk.c
  JkLogFile /var/log/apache2/mod_jk.log
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevelerror
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V %T
JkMount  /servlets/* worker1
 JkWorkersFile /etc/apache2/workers.properties
/IfModule
_

more /etc/apache2/workers.properties
# Tomcat and Java configuration
#
workers.tomcat_home=/var/lib/tomcat5
workers.java_home=/usr/bin/java
ps=/
worker.list=worker1

[uri:/servlets/*]
#worker.foo=ajp13:www.pro.org.uk:8009
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300
_
http://www.greenlightproductions.co.uk/servlets/SessionExample
This still changes session ID
http://www.greenlightproductions.co.uk:8180/servlets/SessionExample
This doesnt :(


Can anyone tell me why this is happening ?

Thanks
vahid


On 3/17/06, Steve Ochani [EMAIL PROTECTED] wrote:

 On 17 Mar 2006 at 14:41, Vahid Hedayati wrote:

 
  Hi Steve I have now installed mod_jk
 
  in virtualhost config it has..
 
  IfModule mod_jk.c
   JkLogFile /var/log/apache2/mod_jk.log
   JkMount /servlets/* ajp13
  /IfModule
 
  more /etc/apache2/mods-enabled/jk.load
  LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
  [EMAIL PROTECTED]:/etc/apache2/mods-enabled#
  (there is no conf file)
 
 
  Apache/2.0.55 (Debian) mod_jk/1.2.14 mod_chroot/0.5 mod_perl/2.0.2
  Perl/v5.8.8
 
  but my sessions still keep resetting..
 
  http://www.greenlightproductions.co.uk/servlets/SessionExample :(
 
  Is there anything specific to the way modjk was configured on your
  apache ?

 This is what I have in my httpd.conf (before document root defination)

 -
 JkWorkersFile /jakarta-tomcat-5.5.9/conf/workers.properties
 JkLogFile /var/log/httpd/mod_jk.log
 JkLogLevelerror
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkRequestLogFormat %w %V %T
 JkMount  /jsp-examples/* worker1
 JkMount  /servlets-examples/* worker1

 -


 And my workers.properties file is this

 ---
 # Set properties for worker1 (ajp13)
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=8009
 worker.worker1.lbfactor=50
 worker.worker1.cachesize=10
 worker.worker1.cache_timeout=600
 worker.worker1.socket_keepalive=1
 worker.worker1.reclycle_timeout=300
 ---


 Hope that helps


 FYI I'm using tomcat 5.5.9 and apache httpd 1.3.26



 
  thanks
  vahid
 
 
  On 3/17/06, Steve Ochani [EMAIL PROTECTED] wrote:
  Hi,
 
  On 17 Mar 2006 at 12:35, Vahid Hedayati wrote:
 
   Hi All.
  
   Have been looking for a few days now for a fix for this one
  issue that  I just cannot get around..   Basically   If I run
   http://www.greenlightproductions.co.uk/servlets/SessionExample 
   The session ID keeps changingif you refresh the page   (same
  goes for all other servlet code I been using you login once 
  logged in session info lost as in new session ID assigned)
 
  I know this isn't the exact answer you are looking for but I'm
  using mod_jk (mod_jk2 is no longer supported) and I do not have
  this problem.
 
  http://www.matcmp.ncc.edu/servlets-examples/servlet/SessionExample
 
  -Steve O.
 
 
  
  
   but if I goto port 8180 it works perfect
  
  http://www.greenlightproductions.co.uk:8180/servlets/SessionExampl
  e   the session ID remains the same no matter how much i
  refresh.I have been looking all over google for an answer
  for this and most of  it is to do with load balancing tomcat and
  getting same session ID :(   I am sure others have hit this
  issue before and it must be a tom cat  config issue (well for the
  apache listener)   here is some of my config.  
  ##
    # /etc/apache2/mods-enabled/jk2.load LoadModule jk2_module
   /usr/lib/apache2/modules/mod_jk2.so  
  ##
    # /etc/apache2/mods-enabled/jk2.conf # To enable mod_jk2,
  customize  

RE: tomcat examples

2006-03-20 Thread erha

Hi Chuck, 
 And below is the error from the log file for my case. Anybody 
 body know what is wrong ? 
 
 java.lang.ClassFormatError: Extra bytes at the end of class file 
 listeners/ContextListener 

As I stated before: that class file is bad.  It appears to be one you 
created, not from the Tomcat installation.  You need to recompile it or 
otherwise correct it. 

Sorry I am quite new with Tomcat/Java. 
But here is what I have done: 
Download the apache-tomcat-5.5.16.exe, install and run the service. 
Got this error immediately. 
Havent got chance to create any class yet. 

 - Chuck 

Rudy 

--
View this message in context: 
http://www.nabble.com/tomcat-examples-t1307951.html#a3493587
Sent from the Tomcat - User forum at Nabble.com.


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



Re: UTF-8 2019 (right single quote) incorrect display

2006-03-20 Thread Antonio Petrelli

John-Paul Delaney ha scritto:

A little earlier I found out that they can only use Latin1
encoding, ...
  
Sorry to contradict you, .properties files must use ASCII 7-bit (e.g. 
stressed characters must be \u). Anyway that was the other answer 
I had in mind ;-)

Ciao
Antonio

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



Re: UTF-8 2019 (right single quote) incorrect display

2006-03-20 Thread John-Paul Delaney
Scrive Antonio Petrelli [EMAIL PROTECTED]:

 John-Paul Delaney ha scritto:
  A little earlier I found out that they can only use Latin1
  encoding, ...
 
 Sorry to contradict you, .properties files must use ASCII 7-bit (e.g.
 stressed characters must be \u). Anyway that was the other answer
 I had in mind ;-)
 Ciao
 Antonio

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




Thanks again for the clarification Antonio.

Saluti
/j-p.



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



Re: How does Synchronized code interact with other applications

2006-03-20 Thread David Kerber

Leon Rosenberg wrote:


On 3/20/06, David Kerber [EMAIL PROTECTED] wrote:
 


I have a situation where my java-Tomcat application will be writing
lines of data one at a time (but quickly and lots of them, eventually
approx 2 million  lines per day, though only about 500k right now)  to a
disk file, and another, Delphi, appication will be reading and
processing those lines, one line at a time.  I have done some reading
about the Synchronized keyword and I *think* I understand how it
interacts with other java apps,
   



It doesn't interact with other java applications. Only with other
Threads in the same VM. That of course depends on your definition of
the application.
 


That's actually what I meant, but didn't word it very well.

 


but can't tell if that extends to
applications running elsewhere in the OS (Windows in this case).
   



No.

 


If I
use a Synchronized block around my code that does the writing to disk,
will the Delphi app (assuming competent programmers) be able to monitor
and read that file without me closing it after each write?  The Delphi
app does not need to write to the file, only read from it.
   



This is OS dependent. If the OS allows multiple reads/write to a file,
it would be no problem. If I have tomcat in one shell under windows
and tail the logfiles in another - it works, so why shouldn't your
application work too. I think (speculation) that you can open files
under windows in exclusive and non-exclusive mode, as long as you use
the non-exclusive mode, you'll have no problems. IMHO Java uses the
non-exclusive mode. (/speculation). My guess is, that your scenario
will work without problems, at least as long as your writer is faster
than your reader, or your reader can handle temporarly out-of-bytes
:-)
 

It already does that ok.  My java version is actually a port of 
different Delphi app which is having trouble scaling to the levels we 
need.  With more than 60 or so sites sending data every so often, it's 
choking and silently dying every so often.


Thanks!
Dave


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



Problems with UTF-8 and JSP

2006-03-20 Thread Nenad Bosanac
I have problem with UTF-8 character set.
I use MySQL 5 and Tomcat 5.5.9.I use NetBeans for
programinnig
in Java.
I made one database and is in UTF8,also all my JSP
pages are set to 
UTF8 encoding,and also all HTML are set to UTF8.
When i put š,#273;,#269;,#263;,ž character date in
database directly from MySQL Query tool and
and display that data in jsp pages i see all character
ok, but
when i use jsp pages to insert #269;,#273;,ž,#263;
character and want to display them 
i got some strange characters.
Also i put my IE browser to UNICODE UTF8 encoding.
How can i see correct š,#263;,#273;,ž,#269; in my
browser correct?
Thanks

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

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



RE: Re: What, exactly, is meant by full path when construction web.xml entries

2006-03-20 Thread cknell
Thanks for the sanity check. That did what I expected, so to expand on this, if 
I were creating a real servlet whose source code opened like this:

package com.kilonovember.Monkey;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class Monkey extends HttpServlet{

.. programming stuff goes here ...

}

I would create this directory structure under C:\Apache Software 
Foundation\Tomcat 5.5\webapps?

com/kilonovember

and place my compiled Monkey.class in kilonovember?

Next I would edit the web.xml file and add these elements?

servlet
servlet-namemonkey/servlet-name
servlet-classcom.kilonovember.Monkey/servlet-class
/servlet

servlet-mapping
servlet-namemonkey/servlet-name
url-pattern/monkey/url-pattern
/servlet-mapping

Having done that, I would re-start Tomcat and, providing my Monkey.class 
compiled correctly, I should expect to be able to type 
http://localhost:8080/monkey; into my browser's address window and see the 
output of Monkey.class. Is that correct?


Thanks to everyone who responded.
-- 
Charles Knell
[EMAIL PROTECTED] - email


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



Re: What, exactly, is meant by full path when construction web.xml entries

2006-03-20 Thread David Smith

More like:

package com.kilonovember ;

// imports here

public class Monkey extends HttpServlet{

// methods and programming

}

Note I didn't include the class name in the package name.  This creates 
a class with the full name of com.kilonovember.Monkey.


--David

[EMAIL PROTECTED] wrote:


Thanks for the sanity check. That did what I expected, so to expand on this, if I were 
creating a real servlet whose source code opened like this:

package com.kilonovember.Monkey;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class Monkey extends HttpServlet{

.. programming stuff goes here ...

}

I would create this directory structure under C:\Apache Software Foundation\Tomcat 
5.5\webapps?

com/kilonovember

and place my compiled Monkey.class in kilonovember?

Next I would edit the web.xml file and add these elements?

   servlet
   servlet-namemonkey/servlet-name
   servlet-classcom.kilonovember.Monkey/servlet-class
   /servlet

   servlet-mapping
   servlet-namemonkey/servlet-name
   url-pattern/monkey/url-pattern
   /servlet-mapping

Having done that, I would re-start Tomcat and, providing my Monkey.class compiled 
correctly, I should expect to be able to type http://localhost:8080/monkey; 
into my browser's address window and see the output of Monkey.class. Is that correct?


Thanks to everyone who responded.
 




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



RE: Re: What, exactly, is meant by full path when construction web.xml entries

2006-03-20 Thread cknell

Thanks. Yes, of course on the matter of the package name. I think I've grasped 
the points I was struggling with. I have saved the spec to my local disk, and 
when I'm comfortable enough with the general concepts, I'll be able to read it 
and understand it.
--
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: David Smith [EMAIL PROTECTED]
Sent: Mon, 20 Mar 2006 10:28:29 -0500
To:   Tomcat Users List users@tomcat.apache.org
Subject:  Re: What, exactly, is meant by full path when construction  
  web.xml entries

More like:

package com.kilonovember ;

// imports here

public class Monkey extends HttpServlet{

// methods and programming

}

Note I didn't include the class name in the package name.  This creates 
a class with the full name of com.kilonovember.Monkey.


--David

[EMAIL PROTECTED] wrote:


Thanks for the sanity check. That did what I expected, so to expand on this, if I were 
creating a real servlet whose source code opened like this:

package com.kilonovember.Monkey;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class Monkey extends HttpServlet{

.. programming stuff goes here ...

}

I would create this directory structure under C:\Apache Software Foundation\Tomcat 
5.5\webapps?

com/kilonovember

and place my compiled Monkey.class in kilonovember?

Next I would edit the web.xml file and add these elements?

   servlet
   servlet-namemonkey/servlet-name
   servlet-classcom.kilonovember.Monkey/servlet-class
   /servlet

   servlet-mapping
   servlet-namemonkey/servlet-name
   url-pattern/monkey/url-pattern
   /servlet-mapping

Having done that, I would re-start Tomcat and, providing my Monkey.class compiled 
correctly, I should expect to be able to type http://localhost:8080/monkey; 
into my browser's address window and see the output of Monkey.class. Is that correct?


Thanks to everyone who responded.
 




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




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



Re: Tomcat 5.5.16 - Error configuring application listener of class listeners.ContextListener

2006-03-20 Thread Vamsidhar
Seems like lot of other people are having problems with getting examples
working. I deployed one my own applications and it worked like a charm. Not
sure about the examples.

thanks.


On 3/19/06, erha [EMAIL PROTECTED] wrote:


 I have the same problem here. Have you managed to solved your problem ?

 Rudy
 --
 View this message in context:
 http://www.nabble.com/Tomcat-5.5.16---Error-configuring-application-listener-of-class-listeners.ContextListener-t1292922.html#a3487618
 Sent from the Tomcat - User forum at Nabble.com.


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




Re: JNDI in embedded tomcat

2006-03-20 Thread Minilin-inbox
I'm sorry, I should have given the question more detailed.
Generally, we config our JNDI data source in configuration file and put it into 
conf/catalina/localhost, when tomcat is starting up alone, the configuration 
is loaded by tomcat and then we can find our data source like that:
Context context = new InitialContext()
context.lookup(my_data_sourc_name);

But now I start up tomcat in Eclipse and the configuration isn't loaded 
automatically and also the data source couldn't be found.
So, the question is how could I make the configuration file work.

In one word, how to make tomcat(started by Eclipse) include a data source that 
I can find out like the above snippet.


- Original Message - 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 20, 2006 8:15 AM
Subject: Re: JNDI in embedded tomcat


 Details please. This question is way to general to answer without even
 so much as a version number.
 
 JNDI config information for tomcat can be found at
 http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html for
 tomcat 5.5.x
 
 --David
 
 Minilin-inbox wrote:
 
Hi, All,

I want to start tomcat by program, but I also need a JNDI data source.
Could anyone tell me how to config a Tomcat JNDI data source by program, 
or any method let the data source configuration file work?

Minilin

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


Questions on Clustering

2006-03-20 Thread Edoardo Causarano
Hello list, I have some questions on Tomcat 5.5.15 clustering. The apache 
httpd server connects to the cluster members with mod_jk. All the cluster 
members have the jvmRoute attribute set to the same value cluster as well 
as the same multicast group. Multicast routes are activated on the 
appropriate network interfaces with the command:
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1

On the server logs I get these messages:
1616281 [Cluster-MembershipSender] DEBUG 
org.apache.catalina.cluster.mcast.McastService  - Mcast send ping from member 
org.apache.catalina.cluster.mcast.McastMember[tcp://127.0.0.2:4001,catalina,127.0.0.2,4001,
 
alive=100]
1616282 [Cluster-MembershipReceiver] DEBUG 
org.apache.catalina.cluster.mcast.McastService  - Mcast receive ping from 
member 
org.apache.catalina.cluster.mcast.McastMember[tcp://127.0.0.2:4001,catalina,127.0.0.2,4001,
 
alive=1612675]

I'm a bit surprised by the loopback addresses... does this mean that the 
server is only reading itself on the multicast group?

How can I verify that the cluster members are properly acting in sync? Must 
the directories for temporary deployment exist BEFORE launching Tomcat?

Thank you,
e

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



Re: Questions on Clustering

2006-03-20 Thread Filip Hanik - Dev Lists

you have several problems:

1. jvmRoute should be a unique value on each tomcat, not the same across 
all.
2. you have used (tcpListenAddress=auto) - what this does, is look up 
your hostname, and then resolves that to an IP address.
  The problem on your computer is that your local hostname resolves to 
127.0.0.1, it should resolve to the computers actual IP address.
  You can either hardcode your IP in the tcpListenAddress attribute or 
you have to fix your /etc/hosts (and any other file that is not 
configured correctly) file to not resolve your computer name to localhost


Filip


Edoardo Causarano wrote:
Hello list, I have some questions on Tomcat 5.5.15 clustering. The apache 
httpd server connects to the cluster members with mod_jk. All the cluster 
members have the jvmRoute attribute set to the same value cluster as well 
as the same multicast group. Multicast routes are activated on the 
appropriate network interfaces with the command:

route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1

On the server logs I get these messages:
1616281 [Cluster-MembershipSender] DEBUG 
org.apache.catalina.cluster.mcast.McastService  - Mcast send ping from member 
org.apache.catalina.cluster.mcast.McastMember[tcp://127.0.0.2:4001,catalina,127.0.0.2,4001, 
alive=100]
1616282 [Cluster-MembershipReceiver] DEBUG 
org.apache.catalina.cluster.mcast.McastService  - Mcast receive ping from 
member 
org.apache.catalina.cluster.mcast.McastMember[tcp://127.0.0.2:4001,catalina,127.0.0.2,4001, 
alive=1612675]


I'm a bit surprised by the loopback addresses... does this mean that the 
server is only reading itself on the multicast group?


How can I verify that the cluster members are properly acting in sync? Must 
the directories for temporary deployment exist BEFORE launching Tomcat?


Thank you,
e

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

  



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



Re: Questions on Clustering

2006-03-20 Thread Edoardo Causarano
Thanks Filip...

e

Alle 17:30, lunedì 20 marzo 2006, Filip Hanik - Dev Lists ha scritto:
 you have several problems:

 1. jvmRoute should be a unique value on each tomcat, not the same across
 all.
 2. you have used (tcpListenAddress=auto) - what this does, is look up
 your hostname, and then resolves that to an IP address.
The problem on your computer is that your local hostname resolves to
 127.0.0.1, it should resolve to the computers actual IP address.
You can either hardcode your IP in the tcpListenAddress attribute or
 you have to fix your /etc/hosts (and any other file that is not
 configured correctly) file to not resolve your computer name to localhost

 Filip

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



Re: Tomcat 5.5.16 - Error configuring application listener of class listeners.ContextListener

2006-03-20 Thread Len Popp
The file ContextListener.class should be 2526 bytes in size (in both
the jsp-examples and servlets-examples webapps).

I can't test the problem in 5.5.16 as I'm still running 5.5.12. (It
doesn't happen for me with 5.5.12  JDK 1.5.0_06-b05.) I did verify
that the ContextListener.class files are identical in the 5.5.12 and
5.5.16 downloads.
--
Len

On 3/20/06, Vamsidhar [EMAIL PROTECTED] wrote:
 Seems like lot of other people are having problems with getting examples
 working. I deployed one my own applications and it worked like a charm. Not
 sure about the examples.

 thanks.


 On 3/19/06, erha [EMAIL PROTECTED] wrote:
 
 
  I have the same problem here. Have you managed to solved your problem ?
 
  Rudy
  --
  View this message in context:
  http://www.nabble.com/Tomcat-5.5.16---Error-configuring-application-listener-of-class-listeners.ContextListener-t1292922.html#a3487618
  Sent from the Tomcat - User forum at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: [OT] How does Synchronized code interact with other applications

2006-03-20 Thread David Kerber

Caldarale, Charles R wrote:

From: David Kerber [mailto:[EMAIL PROTECTED] 
Subject: Re: [OT] How does Synchronized code interact with 
other applications


Ok.  So if I were to port the Delphi app to java and run it 
as another thread in my app, I would be ok there...
   



Not necessarily.  You will still have the same file open twice, once for
the writer, once for the reader.  When the writes become visible is
still under control of NTFS.
 


Ok.


If you're going to run the two apps inside the same JVM, do you even
need to write a file?  You should be able to just pass String objects
from one to the other.
 

The output side is a database write, and part of our design criteria was 
to be able to stop and start the database without interfering with data 
flow from the remote sites into the central office.  So we write the 
data to disk and acknowledge the successful receipt of the data to the 
sites at that time.  Then we can read the data out of the disk file and 
write it to the database indpendently.


 


Does fileWriter.flush() do almost the same thing?
   



No guarantee - there are two levels of buffering going on.  The flush()
API pushes the stream information out to the file system, but does not
require that it actually be written to disk.  Only the sync() does that.
I don't know if the results of the flush() are visible to other
processes in NTFS.
 


They are, as far as I understand it.

Dave



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



Re: Tomcat 5.5.16 - Error configuring application listener of class listeners.ContextListener

2006-03-20 Thread Len Popp
Also, when I compared the ContextListener.class files I was working
from the Windows zip downloads, not the .exe setups. (Charles C. has
reported that the latter are corrupt.)
--
Len

On 3/20/06, Len Popp [EMAIL PROTECTED] wrote:
 The file ContextListener.class should be 2526 bytes in size (in both
 the jsp-examples and servlets-examples webapps).

 I can't test the problem in 5.5.16 as I'm still running 5.5.12. (It
 doesn't happen for me with 5.5.12  JDK 1.5.0_06-b05.) I did verify
 that the ContextListener.class files are identical in the 5.5.12 and
 5.5.16 downloads.
 --
 Len

 On 3/20/06, Vamsidhar [EMAIL PROTECTED] wrote:
  Seems like lot of other people are having problems with getting examples
  working. I deployed one my own applications and it worked like a charm. Not
  sure about the examples.
 
  thanks.
 
 
  On 3/19/06, erha [EMAIL PROTECTED] wrote:
  
  
   I have the same problem here. Have you managed to solved your problem ?
  
   Rudy
   --
   View this message in context:
   http://www.nabble.com/Tomcat-5.5.16---Error-configuring-application-listener-of-class-listeners.ContextListener-t1292922.html#a3487618
   Sent from the Tomcat - User forum at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 


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



Re: UserDatabase with something else than a basic MemoryUserDatabase

2006-03-20 Thread Nic Daniau
I like short stories, thanks!!! Why they still bother to document it
in 5.5is just I suppose the last attempt to get someone interested in
developping
the missing bits... not me however, I'll just declare my realm straight and
move to other things!

Thanks again,
Nic

On 20/03/06, Bill Barker [EMAIL PROTECTED] wrote:

 Yeah, well, UserDatabase didn't really attract many followers :).  It's a
 nice concept, with a really s*cky implementation (esp. how it works with
 /admin :).  At one point, there was an attempt at a JDBC UserDatabase, but
 it fizzled.

 Short story:  You're not missing anything.  UserDatabase is currently the
 unloved orphaned child of Tomcat ;-).


 Nic Daniau [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hi,
 I'm trying to configure Tomcat (5.5) with a DataSource realm the proper
 way. Configuring a DataSourceRealm directly is fine
   Realm className=org.apache.catalina.realm.DataSourceRealm
 dataSourceName=jdbc/default etc.
 but that's not what I want to do.

 I want to configure a realm that points to a UserDatabase and let this
 UserDatabase point to my DataSource resource. Why? well, in order to be
 able
 to use /manager/roles as pointed out in the
 FM
 http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#List%20Available%20Security%20Roles
 .
 But also to conform with the sample server.xml given at install, which
 configures a MemoryUserDatabase first and then point the realm to this
 UserDatabse, which seams to make sense in the J2EE kind of approach.

 Anyway, in order to do this you need some sort of UserDatabase factory.
 But
 when you look in the API in org.apache.catalina.users, o deception! the
 only
 factory you can find is MemoryUserDatabaseFactory... no
 DataSourceUserDatabaseFactory or even JDBCUserDatabaseFactory as you would
 logically expect?...

 As we know MemoryRealm (and MemoryUserDatabase) is fairly useless in a
 production environment, so why would they have been to all the trouble of
 coming up with this UserDatabase thing if no corresponding implementation
 exists for the other realm types? That's when I say: I must be missing
 something reeeally obvious here...

 Any help welcome!

 Cheers,
 Nic




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




Helpppp: Tomcat displays Page slowly

2006-03-20 Thread Michael McQuade
Hi all.

I have an application running on Tomcat  v 5.0.28  , written in Java and
running a MySql database.   I have one screen that is built dynamically and
accesses the database.  The time for the program to perform all
activities right up until displaying the page is under a second..  But
the actual displaying of the page takes another 6 seconds.  Basically 7
seconds from clicking a button till getting the result displayed.  This
is very slow..  Im reading maybe 10 database records then building the
page.
Im confident its not the program itself..  For whatever reason, I
believe its a Tomcat issue..  I'm very sorry, Im NOT very technical when
it comes to Tomcat at all.  Are there any settings that need to be
tuned  I know this is pretty vague, and I apologize...

Thank You for any help you can offer me,   its greatlly appreciated.

Mike
[EMAIL PROTECTED]


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



Re: Helpppp: Tomcat displays Page slowly

2006-03-20 Thread Filip Hanik - Dev Lists
google for a tutorial on how to use a profiler, then use the profiler, 
and whoops, you'll find your problem


Filip


Michael McQuade wrote:

Hi all.

I have an application running on Tomcat  v 5.0.28  , written in Java and
running a MySql database.   I have one screen that is built dynamically and
accesses the database.  The time for the program to perform all
activities right up until displaying the page is under a second..  But
the actual displaying of the page takes another 6 seconds.  Basically 7
seconds from clicking a button till getting the result displayed.  This
is very slow..  Im reading maybe 10 database records then building the
page.
Im confident its not the program itself..  For whatever reason, I
believe its a Tomcat issue..  I'm very sorry, Im NOT very technical when
it comes to Tomcat at all.  Are there any settings that need to be
tuned  I know this is pretty vague, and I apologize...

Thank You for any help you can offer me,   its greatlly appreciated.

Mike
[EMAIL PROTECTED]


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

  



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



Setting up APR

2006-03-20 Thread Vanessa Campos
Hi,

I'm trying to set up tomcat using APR. I have a verisign certificate
and put on server.xml the following:
Connector port=443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   SSLEngine=on 
   SSLCertificateFile=${catalina.base}/conf/myFile.csr
  
SSLCertificateKeyFile=${catalina.base}/conf/myFile.key /

When I try to startup TomCat, I got the foolowing lines on
catalina.log:

Mar 20, 2006 1:11:04 PM org.apache.coyote.http11.Http11BaseProtocol
start
SEVERE: Error starting endpoint
java.io.FileNotFoundException: C:\Documents and Settings\Default
User\.keystore (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(Unknown Source)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:279)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:222)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:141)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
at
org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:153)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:102)
at
org.apache.catalina.connector.Connector.start(Connector.java:1089)
at
org.apache.catalina.core.StandardService.start(StandardService.java:459)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 20, 2006 1:11:04 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
LifecycleException:  service.getName(): Tomcat-Apache;  Protocol
handler start failed: java.io.FileNotFoundException: C:\Documents and
Settings\Default User\.keystore (The system cannot find the file
specified)
at
org.apache.catalina.connector.Connector.start(Connector.java:1096)
at
org.apache.catalina.core.StandardService.start(StandardService.java:459)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

What I'm wondering is why it's looking for .keystore if I'm telling
it to look for myFile.csr and myFile.key?
Thank you

Vanessa Campos
[EMAIL PROTECTED]
ICQ 35381281

Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele 
possa executa-lo com entusiasmo Max Weber



___
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com

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



tomcat stdout log questions

2006-03-20 Thread Dharmendra Patel
   hello, i am using tomcat 5.5.15.

my jsp appln posts code-generated messages to stdout log file. i have two 
questions.

(1) how can i configure tomcat to stop my jsp from dumping messages altogether?
(2) how can i configure tomcat to reduce my stdout file size?

Thanks,
Warm Regards
Dharmendra



-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

Re: Helpppp: Tomcat displays Page slowly

2006-03-20 Thread Michael McQuade
I basically get the 7 second response time everytime I  request the page
Nic


- Original Message - 
From: Nic Daniau [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 20, 2006 1:27 PM
Subject: Re: Hel: Tomcat displays Page slowly


do you get these 7s the first time you request the page, and then it's a lot
quicker the next times, or it it always like this. Because the first time
you call your JSP it's first compiled so it's normal to get poor performance
on the first call.

hth
Nic

On 20/03/06, Michael McQuade [EMAIL PROTECTED] wrote:

 Hi all.

 I have an application running on Tomcat  v 5.0.28  , written in Java and
 running a MySql database.   I have one screen that is built dynamically
 and
 accesses the database.  The time for the program to perform all
 activities right up until displaying the page is under a second..  But
 the actual displaying of the page takes another 6 seconds.  Basically
 7
 seconds from clicking a button till getting the result
 displayed.  This
 is very slow..  Im reading maybe 10 database records then building the
 page.
 Im confident its not the program itself..  For whatever reason, I
 believe its a Tomcat issue..  I'm very sorry, Im NOT very technical
 when
 it comes to Tomcat at all.  Are there any settings that need to be
 tuned  I know this is pretty vague, and I apologize...

 Thank You for any help you can offer me,   its greatlly appreciated.

 Mike
 [EMAIL PROTECTED]


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




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



Re: Helpppp: Tomcat displays Page slowly

2006-03-20 Thread Michael McQuade
Filip, what is a profiler?  Is it a product to download, or is it something
in Tomcat?


- Original Message - 
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 20, 2006 1:28 PM
Subject: Re: Hel: Tomcat displays Page slowly


 google for a tutorial on how to use a profiler, then use the profiler,
 and whoops, you'll find your problem

 Filip


 Michael McQuade wrote:
  Hi all.
 
  I have an application running on Tomcat  v 5.0.28  , written in Java and
  running a MySql database.   I have one screen that is built dynamically
and
  accesses the database.  The time for the program to perform all
  activities right up until displaying the page is under a second..
But
  the actual displaying of the page takes another 6 seconds.
Basically 7
  seconds from clicking a button till getting the result displayed.
This
  is very slow..  Im reading maybe 10 database records then building
the
  page.
  Im confident its not the program itself..  For whatever reason, I
  believe its a Tomcat issue..  I'm very sorry, Im NOT very technical
when
  it comes to Tomcat at all.  Are there any settings that need to be
  tuned  I know this is pretty vague, and I apologize...
 
  Thank You for any help you can offer me,   its greatlly appreciated.
 
  Mike
  [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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



Re: Helpppp: Tomcat displays Page slowly

2006-03-20 Thread Filip Hanik - Dev Lists
a profiler is a product, it is a piece of software that you download to 
instrument how your applications are performing.

There are two types of common profiling:
1. Memory - to optimize memory usage and find memory leaks
2. CPU - to optimize your code and find bottlenecks

there are tons of profilers out there, NetBeans I think might even come 
with a free one. others are www.yourkit.com, JProbe, Borland OptimizeIt, 
and so on.


Filip


Michael McQuade wrote:

Filip, what is a profiler?  Is it a product to download, or is it something
in Tomcat?


- Original Message - 
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 20, 2006 1:28 PM
Subject: Re: Hel: Tomcat displays Page slowly


  

google for a tutorial on how to use a profiler, then use the profiler,
and whoops, you'll find your problem

Filip


Michael McQuade wrote:


Hi all.

I have an application running on Tomcat  v 5.0.28  , written in Java and
running a MySql database.   I have one screen that is built dynamically
  

and
  

accesses the database.  The time for the program to perform all
activities right up until displaying the page is under a second..
  

But
  

the actual displaying of the page takes another 6 seconds.
  

Basically 7
  

seconds from clicking a button till getting the result displayed.
  

This
  

is very slow..  Im reading maybe 10 database records then building
  

the
  

page.
Im confident its not the program itself..  For whatever reason, I
believe its a Tomcat issue..  I'm very sorry, Im NOT very technical
  

when
  

it comes to Tomcat at all.  Are there any settings that need to be
tuned  I know this is pretty vague, and I apologize...

Thank You for any help you can offer me,   its greatlly appreciated.

Mike
[EMAIL PROTECTED]


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


  

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




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

  



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



Re: SSL/CGI variables question

2006-03-20 Thread Mark Thomas
Stefan Zasada wrote:
 I'm trying to run a perl cgi script in a standalone tomcat container
 with ssl turned on.
It is usually a good idea to mention your Tomcat version although in
this case it doesn't change the answer.

 With the script running under apache, an environment variable
 (SSL_CLIENT_S_DN) is set with the DN from the connecting client's
 certificate.
 
 Is is possible to pick up a similar environment variable with the cgi
 script running under tomcat? I've looked at the list of cgi variables
 that are set and it isn't amongst them.
The best you are going to get is REMOTE_USER and how that is populated
under SSL depends on how your realm is configured.

 I've looked around for a way to do this but can't seem to find anything.
 Any help would be appreciated.
If you need this, patching the CGIServlet should be easy. If you get a
patch that works, I would be happy to review it for inclusion in the
standard Tomcat CGI Servlet.

Mark


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



Re: tomcat examples

2006-03-20 Thread Konstantin L Kouptsov



Hi Chuck,

And below is the error from the log file for my case. Anybody
body know what is wrong ?

java.lang.ClassFormatError: Extra bytes at the end of class file
listeners/ContextListener



As I stated before: that class file is bad.  It appears to be one you
created, not from the Tomcat installation.  You need to recompile it or
otherwise correct it.


Sorry I am quite new with Tomcat/Java.
But here is what I have done:
Download the apache-tomcat-5.5.16.exe, install and run the service.
Got this error immediately.
Havent got chance to create any class yet.



I did the same. Fresh install of Win XP, Tomcat-5.5.16 and everything 
else.


I had put some external example to webapps, and both jsp and servlets in 
it work fine. So, the problem is only with examples that come with 
Tomcat-5.5.16.


Konstantin.




- Chuck


Rudy


--
View this message in context: 
http://www.nabble.com/tomcat-examples-t1307951.html#a3493565
Sent from the Tomcat - User forum at Nabble.com.


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




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



Re: running SSI on Tomcat 5.5.15

2006-03-20 Thread Mark Thomas
lee sachs wrote:
 the web.xml is as follows:
 !-- 3/8 - taking comments out here to enable SSI servlet, also changing 
 virtual to 1 for relative, replace  -- after /servlet to restore back 
 comments; tried the virtualWebappRelative value as 0 and 1 - same result; 
 Not sure if  
   --
Servlet definition looks OK. What about the servlet mapping?

Further down in web.xml is this:
!-- The mapping for the SSI servlet --
!--
servlet-mapping
servlet-namessi/servlet-name
url-pattern*.shtml/url-pattern
/servlet-mapping
--

Which needs to be changed to this:
!-- The mapping for the SSI servlet --
servlet-mapping
servlet-namessi/servlet-name
url-pattern*.shtml/url-pattern
/servlet-mapping

 ENVIRONMENT VARIABLES
 I can run JSPs, applets, and servlets ok, I think these are ok.
Good. A positive sign.

 CLASSPATH variable is set with this value (the Servlets+JSP directory follows 
 from Marty Hall's coreservlets training, but currently there're no servlets 
 or JSPs in there.
There is usually no need to change this.

Mark


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



Re: Setting up APR

2006-03-20 Thread Markus Schönhaber
Vanessa Campos wrote:
 I'm trying to set up tomcat using APR. I have a verisign certificate
 and put on server.xml the following:
 Connector port=443 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25
 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
SSLEngine=on
SSLCertificateFile=${catalina.base}/conf/myFile.csr

 SSLCertificateKeyFile=${catalina.base}/conf/myFile.key /

 When I try to startup TomCat, I got the foolowing lines on
 catalina.log:

 Mar 20, 2006 1:11:04 PM org.apache.coyote.http11.Http11BaseProtocol
 start
 SEVERE: Error starting endpoint
 java.io.FileNotFoundException: C:\Documents and Settings\Default
 User\.keystore (The system cannot find the file specified)
[...]
 What I'm wondering is why it's looking for .keystore if I'm telling
 it to look for myFile.csr and myFile.key?

Because this time you are not using APR and therefore the ARP-specific 
configuration settings are ignored.

Regards
  mks

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



Re: Problems with UTF-8 and JSP

2006-03-20 Thread Mark Thomas
Nenad Bosanac wrote:
 I have problem with UTF-8 character set.
 I use MySQL 5 and Tomcat 5.5.9.I use NetBeans for
 programinnig
 in Java.
 I made one database and is in UTF8,also all my JSP
 pages are set to 
 UTF8 encoding,and also all HTML are set to UTF8.
 When i put š,#273;,#269;,#263;,ž character date in
 database directly from MySQL Query tool and
 and display that data in jsp pages i see all character
 ok, but
 when i use jsp pages to insert #269;,#273;,ž,#263;
 character and want to display them 
 i got some strange characters.
 Also i put my IE browser to UNICODE UTF8 encoding.
 How can i see correct š,#263;,#273;,ž,#269; in my
 browser correct?
 Thanks

At a guess you need to look at the URIEncoding attribute on the connector.

Mark


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



Configuring Tomcat to Use ssl-unclean-shutdown

2006-03-20 Thread Josh Colbeck
Hello,

We're running Tomcat 4.1 in stand alone setup (no Apache) and we're
running in to the problem with SSL and IE that causes users to get a
Page not found error.  A lot of the fixes I have found for this
problem involve setting up Apache it use ssl-unclean-shutdown by adding
BrowserMatch .*MSIE.* nokeepalive ssl-unclean-shutdown to the Apache
config.  Is there a way to configure this open with standalone Tomcat?

We're also in the process of upgrading to Tomcat 5.5 with APR + OpenSSL.
Is there a way to set the unclean shutdown option in the APR SSL
connector?

Thanks,

Josh


RE: tomcat examples

2006-03-20 Thread erha

Thanks Chucks.

Will try to download the zip then.

Rudy
--
View this message in context: 
http://www.nabble.com/tomcat-examples-t1307951.html#a3505817
Sent from the Tomcat - User forum at Nabble.com.


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



Re: programatic jaas authentication

2006-03-20 Thread Dave
I have the same problem to solve. I am using JSF also. In any page I allow user 
to type in username and password, after login, stay in the same page.
   
  Can anyone point a tutorial/doc ? Thanks!

Jan Zach [EMAIL PROTECTED] wrote:
  Hi Everybody,

I got working container JAAS authentication (area protected by url set in 
web.xml), I also know how to authenticate against JAAS. But what I cannot sort 
out is how to programatically force container to authenticate (from login 
dialog), i.e., how to get principal to the session/http request. I use JSF.
Any idea?

Thanks a lot

Jan




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




-
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.

How to deal with spaces in Tomcat 5.5?

2006-03-20 Thread Lahiff, Lorinda
Hi,

I have a text file with spaces as part of the file name that needs to be
read by Apache Tomcat 5.5.  

 

If I enter both of the below URL's in Tomcat 4.1, the text file shows up
fine.  However, the new version of Tomcat (Tomcat 5.5) can only handle
URL1.  In URL2, Tomcat 5.5 is unable to translate the +into a space.
What configurations can I make in Tomcat so it can recognize the + as
a space?

 

URL1: http://jamba/testapp/definitions/20060201%20gmet%20service.txt

URL2: http://jamba/testapp/definitions/20060201+gmet+service.txt

 

Thanks,

Lorinda