Differences between revisions 53 and 54
Revision 53 as of 2010-02-13 23:43:22
Size: 11898
Comment:
Revision 54 as of 2010-02-13 23:45:51
Size: 11802
Comment: remove stupid install advice....
Deletions are marked like this. Additions are marked like this.
Line 209: Line 209:
 * Install the jbossas5-libs package in your buildsystem. With a local repository, add the repo to /var/cache/pbuilder/case-sid.cow/etc/apt/sources.list, log into the image and do a apt-get update. Or copy the package to /var/cache/pbuilder/base-sid.cow/tmp/, log into the image and install it.  * Install the jbossas5-libs package in your buildsystem. With a local repository, add the repo to /var/cache/pbuilder/case-sid.cow/etc/apt/sources.list, log into the image and do a apt-get update.

package and git repository

Use the following snippet for your sources.list:

deb http://pkg-jboss.alioth.debian.org unstable/i386/
deb http://pkg-jboss.alioth.debian.org unstable/all/
deb-src http://pkg-jboss.alioth.debian.org unstable/source/

To install the JBoss application server run

apt-get install jbossas5

Please report bugs at the Tracker at http://alioth.debian.org/projects/pkg-jboss/. There is a mailing list that can be subscribed at http://lists.alioth.debian.org/mailman/listinfo/pkg-jboss-maintainer.

If you are member of the group pkg-jboss you can upload with the following dput configuration:

[pkg-jboss]
method = scp
fqdn = alioth.debian.org
incoming = /home/groups/pkg-jboss/htdocs/mini-dinstall/incoming/
post_upload_command = ssh alioth.debian.org /home/groups/pkg-jboss/mini-dinstall.sh

The git repos can be found at http://git.debian.org/?p=pkg-jboss/jbossas5.git;a=summary and http://git.debian.org/?p=pkg-jboss/jbossas5-libs.git;a=summary .

JBoss 5 TODOs/plan

jbossas5

  • create a inofficial package jbossas5-libs with all jar files that are not packaged for Debian but needed for the app server - DONE
  • create a transitional package jbossas5 that (Build-)Depends: jbossas5-libs - partially DONE
  • build a minimal package that can be uploaded to main

joesnmp/opennms

javacc

Apache scout

The following packages might be needed for jbossas5 but the list must be checked again.

jacorb

libjboss-web-services-java

  • very minimal package from old upstream code
  • package should be updated

istack-commons

rngom

txw

xsom

jaxb

  • the JAXB API is already in Debian: libjaxme-java
  • https://jaxb.dev.java.net/

  • blocked by codemodel, com.sun.xml.dtdparser?, istack-commons-runtime, istack-commons-tools, rngom, txw, xsom
  • Build-Depends: glassfish-activation, xml-commons-resolver1.1

jpl

Open bugs

We use BTS usertags with user pkg-jboss-maintainer@lists.alioth.debian.org to keep track of bugs.

  • ITPs and bugs concerning the packaging effort.

Thirdparty JARs

The JBoss source tarball contains several thirdparty packages under common/lib/ which need to be compiled from source for Debian. This list tries to keep track of the current status:

Package

Version

Debian Package

Version

antlr

2.7.7

antlr

2.7.7-11

apache-addressing

cvsbuild-7-19

apache-avalon

4.1.5

libavalon-framework-java

4.2.0-3

apache-avalon-logkit

1.2

liblogkit-java

1.2.2-8

apache-bcel

5.1

libbcel-java

5.1-6

apache-beanutils

1.6.0

libcommons-beanutils-java

1.7.0-4

apache-bsf

2.4.0

libbsf-java

2.4.0-2

apache-codec

1.3

libcommons-codec-java

1.3-4

apache-collections

2.1

libcommons-collections-java

2.1.1-6

apache-crimson

1.1.1

libcrimson-java

1.1.3-8

apache-digester

1.6

libcommons-digester-java

1.7-2

apache-discovery

0.2

libcommons-discovery-java

0.2-9

apache-fileupload

1.0

libcommons-fileupload-java

1.0-14

apache-httpclient

2.0.2

libcommons-httpclient-java

2.0.2-2

apache-jaxme

0.2-cvs

apache-lang

1.0

libcommons-lang-java

2.1-1

apache-log4j

1.2.8

liblog4j1.2-java

1.2.13-1

apache-logging

1.0.5.GA-jboss

libcommons-logging-java

1.0.4-5

apache-modeler

1.1patch

libcommons-modeler-java

1.1-8

apache-myfaces

1.1.1

apache-pool

