How to SSL enable my web application?
===

I've put the following code in the server.xml file for tomcat:

    <Connector SSLEnabled="true" clientAuth="false"
    	keystoreFile="D:\keystore.jks" keystorePass="****" maxThreads="150"
    	port="8443" protocol="HTTP/1.1" scheme="https" secure="true"
    	sslProtocol="TLS" />

I have a spring-mvc based web application. But when I try to deploy my app, I get the following error:

    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\Eclipse Workspaces\RPM\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\RPM\WEB-INF\classes\com\rpm\controller\AdminController.class]; nested exception is java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")

My web.xml looks like this

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    	id="WebApp_ID" version="3.0">
    	<display-name>RPM</display-name>
    	<welcome-file-list>
    		<welcome-file>admin</welcome-file>
    	</welcome-file-list>
    	<servlet>
    		<servlet-name>dispatcher</servlet-name>
    		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>dispatcher</servlet-name>
    		<url-pattern>/</url-pattern>
    	</servlet-mapping>
    	<security-constraint>
    		<web-resource-collection>
    			<web-resource-name>RPM</web-resource-name>
    			<url-pattern>/*</url-pattern>
    		</web-resource-collection>
    		<user-data-constraint>
    			<transport-guarantee>CONFIDENTIAL</transport-guarantee>
    		</user-data-constraint>
    	</security-constraint>
    </web-app>



