title: Websphere Liberty- java.lang.NoClassDefFoundError: com.ibm.websphere.ssl.SSLException
body: <p>I am getting the following error while instantiating a web application on WebSphere Liberty beta. The application starts successfully on WebSphere Application Server 8.5.5</p>
  
  <pre><code>Caused by: java.lang.NoClassDefFoundError: com.ibm.websphere.ssl.SSLException
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:93)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:91)
      at java.lang.J9VMInternals.prepare(J9VMInternals.java:490)
      at java.lang.Class.getDeclaredConstructors(Class.java:553)
      at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:231)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1002)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:975)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
      at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2381)
      ... 1 more
  </code></pre>
  
  <p>Please provide any pointers that could help me resolve this. Here is server.xml for liberty server:</p>
  
  <pre><code>&lt;server description="new server"&gt;
  
      &lt;!-- Enable features --&gt;
  
  
      &lt;!-- To access this server from a remote client add a host attribute to 
          the following element, e.g. host="*" --&gt;
  
      &lt;featureManager&gt;
          &lt;feature&gt;beanValidation-1.1&lt;/feature&gt;
          &lt;feature&gt;jdbc-4.0&lt;/feature&gt;
          &lt;feature&gt;jaxb-2.2&lt;/feature&gt;
          &lt;feature&gt;localConnector-1.0&lt;/feature&gt;
          &lt;feature&gt;jaxws-2.2&lt;/feature&gt;       
          &lt;feature&gt;distributedMap-1.0&lt;/feature&gt;   
  
          &lt;feature&gt;servlet-3.0&lt;/feature&gt;
          &lt;feature&gt;ssl-1.0&lt;/feature&gt;
      &lt;/featureManager&gt;
       &lt;include location="GeneratedSSLInclude.xml"/&gt;
  
      &lt;httpEndpoint httpPort="9081" httpsPort="9444" id="defaultHttpEndpoint"/&gt;
  
      &lt;logging consoleLogLevel="INFO" traceSpecification="javax.validation *=info:javax.validation.*=finest"/&gt;
      &lt;library id="JAX-RS2"&gt;
          &lt;fileset dir="C:\workspace_eclipse\JAX-RS2\lib" includes="*.jar" scanInterval="5"/&gt;
  
      &lt;/library&gt;
  
      &lt;applicationMonitor updateTrigger="mbean"/&gt;
  
      &lt;enterpriseApplication id="ProductServiceEAR" location="ProductServiceEAR-1.0.ear" name="ProductServiceEAR"&gt;
       &lt;classloader privateLibraryRef="JAX-RS2"/&gt;
      &lt;/enterpriseApplication&gt;
  
  
       &lt;keyStore id="defaultKeyStore" password="{xor}AXnKzg6TSmwMw=="/&gt; --&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>EDIT: The exception is thrown while generating spring jax-ws client bean. My application-context.xml file for the webservice client looks like:</p>
  
  <pre><code>&lt;bean id="searchWebServiceClient"
          class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean"&gt;
          &lt;property name="serviceInterface"
              value="au.com.test.search.SearchWebServiceClient" /&gt;
          &lt;property name="wsdlDocumentUrl" value="classpath:/ServiceSchemas/involvedPartyManagement/involvedPartyManagement/SearchWebService_v2.wsdl" /&gt;
          &lt;property name="namespaceUri"
              value="http://www.test.com.au/gn/involvedPartyManagement/services/SearchWebService/v2/WS0234" /&gt;
          &lt;property name="serviceName"
              value="SearchWebService" /&gt;
          &lt;property name="endpointAddress" value="${WS0234v2}" /&gt;     
      &lt;/bean&gt;
  </code></pre>