context.addApplicationListener( new ApplicationListener( ContextLoaderListener.class.getName(), false ) );
tomcat.addServlet( context, "cxf", new CXFServlet() );
context.addServletMapping( "/" + getRestServicesPath() + "/*" , "cxf" );
tomcat.addServlet( context, "archivarepo", new RepositoryServlet() );
context.addServletMapping( "/repository/*" , "archivarepo" );
tomcat.start();
port = tomcat.getConnector().getLocalPort();