MultiException stack 1 of 2 java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration

I am using Jersey and Hibernate. i previously had code is void main that worked getting the Session Factory but this has issues. I have taken sections out of the whole code to simplify.

I know the issue is something to do with the Session Factory
will add full stack trace on request, is long.

PS i’m loosely following

        INFO: Server startup in 13357 ms
        Mar 13, 2018 5:06:58 PM org.glassfish.jersey.internal.Errors logErrors
        WARNING: The following warnings have been detected: WARNING: Unknown HK2 failure detected:
        MultiException stack 1 of 2
        java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
            at com.web.CurrencyFair.endpoints.service.TradeService.<init>(
        Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
            ... 57 more
        MultiException stack 2 of 2
        java.lang.IllegalStateException: Unable to perform operation: create on com.web.CurrencyFair.endpoints.resources.JsonTradeEndpoint
            at org.jvnet.hk2.internal.ClazzCreator.create(
            at org.jvnet.hk2.internal.SystemDescriptor.create(    

segment of hibernate.cfg.xml. will extra mappings cause issues? i should just need TradeMessage, rite?

        <mapping class="com.web.CurrencyFair.endpoints.modules.TradeMessage"/> 
        <mapping class="com.web.CurrencyFair.endpoints.service.TradeService"/>
        <mapping class="com.web.CurrencyFair.endpoints.resources.JsonTradeEndpoint"/>

TradeService class

        @Produces(MediaType.APPLICATION_JSON) // ensure moxy in pom is commented in to use JSON
        public class JsonTradeEndpoint {

            TradeService tradeService = new TradeService();//intit hibernate in constructor

            public List<TradeMessage> getTradeMessage() {
            //. . .

the line that configures the buildSessionFactory is first line in error.

        public class TradeService {

             * This file provides connection to the DB for the TradeMessage object
             * */

            SessionFactory sessionFactory =  null;
            Session session = null;

            public TradeService() {
                SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
                this.sessionFactory = sessionFactory;
                this.session = sessionFactory.openSession(); 

            public List<TradeMessage> getTradeMessages(TradeMessageFilterBean filterBean){
                List<TradeMessage> queyResult = new ArrayList<>();
                //. . .
                return queryResult;