[SOLVED] Standard emoticons not rendered
Asked by StefanN:

I have a fresh Confluence 6.3 install (official Docker image) and when I edit a page and want to insert new emoticons, I can't see any pictograms/images. Tried it with three browsers - the images are always missing.

Screenshots:

![safari.png](https://community.atlassian.com/t5/image/serverpage/image-id/4825i406EE4D02033AEAF/image-size/large?v=v2&px=999 "safari.png")![firefox.png](https://community.atlassian.com/t5/image/serverpage/image-id/4828i3524A4081200E812/image-size/large?v=v2&px=999 "firefox.png")![chrome.png](https://community.atlassian.com/t5/image/serverpage/image-id/4826i758388B8A7B76C97/image-size/large?v=v2&px=999 "chrome.png")![page.png](https://community.atlassian.com/t5/image/serverpage/image-id/4827i080F3B824AF19CCA/image-size/large?v=v2&px=999 "page.png")

Thanks!

UPDATE:

The isssue is solved now. User error :/

Since I am using Docker, I have created a docker-compose.yaml file. The relevant part looks like this:

```
version: '2'services:  confluence:    image: atlassian/confluence-server:6.3    restart: always    ports:      - "127.0.0.1:8090:8090"    depends_on:      - postgres    volumes:      - confluence-data:/var/atlassian/application-data/confluence      - /opt/docker/mount/confluence-cfg-mount/server.xml:/opt/atlassian/confluence/conf/server.xml      - /opt/docker/mount/confluence-cfg-mount/server.xml:/opt/atlassian/confluence/conf/web.xml
```

As you can see the last line mounts the \*contents\* of server.xml into the web.xml file. Confluence rightly complains about a directive missing - well the entire web.xml was missing but ok:

23-Aug-2017 16:14:52.643 SEVERE \[localhost-startStop-1\]org.springframework.web.servlet.DispatcherServlet.initServletBean Context initialization failed  
confluence_1 \| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultServletHandlerMapping' defined in class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[org.springframework.web.servlet.HandlerMapping\]: Factory method 'defaultServletHandlerMapping' threw exception; nested exception is java.lang.IllegalStateException: Unable to locate the default servlet for serving static content. Please set the 'defaultServletName' property explicitly.

The weird thing though is that I did edit the web.xml file before because I changed the session timeout. I don't understand how Confluence was able to change my session timeout even though the web.xml file had the wrong contents...

However, if anybody else stumbles over this - you're welcome. Thank you all for your help. Special thanks to Ann for her dedication and perseverence :)


Answers:
author: AnnWorley
body: The screenshots you linked indicate that your Confluence instance must be integrated with [HipChat](https://www.hipchat.com/) to make the emoticons available. Here is the guide for linking the two applications: [Use HipChat and Confluence together](https://confluence.atlassian.com/doc/use-hipchat-and-confluence-together-678561679.html)

comments: author: StefanN
body: I just want the standard emoticons, nothing else.

According to Atlassian's reponse via Twitter, this should work without HipChat integration:

<https://twitter.com/nicolinux/status/896504683069681664>


author: Thomas Schlegel
body: Standard Emoticons should be no problem at all.

Could you please add your screenshot in the community, because from my working place, I am not allowed to look at the imgur.com-site.


author: StefanN
body: done


author: Thomas Schlegel
body: what happens, if you just type (/) on your confluence page?

It should change immediately to:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/4830i33D10781BC0A0C9D/image-size/large?v=v2&px=999 "image.png")


author: StefanN
body: It doesn't - that's why I have the slight suspicion that something is broken :)

Right after typing it the following happens:

in Chrome:

