Re: Fail secure state

2016-06-24 Thread Jason Ricles
21:43, Jason Ricles wrote: >> >> Fail-secure is a condition achieved by the application server in order >> to ensure that in the event of an operational failure, the system does >> not enter into an unsecure state where intended security properties no >> longer hold

Re: Fail secure state

2016-06-23 Thread Jason Ricles
20:21, Jason Ricles wrote: >> Does tomcat have a secure state if system initialization fails, >> shutdown fails, or aborts fail? > > Define "secure state", "system initialization", "fails", "shutdown&qu

Fail secure state

2016-06-23 Thread Jason Ricles
Does tomcat have a secure state if system initialization fails, shutdown fails, or aborts fail? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Getting confusing websocket error message on Tomcat 7

2016-05-04 Thread Jason Ricles
I am trying to send a file over a websocket in binary and keep getting this error "code [1009], reason [No async message support and buffer too small. Buffer size: [800,000], Message size: [131,170]]" I am confused since it is saying the buffer size is too small but the size is 800,000 and the me

Re: Tomcat feature request

2016-02-10 Thread Jason Ricles
On Wed, Feb 10, 2016 at 7:47 AM, Konstantin Kolinko wrote: > 2016-02-10 5:40 GMT+03:00 Jason Ricles : >> Is there any formal forum to make a feature request for tomcat? > > http://tomcat.apache.org/bugreport.html#How_to_submit_patches_and_enhancement_requests > > but usu

Tomcat feature request

2016-02-09 Thread Jason Ricles
Is there any formal forum to make a feature request for tomcat? I noticed I was having a silent failure with a binary websocket with tomcat since I didn't flip the bytebuffer from write to read and the send kept failing down at the low level of the code without any error being thrown. With that in

Re: Having Java websocket server in tomcat handle ISO8859_1

2016-02-08 Thread Jason Ricles
The message is built and sent in a javaclass connected to a websocket server for the web application also written in java then the message is passed to the webpage which uses javascript On Mon, Feb 8, 2016 at 2:25 PM, André Warnier (tomcat) wrote: > On 08.02.2016 19:41, Jason Ricles wr

Having Java websocket server in tomcat handle ISO8859_1

2016-02-08 Thread Jason Ricles
I have an application that sends binary websocket messages between a class and the web application using a websocket server written in java. The data being sent from the java class is encoded in a binary buffer with the bytes in ISO8859_1. However, when I receive the bytes on the websocket server

Re: Send a message from java application to a specific websocket session via Tomcat websocket server

2015-08-10 Thread Jason Ricles
e users to > be re-directed to an static page not connected to the database or back-end. > And if user== administrator; then, do not redirect. Allow user to see > error. > > > On 08/10/2015 10:01 AM, Jason Ricles wrote: >> >> Introduction: >> >> I have an appl

Send a message from java application to a specific websocket session via Tomcat websocket server

2015-08-10 Thread Jason Ricles
Introduction: I have an application that uses a webpage as the GUI and the backend is written in Java so thuswebsockets using Apache Tomcat 7 are the way I am communicating between the GUI and the backend code that does all the grunt work. A websocket server is the go between, between the backend

issue with application finding tomcat jars

2015-07-10 Thread Jason Ricles
I have an application that uses the websocket jars from tomcat and sometimes get this error, java.util.ServiceConfigurationError: javax.websocket.ContainerProvider: Provider org.apache.tomcat.websocket.WsContainerProvider not found Then it gets the error for a while and magically finds the jars a

Re: unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
To test GUI to external progam so when I say hey send this request to the program the program sets the request flags to true. On Thu, Dec 11, 2014 at 12:39 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jason, > > On 12/11/14 12:16 PM,

Re: unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
No no, it goes Website (GUI) > ws server --> external java program On Thu, Dec 11, 2014 at 11:25 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jason, > > On 12/11/14 10:03 AM, Jason Ricles wrote: >> To the question, t

Re: unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jason, > > On 12/11/14 9:07 AM, Jason Ricles wrote: >> I am currently using tomcat 7.0.57 to host a website for the >> purpose of having a websocket serverdeployed with the page for t

