I\'m a newbie with maven, spring, embedded glassfish, dependency conflicts ( I don\'t know how to see them and how to solve them)... and I can\'t fix this problem alone even
Try to downgrade SLF4J version. This error usually pops up when some library requires older / newer version of SLF4J.
Also make sure that if you have more than one SLF4J JAR file in classpath that they all are from the same SLF4J version (right now it seems that this is not your problem).
EDIT: I overlooked that it is embedded glassfish-only problem. I don't use Glassfish, but the problem will be with mixing different versions of SLF4J. See which SLF4J version Glassfish uses and use the same.
older question, but worth answering anyway... In eclipse, open the pom.xml file from the project. When it opens, select the Dependency Hierarchy tab at the bottom. In here you will see what is loading and where it is being called from. In the search filter, type the name (or part of the name) of the dependency that you think is in conflict, for example you could put in "slf4j" and see all the dependencies that depend on slf4j for logging. If you right click on any dependency, you can choose to exclude it in the pom file. When you save the pom.xml file, you will see the Dependency Hierarchy change. You can test your application again and see if you solved your problem, or excluded the wrong version, etc.
The only caveat to this is that if you want to put the dependency that you excluded back in, you need to switch to the "pom.xml" tab at the bottom and find the code that looks like this and delete it:
<exclusions>
<exclusion>
<artifactId>[artifactId of what you removed]</artifactId>
<groupId>[groupId of what you removed]</groupId>
</exclusion>
</exclusions>
Changes take place when you save the pom.xml file.