[jetty-dev] Error while trying to run jetty from ant

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jetty-dev] Error while trying to run jetty from ant

Saad Shakil
Hi,

I'm experiencing this issue while trying to run jetty from ant:


On the freenode #jetty IRC, I was told that jetty 8 is End Of Life.  I do not understand why this is preventing the ant target from starting and stopping jetty with <jetty.run ...> and <jetty.stop ...>.  Is it so that jetty-ant simply provides wrappers for jetty 8 and 9 classes, where in my case jetty.run and jetty.stop are missing since I'm using jetty 8 (due to restriction to java 6)?

Regards,
Saad

_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] Error while trying to run jetty from ant

Jan Bartel-3
Saad,

The task names changed between jetty-8 and jetty-9. If you're using
jetty-8 then you have to use <jetty> task. If you're using jetty-9
then the tasks are <jetty.run> and <jetty.stop>. Simple as that :)

Jan

On 23 April 2015 at 08:00, Saad Shakil <[hidden email]> wrote:

> Hi,
>
> I'm experiencing this issue while trying to run jetty from ant:
>
> http://stackoverflow.com/questions/29809185/error-while-trying-to-run-jetty-from-ant-failed-to-create-task-or-type-jetty-r
>
> On the freenode #jetty IRC, I was told that jetty 8 is End Of Life.  I do
> not understand why this is preventing the ant target from starting and
> stopping jetty with <jetty.run ...> and <jetty.stop ...>.  Is it so that
> jetty-ant simply provides wrappers for jetty 8 and 9 classes, where in my
> case jetty.run and jetty.stop are missing since I'm using jetty 8 (due to
> restriction to java 6)?
>
> Regards,
> Saad
>
> _______________________________________________
> jetty-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Jan Bartel <[hidden email]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] Error while trying to run jetty from ant

Saad Shakil
Jan,

Thank you for the reply.  I just got the tasks to run fine with:
- jetty-distribution-9.2.9.v20150224.zip
- jetty-ant-9.2.9.v20150224.jar

Still not with:
- jetty-distribution-8.1.16.v20140903.zip
- jetty-ant-8.1.16.v20140903.jar

Here are the renamed tasks:
  <target name="jetty.run">
    <jetty stopPort="8081" stopKey="secret123">
    </jetty>
  </target>
 
  <target name="jetty.stop">
   <jetty stopPort="8081" stopKey="secret123" stopWait="10"/>
  </target>

Here's the new error:

BUILD FAILED
...\build.xml:9: typedef class org.eclipse.jetty.server.ServerConnector cannot be found

I checked jetty-server-8.1.16.v20140903.jar, and indeed ServerConnector is missing there, where as it is present in jetty 9.  Is there another artifact in which I would find this, that comes as part of the jetty 8 dist? I've included this in my build.xml as well, though no specific jar specified:
 <typedef name="contextHandlers" classname="org.eclipse.jetty.server.ServerConnector"
          classpathref="jetty.plugin.classpath" loaderref="jetty.loader" />

Regards,
Saad

On Wed, Apr 22, 2015 at 6:35 PM, Jan Bartel <[hidden email]> wrote:
Saad,

The task names changed between jetty-8 and jetty-9. If you're using
jetty-8 then you have to use <jetty> task. If you're using jetty-9
then the tasks are <jetty.run> and <jetty.stop>. Simple as that :)

Jan

On 23 April 2015 at 08:00, Saad Shakil <[hidden email]> wrote:
> Hi,
>
> I'm experiencing this issue while trying to run jetty from ant:
>
> http://stackoverflow.com/questions/29809185/error-while-trying-to-run-jetty-from-ant-failed-to-create-task-or-type-jetty-r
>
> On the freenode #jetty IRC, I was told that jetty 8 is End Of Life.  I do
> not understand why this is preventing the ant target from starting and
> stopping jetty with <jetty.run ...> and <jetty.stop ...>.  Is it so that
> jetty-ant simply provides wrappers for jetty 8 and 9 classes, where in my
> case jetty.run and jetty.stop are missing since I'm using jetty 8 (due to
> restriction to java 6)?
>
> Regards,
> Saad
>
> _______________________________________________
> jetty-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Jan Bartel <[hidden email]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] Error while trying to run jetty from ant