unit testing on tomcat with java

2014-12-11 Thread Jason Ricles
I am currently using tomcat 7.0.57 to host a website for the purpose of having a websocket serverdeployed with the page for the purpose of communicating between an external java program and the webpage. I would like to write some unit test to test that the integration between the external java prog

Re: Error with finding of reserve bits in websocket frame tomcat 7.0.53?

2014-12-05 Thread Jason Ricles
to update tomcat since it was not in the bug database at all. On Thu, Dec 4, 2014 at 4:50 PM, David kerber wrote: > On 12/4/2014 4:32 PM, Jason Ricles wrote: >> >> Yes it was a bug so we will try to get a waiver to use 7.0.57 for our >> environment instead of 7.0.53 > > &

Re: Error with finding of reserve bits in websocket frame tomcat 7.0.53?

2014-12-04 Thread Jason Ricles
Yes it was a bug so we will try to get a waiver to use 7.0.57 for our environment instead of 7.0.53 On Thu, Dec 4, 2014 at 1:20 PM, Jason Ricles wrote: > Well the trace is fine so I will upgrade and try and see what happens. > If it is not fixed I assume I should file a bug report. >

Re: Error with finding of reserve bits in websocket frame tomcat 7.0.53?

2014-12-04 Thread Jason Ricles
Well the trace is fine so I will upgrade and try and see what happens. If it is not fixed I assume I should file a bug report. On Thu, Dec 4, 2014 at 1:19 PM, Mark Thomas wrote: > On 04/12/2014 18:04, Jason Ricles wrote: >> Due to some regulations out of my control right now we can

Re: Error with finding of reserve bits in websocket frame tomcat 7.0.53?

2014-12-04 Thread Jason Ricles
with tomcat? On Thu, Dec 4, 2014 at 12:16 PM, Mark Thomas wrote: > On 04/12/2014 15:26, Jason Ricles wrote: >> I have tomcat 7.0.53 and have been having a problem with the following >> error when sending a binary message "CloseReason: code [1002], reason >> [The client f

Error with finding of reserve bits in websocket frame tomcat 7.0.53?

2014-12-04 Thread Jason Ricles
I have tomcat 7.0.53 and have been having a problem with the following error when sending a binary message "CloseReason: code [1002], reason [The client frame set the reserved bits to [x] which was not supported by this endpoint]" where x is between 1-7 when printed out. So I remote debugged and st

Re: CloseReason 1002

