Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64795 - www-servers/jboss 4.0.x version bump
Summary: www-servers/jboss 4.0.x version bump
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: EBUILD, InOverlay
: 79276 179822 181240 (view as bug list)
Depends on: 60141 80526 93396 94426 94428 94430 94432 94434 94436 94438 94439 94441 94442 94460 94463 96562 166655 166761 168284 168395 168399
Blocks: 57340 63258 66965 89411 144767 148383 148461 192969
  Show dependency tree
 
Reported: 2004-09-20 14:46 UTC by Mark Wolfe
Modified: 2015-08-14 11:58 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
a tar of files relating to the jboss-4.0.0 ebuild (jboss-4.0.0.tar,30.00 KB, application/octet-stream)
2004-09-20 14:47 UTC, Mark Wolfe
Details
jboss 4.0.0 ebuild related files (jboss-4.0.0.tar,30.00 KB, application/octet-stream)
2004-09-22 06:58 UTC, Mark Wolfe
Details
The modified 4.0.0 ebuild. (jboss-4.0.0.ebuild,3.18 KB, text/plain)
2005-01-11 11:17 UTC, Dan A. Dickey
Details
ebuild for jboss-4.0.4.GA (jboss-4.0.4.ebuild,3.11 KB, text/plain)
2006-08-23 23:13 UTC, Troy Bowman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wolfe 2004-09-20 14:46:36 UTC
I have created an ebuild for jboss version 4.0.0

This ebuild needs the following stuff looked into.
 - rebuild files/4.0.0/catalog with the latest dtds 
 - check the log4j config is ok from 3.2.x version with 4.x.x (works fine here)
 - Add a deploy directory to /var/lib/jboss ie applications and append it to the deploy search path in jboss

Reproducible: Always
Steps to Reproduce:
Comment 1 Mark Wolfe 2004-09-20 14:47:56 UTC
Created attachment 40034 [details]
a tar of files relating to the jboss-4.0.0 ebuild
Comment 2 Mark Wolfe 2004-09-22 06:58:15 UTC
Created attachment 40162 [details]
jboss 4.0.0 ebuild related files

Added an Applications folder outside of the /var/lib/jboss/[default all
minimal] directories and configured jboss to watch it as a deploy path.

Updated log4j.xml with settings from previous versions replacement config.
Comment 3 Maciej Zieba 2004-12-08 01:37:24 UTC
Installation with this ebuild worked flawlessly for me :)
Comment 4 Michele Noberasco (RETIRED) gentoo-dev 2004-12-13 03:02:13 UTC
Emerging it now...

Two comments so far:
1) Consider using the .tar.bz2 source package in SRC_URI as it saves a few MB over the .tar.gz version. Expecially useful for dialup users like me.
2) According to the specs at www.jboss.org, JBoss 4.0.0 needs at least a 1.4 JDK to run, while the ebuild proposed here has 1.3 listed in RDEPEND...
Comment 5 Michele Noberasco (RETIRED) gentoo-dev 2004-12-23 06:20:01 UTC
Played with it a little, provided ebuild works nicely here...
Comment 6 Dan A. Dickey 2004-12-23 07:01:38 UTC
With which JVM are you testing?  I'm not sure that it matters, and it sure
shouldn't - but I had problems with this ebuild on my system.
The default jboss configuration wouldn't start up at all.
I haven't had time to track down why not just yet.
I'm using the Sun JDK 1.4.2.06 on my system.
Comment 7 Michele Noberasco (RETIRED) gentoo-dev 2004-12-23 07:06:34 UTC
I'm using dev-java/sun-j2sdk-1.4.2, compiled with NPTL turned on...
Comment 8 Matthew Kennedy (RETIRED) gentoo-dev 2004-12-23 10:21:14 UTC
When I try the attached 4.0.0 port on my system (a fresh install, no prior jboss 
install), I get some carnage starting like:

2004-12-23 12:16:06,598 INFO  [org.jboss.web.WebService] Using RMI server codebase: http:
//camus:8083/
2004-12-23 12:16:06,725 ERROR [org.jboss.system.pm.AttributePersistenceService] Starting
failed jboss:service=AttributePersistenceService
java.lang.Exception: The base directory is not valid: /usr/share/jboss/server/default/dat
a/xmbean-attrs
        at org.jboss.system.pm.XMLAttributePersistenceManager.initDataDir(XMLAttributePer
sistenceManager.java:642)
        at org.jboss.system.pm.XMLAttributePersistenceManager.create(XMLAttributePersiste
nceManager.java:165)

The VM I'm using is:

java version "1.4.2-01"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-01)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-01, mixed mode)