1.0.1

libcommons-pool-java

1.2-5

apache-scout

1.0

apache-slide

1.0.16

apache-tomcat

5.5.12

tomcat5.5

5.5.15-1

apache-velocity

1.4jboss

velocity

1.4-5

apache-wss4j

cvs-7-19

apache-xalan

j_2.6.0

libxalan2-java

2.6.0-6

apache-xerces

2.7.0

libxerces2-java

2.8.0-0

apache-xmlsec

1.2

asm

3.0_beta

libasm-java

1.5.3-4

beanshell

1.3.0

bsh

2.0b4-4

cglib

2.1.3

commons-el

1.0

libcommons-el-java

1.0-3

dom4j

1.6.1jboss

libdom4j-java

1.6.1+dfsg-2

gjt-jpl-util

1.0

gnu-getopt

1.0.10

libgetopt-java

1.0.11-2

gnu-regexp

1.1.14

libgnu-regexp-java

1.4-3

hibernate-annotations

3.4.0 GA

libhibernate-annotations-java

3.4.0.GA+dak1-1

hibernate

3.3.1 GA

libhibernate3-java

3.3.1.GA+dak1-3

hibernate-entitymanager

3.4.0 GA

libhibernate-entitymanager-java

3.4.0.GA+dak1-1

hsqldb

1.8.0.2

libhsqldb-java

1.8.0.2-2

ibm-wsdl4j

1.5.1

jacorb

2.2.1jboss

jaxen

1.1beta4

libjaxen-java

1.0FCS-3

jfreechart

0.9.20

libjfreechart-java

1.0.1-1

jgroups

2.2.7

joesnmp

0.3.3

juddi

0.9RC4

junit

3.8.1

junit

3.8.1.1-7

junitejb

1.4

objectweb-joramtests

1.1

odmg

3.0

oswego-concurrent

1.3.4

qdox

1.4

retrotranslator

0.9.6jboss

sleepycat

1.5.2

sun-jaf

1.0.2

sun-javacc

3.2

javacc

3.2+0-3

sun-javamail

1.3.1

sun-servlet

libservlet2.4-java

trove

2.1.1

wutka-dtdparser

1.2.1

xdoclet

1.2b3

xml-sax

2.0.x

Building with other free tools

java-gcj-compat-dev

Calling build/build.sh (which in turn calls ant) fails very early with:

{{{ init:

_buildmagic:modules:most: BUILD FAILED

java.lang.?NoClassDefFoundError: while resolving class: org.jboss.util.Objects }}} Any hints on why this happens would be appreciated. Nevertheless the build succeeds in these subdirecories:

  • common/
  • jmx/
  • j2ee/
  • naming/

TODO

  • complete the above table
  • use Debian versions of thirdparty packages, where available
  • package missing thirdparty stuff from the above table, that isn't already in Debian
  • use Debian's ant instead of the one shipped with JBoss

  • fix building with gcj

Building the packages from vcs

Building the Debian Package (jbossas5) from GIT

  • Clone the archives

git clone git://git.debian.org/pkg-jboss/jbossas5-libs.git
git clone git://git.debian.org/pkg-jboss/jbossas5.git
  • Build the jbossas5-libs package

gbp-sid
  • Install the jbossas5-libs package in your buildsystem. With a local repository, add the repo to /var/cache/pbuilder/case-sid.cow/etc/apt/sources.list, log into the image and do a apt-get update.
  • The jbossas5 package is an evil beast a the moment. First install openjdk-6-jre and ant that the sanity check in debian/rules has it's peace.

 apt-get install openjdk-6-jre ant

  • Then create an fake orig.tar.gz

 tar --exclude=.git --exclude=debian -czf jbossas5_5.0.0~GA.orig.tar.gz jbossas5 
  • gbp-sid

Building the Debian Package (jboss4) from Alioth SVN

 (1) mkdir jboss && cd jboss
 (2) svn co svn://svn.debian.org/pkg-jboss/jboss4/trunk jboss4
 (3) wget http://switch.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.4.GA-src.tar.gz
 (4) tar zvxf jboss-4.0.4.GA-src.tar.gz
 (5) cd jboss4 && cp -rl ../jboss-4.0.4.GA-src/* .
 (6) debuild -us -uc
  1. Create a build dir
  2. Checkout debian package source
  3. Get JBoss 4.0.4 from http://labs.jboss.com/portal/jbossas/download

  4. Unpack the upstream source
  5. Copy (actually hardlink) the upstream source into the Debian package source
  6. Build the package


CategoryJava