Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] The Development LifeCycle

Hi,

Jars that are in ${jetty.base}/lib are not automatically on the
classpath. This is controlled by the module system. If you enable
ext.mod and move your jar into ${jetty.base}/lib/ext, then that module
will put all jars in ${jetty.base}/lib/ext onto the server's
classpath.

Jan

On 1 July 2015 at 14:21, Сидоров Михаил <mihamix@xxxxxxxxx> wrote:
> Hello!
>
> I am trying deploy a lifecycle on jetty 9 (jetty-9.2.10.v20150310) and want to use my extended AppLifeCycle class - app.jls.AppLifeCycle. My class belongs to AppLib.jar (in directory $(jetty.base)/lib).
>
> In $(jetty.base)/etc/jetty-deploy.xml i have copied file from $(jetty.home)/etc/jetty-deploy.xml. Then i added records:
>
> <!-- Add a customize step to the deployment lifecycle -->
> <!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class -->
> <Call name="insertLifeCycleNode">
> <Arg>deployed</Arg>
> <Arg>starting</Arg>
> <Arg>customise</Arg>
> </Call>
> <Call name="addLifeCycleBinding">
> <Arg>
> <New class="app.jls.AppLifeCycle">
> </New>
> </Arg>
> </Call>
>
> By starting jetty throws an exception, that caused by java.lang.ClassNotFoundException: app.jls.AppLifeCycle and then jetty stop.
>
> I am new in Jetty. Help me start my Lifecycle.
> Many thanks in advance.
>
> P.S. My application contains two parts: app.jls.AppLifeCycle (in directory $(jetty.base)/lib/AppLib.jar) and WebServerApp.war that is in directory $(jetty.base)/webapps.
> The second part (WebServerApp.war) deploys fine.
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users



-- 
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert assistance from the creators of Jetty and CometD'


Back to the top