I have a spring-boot application which works with a rabbitmq running on the same server. Had no problem until I had to add log4j2 dependencies to my project and I kept getting `access to vhost '/' refused for user 'guest': vhost '/' is down ` error.
After checking the rabbit server status, making sure it's up and running and the given vhost exists,and playing around with different dependencies, I noticed the error only happens after inserting the log4j2 dependencies.
*** When I use a rabbitmq installed on a different server, the error is gone and the program works fine. But I need to have them both on the same server and I'm absolutely clueless why this error happens and how should I fix it. Also trying out different versions and respecting the version compatibility between them was no help either.
I have to note that log4j2 is crusial for one of the components of the project and I don't have the option of replacing it.
here are the dependencies which I assume are conflicting:
Rabbitmq
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-amqp</artifactId>
<version>1.7.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-rabbit</artifactId>
<version>1.7.0.RELEASE</version>
</dependency>
Logging
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.10.0</version>
</dependency>
and here is the dependency which I think may be related:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>1.5.1.RELEASE</version>
</dependency>
I would really apprecieate it if you helped me out with this situation. Thank you in advance!