Is there any Jetty plugin?

Hi there,

I want to integrate my web application with Jetty because it's very simple and fast. But i couldn't find a plugin for it. When i use JSR type application server, it couldn't deploy my project to Jetty. In that case, i'm forced to deploy it manually.

Do you have any suggestion or is there any Jetty plugin available?

16 comments
Comment actions Permalink

Isa Goksu wrote:

Do you have any suggestion or is there any Jetty plugin available?


I declared an interest in writing one a few months ago (there's a thread
in this newsgroup) but didn't get started on it until last weekend.
Progress is faster than I expected so I could have a first release
available sooner rather than later.

I intend to support Jetty 6.1.0 since that implements hot (un)deployment
and, at least initially, require a pre-existing jetty.xml. I realise
that 6.1.0 is only recently released though.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

Mark Scott wrote:

Isa Goksu wrote:

>> Do you have any suggestion or is there any Jetty plugin available?


I declared an interest in writing one a few months ago (there's a thread
in this newsgroup) but didn't get started on it until last weekend.
Progress is faster than I expected so I could have a first release
available sooner rather than later.

I intend to support Jetty 6.1.0 since that implements hot (un)deployment
and, at least initially, require a pre-existing jetty.xml. I realise
that 6.1.0 is only recently released though.


Interesting.

We have been using Jetty for over 4 years now (2 jobs), and we just
start Jetty as a normal process (it starts very fast), though a plug-in
is interesting.

We currently use 5.1.12, haven't moved to the new Jetty 6.x yet.

Amnon

0
Comment actions Permalink

Amnon I. Govrin wrote:

Interesting.

We have been using Jetty for over 4 years now (2 jobs), and we just
start Jetty as a normal process (it starts very fast), though a plug-in
is interesting.


It's a bit of an academic exercise for me, really. We also use Jetty at
work, but it's embedded (so easy to do...) and I don't particularly need
specific web container support from IDEA for that project.

It might be interesting to provide a UI for generating Jetty's various
XML configuration files, for example, but I think I'll be dependent on
any users suggesting features they might use.

We currently use 5.1.12, haven't moved to the new Jetty 6.x yet.


We currently use 4.2.14(!) but the new (well, to me, anyway)
continuations look interesting and may be a reason to upgrade as we do
some more work in that area.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

Mark hi,

When will be the first release? Please let me know, OK!

Thank you in advance!

0
Comment actions Permalink

Hi,

Isa Goksu wrote:

When will be the first release? Please let me know, OK!


Well, I only have time for this at weekends so I'm not committing to any
dates.

I have application server definition, run/debug configuration and server
startup and shutdown working and made a start on web module
deployment/undeployment so I may have something basic available this
weekend.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

Hi Mark,

Did you have time to finish plugin?

10x

0
Comment actions Permalink

Hi Isa,

Isa Goksu wrote:

Did you have time to finish plugin?


Sorry, but I wasn't able to spend any time on this during the last
couple of weekends. I should however manage to package up a basic
implementation this weekend that will at least allow running/debugging
of the contexts specified in Jetty's configuration files, but hot
deployment and shared use of a single Jetty installation will take longer.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

Out of curiosity, what features do/did you have planned?


0
Comment actions Permalink

Taras Tielkes wrote:

Out of curiosity, what features do/did you have planned?


Well, it isn't really driven by my own needs (it's as much an exercise
in plug-in development for the sake of it as anything else) so I haven't
really thought of much beyond providing functionality along the lines of
what, for example, the Tomcat plug-in provides. I'd welcome suggestions
from anyone who finds the plug-in useful though. Please see the
announcement of the initial release for info on what's currently
supported and planned.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

At last, i saw your plugin Mark. Thank you for it! But i got following message at the output when i want to deploy a sample web application on Jetty 6.1.11

cmd /c "C:\Documents and Settings\Administrator\.IntelliJIdea60\config\plugins\JettyIntegration\bin\jetty.bat"
Unable to access jarfile start.jar
Disconnected from server

0
Comment actions Permalink

Thanks for the feedback.

Isa Goksu wrote:

At last, i saw your plugin Mark. Thank you for it! But i got
following message at the output when i want to deploy a sample web
application on Jetty 6.1.11


I guess you mean 6.1.1?

cmd /c "C:\Documents and Settings\Administrator\.IntelliJIdea60\config\plugins\JettyIntegration\bin\jetty.bat"
Unable to access jarfile start.jar
Disconnected from server


Hmm... Well, start.jar has already been found by the time this error is
reported. I'm not sure what could be going wrong here. Is your Jetty
installation on a different drive from IDEA, perhaps?

Does Jetty run correctly if you run it directly i.e. without IDEA or the
plug-in being involved? 'java -jar start.jar' from a DOS console with
the working directory set to Jetty's installation directory.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

Hi Mark,

You're right. My Jetty is in different drive. I've add the following line to you jetty.bat file:

d:
cd "%JETTY_HOME%"


But now, i've another problem. Now i couldn't deploy my application using IntelliJ. Currently i deploy it manually. Can we fix this?

0
Comment actions Permalink

Isa Goksu wrote:

You're right. My Jetty is in different drive. I've add the following
line to you jetty.bat file:

d:
cd "%JETTY_HOME%"


OK, that's a good workaround for your setup. I'll try to come up with a
generic check and fix for this situation.

But now, i've another problem. Now i couldn't deploy my application
using IntelliJ. Currently i deploy it manually. Can we fix this?


I explained in the release announcement that context deployment from
IDEA isn't yet supported but that it's planned. I can't promise when it
will be implemented.

In the meantime, configuring IDEA to build your .war file or create your
exploded directory in Jetty's 'webapps' directory seems to me to be a
reasonable compromise. Hotswapping of recompiled classes will work but
you'll probably have to stop and restart your Jetty run/debug
configuration if you make changes to other resources (although perhaps
not - I haven't tested what happens if you, for example, add a new .html
file and make the project).

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

>> d:
>> cd "%JETTY_HOME%"

use instead: cd /d "%JETTY_HOME%"


0
Comment actions Permalink

Carlos Costa e Silva wrote:
>>> d:
>>> cd "%JETTY_HOME%"


use instead: cd /d "%JETTY_HOME%"


Aha! Thank you Carlos. That seems to work even when a change of drive
isn't needed so no additional check for that situation is even necessary.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

Thank you Carlos,

It works..

0

Please sign in to leave a comment.