Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty OSGI with JSP support - Missing Constraint

Ah, the org.eclipse.jetty.toolchain/jetty-jsp-fragment/2.3.3 dependency
from earlier in the thread resolved my problem. I built a small test
project this morning and was able to get it working.


On 12/11/13 11:41 PM, "Jan Bartel" <janb@xxxxxxxxxxx> wrote:

>Do you have any older jsp or servlet-api jars in the dependencies of
>your webapp? Also double-check the version of the jetty-maven-plugin -
>if its not correct, then maven falls back to some really old version.
>BTW the non-osgi jsp impl jar will always use a full JDK and thus
>expect to find a compiler in the jvm. It doesn't fall back to the jdt
>On 11 December 2013 04:56, Stuart Belden <sbelden@xxxxxxxxxxxxx> wrote:
>> I have this same issue, but not in a OSGi container: I'm running via the
>> maven jetty plugin.
>> Only change was going from Jetty 9.0.6.v20130930 to 9.1.0.v2013111. I am
>> definitely running on a JDK, Oracle 7u45. Adding
>> -Dorg.apache.jasper.compiler.disablejsr199=false doesn't seem to work
>> either. Anyone else seen this?
>> (apologies for the wonky email thread, I just subscribed to this list).
>> For context:
>> ---
>> 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"),
>> the JDK built-in compiler is used (Jasper looks for ""
>> class),
>> Next, if neither of those are found, the
>> "" 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
>> little insight into the process will help you address it directly.
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@xxxxxxxxxxx
>Jan Bartel <janb@xxxxxxxxxxx>
>'Expert Jetty/CometD developer,production,operations advice'
>jetty-users mailing list

Back to the top