Websocket example not working in OFBiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Websocket example not working in OFBiz

Pallavi Goyal
Hello All,

I am working on the Web Socket implementation in OFBiz taking reference
from OFBIZ-7073 <https://issues.apache.org/jira/browse/OFBIZ-7073> and
OFBIZ-7467 <https://issues.apache.org/jira/browse/OFBIZ-7467>.

When I open the main page of example component and check the console log
for js, it gives the error-

ExamplePushNotifications.js:23
WebSocket connection to 'wss://localhost:8443/example/ws/pushNotifications'
failed: Error during WebSocket handshake: Unexpected response code: 404
(anonymous) @ ExamplePushNotifications.js:23

According to OFBIZ-7538 <https://issues.apache.org/jira/browse/OFBIZ-7538>,
the websocket example stopped working.

Please suggest me how should I proceed further?

I have also posted the question on stack overflow, here
<https://stackoverflow.com/questions/47738952/websocket-implementation-not-working-in-apache-ofbiz>
.

Thanks in advance!

Pallavi Goyal
Reply | Threaded
Open this post in threaded view
|

Re: Websocket example not working in OFBiz

Jacques Le Roux
Administrator
Hi Pallavi,

One thing you could do if you find more information is to reopen OFBIZ-7538

Jacques


Le 11/12/2017 à 11:46, Pallavi Goyal a écrit :

> Hello All,
>
> I am working on the Web Socket implementation in OFBiz taking reference
> from OFBIZ-7073 <https://issues.apache.org/jira/browse/OFBIZ-7073> and
> OFBIZ-7467 <https://issues.apache.org/jira/browse/OFBIZ-7467>.
>
> When I open the main page of example component and check the console log
> for js, it gives the error-
>
> ExamplePushNotifications.js:23
> WebSocket connection to 'wss://localhost:8443/example/ws/pushNotifications'
> failed: Error during WebSocket handshake: Unexpected response code: 404
> (anonymous) @ ExamplePushNotifications.js:23
>
> According to OFBIZ-7538 <https://issues.apache.org/jira/browse/OFBIZ-7538>,
> the websocket example stopped working.
>
> Please suggest me how should I proceed further?
>
> I have also posted the question on stack overflow, here
> <https://stackoverflow.com/questions/47738952/websocket-implementation-not-working-in-apache-ofbiz>
> .
>
> Thanks in advance!
>
> Pallavi Goyal
>

Reply | Threaded
Open this post in threaded view
|

Re: Websocket example not working in OFBiz

Jacques Le Roux
Administrator
Hi Pallavi,

I reopened OFBIZ-7073, I know why websocket no longer works <http://markmail.org/message/2i7mumndgsvnitas>.

In FilterJars class there is a call to read webSocket from catalina.properties.

This worked but for a reason now the catalina.properties file is not found (location not resolved) and put in propertiesNotFound variable.

So websocket is always sets to false. I'm checking why...

Jacques


Le 11/12/2017 à 13:01, Jacques Le Roux a écrit :

> Hi Pallavi,
>
> One thing you could do if you find more information is to reopen OFBIZ-7538
>
> Jacques
>
>
> Le 11/12/2017 à 11:46, Pallavi Goyal a écrit :
>> Hello All,
>>
>> I am working on the Web Socket implementation in OFBiz taking reference
>> from OFBIZ-7073 <https://issues.apache.org/jira/browse/OFBIZ-7073> and
>> OFBIZ-7467 <https://issues.apache.org/jira/browse/OFBIZ-7467>.
>>
>> When I open the main page of example component and check the console log
>> for js, it gives the error-
>>
>> ExamplePushNotifications.js:23
>> WebSocket connection to 'wss://localhost:8443/example/ws/pushNotifications'
>> failed: Error during WebSocket handshake: Unexpected response code: 404
>> (anonymous) @ ExamplePushNotifications.js:23
>>
>> According to OFBIZ-7538 <https://issues.apache.org/jira/browse/OFBIZ-7538>,
>> the websocket example stopped working.
>>
>> Please suggest me how should I proceed further?
>>
>> I have also posted the question on stack overflow, here
>> <https://stackoverflow.com/questions/47738952/websocket-implementation-not-working-in-apache-ofbiz>
>> .
>>
>> Thanks in advance!
>>
>> Pallavi Goyal
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Websocket example not working in OFBiz

Deepak Dixit-3
Hi Jacques,
Following entry is missing in catalina/ofbiz-components.xml, I think due to
this catalina.properties not set in calsspath.

<classpath type="dir" location="config"/>


Thanks & Regards
--
Deepak Dixit
www.hotwaxsystems.com
www.hotwax.co

On Tue, Jan 2, 2018 at 4:10 PM, Jacques Le Roux <
[hidden email]> wrote:

> Hi Pallavi,
>
> I reopened OFBIZ-7073, I know why websocket no longer works <
> http://markmail.org/message/2i7mumndgsvnitas>.
>
> In FilterJars class there is a call to read webSocket from
> catalina.properties.
>
> This worked but for a reason now the catalina.properties file is not found
> (location not resolved) and put in propertiesNotFound variable.
>
> So websocket is always sets to false. I'm checking why...
>
> Jacques
>
>
>
> Le 11/12/2017 à 13:01, Jacques Le Roux a écrit :
>
>> Hi Pallavi,
>>
>> One thing you could do if you find more information is to reopen
>> OFBIZ-7538
>>
>> Jacques
>>
>>
>> Le 11/12/2017 à 11:46, Pallavi Goyal a écrit :
>>
>>> Hello All,
>>>
>>> I am working on the Web Socket implementation in OFBiz taking reference
>>> from OFBIZ-7073 <https://issues.apache.org/jira/browse/OFBIZ-7073> and
>>> OFBIZ-7467 <https://issues.apache.org/jira/browse/OFBIZ-7467>.
>>>
>>> When I open the main page of example component and check the console log
>>> for js, it gives the error-
>>>
>>> ExamplePushNotifications.js:23
>>> WebSocket connection to 'wss://localhost:8443/example/
>>> ws/pushNotifications'
>>> failed: Error during WebSocket handshake: Unexpected response code: 404
>>> (anonymous) @ ExamplePushNotifications.js:23
>>>
>>> According to OFBIZ-7538 <https://issues.apache.org/jir
>>> a/browse/OFBIZ-7538>,
>>> the websocket example stopped working.
>>>
>>> Please suggest me how should I proceed further?
>>>
>>> I have also posted the question on stack overflow, here
>>> <https://stackoverflow.com/questions/47738952/websocket-impl
>>> ementation-not-working-in-apache-ofbiz>
>>> .
>>>
>>> Thanks in advance!
>>>
>>> Pallavi Goyal
>>>
>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Websocket example not working in OFBiz

Jacques Le Roux
Administrator
Thanks Deepak,

Right on the point!

Jacques


Le 02/01/2018 à 11:53, Deepak Dixit a écrit :

> Hi Jacques,
> Following entry is missing in catalina/ofbiz-components.xml, I think due to
> this catalina.properties not set in calsspath.
>
> <classpath type="dir" location="config"/>
>
>
> Thanks & Regards
> --
> Deepak Dixit
> www.hotwaxsystems.com
> www.hotwax.co
>
> On Tue, Jan 2, 2018 at 4:10 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Hi Pallavi,
>>
>> I reopened OFBIZ-7073, I know why websocket no longer works <
>> http://markmail.org/message/2i7mumndgsvnitas>.
>>
>> In FilterJars class there is a call to read webSocket from
>> catalina.properties.
>>
>> This worked but for a reason now the catalina.properties file is not found
>> (location not resolved) and put in propertiesNotFound variable.
>>
>> So websocket is always sets to false. I'm checking why...
>>
>> Jacques
>>
>>
>>
>> Le 11/12/2017 à 13:01, Jacques Le Roux a écrit :
>>
>>> Hi Pallavi,
>>>
>>> One thing you could do if you find more information is to reopen
>>> OFBIZ-7538
>>>
>>> Jacques
>>>
>>>
>>> Le 11/12/2017 à 11:46, Pallavi Goyal a écrit :
>>>
>>>> Hello All,
>>>>
>>>> I am working on the Web Socket implementation in OFBiz taking reference
>>>> from OFBIZ-7073 <https://issues.apache.org/jira/browse/OFBIZ-7073> and
>>>> OFBIZ-7467 <https://issues.apache.org/jira/browse/OFBIZ-7467>.
>>>>
>>>> When I open the main page of example component and check the console log
>>>> for js, it gives the error-
>>>>
>>>> ExamplePushNotifications.js:23
>>>> WebSocket connection to 'wss://localhost:8443/example/
>>>> ws/pushNotifications'
>>>> failed: Error during WebSocket handshake: Unexpected response code: 404
>>>> (anonymous) @ ExamplePushNotifications.js:23
>>>>
>>>> According to OFBIZ-7538 <https://issues.apache.org/jir
>>>> a/browse/OFBIZ-7538>,
>>>> the websocket example stopped working.
>>>>
>>>> Please suggest me how should I proceed further?
>>>>
>>>> I have also posted the question on stack overflow, here
>>>> <https://stackoverflow.com/questions/47738952/websocket-impl
>>>> ementation-not-working-in-apache-ofbiz>
>>>> .
>>>>
>>>> Thanks in advance!
>>>>
>>>> Pallavi Goyal
>>>>
>>>>
>>>