Thank you, JB! I will give it a try. Best Oleg
Sent from my iPhone > On Oct 1, 2018, at 11:57 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > > Hi Oleg, > > You can add at Karaf level (in the startup) or via dynamic-import on pax > web. > > Regards > JB > >> On 01/10/2018 17:44, Oleg Cohen wrote: >> Thank you, JB! >> >> In my case it is pax-web that can’t find the class, so I guess I need to add >> to ext lib. How can I add it? Should I do it at the JDK level or it is a >> mechanism in Karaf? >> >> Thank you, >> Oleg >> >>> On Oct 1, 2018, at 11:33 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: >>> >>> Hi Oleg, >>> >>> Correct, javax.annotation is available up to Java 10 (and even using >>> Java 10, the javax.annotation package has been splitted). >>> >>> When using Java 11, you have to explicitly install either jsr305 or >>> javax.annotation jar files (it could be as private package of your >>> bundle, or ext lib). >>> >>> Regards >>> JB >>> >>>> On 01/10/2018 17:14, Oleg Cohen wrote: >>>> Greetings, >>>> >>>> I am trying to run my Karaf application under JDK 11. I am getting the >>>> following exception: >>>> >>>> Caused by: java.lang.ClassNotFoundException: >>>> javax.annotation.PostConstruct cannot be found by >>>> org.ops4j.pax.web.pax-web-jsp_7.2.3 >>>> >>>> It appears that the jigsaw module providing this package is not available >>>> in JDK 11. The suggestion is to use a dependency. >>>> >>>> Wondering if anybody ran into this and what a solution/workaround might be. >>>> >>>> Thank you! >>>> Oleg >>>> >>> >>> -- >>> Jean-Baptiste Onofré >>> jbono...@apache.org >>> http://blog.nanthrax.net >>> Talend - http://www.talend.com >>