I need to get this resolved before finally committing to the tree.
Comment 9 Dan A. Dickey 2004-12-23 11:02:45 UTC
Yeah, that was it.  I was seeing the same problem
as described in comment #8.
Comment 10 Dominik Strehlke 2004-12-23 12:07:53 UTC
Works for me, no problems here!
Comment 11 Matthew Kennedy (RETIRED) gentoo-dev 2004-12-23 14:09:10 UTC
Dominik, When you say it works for you, are you saying it works for you from a fresh install? (ie. no prior JBoss or JBoss configs, server directories etc.)
Comment 12 Dominik Strehlke 2004-12-23 14:14:56 UTC
Hi Matthew, yes that is correct. I did not have anything related to JBoss installed before.
Comment 13 Jason Vasquez 2005-01-07 04:16:14 UTC
Can we go ahead and get this into portage as an unstable build?  Or at the very least, masked?
Comment 14 Dan A. Dickey 2005-01-10 09:48:07 UTC
So, here's some more information for the pile that is building up...

I unmerged jboss, and blew away anything relevant from a 'locate jboss'
output.  This included getting rid of /etc/conf.d/jboss, /etc/init.d/jboss,
and /etc/env.d/50jboss.  I also deleted group jboss and user jboss
(/etc/group & /etc/passwd modifications).
I was reasonably certain that all traces of jboss were gone from my system.
(oh yes - I blew away /var/log/jboss as well).

Then, I emerged jboss-4.0.0 again.
And I'm still seeing the same problem as in comment #8.

Additionally, I'll add that the directory /usr/share/jboss/server/default
does not exist on my system.
Comment 15 Dan A. Dickey 2005-01-11 11:14:54 UTC
Ok, I took the time to track down the problem that I was having.
It amounted to an unexpected directory in the /usr/share/jboss/server
directory - "standard".  If you look in the first ebuild, you'll see that the
script mv's the various servers {all,default,minimal} to /var/lib/jboss.  But
leaves behind standard.  Then, the rmdir fails.  Then, the dosym doesn't work
the way the ebuild expects.

So, I simply modified the ebuild to also mv the standard server.
Then, after an emerge using this new ebuild - I now have a "default" jboss
server running on my system, with no errors or exceptions.
I'll attach the modified ebuild in a moment.
Comment 16 Dan A. Dickey 2005-01-11 11:17:07 UTC
Created attachment 48226 [details]
The modified 4.0.0 ebuild.
Comment 17 Nicolai Marck Ødum 2005-01-17 23:00:57 UTC
I installed Jboss 4.0.1 by altering the name of ebuild file. It worked perfectly for me. I also did a copy/paste on the directory name files/4.0.0 to files/4.0.1 not sure if I had to do that tho 8-). Could somebody plz do the same to verify this ebuild file and put it into the portage tree 
Comment 18 John Taylor 2005-01-23 18:47:52 UTC
This latest ebuild for JBoss 4.0 does not work for me. I get an abort with 17 errors. First one is this:

/var/tmp/portage/jboss-4.0.0/work/jboss-4.0.0-src/varia/src/main/org/jboss/jmx/adaptor/snmp/agent/TrapEmitter.java:44: package org.jboss.jmx.adaptor.snmp.config.manager does not exist

This is a clean system with no prior JBoss installation (gcc 3.3.5)
Comment 19 Jan Brinkmann (RETIRED) gentoo-dev 2005-05-26 05:36:04 UTC
*** Bug 79276 has been marked as a duplicate of this bug. ***
Comment 20 Josh Nichols (RETIRED) gentoo-dev 2005-05-27 19:43:46 UTC
I've started work on an ebuild for jboss-4.0.2, using the ebuild I'm using over
at  bug #63258 as a base.

Fortuntately, there are significantly fewer dependencies that aren't in portage,
compared to 3.2.7. I hope to file requests for the remaining packages in the
next few days.
Comment 21 Josh Nichols (RETIRED) gentoo-dev 2005-05-29 19:56:22 UTC
I just made bugs for all the dependencies not in portage yet, and added them as
dependencies for this bug.
Comment 22 Josh Nichols (RETIRED) gentoo-dev 2005-08-11 16:13:17 UTC
In the past few months, I've done a good amount of work on getting jboss into
portage. There have been some complications. In particular, some of jboss's
dependencies rely on other jboss jars.

This is because jboss is separated into a number of modules. For example, the
hibernate module requires hibernate-3, which in turn depends on jboss-cache.jar.

