Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » The deployment lifecycle
The deployment lifecycle [message #1699752] Fri, 26 June 2015 11:00 Go to next message
Mihail Sidorov is currently offline Mihail SidorovFriend
Messages: 2
Registered: June 2015
Junior Member
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) deploy fine.


Re: The deployment lifecycle [message #1699841 is a reply to message #1699752] Sat, 27 June 2015 04:12 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/26/2015 08:53 AM, Mihail Sidorov 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) deploy fine.

Eclipse web tools platform has its own forum (Eclipse WTP). Check it out.
Re: The deployment lifecycle [message #1699954 is a reply to message #1699841] Mon, 29 June 2015 13:00 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Jetty has a users mailing list that they use primarily instead of these forums: https://dev.eclipse.org/mailman/listinfo/jetty-users
Previous Topic: Macbook air os x c++ installation and setup
Next Topic:Unable to install Saros plugin
Goto Forum:
  


Current Time: Thu Apr 25 07:24:32 GMT 2024

Powered by FUDForum. Page generated in 0.08583 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top