Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Compiling jsp

Just to confirm: with the standard jetty 9.1.2 distro, using
jre1.7.0_25 and setting
-Dorg.apache.jasper.compiler.disablejsr199=true in start.ini the jsps
compile on-the-fly just fine using the ecj-jdt compiler in lib/jsp.

The relevant code in the jsp implementation looks for the following,
so try printing these out in a servlet to verify their values:
 System.getProperty("java.specification.version"));
 System.getProperty("org.apache.jasper.compiler.disablejsr199")
//should be true
 Class.forName("org.eclipse.jdt.internal.compiler.Compiler", false,
getClass().getClassLoader()); //should load
 Class.forName("org.apache.jasper.compiler.JDTJavaCompiler", false,
getClass().getClassLoader()); //should load

Jan

On 15 February 2014 00:31, Andrea Cappelli <a.cappelli@xxxxxxxxx> wrote:
> Il 14/02/2014 14:12, Joakim Erdfelt ha scritto:
>
> Your upstart says ...
>
> JAVA="/usr/lib/jvm/java-1.7.0-oracle/bin/java"
>
> However, Jetty is actually running with ...
>
>  java.home = /usr/lib/jvm/jdk1.7.0_45/jre
>
>
> Uhm, you are right, but the 2 installation are the same (there is a symlink)
>
> ls -la /usr/lib/jvm/
>
> lrwxrwxrwx  1 root root    11 Nov 25 09:25 java-1.7.0-oracle -> jdk1.7.0_45
> drwxr-xr-x  8 root root  4096 Oct  8 15:03 jdk1.7.0_45
>
>
>
> Also, make sure your upstart configures JAVA_HOME and puts your selection of
> java first on the path (aka PATH=$JAVA_HOME/bin:$PATH)
>
>
> Ok, thank you
>
> --
> Andrea Cappelli
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



-- 
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'


Back to the top