Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Error while trying to run jetty from ant

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 <janb@xxxxxxxxxxx> 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 <saadshakil@xxxxxxxxx> 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
> jetty-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



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


Back to the top