RE: need information of tomcat support

2014-10-28 Thread Hareshbhai Desai,Vinaykumar (Vinaykumar)
Thanks Marks for quick response with requested information. Regards, Vinay -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, October 28, 2014 8:22 PM To: Tomcat Users List Subject: Re: need information of tomcat support On 28/10/2014 13:00, Hareshbhai Desai,V

Re: [ANN] Apache Tomcat Native 1.1.32 released

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, A few notes: 1. Some mirrors have not yet updated and still say 1.1.31 is the latest. To download 1.1.32, choose alternative mirrors until you find one that says 1.1.32. 2. The Microsoft Windows binaries of Tomcat Native 1.1.32 are statically

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Terence, On 10/28/14 5:49 PM, Terence M. Bandoian wrote: > On 10/28/2014 8:55 AM, Léa Massiot wrote: >> Christopher Schultz-2 wrote >>> A bit of warning: when modifying iptables, you need to be very >>> careful that you don't wipe-out any rules that

Re: How to access Sessions outside of class

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 10/28/14 3:06 PM, Jason Ricles wrote: > Chris, foo has to run as a daemon outside of tomcat. It will be > interacting with low level drivers through jni. While interesting, it's not terribly relevant. > I was looking at trying to do that

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-28 Thread Terence M. Bandoian
On 10/28/2014 8:55 AM, Léa Massiot wrote: Christopher Schultz-2 wrote A bit of warning: when modifying iptables, you need to be very careful that you don't wipe-out any rules that allow you to gain remote access to the server. For instance, if you have a default rule to DROP all packets and an e

Re: How to access Sessions outside of class

2014-10-28 Thread Terence M. Bandoian
On 10/28/2014 9:36 AM, Jason Ricles wrote: Thanks Tim, That seems like the way to go. IT avoids us having to write our own protocols and everything and instead just code the logic for what action to take when a certain message is received. Hi, Jason- RMI seems reasonable if foo and bar might

[ANN] Apache Tomcat Native 1.1.32 released

2014-10-28 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat Native 1.1.32 stable. The key features of this release are: - Add support for TLSv1.1 and TLSv1.2 - Link Windows binaries with OpenSSL 1.0.1i and APR 1.5.1 Please refer to the change log for the complete list of changes:

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
Chris, foo has to run as a daemon outside of tomcat. It will be interacting with low level drivers through jni. I was looking at trying to do that with making a client endpoint in my daemon but i was having trouble getting it to connect to the websocket server. On Tue, Oct 28, 2014 at 12:21 PM, Ch

Re: How to access Sessions outside of class

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 10/28/14 9:06 AM, Jason Ricles wrote: > Ok so here is the problem I have been spinning my wheels on for day > let me just lay it out. > > I have a daemon written in java running lets call it foo for > simpleness on a linux machine that ha

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Léa, On 10/28/14 9:55 AM, Léa Massiot wrote: > Christopher Schultz-2 wrote >> A bit of warning: when modifying iptables, you need to be very >> careful that you don't wipe-out any rules that allow you to gain >> remote access to the server. For inst

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-28 Thread Ric Bernat
Thanks, Neven. It turns out the PostgreSQL JDBC driver does not implement the setCatalog method, so this option is not available to me. However, I went ahead and set up my own cache of connection pools (dataSource instances) in a HashMap, and configured Jersey to persist this across web servi

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-28 Thread Ric Bernat
Thanks, Chris. To answer your suggestion first, differing username/password didn't come into play, because I found that the PostgreSQL JDBC driver does not implement the setCatalog method to change databases on the fly in the first place. (Apparently this is optional for JDBC driver implement

Re: How to access Sessions outside of class

2014-10-28 Thread chris derham
Couldn't you have the daemon write to a database, and have the web app read from the database? Then you could pass whatever message you wanted as a string? Chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: need information of tomcat support

2014-10-28 Thread Mark Thomas
On 28/10/2014 13:00, Hareshbhai Desai,Vinaykumar (Vinaykumar) wrote: > Hi team, > > I need some information about the tomcat support. We are using tomcat > 3.2.2 and tomcat 6.0.37 in our product. 3.2.2 is 11+ years old. 6.0.37 is ~18 months old. > If we are not upgrade the tomcat latest version

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
Thanks Tim, That seems like the way to go. IT avoids us having to write our own protocols and everything and instead just code the logic for what action to take when a certain message is received. On Tue, Oct 28, 2014 at 10:27 AM, Tim Watts wrote: > Any IPC that you have to write from scratch i

Re: How to access Sessions outside of class

2014-10-28 Thread Tim Watts
Any IPC that you have to write from scratch is going have a not insignificant level of complexity whether it's raw sockets, pipes, http, whatever. Since it sounds like you can't introduce any additional software packages, you might want to consider using RMI (see the java.rmi package). At least t

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
Yes we are trying to portable, well the socket is the last resort. We are trying to avoid it until now but will go that way if we have to if there is no other way. Mostly due to the data coming in and out writing our own socket will be complex but doable. As far as messaging broker, they are not ap

