On 22/07/2020 11:18, Chirag Dewan wrote: > Hi, > > Due to some backward compatibility concerns, I need to support both > Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded > tomcat which runs inside a JVM application. > > Since, Jersey-1 and Jersey-2 have different JAXRS versions, I tried to > remove both jsr311 and javax.ws.rs-2 from my JVMs classpath. And instead > packaged these in the WAR/WEB-INF\lib along with jersey version specific > jars like jersey-core-1.x, jersey-common-2.x etc. > > Now when I start my Jersey-1 application, it couldn't find > javax.ws.rs.ext.MessageBodyReader. > > I read Classloader HOW-TO and although it says that the order of loading > JavaEE classes is bootstrap first, it never says anything about WEB-INF as > a source for these jars. > > So if there any way I can load javax.* classes from WEB-INF\lib?
Tomcat version? Different Tomcat versions have taken different approaches to implementing this requirement. A recent(ish) implementation should be fine but with the exact version number we can give a better answer. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org