2014-12-03 Thread Jason Ricles
Here is the wireshark of the binary data that is being transferred over. 00 00 00 00 00 00 00 00 00 00 00 00 86 dd 60 00 ..`. 0010 00 00 5c 15 06 40 00 00 00 00 00 00 00 00 00 00 ..\..@.. 0020 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00

Re: CloseReason 1002

2014-12-02 Thread Jason Ricles
problem 100% of the time. On Tue, Dec 2, 2014 at 4:08 PM, Jason Ricles wrote: > No luck try to find a blocking call or having the websocket server > reader go off into another thread. so basically no way around this > problem it seems? > > On Tue, Dec 2, 2014 at 9:19 AM, Mark Thomas wro

Re: CloseReason 1002

2014-12-02 Thread Jason Ricles
No luck try to find a blocking call or having the websocket server reader go off into another thread. so basically no way around this problem it seems? On Tue, Dec 2, 2014 at 9:19 AM, Mark Thomas wrote: > On 02/12/2014 13:05, Jason Ricles wrote: >> Mark, >> >> Is there any

Re: CloseReason 1002

2014-12-02 Thread Jason Ricles
Mark, Is there any way to do two back to back writes to a websocket with a sort of blocking technique, and without using a sleep? On Mon, Dec 1, 2014 at 3:13 PM, Mark Thomas wrote: > On 01/12/2014 18:30, Jason Ricles wrote: >> What might be causing this error on concurrent writes in a

CloseReason 1002

2014-12-01 Thread Jason Ricles
What might be causing this error on concurrent writes in a websocket, CloseReason: code [1002], reason [The client frame set the reserved bits to [2] which was not supported by this endpoint]? - To unsubscribe, e-mail: users-unsub

Back to back writes to websocket server weird behavior

2014-12-01 Thread Jason Ricles
I have a binary queue that I am writing to a websocket server written in java from a client end point with the following code, while((bbuf = messageQueue.take()).get(0) != 0) { bbuf.position(bbuf.limit()); bbuf.flip(); for(Session session : sessi

Re: Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Jason Ricles
Why is the bytebuffer now filled with 0 and no data after doing a flip? On Tue, Nov 18, 2014 at 3:12 PM, Jason Ricles wrote: > Yup that flip did it and it works. Yes haha that was one of the many > reasons I didn't major in something with more writing. Luckily its > just a test me

Re: Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Jason Ricles
2014-11-18 22:14 GMT+03:00 Jason Ricles : >> I am writing a websocket communication with the client and server >> endpoints both in java code (using tomcat 7.0.53 as the web server) >> When I send a text message using the >> session.getbasicremote.sendText(String) method th

Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Jason Ricles
I am writing a websocket communication with the client and server endpoints both in java code (using tomcat 7.0.53 as the web server) When I send a text message using the session.getbasicremote.sendText(String) method the @Onmessage function is fired and everything. However I want to send binary da

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Jason Ricles
You can use upstart if you have that, with a .conf file. However unless you source the profile.d or wherever your environment variables are held do not use them in an init task! On Wed, Oct 29, 2014 at 1:55 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MES

Re: How to access Sessions outside of class

2014-10-29 Thread Jason Ricles
of that. On Wed, Oct 29, 2014 at 1:47 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jason, > > On 10/29/14 8:28 AM, Jason Ricles wrote: > > foo is not a webapp, it is a separate program running o

Re: How to access Sessions outside of class

2014-10-29 Thread Jason Ricles
ch...@christopherschultz.net> wrote: > -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. >

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
, Christopher Schultz < ch...@christopherschultz.net> wrote: > -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

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
27;re coding to an API instead of > having to invent message formats and protocols. > > > On Tue, 2014-10-28 at 10:16 -0400, Jason Ricles wrote: > > 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 wa

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
's the problem with using a socket? Or better > yet, a message broker like ActiveMQ like someone else has already > suggested? > > > On Tue, 2014-10-28 at 09:46 -0400, Jason Ricles wrote: > > Communicate means something happens that the daemon is monitoring, so > thus >

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 a

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

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
and just regular messages. On Tue, Oct 28, 2014 at 9:42 AM, chris derham wrote: > 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

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 prob

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
each other. Is there any way outside of sockets to have foo and the websocket server on bar do this? On Tue, Oct 28, 2014 at 8:59 AM, Martin Grigorov wrote: > On Tue, Oct 28, 2014 at 2:51 PM, Jose María Zaragoza > > wrote: > > > 2014-10-28 13:44 GMT+01:00 Jason Ricles :

Re: How to access Sessions outside of class

2014-10-28 Thread Jason Ricles
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

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.

How to access Sessions outside of class

2014-10-27 Thread Jason Ricles
I have the following code for a web-socket package comm2.hello; import java.io.IOException; import java.util.ArrayList; import javax.websocket.OnClose; import javax.websocket.OnMessage; import javax.websocket.OnOpen; import javax.websocket.Session; import javax.websocket.server.ServerEndpoint;

tomcat websocket communication with external java program

2014-10-25 Thread Jason Ricles
I have a tomcat webpage with a websocket server written in java to communicate with the webpage. I want this websocket server to be able to communicate with an external java program without an sockets, so something like this webpage<>websocket server<>external java

embedded tomcat Defense Information Systems Agency

2014-10-24 Thread Jason Ricles
Does anyone happen to know if embedded tomcat is in Defense Information Systems Agency list? I know regular tomcat is but I have a need to use embedded tomcat for what I need to accomplish. Jason Ricles

DISA compliance tomcat 7.0.53

2014-07-10 Thread Jason Ricles
Where can I find a checklist so that I may make my tomcat server DISA compliant? -- Jason Ricles Jr Software Engineer Mikros Systems Corp