![chrome.png](https://community.atlassian.com/t5/image/serverpage/image-id/4831i8ACDFF2B3E2BE303/image-size/large?v=v2&px=999 "chrome.png")

in Safari:

![safari.png](https://community.atlassian.com/t5/image/serverpage/image-id/4832iEAA0E31C517DF42A/image-size/large?v=v2&px=999 "safari.png")


author: Thomas Schlegel
body: thanks for the screenshots. It looks like Confluence can't reach the emoji images on its server. Could you please have a look at the url, where your page tries to load the image?

Maybe a full reindex might also help.


author: StefanN
body: Started a search re-index but it didn't help.

I tried to access a direct image url:

<http://myserver/cf/s/en_GB/7202/2b917bf474320363b63231a29396d24a46356543/_/images/icons/emoticons/smile.png>

But then I get a Java Nullpointer exception:

![lovely_java.png](https://community.atlassian.com/t5/image/serverpage/image-id/4835i4A0B063CC74E51A0/image-size/large?v=v2&px=999 "lovely_java.png")

As I mentioned, this is a fairly straightforward setup with the default Docker image. I did import some space, but this problem existed even before importing stuff.

Here is my nginx proxy conf:

```
user nginx;
worker_processes 1;

#error_log /dev/null; 
error_log /var/log/nginx/error.log warn;

pid /var/run/nginx.pid;


events {
 worker_connections 1024;
}

http {
 include /etc/nginx/mime.types;
 default_type application/octet-stream;

 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
 '$status $body_bytes_sent "$http_referer" '
 '"$http_user_agent" "$http_x_forwarded_for" "$proxy_host"';

 access_log /dev/null;
 #access_log /var/log/nginx/access.log main;

 #sendfile on;
 #tcp_nopush on;

 keepalive_timeout 600;
 proxy_connect_timeout 600;
 proxy_send_timeout 600;
 proxy_read_timeout 600;

 gzip on;

 include /etc/nginx/conf.d/*.conf;

 server {
 listen 80 default_server;
 server_name myserver;
 location /cf {
 proxy_set_header X-Forwarded-Host $host:$server_port;
 proxy_set_header X-Forwarded-Server $host;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
 proxy_pass http://confluence:8090/cf;
 client_max_body_size 500M;
 }

 location / {
 proxy_set_header X-Forwarded-Port $server_port;
 proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
 proxy_set_header Host $http_host;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_pass http://pihole;
 }
 }
}
```


author: AnnWorley
body: [@StefanN](/t5/user/viewprofilepage/user-id/597430) Sorry I misunderstood earlier.

What if you bypass the proxy to access the instance?

Please also check the permissions on the file system to make sure the user running Confluence can access the images.


author: Thomas Schlegel
body: I compared your url with an url from my system's thumbs_up.png

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/4837i912F6E70BFE4185F/image-size/large?v=v2&px=999 "image.png")

What happens, if you remove the "cf" part from the URL?

But anyway, I think, you have to contact [Atlassian Support](https://support.atlassian.com/contact/#/) with this problem.

They can take a deeper look into the problem. You can then refer to this ticket, so you don't have to explain it all again.

Sorry, I couldn't help, good luck :-)


author: StefanN
body: Tried to remove the "cf" part from the URL, now no image can be found.

Sadly I can't contact Atlassian Support because I am on the starter license and they killed official support for that a few weeks ago :(

Help me Atlassian Community, you're my only hope :)


author: AnnWorley
body: Thanks very much for your input, Thomas. Stefan's license makes him eligible for support here in the Community. He cannot open a ticket but I will be happy to take a deeper look here.


author: StefanN
body: [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) exactly...

Permissions are fine - just checked. As I said this is the **default**Docker image made by Atlassian. If the permissions were off, then every other Confluence instance powered by that image would have broken standard emoticons.

I accessed the confluence server on port 8090 via an ssh tunnel (server is headless...) and I have the same problem. So it is not related to the nginx proxy server.


author: AnnWorley
body: Though you didn't upgrade, the symptoms are similar to what is described in: [Broken avatars/icons in Confluence after an upgrade due to corrupted cache](https://confluence.atlassian.com/confkb/broken-avatars-icons-in-confluence-after-an-upgrade-due-to-corrupted-cache-329974322.html?_ga=2.218539409.988272008.1502719224-1644628443.1501522115)

Please try the resolutions in that article. I look forward to hearing how it goes.


author: StefanN
body: Nope, still no luck. I performed all steps mentioned there and double-checked that I have set the correct context path as detailed here (Notes section at the bottom):

<https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html>


author: StefanN
body: One remark - I am \*not\* using https though, just plain http.


author: AnnWorley
body: You should receive an email from our support portal shortly; it's me asking for logs. :)


author: AnnWorley
body: [@StefanN](/t5/user/viewprofilepage/user-id/597430) I am happy the issue was resolved and appreciate your circling back to let the Community know. Also, thanks for the kind words. :)


author: Sasi Kumar
body: [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) [@StefanN](/t5/user/viewprofilepage/user-id/597430) I started to face the same issue after upgrading to confluence 6.15.2. Can you please provide the resolution here, so that others can benefit from it.