Giter VIP home page Giter VIP logo

Comments (5)

benjp avatar benjp commented on August 21, 2024

Have you changed the chat.properties files accordingly to your configuration?
It should be something like this for you :

chatServerUrl=http://malban:8080/chatServer
chatPortalPage=/portal/intranet/chat

you also need to create the chat page on eXo (/portal/intranet/chat) and put the Chat portlet in it.

from chat-application.

fxratnam avatar fxratnam commented on August 21, 2024

Actually, it was caused by Windows Firewall rules.
Now, we need to manage CROS error :

image

I'll publish new notes if we solve it.

FX

from chat-application.

benjp avatar benjp commented on August 21, 2024

I can see your eXo instance using port 8080 and Chat server tomcat instance using 8280.
You're accessing using 8080, this is why you get into Access-Control-Allow-Origin problem because the port is not the same and it's not permitted for ajax calls (anti fishing security rules)

If you follow the installation notes, you will notice I declare a virtual host :
<VirtualHost *:8888>
ServerName www.localhost.com

ProxyRequests Off
ProxyPreserveHost On

<Proxy *>
Order deny,allow
Allow from all

ProxyPass /chatServer http://localhost:8280/chatServer
ProxyPassReverse /chatServer http://localhost:8280/chatServer
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

Then, you have to access eXo using http://malban:8888 (or port 80 if apache is set on port 80)

This will fix your problem.

from chat-application.

fxratnam avatar fxratnam commented on August 21, 2024

Problem is fixed!

If you use a windows 2008 r2 server :
1.Deploy eXo bundle (tomcat 6, port 8080)
2.Deploy tomcat 7
3.Setup Apache (we choose 2.2 version - check required modules)
4.Follow the installation guide in the wiki (https://github.com/exo-addons/chat-application/wiki/Two-Servers-Mode)
(Step 5 concerns Apache and his httpd.conf file)
5.Add "Header set Access-Control-Allow-Origin "http://www.localhost.com"" in your httpd.conf file
6.Check your firewall rules (open 80 and 8280 port)

7.Start tomcat7 first, then eXo

Thank you Benjamin for your help.
Issue can be closed :)

FX

from chat-application.

benjp avatar benjp commented on August 21, 2024

Thanks for your feedback,

I updated the wiki installation page accordingly : https://github.com/exo-addons/chat-application/wiki/Two-Servers-Mode

from chat-application.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.