Akendo 1 Follower

Blog of Akendo

Location: Berlin

Quick Links

View Show Available Profiles

Authors (0)

Alex

Related Projects / Groups


[Gentoo]Jetty with a .WAR file

Public feed posted on Tue, 21 Feb 2012 by Alex


Jetty with a .WAR file

In my company i currenly have a lot to do with Scala Lift. We’re developing some stuff with it, but because it takes a lots of time to setup a Scala environment and we need quick show solution, we’ll go with a .war file.

The problem on my gentoo is, there is no jetty packages, so i searched for some overlays. I still got the java-overlay. With eix jetty, i’m searching for jetty:

1
2
3
4
5
* www-servers/jetty [1]
Available versions: (5) ~5.1.3-r1
 {doc sourcetest}
 Homepage: http://www.mortbay.org/
 Description: A Lightweight Servlet Engine

The jetty version is outdate, so i’m downloading the jetty from the offical webpage:

1
2
3
wget-c http://dist.codehaus.org/jetty/jetty-6.1.26/jetty-6.1.26.zip
#Now unzip itmkdir jetty && unzip jetty-6.1.26.zip -d jetty/

during the download i found a useful blog entry about jetty for debian.  How to deploy a .WAR file there. It’s little bit like tomcat but just easier.

Move you .WAR File to the $JETTY_HOME/webapps/ folder and start the Jetty Server.

1
java -jar start.jar

I found also on the overlays.gentoo an updated version of jetty, this can be found on the dustin overlay

1
2
3
4
5
6
7
8
layman -a dustin
eix-sync && eix jetty
* www-servers/jetty [1]
 Available versions: (6) ~6.1.24
 {elibc_FreeBSD}
 Homepage: http://jetty.codehaus.org/
 Description: Jetty Web Server; Java Servlet container
[1]"dustin"/var/lib/layman/dustin

I add the =www-servers/jetty-6.1.24 ~amd64 to /etc/portage/package.keywords, now install the jetty:

1
emerge -avq jetty

so far

Akendo

Web Sources:

<span class="http-markup"><a href="http://lifeofaprogrammergeek.blogspot.com/2010/06/deploying-war-in-jetty.html" rel="nofollow">http://lifeofaprogrammergeek.blogspot.com/2010/06/deploying-war-in-jetty.html</a></span><span class="http-markup"><a href="http://overlays.gentoo.org/proj/java" rel="nofollow">http://overlays.gentoo.org/proj/java</a></span><span class="http-markup"><a href="http://gpo.zugaina.org/www-servers/jetty" rel="nofollow">http://gpo.zugaina.org/www-servers/jetty</a></span><span class="http-markup"><a href="http://www.gentoo.org/proj/en/java/" rel="nofollow">http://www.gentoo.org/proj/en/java/</a></span>

 


>(This is an imported feed item. You can read the original item at /blog.akendo.eu/gentoojetty-with-a-war-file/"><span class="http-markup"><a href="http://blog.akendo.eu/gentoojetty-with-a-war-file/" rel="nofollow">http://blog.akendo.eu/gentoojetty-with-a-war-file/</a></span>)

This Evis needs your voice! Please Login to post comments.