Thank you Simon for your reply, I just work on a java based client implementation using the SPDY API of jetty, your test case was very helpful for me and my implementation is running, I just had an older version of the api I think this was the reason for my problems with that!
Regards Erik 2012/7/10 <[email protected]> > Send jetty-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of jetty-users digest..." > > > Today's Topics: > > 1. Re: JSP using Java 1.7? (John English) > 2. SPDY Implementation (=?UTF-8?B?RXJpayBHw7Z0dG1hbm4=?=) > 3. Re: SPDY Implementation (Simone Bordet) > 4. jsp re-compilation problem on jetty 8.1.3 (Andrea Sodomaco) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 10 Jul 2012 14:40:12 +0300 > From: John English <[email protected]> > To: JETTY user mailing list <[email protected]> > Subject: Re: [jetty-users] JSP using Java 1.7? > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I'm trying to use try-with-resources in a JSP page and have made > some progress. I've now got Jetty to use the 1.7 compiler, but > now I get this error, which I don't understand: > > HTTP ERROR 500 > > Problem accessing /times.jsp. Reason: > > PWC6033: Error in Javac compilation for JSP > > PWC6197: An error occurred at line: 6 in the jsp file: /times.jsp > PWC6199: Generated servlet error: > try-with-resources is not supported in -source 1.5 > (use -source 7 or higher to enable try-with-resources) > > Where do I need to specify "-source 7"? > > TIA, > -- > John English > > > > > ------------------------------ > > Message: 2 > Date: Tue, 10 Jul 2012 15:04:21 +0200 > From: "=?UTF-8?B?RXJpayBHw7Z0dG1hbm4=?=" <[email protected]> > To: [email protected] > Subject: [jetty-users] SPDY Implementation > Message-ID: <[email protected]> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Hi, > I hope this is the right mailinglist for that: > I started to use the SPDY API of Jetty, configured the keystore and > truststore and the ssl connection is estabished. But I don't get a good > response. If I request encrypted.google.com for example the response is: > <!DOCTYPE html> > <html lang=en> > <meta charset=utf-8> > <meta name=viewport content="initial-scale=1, minimum-scale=1, > width=device-width"> > <title>Error 400 (Bad Request)!!1</title> > <style> > *{margin:0;padding:0}html,code{font:15px/22px > > arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% > auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px > no-repeat;padding-right:205px}p{margin:11px 0 > 22px;overflow:hidden}ins{color:#777;text-decoration:none}a > img{border:0}@media screen and > > (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}} > </style> > <a href=//www.google.com/><img > src=//www.google.com/images/errors/logo_sm.gif alt=Google></a> > <p><b>400.</b> <ins>That?s an error.</ins> > <p>Your client has issued a malformed or illegal request. <ins>That?s > all we know.</ins> > > On the error logs of localhost if I request a local website with the > SPDY API: > [error] [client 127.0.0.1] [stream 1] > [1635:1643:ERROR:spdy_to_http_filter.cc(275)] Could not generate request > line from SYN_STREAM frame in stream 1 > > Maybe the headers aren't transmitted correctly? > > Regards > Erik > > > ------------------------------ > > Message: 3 > Date: Tue, 10 Jul 2012 16:20:05 +0200 > From: Simone Bordet <[email protected]> > To: JETTY user mailing list <[email protected]> > Subject: Re: [jetty-users] SPDY Implementation > Message-ID: > <CAFWmRJ3wX1fp0iv0g=d63psT7rZkho-=nniTe= > [email protected]> > Content-Type: text/plain; charset=UTF-8 > > Hi, > > On Tue, Jul 10, 2012 at 3:04 PM, Erik G?ttmann > <[email protected]> wrote: > > Hi, > > I hope this is the right mailinglist for that: > > I started to use the SPDY API of Jetty, configured the keystore and > > truststore and the ssl connection is estabished. But I don't get a good > > response. If I request encrypted.google.com for example the response is: > > [snip] > > On the error logs of localhost if I request a local website with the SPDY > > API: > > [error] [client 127.0.0.1] [stream 1] > > [1635:1643:ERROR:spdy_to_http_filter.cc(275)] Could not generate request > > line from SYN_STREAM frame in stream 1 > > > > Maybe the headers aren't transmitted correctly? > > You need to be much more clear on what you are actually doing. > Here I see logs from spdy_to_http_filter.cc which is not - of course - > Jetty's SPDY. > > What client are you using ? > > Once we know how you connect, we can help you more. > > FYI I just committed a test case that connects to encrypted.google.com > using Jetty's SPDY client: > > http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-spdy/spdy-jetty-http/src/test/java/org/eclipse/jetty/spdy/http/SSLExternalServerTest.java > > Simon > -- > http://cometd.org > http://webtide.com > Developer advice, services and support > from the Jetty & CometD experts. > ---- > Finally, no matter how good the architecture and design are, > to deliver bug-free software with optimal performance and reliability, > the implementation technique must be flawless. Victoria Livschitz > > > ------------------------------ > > Message: 4 > Date: Tue, 10 Jul 2012 16:28:00 +0200 > From: Andrea Sodomaco <[email protected]> > To: JETTY user mailing list <[email protected]> > Subject: [jetty-users] jsp re-compilation problem on jetty 8.1.3 > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > > On a production environment with jetty-distribution-8.1.3.v20120416 and > the following configuration > > <init-param> > <param-name>fork</param-name> > <param-value>false</param-value> > </init-param> > <init-param> > <param-name>development</param-name> > <param-value>false</param-value> > </init-param> > <init-param> > <param-name>checkInterval</param-name> > <param-value>120</param-value> > </init-param> > <init-param> > <param-name>keepgenerated</param-name> > <param-value>true</param-value> > </init-param> > > When the client hits the first time a jsp with a compile error (a method > that does not exist) on the error log is displayed the following error: > > SEVERE: Error compiling file: > > /tmp/jetty-127.0.0.1-1094-WebContent-_-www.mysite.it-/jsp/org/apache/jsp/contenuti_jsp.java > 2012-07-09 16:31:34.357:WARN:/:PWC6356: Background compilation failed. > org.apache.jasper.JasperException: PWC6033: Error in Javac compilation > for JSP||PWC6197: An error occurred at line: 14 in the jsp file: > /contenuti.jsp|PWC6199: Generated servlet > error:|string:///contenuti_jsp.java:62: > > includeHeader(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.servlet.jsp.JspWriter) > in it.sodomaco.turcom.AppConf cannot be applied to > > (javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)||PWC6197: > An error occurred at line: 29 in the jsp file: /contenuti.jsp|PWC6199: > Generated servlet error:|string:///contenuti_jsp.java:78: > > includeFooter(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.servlet.jsp.JspWriter) > in it.sodomaco.turcom.AppConf cannot be applied to > > (javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)|| > at > > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129) > at > > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299) > at > org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453) > at > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625) > at > > org.apache.jasper.compiler.JspRuntimeContext.checkCompile(JspRuntimeContext.java:470) > at > > org.apache.jasper.compiler.JspRuntimeContext.run(JspRuntimeContext.java:699) > at java.lang.Thread.run(Thread.java:619) > Jul 9, 2012 4:33:34 PM org.apache.jasper.compiler.Compiler generateClass > > No problem till now. > Also if this jsp is never requested again, the error is displayed again > in the stderr every 2 minitus (I think this is related to checkInterval > parameter). > I think this is a bug and the Jsp should not be recompiled if it is not > request again. > The second think is that if a remove the jsp file jetty still tries to > compile the jsp every to minutes but the error change to > > 2012-07-10 15:20:07.478:WARN:/:PWC6356: Background compilation failed. > org.apache.jasper.JasperException: PWC6117: File "/contenuti.jsp" not found > at > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:92) > at > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378) > at > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:172) > at org.apache.jasper.compiler.JspUtil.getInputStream(JspUtil.java:917) > at > > org.apache.jasper.xmlparser.XMLEncodingDetector.getEncoding(XMLEncodingDetector.java:145) > at > > org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserController.java:381) > at > > org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215) > at > > org.apache.jasper.compiler.ParserController.parse(ParserController.java:145) > at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:212) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) > at > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625) > at > > org.apache.jasper.compiler.JspRuntimeContext.checkCompile(JspRuntimeContext.java:470) > at > > org.apache.jasper.compiler.JspRuntimeContext.run(JspRuntimeContext.java:699) > at java.lang.Thread.run(Thread.java:619) > > The only way to interrupt this process is to restart jetty or replace > the jsp with a working one. > > Am I missing anything or is this a bug? > thank you in advance > Andrea > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://dev.eclipse.org/mailman/private/jetty-users/attachments/20120710/ab9f5fa2/attachment.html > > > > ------------------------------ > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > > > End of jetty-users Digest, Vol 38, Issue 6 > ****************************************** >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
