{"action":"created","issue":{"url":"https://api.github.com/repos/mitre/HTTP-Proxy-Servlet/issues/50","labels_url":"https://api.github.com/repos/mitre/HTTP-Proxy-Servlet/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/mitre/HTTP-Proxy-Servlet/issues/50/comments","events_url":"https://api.github.com/repos/mitre/HTTP-Proxy-Servlet/issues/50/events","html_url":"https://github.com/mitre/HTTP-Proxy-Servlet/issues/50","id":63434519,"number":50,"title":"ClassNotFoundException org.apache.http.conn.ClientConnectionManager","user":{"login":"cd0304","id":4621477,"avatar_url":"https://avatars.githubusercontent.com/u/4621477?v=3","gravatar_id":"","url":"https://api.github.com/users/cd0304","html_url":"https://github.com/cd0304","followers_url":"https://api.github.com/users/cd0304/followers","following_url":"https://api.github.com/users/cd0304/following{/other_user}","gists_url":"https://api.github.com/users/cd0304/gists{/gist_id}","starred_url":"https://api.github.com/users/cd0304/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cd0304/subscriptions","organizations_url":"https://api.github.com/users/cd0304/orgs","repos_url":"https://api.github.com/users/cd0304/repos","events_url":"https://api.github.com/users/cd0304/events{/privacy}","received_events_url":"https://api.github.com/users/cd0304/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-21T17:42:55Z","updated_at":"2015-03-23T15:44:59Z","closed_at":null,"body":"when i use tomcat 6 run the serverlet, it throw this error\r\n\r\nwhy?\r\n\r\n\r\n\r\n\r\nServlet /gdds threw load() exception\r\njava.lang.ClassNotFoundException: org.apache.http.conn.ClientConnectionManager\r\n\tat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)\r\n\tat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)\r\n\tat java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)\r\n\tat java.lang.Class.getDeclaredConstructors0(Native Method)\r\n\tat java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)\r\n\tat java.lang.Class.getConstructor0(Class.java:2699)\r\n\tat java.lang.Class.newInstance0(Class.java:326)\r\n\tat java.lang.Class.newInstance(Class.java:308)\r\n\tat org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)\r\n\tat org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)\r\n\tat org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)\r\n\tat org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)\r\n\tat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)\r\n\tat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)\r\n\tat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)\r\n\tat org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)\r\n\tat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)\r\n\tat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)\r\n\tat org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)\r\n\tat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)\r\n\tat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)\r\n\tat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)\r\n\tat org.apache.catalina.core.StandardHost.start(StandardHost.java:785)\r\n\tat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)\r\n\tat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)\r\n\tat org.apache.catalina.core.StandardService.start(StandardService.java:519)\r\n\tat org.apache.catalina.core.StandardServer.start(StandardServer.java:710)\r\n\tat org.apache.catalina.startup.Catalina.start(Catalina.java:581)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)\r\n\tat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)\r\n\r\n\r\nmy web.xml:\r\n<servlet>\r\n    <servlet-name>solr</servlet-name>\r\n    <servlet-class>org.mitre.dsmiley.httpproxy.ProxyServlet</servlet-class>\r\n    <init-param>\r\n      <param-name>targetUri</param-name>\r\n      <param-value>http://solrserver:8983/solr</param-value>\r\n    </init-param>\r\n    <init-param>\r\n      <param-name>log</param-name>\r\n      <param-value>true</param-value>\r\n    </init-param>\r\n     <load-on-startup>1</load-on-startup>\r\n</servlet>\r\n<servlet-mapping>\r\n  <servlet-name>solr</servlet-name>\r\n  <url-pattern>/solr/*</url-pattern>\r\n</servlet-mapping>"},"comment":{"url":"https://api.github.com/repos/mitre/HTTP-Proxy-Servlet/issues/comments/85055610","html_url":"https://github.com/mitre/HTTP-Proxy-Servlet/issues/50#issuecomment-85055610","issue_url":"https://api.github.com/repos/mitre/HTTP-Proxy-Servlet/issues/50","id":85055610,"user":{"login":"cd0304","id":4621477,"avatar_url":"https://avatars.githubusercontent.com/u/4621477?v=3","gravatar_id":"","url":"https://api.github.com/users/cd0304","html_url":"https://github.com/cd0304","followers_url":"https://api.github.com/users/cd0304/followers","following_url":"https://api.github.com/users/cd0304/following{/other_user}","gists_url":"https://api.github.com/users/cd0304/gists{/gist_id}","starred_url":"https://api.github.com/users/cd0304/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cd0304/subscriptions","organizations_url":"https://api.github.com/users/cd0304/orgs","repos_url":"https://api.github.com/users/cd0304/repos","events_url":"https://api.github.com/users/cd0304/events{/privacy}","received_events_url":"https://api.github.com/users/cd0304/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T15:44:59Z","updated_at":"2015-03-23T15:44:59Z","body":"Have find the problem reason:\r\nhead : JSESSIONID=593D1F7AA0AEB81B6081F1E394ADFEFE; Path=/education/; HttpOnly\r\nso , the code :  cookies = HttpCookie.parse( header.getValue());\r\n\r\nthis will throw error in jdk 1.6 ,but with jdk1.8 ,it is ok\r\n\r\n\r\ni find this is broblem because the HttpOnly , when i remove HttpOnly, everything is ok.\r\n\r\nmy fix code :       in ProxyServlet.java ->copyProxyCookie  line 448\r\n\r\nString str = header.getValue();\r\nStringBuilder buf = new StringBuilder();\r\nString[] str =  str.split(\";\");\r\nfor(String tem :str) {\r\n    if(!tem.equals(\"HttpOnly\")) {\r\n    buf.append(tem);\r\nbuf.append(\";\");\r\n    }\r\n}\r\nList<HttpCookie> cookies = HttpCookie.parse(buf.toSting());\r\n\r\n\r\nhave There's a better way?"}}