To solve this, I've taken to separating jboss into its separatable components,
which are in fact able to be built separately. There's a lot of legwork
involved, but I've been able to simplify the build process through the power of
an eclass and some bash sorcery.

Another hurdle is that a few of the dependencies use maven to build, and maven
is a PITA to deal with from the perspective a packager. There are some maven
plugins to yield an equivilant ant script, but I haven't had the
time/energy/inclination to get both maven and the plugin (JAM I believe its
called) working.

That being said, I'm maintaining said module ebuilds and dependencies in the
Java experimental overlay (http://gentoo-wiki.com/Experimental_Java_tree).
Sometime in the near future, I hope to work with the Java devs to get the
dependencies into the official.
Comment 23 Jens Pfau 2005-08-23 06:53:55 UTC
To be able to install jboss-4.0.2 I just loaded the latest ebuild for version 4.0.0 attached to this report 
into www-servers/jboss in my portage overlay and moved it to jboss-4.0.2.ebuild. Then I created the 
related digest file and emerged the package.

Since the server was refusing to startup saying that the JBOSS_HOME variable was not set I examined /
etc/conf.d/jboss and came across the line which is responsible for grepping a JBOSS_HOME entry in /
etc/profile.env.
This entry was missing, so I created it like that:
echo "export JBOSS_HOME=/usr/share/jboss" >> /etc/profile.env

Probably adding this line to the ebuild would fix this issue.
Comment 24 Josh Nichols (RETIRED) gentoo-dev 2005-08-23 19:01:52 UTC
Just a note: the jboss-server ebuild in the experimental overlay IS NOT the
jboss server, despite what its name suggests. It is actually the jboss 'server'
module. To avoid confusion, I will probably rename all the jboss-* to
jboss-module-* for clarity.
Comment 25 Srepfler Srgjan 2005-10-25 05:37:19 UTC
Has anyone tried it with 4.0.3?
Comment 26 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-11-02 16:14:23 UTC
yes, seems to be working fine for 4.0.3 - can we get a status update on when
something from the 4.0 branch will be in the tree?
Comment 27 Josh Nichols (RETIRED) gentoo-dev 2005-11-02 16:48:42 UTC
I've been keeping the status in the experimental overlay at
http://gentooexperimental.org/svn/java/gentoo-java-experimental/TODO.nichoj
under the JBoss section.

To summarize, 2 modules still need to be packaged, out of some 30. One is
getting some compile errors that I can't figure out (jboss-module-varia), and
the other depends on the first (jboss-module-console).
 
When all the modules are done, we need to basically put them all together into
like a normal JBoss install. Also, I think we may be able to go ahead with the
modules we currently have, because I believe jboss has 3 'profiles', ie minimal,
default, and all. So, we could probably do minimal and default, and wait to do
all once the others modules have been packaged.

Additionally, the eclass used to do these modules could use some serious cleanup
and documenting.

As to when to expect something in portage... I wouldn't hold your breath :-/
First of all, a large number of dependencies are still just in the experimental
overlay. Second, the eclass and module ebuilds need testing. And thirdly, the
Java herd is severly lacking in personel. In addition to that, the primary
concern is getting things ready for 1.5 (bug 65937). 
Comment 28 Troy Bowman 2006-08-23 23:13:25 UTC
Created attachment 94989 [details]
ebuild for jboss-4.0.4.GA

This is a modified jboss-4.0.1.ebuild from http://svn.ipforensics.org/repos/portage/www-servers/jboss
In order to use this, you need to run "cp -a 4.0.1 4.0.4" (or just link them) in the files directory.
Comment 29 Miroslav Šulc gentoo-dev 2006-10-14 10:59:11 UTC
Please find the latest jboss ebuild in overlay: http://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/www-servers/jboss/
Comment 30 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-11-30 15:06:27 UTC
Today, xerces-2.6 was moved into own slot. This should solve your problem when one part of jboss doesn't build with any higher version, and not cause upgrade/downgrade loops. Just make the dep as =xerces-2.6* and use '..jar-from xerces-2.6'. Should probably keep it consistent through all relevant ebuilds and eclass, so you don't get two different versions of xerces on classpath (not sure what would happen then :) I've upgraded all deps in portage and overlays but left jboss to you, minions :)
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2007-05-26 06:29:46 UTC
*** Bug 179822 has been marked as a duplicate of this bug. ***
Comment 32 Jakub Moc (RETIRED) gentoo-dev 2007-06-07 20:07:56 UTC
*** Bug 181240 has been marked as a duplicate of this bug. ***
Comment 33 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-01-26 19:08:49 UTC
Closing bug. Removed from tree, till we get a maintainer and current version
from source.