Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 328747

Summary: {dev-java,www-servers}/jetty* - A web server and javax.servlet container, plus support for many other integrations.
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: [OLD] JavaAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal CC: 404errorqc, amlabs, b.brachaczek, christian.kotz, diespambox, eric225125, flow, ghash2, hasufell, jeanfrancis, john, joost.ruis, kingjon3377, leho, manschwetus, manuel_seifner, Michael.Gaber, navid.zamani, shubhadeepc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 287775, 482438    
Bug Blocks: 325271, 328739    
Attachments: jetty-6.1.24.ebuild
my try at a new ebuild
files/pom.xml
files/pom-terracotta.xml
files/settings.xml
jetty-1.6.24.ebuild
jetty-6.1.24.ebuild
files/init.d/jetty
files/conf.d/jetty
jetty-6.1.24.ebuild
jetty-6.1.24.ebuild
files/conf.d/jetty
files/init.d/jetty
virtual/jetty-6.ebuild
www-servers/jetty-bin-6.1.26.ebuild
www-servers/jetty-bin-6.1.26.ebuild
java-virtuals/jetty-server/jetty-server-6.ebuild
www-servers/jetty-bin-6.1.26.ebuild
jetty-bin-6.1.26-r1.ebuild
jetty-7.6.5.v20120716.ebuild
init.d/jetty-7

Description Matt Whitlock 2010-07-17 19:18:09 UTC
Please find attached a new ebuild for Jetty 6.1.24.  It is required for Eclipse 3.5.2.
Comment 1 Matt Whitlock 2010-07-17 19:18:34 UTC
Created attachment 239169 [details]
jetty-6.1.24.ebuild
Comment 2 Alistair Bush (RETIRED) gentoo-dev 2010-08-16 10:00:22 UTC
This ebuild currently isn't good enough to be merged into the tree.

Within java-experimental there seems to be a set of packages that could be a good starting point for an attempt.

We will need to figure out whether we can package the jetty servlet/jsp api in a way that will work with java-virtuals/servlet-api.

Sadly it seems that until this is done eclipse will not be updated.
Comment 3 John J. Aylward 2010-10-27 16:01:40 UTC
Created attachment 252235 [details]
my try at a new ebuild
Comment 4 John J. Aylward 2010-10-27 16:02:11 UTC
Created attachment 252237 [details]
files/pom.xml
Comment 5 John J. Aylward 2010-10-27 16:02:38 UTC
Created attachment 252239 [details]
files/pom-terracotta.xml
Comment 6 John J. Aylward 2010-10-27 16:02:58 UTC
Created attachment 252241 [details]
files/settings.xml
Comment 7 John J. Aylward 2010-10-27 16:03:23 UTC
Created attachment 252243 [details]
jetty-1.6.24.ebuild
Comment 8 John J. Aylward 2010-10-27 17:05:35 UTC
Created attachment 252247 [details]
jetty-6.1.24.ebuild

sorry, I was a little too quick to add the last one. I changed the way I choose what jars to install.

I'll be testing that I can get an actual instance of jetty running sometime later, but at least this gives people something to kick around.
Comment 9 John J. Aylward 2010-10-27 21:10:51 UTC
Created attachment 252305 [details]
files/init.d/jetty
Comment 10 John J. Aylward 2010-10-27 21:11:08 UTC
Created attachment 252307 [details]
files/conf.d/jetty
Comment 11 John J. Aylward 2010-10-27 21:12:57 UTC
Created attachment 252309 [details]
jetty-6.1.24.ebuild

Adds in more install libs and fixes the setuid dependency. Also adds in a basic init script, although I'm having some issues getting jetty to start. my guess is I'm missing a required property somewhere
Comment 12 John J. Aylward 2010-10-30 05:26:00 UTC
Created attachment 252543 [details]
jetty-6.1.24.ebuild

removes need for special pom files as it now uses sed to strip out what we don't wan to build.
Comment 13 John J. Aylward 2010-10-30 05:26:31 UTC
Created attachment 252545 [details]
files/conf.d/jetty

updated conf.d file
Comment 14 John J. Aylward 2010-10-30 05:26:59 UTC
Created attachment 252547 [details]
files/init.d/jetty

