Hi,
I found the solution. as Can't access property "language",A.document is undefined - #7 by shiraz post has the same problem as this. “realtime” we have two options.
- Deactivate Realtime:
Goto>Administer Wiki>Editing>WYSIWYG Editor>Deactivated Plugins> search xwiki-realtime and select it> save. - Activate Realtime:
These steps we need to follow. Reason I found we use AJP and websockets are required by realtime. so we need to enable the http connector in tomcat10 which send the trafic of websocket to apache2 and apache2 can handle websockets.
root@xwiki:~# nano /etc/apache2/sites-enabled/default-ssl.conf
# 1. Enable Rewrite Engine
RewriteEngine on
# 2. Detect WebSocket "Upgrade" header and redirect to Tomcat HTTP port
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/xwiki/websocket/(.*) ws://127.0.0.1:8080/xwiki/websocket/$1 [P,L]
# Route WebSocket traffic to the HTTP/WS port
ProxyPass "/xwiki/websocket/" "ws://127.0.0.1:8080/xwiki/websocket/"
ProxyPassReverse "/xwiki/websocket/" "ws://127.0.0.1:8080/xwiki/websocket/"
root@xwiki:~# nano /etc/tomcat10/server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
address="127.0.0.1" />
root@xwiki:~# nano /etc/xwiki/xwiki.properties
websocket.ssl.enable = true
root@xwiki:~# nano /etc/xwiki/xwiki.cfg
xwiki.url.protocol=https
root@xwiki:~# sudo a2enmod proxy_wstunnel
Considering dependency proxy for proxy_wstunnel:
Module proxy already enabled
Enabling module proxy_wstunnel.
To activate the new configuration, you need to run:
systemctl restart apache2
root@xwiki:~# systemctl restart apache2.service
root@xwiki:~# systemctl restart tomcat10.service