Re: How to access Sessions outside of class

2014-10-28 Thread Tim Watts
On Linux/Unix you could use a FIFO (aka named pipe) and have each side connect to it with a stream. But that's non-portable and probably not too elegant/robust. What's the problem with using a socket? Or better yet, a message broker like ActiveMQ like someone else has already suggested? On Tue

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
I am looking at it but am having trouble seeing the connection, do you care to expand on how it can be used other then for the http request? On Tue, Oct 28, 2014 at 10:00 AM, Martin Grigorov wrote: > On Tue, Oct 28, 2014 at 3:54 PM, Jason Ricles > wrote: > > > I can not using anything outside o

Re: How to access Sessions outside of class

2014-10-28 Thread Martin Grigorov
On Tue, Oct 28, 2014 at 3:54 PM, Jason Ricles wrote: > I can not using anything outside of tomcat to accomplish this, due anything > outside of tomcat being on an approved list. > CORS is not yet another software. Read in the web about it. > > On Tue, Oct 28, 2014 at 9:51 AM, Martin Grigorov

Re: need information of tomcat support

2014-10-28 Thread Leo Donahue
On Tue, Oct 28, 2014 at 8:00 AM, Hareshbhai Desai,Vinaykumar (Vinaykumar) < desa...@avaya.com> wrote: > Hi team, > > I need some information about the tomcat support. We are using tomcat > 3.2.2 and tomcat 6.0.37 in our product. If we are not upgrade the tomcat > latest version then shall we get t

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-28 Thread Léa Massiot
Christopher Schultz-2 wrote > A bit of warning: when modifying iptables, you need to be very careful > that you don't wipe-out any rules that allow you to gain remote access > to the server. For instance, if you have a default rule to DROP all > packets and an exception that allows port 22 (ssh) tr

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
I can not using anything outside of tomcat to accomplish this, due anything outside of tomcat being on an approved list. On Tue, Oct 28, 2014 at 9:51 AM, Martin Grigorov wrote: > On Tue, Oct 28, 2014 at 3:38 PM, Jason Ricles > wrote: > > > Does it matter that foo will not be running on a server

Re: How to access Sessions outside of class

2014-10-28 Thread Martin Grigorov
On Tue, Oct 28, 2014 at 3:38 PM, Jason Ricles wrote: > Does it matter that foo will not be running on a server? It will be running > as a standalone on the machine, unaware of tomcat basically. > http://enable-cors.org/ should be enough to allow external clients. > > On Tue, Oct 28, 2014 at 9:

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
Communicate means something happens that the daemon is monitoring, so thus the daemon sends a message to the websocket server running on the webapp, so that message can get relayed to the webpage from the server and the daemon will also need to get messages from the webapp. It will then be two way

Re: How to access Sessions outside of class

2014-10-28 Thread chris derham
On 28 October 2014 11:06, Jason Ricles wrote: > Ok so here is the problem I have been spinning my wheels on for day let me > just lay it out. > > I have a daemon written in java running lets call it foo for simpleness on > a linux machine that has the tomcat server running. On the tomcat server is

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
Does it matter that foo will not be running on a server? It will be running as a standalone on the machine, unaware of tomcat basically. On Tue, Oct 28, 2014 at 9:36 AM, Martin Grigorov wrote: > On Tue, Oct 28, 2014 at 3:06 PM, Jason Ricles > wrote: > > > Ok so here is the problem I have been s

Re: How to access Sessions outside of class

2014-10-28 Thread Martin Grigorov
On Tue, Oct 28, 2014 at 3:06 PM, Jason Ricles wrote: > Ok so here is the problem I have been spinning my wheels on for day let me > just lay it out. > > I have a daemon written in java running lets call it foo for simpleness on > a linux machine that has the tomcat server running. On the tomcat s

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
Ok so here is the problem I have been spinning my wheels on for day let me just lay it out. I have a daemon written in java running lets call it foo for simpleness on a linux machine that has the tomcat server running. On the tomcat server is a WAR file for a webapp called bar. In that webapp is a

Re: How to access Sessions outside of class

2014-10-28 Thread David kerber
Can you simply serialize the data to disk in one process and read it in the other? On 10/28/2014 8:44 AM, Jason Ricles wrote: Martin, I can not use hazelcast due to regulations I have to abide by, is where any other built in way besides sockets that will allow me to share data between the two

need information of tomcat support

2014-10-28 Thread Hareshbhai Desai,Vinaykumar (Vinaykumar)
Hi team, I need some information about the tomcat support. We are using tomcat 3.2.2 and tomcat 6.0.37 in our product. If we are not upgrade the tomcat latest version then shall we get the support from apache for both tomcat release 3.3.2 /6.0.37? If yes is it free or paid support? How quickly

Re: How to access Sessions outside of class

2014-10-28 Thread Martin Grigorov
On Tue, Oct 28, 2014 at 2:51 PM, Jose María Zaragoza wrote: > 2014-10-28 13:44 GMT+01:00 Jason Ricles : > > > > Martin, > > > > I can not use hazelcast due to regulations I have to abide by, is where > any > > other built in way besides sockets that will allow me to share data > between > > the t

