Tutorial with mongodb

I’m pretty new to the whole Java ee env, so I’m sorry for the trivial questions:

  • In Eclipse I have Wildfly 14 as runtime environment. It is configured with a port offset because I have an NVIDIA gpu service running on 9990. I tried to build your project with

mvn clean install -s settings-example.xml

but I get the error:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.882 sec <<< FAILURE! - in org.hibernate.ogm.demos.ogm101.part3.rest.PersonsIT
org.hibernate.ogm.demos.ogm101.part3.rest.PersonsIT  Time elapsed: 1.88 sec  <<< ERROR!
org.jboss.arquillian.container.spi.client.container.LifecycleException: The port 9990 is already in use. It means that either the server might be already running or there is another process using port 9990.

so I assume maven didn’t target that Server, but your project uses some kind of embedded Wildfly 13, am I wrong? In this case I’m not clear where can I change the port…

  • which are the downsides of using Hibernate-ogm with Tomcat and not Widlfly? The final aim for me is to integrate some Mongodb capabilities (with Hibernate-ogm which have an API pretty similar to JPA) in an existing project which already uses JPA with mysql and runs on Tomcat.

Note: please, if you have some time to waste for me, answer each point in detail. It would be greatly appreciated, as I said I’m facing all kind of issues in Java ee, since I’m not that experieced, so any information is useful.