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.

Thanks!
stu

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

>Stuart,
>
>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
>compiler.
>
>thanks
>Jan
>
>
>
>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"),
>>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
>>
>
>
>
>-- 
>Jan Bartel <janb@xxxxxxxxxxx>
>www.webtide.com
>'Expert Jetty/CometD developer,production,operations advice'
>_______________________________________________
>jetty-users mailing list
>jetty-users@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top