title: Am having an issue deploying Spring boot 2.2.1 solution on Websphere 8.5.5.16
body: <p>[2/24/20 12:20:41:747 EAT] 00000075 SystemErr     R Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: Unable to start web server&amp;#59&#59; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name &amp;#39&#59;webSecurityConfig&amp;#39&#59;: Unsatisfied dependency expressed through field &amp;#39&#59;userDetailsService&amp;#39&#59;&amp;#59&#59; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name &amp;#39&#59;userDetailsServiceImpl&amp;#39&#59;: Unsatisfied dependency expressed through field &amp;#39&#59;userRepo&amp;#39&#59;&amp;#59&#59; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &amp;#39&#59;userRepo&amp;#39&#59;: Post-processing of merged bean definition failed&amp;#59&#59; nested exception is java.lang.NoSuchMethodError: javax/persistence/PersistenceContext.synchronization&amp;#40&#59;&amp;#41&#59;Ljavax/persistence/SynchronizationType&amp;#59&#59; &amp;#40&#59;loaded from file:/C:/Program Files &amp;#40&#59;x86&amp;#41&#59;/IBM/WebSphere/AppServer/plugins/javax.j2ee.persistence.jar by org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@cdc1acc9&amp;#41&#59; called from class org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement &amp;#40&#59;loaded from file:/C:/Program&amp;#37&#59;20Files&amp;#37&#59;20&amp;#40&#59;x86&amp;#41&#59;/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/myserverNode01Cell/mcomm-0_0_1-SNAPSHOT_war.ear/mcomm-0.0.1-SNAPSHOT.war/WEB-INF/lib/spring-orm-5.2.1.RELEASE.jar by 
  com.ibm.ws.classloader.CompoundClassLoader@e9512a60[war:mcomm-0_0_1-SNAPSHOT_war/mcomm-0.0.1-SNAPSHOT.war]</p>
  
  <p>My Repository</p>
  
  <p>public interface UserRepo extends JpaRepository{</p>
  
  <pre><code>User findByUsername(String username);
  
  List&lt;User&gt; findByApprovedAndDeletedAndDeleteApproved(Boolean approved,Boolean deleted,Boolean deleteapproved);
  
  List&lt;User&gt; findByDeletedAndDeleteApproved(Boolean deleted,Boolean deleteapproved);
  
  @Procedure
  public void ADD_PASSWORD_HISTORY(Long id, String passwd);
  @Procedure
  public int SP_CHECK_PASS_REUSE(Long usrid, String passwd);
  @Procedure
  public void UN_EDIT_PASSWORD(Long id);
  </code></pre>
  
  <p>}</p>
  
  <p>My Service</p>
  
  <p>@Service
  public class UserDetailsServiceImpl implements UserDetailsService {</p>
  
  <pre><code>@Autowired
  private UserRepo userRepo=null;
  
  public UserDetails loadUserByUsername(String username){     
      User user = userRepo.findByUsername(username);
      if(user==null){
          throw new UsernameNotFoundException("Username not found");
      }
  
      return new org.springframework.security.core.userdetails.User(user.getUsername(),user.getPassword(),
              true,true,true,true,getGrantedAuthorities(user));
  }
  
  private List&lt;GrantedAuthority&gt; getGrantedAuthorities(User user){
      List&lt;GrantedAuthority&gt; authorities = new ArrayList&lt;GrantedAuthority&gt;();
      for(GrantedAuthority roles : user.getAuthorities()){    
          authorities.add(new SimpleGrantedAuthority(((Role) roles).getName()));
      }
      return authorities;
  }
  </code></pre>
  
  <p>}</p>