updated init.d file. jetty now starts properly
Comment 15 Dustin C. Hatch 2010-11-16 17:24:30 UTC
John's ebuild works well; I was able to use it to build Eclipse 3.6 from the ebuild in Bug #325271. It did hiccup, however, after installing Maven: it tried to call `mvn` but neither installed version of Maven on my system had installed that binary. A simple `eselect maven set mvn-2.2` solved that problem.
Comment 16 GenSan 2010-11-19 16:22:03 UTC
Very nice ebuild.

Does the ebuild work offline?

It allways tries to download jetty-parent-9.pom

Cheers :-)

Comment 17 Christian Kotz 2010-11-30 21:57:32 UTC
after manually generating a symbolic link for maven mvn in /usr/bin the ebuild proceeded until the following URL could not be found:

Project ID: org.terracotta.maven.plugins:tc-maven-plugin

Reason: POM 'org.terracotta.maven.plugins:tc-maven-plugin' not found in
repository: Unable to download the artifact from any repository

  org.terracotta.maven.plugins:tc-maven-plugin:pom:1.1.8
Comment 18 John J. Aylward 2010-12-17 20:42:59 UTC
(In reply to comment #16)
> Very nice ebuild.
> 
> Does the ebuild work offline?

sorry, forgot to add myself to the CC then promptly forgot about the bug.

As far as I know it will not work in offline mode since maven always wants to try and update from it's own repositories. I think the only way to get this to work in full offline mode will be to bypass maven and create an ebuild for each dependency. At the moment, that's more work than I want to put into this since the only thing I use Jetty for is to compile Eclipse.

the other option is to create an ebuild off of bug #175054 as I think that may support offline builds
Comment 19 John J. Aylward 2010-12-17 20:48:05 UTC
(In reply to comment #17)
> after manually generating a symbolic link for maven mvn in /usr/bin the ebuild
> proceeded until the following URL could not be found:
> 
> Project ID: org.terracotta.maven.plugins:tc-maven-plugin
> 
> Reason: POM 'org.terracotta.maven.plugins:tc-maven-plugin' not found in
> repository: Unable to download the artifact from any repository
> 
>   org.terracotta.maven.plugins:tc-maven-plugin:pom:1.1.8

(In reply to comment #15)
> A simple `eselect maven set mvn-2.2` solved that problem.

That should be all you have to do. Creating manual links is bad form in Gentoo. you should always see if there is an eselect for a package before resorting to that.
Comment 20 Reinhard Kreim 2011-01-26 20:32:33 UTC
Well, i get [ERROR] Error executing Maven. when trying to use maven-bin-3.0.2
and ACCESS DENIED  mkdir /root/.m2/repository/org/foo when using maven 2.2.1.
Comment 21 Joel 2011-01-31 07:54:52 UTC
I cannot build it with maven 3:


[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.mortbay.jetty:jetty-setuid:6.1.24 (/home/repositories/tmp/portage/www-servers/jetty-6.1.24/work/jetty-6.1.24/extras/setuid/pom.xml) has 1 error
[ERROR]     'profiles.profile.id' must be unique but found duplicate profile with id env-windows @ line 147, column 17
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Comment 22 John J. Aylward 2011-02-01 20:31:52 UTC
Jetty 6 is not compatable with Maven 3. It needs to be compiled with maven 2.
Comment 23 Marc Richter 2011-03-01 20:16:18 UTC
I don't understand what prevents this ebuild from hiting the main tree: As far as I can see, it only lacks a definition to require maven 2 instead of 3, isn't it?

I'm not a package maintainer or have any idea where to start this, but since this is blocking two bugs so far, isn't it time to get this running?
Comment 24 John J. Aylward 2011-03-02 01:45:44 UTC
(In reply to comment #23)
> I don't understand what prevents this ebuild from hiting the main tree: As far
> as I can see, it only lacks a definition to require maven 2 instead of 3, isn't
> it?
> 
> I'm not a package maintainer or have any idea where to start this, but since
> this is blocking two bugs so far, isn't it time to get this running?
> 

Both bugs affect the same package (eclipse) and the solution I made requiring maven is mostly a hack. The provided overlay for eclipse is a suitable workaround at this time. 
Comment 25 Marc Richter 2011-03-02 08:51:31 UTC
(In reply to comment #24)
> Both bugs affect the same package (eclipse) and the solution I made requiring
> maven is mostly a hack. The provided overlay for eclipse is a suitable
> workaround at this time. 
 
I totally appreciate your provided workaround with the overlay! But that's what I'm not understanding:
As far as I know, is an overlay simply an additional source for portage atoms, isn't it?
What makes these packages not hiting the main tree currently?
Comment 26 Alistair Bush (RETIRED) gentoo-dev 2011-03-02 09:36:26 UTC
> I'm not understanding:
> As far as I know, is an overlay simply an additional source for portage atoms,
> isn't it?

yes it is an additional repository.

> What makes these packages not hiting the main tree currently?

Mostly because the ebuilds contained within this bug report are not of a high enough quality.  e.g. They use maven to build which we currently don't support.

If you read all the comments you will be able to get the idea.
Comment 27 Bartosz Krzeszewski 2011-04-03 14:26:37 UTC
(In reply to comment #17)
> after manually generating a symbolic link for maven mvn in /usr/bin the ebuild
> proceeded until the following URL could not be found:
> 
> Project ID: org.terracotta.maven.plugins:tc-maven-plugin
> 
> Reason: POM 'org.terracotta.maven.plugins:tc-maven-plugin' not found in
> repository: Unable to download the artifact from any repository
> 
>   org.terracotta.maven.plugins:tc-maven-plugin:pom:1.1.8

Have you work it out?
I have the same error but "eselect maven set mvn-2.2" didn't helped.
Comment 28 Dustin C. Hatch 2011-05-20 02:15:24 UTC
*** Bug 367541 has been marked as a duplicate of this bug. ***
Comment 29 John J. Aylward 2011-05-27 17:55:47 UTC
Created attachment 274803 [details]
virtual/jetty-6.ebuild

Here is a virtual package for managing jetty installs
Comment 30 John J. Aylward 2011-05-27 17:57:38 UTC
Created attachment 274807 [details]
www-servers/jetty-bin-6.1.26.ebuild

This ebuild still requires the same init.d and conf.d files
Comment 31 John J. Aylward 2011-05-27 18:39:18 UTC
Created attachment 274827 [details]
www-servers/jetty-bin-6.1.26.ebuild

fixes the location of package.env
Comment 32 John J. Aylward 2011-05-27 20:58:04 UTC
Created attachment 274835 [details]
java-virtuals/jetty-server/jetty-server-6.ebuild

changes to use the java-virtuals
Comment 33 John J. Aylward 2011-05-28 05:39:16 UTC
Created attachment 274849 [details]
www-servers/jetty-bin-6.1.26.ebuild

fixed now that the virtual package is properly using the java-virtuals
Comment 34 Sven Eden 2011-08-16 09:37:17 UTC
Just a question: Why did you comment out all actions to merge jetty-bin as "jetty"? The product itself is not named "jetty-bin", right? My problem is, that the eclipse-3.7 ebuilds from Bug 325271 do not merge with jetty being installed as "jetty-bin-6", eclipse expects a product called "jetty-6" to be installed.

After changing the ebuild to merge as "jetty", eclipse merges fine. But it has to be noted that I did not have the time to test eclipse-3.7 properly, yet!

However, until I have tested everything properly I have added your jetty-bin-6.1.26.ebuild and virtual jetty-server-6.ebuild to my gentoo overlay (layman -a seden) for further testing. The ChangeLog states that you are the rightful author of the ebuilds, I hope that is ok with you?
Comment 35 Sven Eden 2011-08-19 08:37:20 UTC
Created attachment 283873 [details]
jetty-bin-6.1.26-r1.ebuild

Changed to install as "jetty" instead of "jetty-bin".
Comment 36 Marc Richter 2011-10-17 16:06:23 UTC
"This ebuild currently isn't good enough to be merged into the tree."

--> What's missing/not working?
Comment 37 Jeremy Murphy 2011-11-18 00:21:52 UTC
Alistair (or other devs), could we get some feedback on the jetty-bin ebuild please?  It doesn't require maven to build, so it would be great to see it hit the main portage tree.  Thanks.
Comment 38 Sven Eden 2011-11-22 11:03:54 UTC
Just a question: What about Jetty-7 or 8? The Eclipse download page (http://download.eclipse.org/jetty/) does not speak of version 6, and this very version 6 makes it impossible to view the contents of the help center.
Comment 39 Julian Ospald 2012-04-29 02:40:02 UTC
(In reply to comment #26)
> Mostly because the ebuilds contained within this bug report are not of a
> high enough quality.  e.g. They use maven to build which we currently don't
> support.
> 
> If you read all the comments you will be able to get the idea.

It does not depend on users writing ebuilds whether a software hits the tree.


+1 vote for the java team to take over this issue
Comment 40 John J. Aylward 2012-08-16 15:40:05 UTC
(In reply to comment #38)
> Just a question: What about Jetty-7 or 8? The Eclipse download page
> (http://download.eclipse.org/jetty/) does not speak of version 6, and this
> very version 6 makes it impossible to view the contents of the help center.

Sven, I think this would be the best route to take with the Jetty dependencies. Version 7 is probably minimal at this point, but bumping to 8 is worth a try to see is eclipse can work with it. I know when I use the eclipse-bin install with the packaged maven, maven is pulling jetty 8 binaries (maven goal jetty:run).
Comment 41 John J. Aylward 2012-08-16 15:41:57 UTC
Comment on attachment 274849 [details]
www-servers/jetty-bin-6.1.26.ebuild

obsoleted by Svens overlay (seden)
Comment 42 John J. Aylward 2012-08-16 19:34:22 UTC
(In reply to comment #40)
> (In reply to comment #38)
> > Just a question: What about Jetty-7 or 8? The Eclipse download page
> > (http://download.eclipse.org/jetty/) does not speak of version 6, and this
> > very version 6 makes it impossible to view the contents of the help center.
> 

Just tried updating the ebuilds to compile against jetty7, and it looks like eclipse is still expecting jetty6 which has a package space of org.mortbay while jetty7+ has a package space of org.eclipse
Comment 43 Shubhadeep Chaudhuri 2012-08-16 19:57:00 UTC
(In reply to comment #42)
> Just tried updating the ebuilds to compile against jetty7, and it looks like
> eclipse is still expecting jetty6 which has a package space of org.mortbay
> while jetty7+ has a package space of org.eclipse

I was actually successful in compiling Juno against Jetty 8 but lost the ebuild because of a hard disk crash.
AFAIR, a plugin which requires Jetty 6 complains about the package not being present but eclipse still builds without it. The plugin is probably pending removal. And neither does dependencies.properties list that package.
Comment 44 John J. Aylward 2012-08-16 20:07:20 UTC
Created attachment 321512 [details]
jetty-7.6.5.v20120716.ebuild

Jetty 7 ebuild that installs nicely, but I think that the start.config controls at the end have to be updated a little more. I couldn't actually get an instance of jetty running.
Comment 45 John J. Aylward 2012-08-16 20:07:50 UTC
Created attachment 321514 [details]
init.d/jetty-7

updated init.d for jetty 7
Comment 46 Navid Zamani 2014-11-15 19:24:15 UTC
Hi. It seems this bug has stalled. Unfortunately this is blocking the online banking application hibiscus.

Looking at the comments, it’s unclear what’s required to close this.

I’m interested in helping wherever I can, to get this working.
I only need to know what needs to be done.
Comment 47 Paul B. Henson 2015-08-27 03:13:34 UTC
There's a webapp we're going to be deploying soon that requires either jetty 9 (latest) or 8 (still maintained upstream), it would sure be nice if there were an official ebuild for it. Any updates or status on this? Is the delay a lack of dev interest or time or?

Thanks...
Comment 48 James Le Cuirot gentoo-dev 2015-08-27 07:00:03 UTC
(In reply to Paul B. Henson from comment #47)
> Any updates or status on this? Is the delay a lack of dev interest or time or?

It's one of the hardest Java packages of all to package and we're already overworked dealing with what we have. Sorry.