Re: How to access Sessions outside of class

2014-10-28 Thread Jose María Zaragoza
2014-10-28 13:44 GMT+01:00 Jason Ricles : > > Martin, > > I can not use hazelcast due to regulations I have to abide by, is where any > other built in way besides sockets that will allow me to share data between > the two processes? You could use an embedded ( or not ) messaging broker ( like Act

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
Martin, I can not use hazelcast due to regulations I have to abide by, is where any other built in way besides sockets that will allow me to share data between the two processes? On Tue, Oct 28, 2014 at 8:24 AM, Martin Grigorov wrote: > Hi, > > In this case you will have to share the data betwe

Re: How to access Sessions outside of class

2014-10-28 Thread Martin Grigorov
Hi, In this case you will have to share the data between the processes. A simple and easy solution would be to use http://hazelcast.com/, for example. On Tue, Oct 28, 2014 at 2:06 PM, Jason Ricles wrote: > No, > > it is external as in it is running in a daemon on a linux machine where the > tom

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
No, it is external as in it is running in a daemon on a linux machine where the tomcat server is also running. On Tue, Oct 28, 2014 at 4:35 AM, Johan Compagner wrote: > > > > > > I would like to be able to access my sessions from an external java > class, > > however each time I do sessionList.

Question On Tomcat Clustering with Session Persistence

2014-10-28 Thread Hegde, Smitha
Hello, We have currently started using tomcat 7.0 in our development environment .Following are the configuration Details : Tomcat Version : 7.0.55 Java Version :1.7.0.67 We have a requirement to implement clustering for one of our applications . The same application's active but idle sessio

Re: SAML exception in tomcat

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Baran, On 10/28/14 6:40 AM, Baran Topal wrote: > Hi; I end up with this in tomcat for SAML [code] String index out > of range: 889 java.lang.StringIndexOutOfBoundsException: String > index out of range: 889 at java.lang.String.charAt(Unknown Source)

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Léa, On 10/27/14 3:19 PM, Léa Massiot wrote: > Thank you for you answer. > > It was the firewall. I thought about it and I thought I was > disabling it temporarily by flushing iptables (iptables -F). But > apparently it's not enough... Do you know

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ric, On 10/26/14 2:31 PM, Ric Bernat wrote: > Thanks, Nevin. I certainly appreciate your deep treatment of my > question/issue! > > I would like to ask for clarification about a point in your #2: > >> (2) CONTAINER-MANAGED CONNECTION POOL. (a) usi

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neven, On 10/26/14 6:28 PM, Neven Cvetkovic wrote: > Hey Ric, > > Here's another thing you could do: > http://stackoverflow.com/questions/7195556/how-to-manage-connections-to-dynamically-created-databases > > If your databases are all on the same

SAML exception in tomcat

2014-10-28 Thread Baran Topal
Hi; I end up with this in tomcat for SAML [code] String index out of range: 889 java.lang.StringIndexOutOfBoundsException: String index out of range: 889 at java.lang.String.charAt(Unknown Source) at waffle.util.Base64.decode(Unknown Source) at com.test.baran.user.web.SAMLFilter.val

Re: How to access Sessions outside of class

2014-10-28 Thread Johan Compagner
> > > I would like to be able to access my sessions from an external java class, > however each time I do sessionList.getsize() it keeps coming back as 0, but > there is an active sessions. Is there any way I can access the active > sessions in tomcat from an external java class? > > Jason > What

Re: INFO: TLD skipped Messages in logs

2014-10-28 Thread Mark Thomas
On 28/10/2014 00:59, Kiran Badi wrote: > Hi > > Can someone reply to this query please. > On 10/2/2014 8:10 PM, Kiran Badi wrote: >> Hi, >> >> I am getting below messages in the logs, >> >> Oct 26, 2014 4:05:46 PM org.apache.catalina.startup.TaglibUriRule body >> INFO: TLD skipped. URI: http://jav

Re: Tomcat problem with shutdown (thank)

2014-10-28 Thread Mark Thomas
On 27/10/2014 20:53, Res Aerea s.r.l. - Accounts wrote: > Hi all, i cannot connect via browser and shutdown to my Tomcat (is > installed in a cloud server), > > 1) In my cloud is Ubuntu LTS 12.04; > 2) There is Java 1.8.0_25; > 3) There is Tomcat 8.0.14; > 4) I can connect via ssh to my server cor

Re: Tomcat problem with shutdown (thank)

2014-10-28 Thread Bipin Jethwani
Port 8080 might not be open from you cloud VM. -Bipin On Tue, Oct 28, 2014 at 2:23 AM, Res Aerea s.r.l. - Accounts < accou...@resaerea.com> wrote: > Hi all, i cannot connect via browser and shutdown to my Tomcat (is > installed in a cloud server), > > 1) In my cloud is Ubuntu LTS 12.04; > 2) The