As this thread shows, there seems to be an issue getting JSPs to compile in GWT hosted mode with the new Jetty server:
2. ERROR in /tmp/Jetty_0_0_0_0_8080_war____ut4fm1/jsp/org/apache/jsp/ test_jsp.java (at line 53) new java.util.ArrayList<String>(); ^^^^^^ Syntax error, parameterized types are only available if source level is 1.5
Does anyone have a workaround? It's possible that this commit might be related. I don't know what equivalent to org.eclipse.jdt.core.JDTCompilerAdapter
should be used for building outside of Eclipse (e.g. on the command line). This is a real blocker for us adopting GWT 1.6, so any pointers are highly appreciated.
This problem is generated by the default values used by JspServlet, which compiles using 1.4 for source/target values.
You can cofigure this servlet by adding
<servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>compilerSourceVM</param-name> <param-value>1.5</param-value> </init-param> <init-param> <param-name>compilerTargetVM</param-name> <param-value>1.5</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet>
I described the solution at http://code.google.com/p/raisercostin/wiki/GwtEclipsePluginDebug too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With