Jan Bartel-3
Saad,

The wiki page you linked to earlier has all the information on the
various ways of configuring the jetty-8 ant tasks. In particular, look
at the bottom of the page in the section
http://wiki.eclipse.org/Jetty/Howto/Use_Jetty_with_Ant#Plugin_syntax

regards
Jan

On 23 April 2015 at 09:04, Saad Shakil <[hidden email]> wrote:

> Jan,
>
> Thank you for the reply.  I just got the tasks to run fine with:
> - jetty-distribution-9.2.9.v20150224.zip
> - jetty-ant-9.2.9.v20150224.jar
>
> Still not with:
> - jetty-distribution-8.1.16.v20140903.zip
> - jetty-ant-8.1.16.v20140903.jar
>
> Here are the renamed tasks:
>   <target name="jetty.run">
>     <jetty stopPort="8081" stopKey="secret123">
>     </jetty>
>   </target>
>
>   <target name="jetty.stop">
>    <jetty stopPort="8081" stopKey="secret123" stopWait="10"/>
>   </target>
>
> Here's the new error:
>
> BUILD FAILED
> ...\build.xml:9: typedef class org.eclipse.jetty.server.ServerConnector
> cannot be found
>
> I checked jetty-server-8.1.16.v20140903.jar, and indeed ServerConnector is
> missing there, where as it is present in jetty 9.  Is there another artifact
> in which I would find this, that comes as part of the jetty 8 dist? I've
> included this in my build.xml as well, though no specific jar specified:
>  <typedef name="contextHandlers"
> classname="org.eclipse.jetty.server.ServerConnector"
>           classpathref="jetty.plugin.classpath" loaderref="jetty.loader" />
>
> Regards,
> Saad
>
> On Wed, Apr 22, 2015 at 6:35 PM, Jan Bartel <[hidden email]> wrote:
>>
>> Saad,
>>
>> The task names changed between jetty-8 and jetty-9. If you're using
>> jetty-8 then you have to use <jetty> task. If you're using jetty-9
>> then the tasks are <jetty.run> and <jetty.stop>. Simple as that :)
>>
>> Jan
>>
>> On 23 April 2015 at 08:00, Saad Shakil <[hidden email]> wrote:
>> > Hi,
>> >
>> > I'm experiencing this issue while trying to run jetty from ant:
>> >
>> >
>> > http://stackoverflow.com/questions/29809185/error-while-trying-to-run-jetty-from-ant-failed-to-create-task-or-type-jetty-r
>> >
>> > On the freenode #jetty IRC, I was told that jetty 8 is End Of Life.  I
>> > do
>> > not understand why this is preventing the ant target from starting and
>> > stopping jetty with <jetty.run ...> and <jetty.stop ...>.  Is it so that
>> > jetty-ant simply provides wrappers for jetty 8 and 9 classes, where in
>> > my
>> > case jetty.run and jetty.stop are missing since I'm using jetty 8 (due
>> > to
>> > restriction to java 6)?
>> >
>> > Regards,
>> > Saad
>> >
>> > _______________________________________________
>> > jetty-dev mailing list
>> > [hidden email]
>> > To change your delivery options, retrieve your password, or unsubscribe
>> > from
>> > this list, visit
>> > https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>
>>
>>
>> --
>> Jan Bartel <[hidden email]>
>> www.webtide.com
>> 'Expert Jetty/CometD developer,production,operations advice'
>> _______________________________________________
>> jetty-dev mailing list
>> [hidden email]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>
>
>
> _______________________________________________
> jetty-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Jan Bartel <[hidden email]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] Error while trying to run jetty from ant

