Where is the session handler located? I suspect you need to register it as a dependency of the jetty-maven-plugin (since that looks to be your usage scenario here). That would involve using <dependency> tags in the plugin decl.
But this is likely a pretty typical classloader issue. I suspect your trying to use a class that is in the project itself that your loading up the jetty-maven-plugin from and its just not exposed to the plugin classloader like that. cheers, jesse -- jesse mcconnell [email protected] On Wed, Jul 6, 2011 at 15:28, Christian2M <[email protected]> wrote: > I'm having a problem trying to register a self-implemented SessionHandler > for my Web Application. I have tried adding the session handler two ways > without success: > > 1) Modifying the pom.xml > > <extraClasspath>${basedir}/target/mywebapp/WEB-INF/classes/</extraClasspath> > <sessionHandler implementation="com.example.session.MySessionHandler"> > <sessionManager implementation="com.example.session.MySessionManager"> > </sessionManager> > </sessionHandler> > > 2) Modifying the jetty.xml > > <Set name="extraClasspath">WEB-INF/classes/</Set> > <Set name="setSessionHandler"> > <New class="org.eclipse.jetty.server.session.SessionHandler"> > <Arg> > <New class="net.synchronite.proxy.SynchroniteSessionManager" > /> > </Arg> > </New> > </Set> > > In both cases I get a ClassNotFoundException (see below). What am I missing? > > ... > Caused by: java.lang.ClassNotFoundException: > net.synchronite.proxy.SynchroniteSessionHandler > at > org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFir > stStrategy.java:50) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:2 > 44) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:2 > 30) > at > org.codehaus.plexus.component.configurator.converters.AbstractConfigurationC > onverter.getClassForImplementationHint(AbstractConfigurationConverter.java:6 > 1) > > > > > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
