{"action":"opened","issue":{"url":"https://api.github.com/repos/gwtproject/gwt/issues/9546","repository_url":"https://api.github.com/repos/gwtproject/gwt","labels_url":"https://api.github.com/repos/gwtproject/gwt/issues/9546/labels{/name}","comments_url":"https://api.github.com/repos/gwtproject/gwt/issues/9546/comments","events_url":"https://api.github.com/repos/gwtproject/gwt/issues/9546/events","html_url":"https://github.com/gwtproject/gwt/issues/9546","id":255333767,"number":9546,"title":"JSP error - SimpleInstanceManager cannot be cast","user":{"login":"SabrinaWons","id":17009796,"avatar_url":"https://avatars1.githubusercontent.com/u/17009796?v=4","gravatar_id":"","url":"https://api.github.com/users/SabrinaWons","html_url":"https://github.com/SabrinaWons","followers_url":"https://api.github.com/users/SabrinaWons/followers","following_url":"https://api.github.com/users/SabrinaWons/following{/other_user}","gists_url":"https://api.github.com/users/SabrinaWons/gists{/gist_id}","starred_url":"https://api.github.com/users/SabrinaWons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SabrinaWons/subscriptions","organizations_url":"https://api.github.com/users/SabrinaWons/orgs","repos_url":"https://api.github.com/users/SabrinaWons/repos","events_url":"https://api.github.com/users/SabrinaWons/events{/privacy}","received_events_url":"https://api.github.com/users/SabrinaWons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-05T16:19:51Z","updated_at":"2017-09-05T16:19:51Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n Please make sure your issue can be reproduced in the latest version of GWT.\r\n If possible, test in latest beta or release candidate (RC) as well.\r\n-->\r\n\r\n**GWT version: 2.8.0** \r\n\r\n---\r\n\r\n##### Description :\r\n<!-- Note: Please use gist.github.com for longer log output -->\r\nWhen trying to display a JSP, the following error is thrown :\r\n\r\n```\r\norg.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.tomcat.SimpleInstanceManager cannot be cast to org.apache.tomcat.InstanceManager\r\n\tat org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)\r\n```\r\n\r\n\r\n\r\n##### Steps to reproduce\r\n<!-- Note: You can also provide a link to a demo project that reproduces the issue -->\r\nThis error is easily reproducible :\r\n\r\n- Create a GWT project with the 2.8.0 version.\r\n- In the web.xml, define a listener :\r\n```\r\n<listener>\r\n\t<listener-class>com.example.myproject.client.MyWebAppListener</listener-class>\r\n</listener>\r\n```\r\n- In the listener, write a method (that is not even  called) that uses HttpClientBuilder and SSLConnectionSocketFactory.\r\n```\r\npackage com.example.myproject.client;\r\n\r\nimport javax.servlet.ServletContextEvent;\r\nimport javax.servlet.ServletContextListener;\r\nimport org.apache.http.conn.ssl.SSLConnectionSocketFactory;\r\nimport org.apache.http.impl.client.HttpClientBuilder;\r\n\r\npublic class MyWebAppListener implements ServletContextListener {\r\n\r\n    public void contextInitialized(ServletContextEvent sce) { /* EMPTY  */ }\r\n    public void contextDestroyed(ServletContextEvent sce) { /* EMPTY */ }\r\n\r\n    private void myMethod() {\r\n        HttpClientBuilder builder = HttpClientBuilder.create();\r\n        SSLConnectionSocketFactory ssl = new SSLConnectionSocketFactory(null);\r\n        builder.setSSLSocketFactory(ssl);\r\n    }\r\n\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"SabrinaWons"}}