Thanks Joakim, that set me on the right trail.
I found that org.eclipse.jetty.osgi.boot.jsp fragment activator set org.apache.jasper.compiler.disablejsr199=true
So I followed through expecting it would need to find both, org.eclipse.jdt.internal.compiler.Compiler and org.apache.jasper.compiler.JDTJavaCompiler
I found that the .jasper.compiler.JDTJavaCompiler was not in the org.glassfish.web.javax.servlet.jsp bundle, but in a separate JAR in Jetty lib/jetty-jsp-jdt-2.3.3.jar
I also found that the jdt packages were not imported by
org.glassfish.web.javax.servlet.jsp (they are exported by org.eclipse.jdt.core.compiler.batch).
Adding jetty-jsp-jdt-2.3.3.jar to OSGI, and fixing the jdt imports on
org.glassfish.web.javax.servlet.jsp left me with another problem ...
I got a class not found for org.glassfish.jsp.api.ResourceInjector. To fix this I added org.glassfish.jsp.api to the imports of
org.eclipse.jetty.webapp
Then success !!
There was a fair bit of messing around so I'll check over the next few days to see if I captured everything as a reference.
Thanks all for the input
J
Date: Tue, 10 Dec 2013 05:48:37 -0700
From: joakim@xxxxxxxxxxx
To: jetty-users@xxxxxxxxxxx
Subject: Re: [jetty-users] Jetty OSGI with JSP support - Missing Constraint
PWC63449: Cannot find a java compiler for compilation
Here's the Jasper logic is to find a compiler it can use.
If you do nothing, and rely on defaults, then org.eclipse.jdt.internal.compiler.Compiler is used (if found)
But if you specify System.setProperty("org.apache.jasper.compiler.disablejsr199","false"), then the JDK built-in compiler is used (Jasper looks for "javax.tools.Tool" class),
Next, if neither of those are found, the "org.apache.tools.ant.taskdefs.Javac" is looked for.
Finally, if none are found, it throws that error.
I don't use OSGi myself, so I don't know what you need to do, but maybe this little insight into the process will help you address it directly.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users