Saad Shakil
In reply to this post by Jan Bartel-3

Jan,

That page does not contain any information on any tasks with attributes stopPort or stopKey.  Is there a way to stop jetty server 8 through ant, as is demonstrated on the jetty 9 doc, or another way?

Regards,
Saad

On Apr 22, 2015 6:35 PM, "Jan Bartel" <[hidden email]> wrote:
Saad,

The task names changed between jetty-8 and jetty-9. If you're using
jetty-8 then you have to use <jetty> task. If you're using jetty-9
then the tasks are <jetty.run> and <jetty.stop>. Simple as that :)

Jan

On 23 April 2015 at 08:00, Saad Shakil <[hidden email]> wrote:
> Hi,
>
> I'm experiencing this issue while trying to run jetty from ant:
>
> http://stackoverflow.com/questions/29809185/error-while-trying-to-run-jetty-from-ant-failed-to-create-task-or-type-jetty-r
>
> On the freenode #jetty IRC, I was told that jetty 8 is End Of Life.  I do
> not understand why this is preventing the ant target from starting and
> stopping jetty with <jetty.run ...> and <jetty.stop ...>.  Is it so that
> jetty-ant simply provides wrappers for jetty 8 and 9 classes, where in my
> case jetty.run and jetty.stop are missing since I'm using jetty 8 (due to
> restriction to java 6)?
>
> Regards,
> Saad
>
> _______________________________________________
> jetty-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Jan Bartel <[hidden email]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev

_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] Error while trying to run jetty from ant

Jan Bartel-3
IIRC I added that in jetty-9 to the jetty-ant plugin.

Jan

On 23 April 2015 at 11:48, Saad Shakil <[hidden email]> wrote:

> Jan,
>
> That page does not contain any information on any tasks with attributes
> stopPort or stopKey.  Is there a way to stop jetty server 8 through ant, as
> is demonstrated on the jetty 9 doc, or another way?
>
> Regards,
> Saad
>
> On Apr 22, 2015 6:35 PM, "Jan Bartel" <[hidden email]> wrote:
>>
>> Saad,
>>
>> The task names changed between jetty-8 and jetty-9. If you're using
>> jetty-8 then you have to use <jetty> task. If you're using jetty-9
>> then the tasks are <jetty.run> and <jetty.stop>. Simple as that :)
>>
>> Jan
>>
>> On 23 April 2015 at 08:00, Saad Shakil <[hidden email]> wrote:
>> > Hi,
>> >
>> > I'm experiencing this issue while trying to run jetty from ant:
>> >
>> >
>> > http://stackoverflow.com/questions/29809185/error-while-trying-to-run-jetty-from-ant-failed-to-create-task-or-type-jetty-r
>> >
>> > On the freenode #jetty IRC, I was told that jetty 8 is End Of Life.  I
>> > do
>> > not understand why this is preventing the ant target from starting and
>> > stopping jetty with <jetty.run ...> and <jetty.stop ...>.  Is it so that
>> > jetty-ant simply provides wrappers for jetty 8 and 9 classes, where in
>> > my
>> > case jetty.run and jetty.stop are missing since I'm using jetty 8 (due
>> > to
>> > restriction to java 6)?
>> >
>> > Regards,
>> > Saad
>> >
>> > _______________________________________________
>> > jetty-dev mailing list
>> > [hidden email]
>> > To change your delivery options, retrieve your password, or unsubscribe
>> > from
>> > this list, visit
>> > https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>
>>
>>
>> --
>> Jan Bartel <[hidden email]>
>> www.webtide.com
>> 'Expert Jetty/CometD developer,production,operations advice'
>> _______________________________________________
>> jetty-dev mailing list
>> [hidden email]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>
>
> _______________________________________________
> jetty-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Jan Bartel <[hidden email]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev