How to dispatch HTTP requests from a servlet to an external server?

2009-02-04 Thread albrecht andrzejewski
-- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse 30035 Nîmes Cedex 1 - France Tel : 04 66 38 40 65 Fax : 04 66 38 70 99* Ce message a ete envoye par le serveur IMP de l'EMA

Re: external folder be mapped to Tomcat 'specific 'webapplication'

2008-10-08 Thread albrecht andrzejewski
my root account to store my webapp or web content...neither to run an application server. -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse *** http://haveacafe.wordpress.com Ce message a ete

Tomcat default encoding character ? Dfile.encoding option mean ?

2008-10-07 Thread albrecht andrzejewski
these two methods every time a request reach the servlet... ? I tried to define the CATALINA_OPTS, but perhaps the file encoding is different from the request/response encoding. CATALINA_OPTS=-Dfile.encoding=UTF-8 export LC_ALL CATALINA_OPTS -- Albrecht ANDRZEJEWSKI Créateur - Incubateur

Re: application deployment issue, Tomcat 5.5

2008-10-02 Thread albrecht andrzejewski
- no time to check and compare their modifications to the 100% original binary distribution.) Regards, -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse -- http://haveacafe.wordpress.com

Re: Tomcat migration from T5 to T5.5 mail

2008-09-30 Thread albrecht andrzejewski
is correctly configured ? (test it whith a commadline using sendmail or whatever). -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse *** http://haveacafe.wordpress.com/ Ce message a ete envoye par le

Re: Tomcat migration from T5 to T5.5 mail

2008-09-30 Thread albrecht andrzejewski
/thread.jspa?messageID=4111277 http://confluence.atlassian.com/display/DOC/Cannot+send+email+due+to+'javax.mail.NoSuchProviderException'+SMTP+error Check also for commons-email-1.0.jar... -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE - Parc scientifique G. Besse 30035 Nîmes Cedex 1

Re: Tomcat migration from T5 to T5.5 mail

2008-09-30 Thread albrecht andrzejewski
to call session.setDebug(true) on you session object, so that you will have more verbose debugging output! You wil be able to trace mail.jar initialisation. ref: http://java.sun.com/products/javamail/FAQ.html#debug -- Albrecht ANDRZEJEWSKI Créateur - Incubateur Technologique SITE-EERIE

How to manually undeploy a webapp in tomcat ?

2008-09-23 Thread albrecht andrzejewski
( i don't want to use the manager webapp). And I don't know how to use Ant - so i would prefer a unix-shell-only solution. I think about deleting all the files under /Catalina/localhost/nameofwebapp/ but i'm afraid to miss something. Thanks. -- Albrecht ANDRZEJEWSKI Créateur - Incubateur

Re: Disabling the sessions

2008-03-12 Thread albrecht andrzejewski
to track session if cookie are disabled. So the answer depends on your needs ! If session mechanism is not critical for your noncookie users, juste redirect them whhitout the encodeURL method, or override this method to do nothing, and ommit the session-id parameter. Regards, -- Albrecht

Re: tomcat iptables problem

2007-10-02 Thread albrecht andrzejewski
Quoting Dieter Schicker [EMAIL PROTECTED]: With this configuration I have the following behavior: Tomcat needs 3 minutes to shut down and another 3 minutes to start up again. If it runs it runs perfectly ... Any ideas? It can occurs if you are working with a localhost url... If you do,

RE: Basic question - Ingterating Tomcat with Apache

2007-09-22 Thread albrecht andrzejewski
Quoting Peter Crowther [EMAIL PROTECTED]: What are you doing that doesn't just need a vanilla Tomcat? Peter... I plan to have a box, and I just think about pro and cons... I think tomcat stand alone is - easier to deploy. And that's all. I think apache as a front end is a more flexible and

Re: session timeout

2007-05-28 Thread albrecht andrzejewski
Quoting Pierre Goupil [EMAIL PROTECTED]: Hello all ! I'm using a Tomcat-based authentication. How do you do to set the session timeout time ? I mean, the time of inactivity after which one the user must re-login. You can set the http session-time into the Web.xml file of you webapp:

Re: Defining data-sources in tomcat

2007-04-27 Thread albrecht andrzejewski
3) In my servlet init(), I lookup the data-source. Each lookup essentially instantiates an instance of the data-source. So a connection pool gets instantiated in each servlet's init. Now it doesn't make sense to create a new connection pool in each servlet. So I'd like to create a single

Re: Retrieve list of all sessions

2007-03-08 Thread albrecht andrzejewski
I actually track my connected users with this code: public class MySessionManager{ public static Set String connecteds; /** Creates a new instance of MySessionManager */ public MySessionManager() { connecteds = new java.util.HashSet(); and i use this method to add an

Re: Tomcat mysteriously shuts down

2007-02-15 Thread albrecht andrzejewski
There is a port used to shutdown the server... This kind line in server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 Perhaps someone is using this ? Quoting Nadav Steindler [EMAIL PROTECTED]: When my servlet isn't sent any requests for about 15 minutes, tomcat shuts down. In particular:

RE: get a strange cast error with using the tomcat mail ressource

2007-02-12 Thread albrecht andrzejewski
Quoting Caldarale, Charles R [EMAIL PROTECTED]: java.lang.ClassCastException: javax.mail.Session cannot be cast to javax.mail.Session at utils.MailHelper.sendMail(MailHelper.java:36) This would indicate you've got the javax.mail.Session class in multiple places. Thank you for

get a strange cast error with using the tomcat mail ressource

2007-02-11 Thread albrecht andrzejewski
Hello all, I hope i will not pollute the list, but i'm affraid of being faced with a bug :-( I have to send a mail with tomcat. I followed the instructions of the tomcat documentation, corresponding my version (5.5). Using this code: public static String sendMail(String destinataire,