Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89556 - ebuild for axis as a webapp
Summary: ebuild for axis as a webapp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: EBUILD
: 92257 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-18 10:36 UTC by Tupone Alfredo
Modified: 2011-01-19 03:00 UTC (History)
2 users (show)

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


Attachments
ebuild file (axis-1.2_rc2.ebuild,2.22 KB, text/plain)
2005-04-18 10:38 UTC, Tupone Alfredo
Details
patch file to put in files/ (axis-1.2-r1-gentoo.patch,745 bytes, text/plain)
2005-04-18 10:40 UTC, Tupone Alfredo
Details
ebuild file compatible with new tomcat layout (tomcat-5.0.28) (axis-1.2_rc3.ebuild,2.14 KB, text/plain)
2005-04-22 14:00 UTC, Tupone Alfredo
Details
patch file for axis-1.2-r3 (axis-1.2-r3.patch,757 bytes, patch)
2005-04-22 14:01 UTC, Tupone Alfredo
Details | Diff
ebuild for axis 1.2 (axis-1.2.ebuild,2.95 KB, text/plain)
2005-05-16 00:30 UTC, Tupone Alfredo
Details
axis-1.3.ebuild (axis-1.3.ebuild,4.31 KB, text/plain)
2005-10-31 08:31 UTC, Thomas Matthijs (RETIRED)
Details
axis-1.4.ebuild (axis-1.4.ebuild,4.30 KB, text/plain)
2006-06-25 13:10 UTC, Martin Jansa
Details
add missing functions to non-abstract classes extended from abstract ascendant (axis-1.4.diff,100.92 KB, patch)
2006-06-25 13:11 UTC, Martin Jansa
Details | Diff
axis-1.4.ebuild (axis-1.4.ebuild,4.34 KB, text/plain)
2006-08-15 11:32 UTC, Martin Jansa
Details
files/axis-1.4-jdk15.patch (axis-1.4-jdk15.patch,100.91 KB, patch)
2006-08-15 11:33 UTC, Martin Jansa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tupone Alfredo gentoo-dev 2005-04-18 10:36:45 UTC
I did an ebuild to install axis as a web-server inside tomcat.
I had already put those info associated to bug 38899, but perhaps that is a wrong place for it.
Comment 1 Tupone Alfredo gentoo-dev 2005-04-18 10:38:28 UTC
Created attachment 56588 [details]
ebuild file
Comment 2 Tupone Alfredo gentoo-dev 2005-04-18 10:40:22 UTC
Created attachment 56590 [details]
patch file to put in files/
Comment 3 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-18 11:13:38 UTC
please port your ebuild and patches to the new layout (>=tomcat-5.0.28), reopen if you're done. otherwise it will stay WONTFIX, sorry.
Comment 4 Tupone Alfredo gentoo-dev 2005-04-22 14:00:11 UTC
Created attachment 56946 [details]
ebuild file compatible with new tomcat layout (tomcat-5.0.28)
Comment 5 Tupone Alfredo gentoo-dev 2005-04-22 14:01:38 UTC
Created attachment 56947 [details, diff]
patch file for axis-1.2-r3
Comment 6 Tupone Alfredo gentoo-dev 2005-04-22 14:02:52 UTC
I updated the ebuild and patch file, for the new layout and I get the new rc3 axis
Comment 7 Tupone Alfredo gentoo-dev 2005-05-05 12:15:32 UTC
Comment on attachment 56946 [details]
ebuild file compatible with new tomcat layout (tomcat-5.0.28)

># Copyright 1999-2005 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: /var/cvsroot/gentoo-x86/www-servers/axis/axis-1.2_rc2.ebuild,v 1.4 2005/04/04 15:01:05 axxo Exp $
>
>inherit eutils java-pkg
>
>DESCRIPTION="Apache Axis SOAP implementation"
>HOMEPAGE="http://ws.apache.org/axis/"
>MY_PV="${PV//./_}"
>MY_PV="${MY_PV/_rc/RC}"
>MY_P="${PN}-${MY_PV}"
>SRCFILE="${PN}-src-${MY_PV}.tar.gz"
>SRC_URI="mirror://apache/ws/${PN}/${MY_PV}/${SRCFILE}"
>
>RDEPEND=">=virtual/jre-1.3.1
Probably this
>		tomcat? ( www-servers/tomcat )"
Should be changed with 
		tomcat? ( >=www-servers/tomcat-5.0.28 )"

>DEPEND=">=virtual/jdk-1.3.1
>		>=dev-java/ant-1.5.3
>		dev-java/commons-logging
>		dev-java/commons-discovery
>		dev-java/log4j
>		dev-java/wsdl4j
>		dev-java/sun-jaf-bin
>		dev-java/sun-javamail-bin
>		jikes? ( >=dev-java/jikes-1.21 )
>		>=dev-java/xerces-2
>		tomcat? ( >=dev-java/servletapi-2.2 )"
>LICENSE="Apache-1.1"
>SLOT="1"
>KEYWORDS="~x86 ~amd64"
>IUSE="debug doc jikes tomcat"
>S=${WORKDIR}/${MY_P}
>
>src_unpack() {
>	unpack ${A}
>
>	cd ${S}
>	epatch ${FILESDIR}/axis-1.2-r3.patch
>
>	for i in `find . -name "*.jar"`
>	do
>		rm -f $i
>	done
>	find . -name \*.class | xargs rm -f
>
>	cd ${S}/lib
>	java-pkg_jar-from commons-discovery
>	java-pkg_jar-from commons-logging
>	java-pkg_jar-from log4j
>	java-pkg_jar-from wsdl4j
>	java-pkg_jar-from sun-jaf-bin
>	use tomcat && java-pkg_jar-from servletapi-2.4
>	java-pkg_jar-from sun-javamail-bin
>	java-pkg_jar-from xerces-2
>}
>
>src_compile() {
>	use tomcat && local antflags="war"
>	use !tomcat && local antflags="compile"
>	antflag="${antflags}  -Ddeprecation=false"
>	use doc && antflags="${antflags} javadocs"
>	use debug && antflags="${antflags} -Ddebug=on"
>	use !debug && antflags="${antflags} -Ddebug=off"
>	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
>	ant ${antflags} || die "compilation problem"
>}
>
>src_install() {
>	java-pkg_dojar build/lib/axis*.jar
>	java-pkg_dojar build/lib/jaxrpc.jar
>	java-pkg_dojar build/lib/saaj.jar
>	if use tomcat; then
>	  dodir /var/lib/tomcat-5/default/
>	  cp -R build/webapps ${D}/var/lib/tomcat-5/default/
>	  fowners -R tomcat:tomcat /var/lib/tomcat-5/default/
>	fi
>	if use doc; then
>		dodoc release-notes.html changelog.html
>		dohtml docs/*
>		java-pkg_dohtml build/javadocs/
>	fi
>}
>
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-05-11 09:06:57 UTC
*** Bug 92257 has been marked as a duplicate of this bug. ***
Comment 9 Tupone Alfredo gentoo-dev 2005-05-12 11:48:08 UTC
don't know by duplicate what you mean. I opened both but 
Bug 92257 is related to 1.2 release while this is 1.2rc3, does not use patch to fix ant build, and actually fix a lot of things, like docs, examples and more.
Comment 10 Al Baker 2005-05-15 20:35:07 UTC
I used the two attachments (1.2-r3 ebuild and the patch to the ebuild).  Unfortunately, this did not deploy Axis inside Tomcat (5.0.27-r5) which is the latest stable I believe.  Tomcat's runtime webapps directory is /opt/tomcat5/webapps, and it installed Axis into /var/lib/tomcat-5/default/webapps/axis.   There is nothing else in /var/lib/tomcat-5, but that default directory and what Axis created inside it.  All tomcat5 appears to be in /opt/tomcat5

However, what was missing was the jws class files.  They are not in webapps/axis/WEB-INF/, so all of the jws tests spit out exceptions.
Comment 11 Al Baker 2005-05-15 20:37:06 UTC
To follow up on comment 10, when I copied the stuff over from the /var directory to the /opt directory, Axis finally loaded into Tomcat -- it was a joyous occasion 
Comment 12 Tupone Alfredo gentoo-dev 2005-05-16 00:28:40 UTC
ebuild is for >=tomcat-5.0.28 ; that version of tomcat uses the /var tree instead of the /opt.

Going to update the ebuild here from Bugs=92257 ... where I have uploaded a better ebuild for the axis-1.2 (new version, not rc3) that does not use any patch file.
Comment 13 Tupone Alfredo gentoo-dev 2005-05-16 00:30:23 UTC
Created attachment 58985 [details]
ebuild for axis 1.2

from Bug 92257
Comment 14 Al Baker 2005-05-16 07:32:17 UTC
Ok, so I was a point release off my tomcat.. shouldn't the ebuild have enforced that dependency and asked me to upgrade my tomcat?
Comment 15 Tupone Alfredo gentoo-dev 2005-05-16 08:28:50 UTC
Yeah ... if you see the new ebuild, moved from Bug 92257, does check it :)
Comment 16 Alexander Wessel 2005-07-13 06:39:24 UTC
Axis 1.2.1 is out, you might want to upgrade the ebuild... 
Comment 17 Tupone Alfredo gentoo-dev 2005-07-14 05:36:56 UTC
(In reply to comment #16)
> Axis 1.2.1 is out, you might want to upgrade the ebuild... 

Have not checked deeply, but seems that just renaming axis-1.2.ebuild into
axis-1.2.1.ebuild does the trick. At least it build correctly.

If you test it and have some problem with the build, I 'd look deeply at those
Comment 18 ProTech 2005-08-30 01:28:00 UTC
I tried to bump the version of the ebuild. The name of the source file
is changed from axis-1_2_1-src.tar.gz to axis-src-1_2_1.tar.gz. The src
is now before the version. And the patch doesn't apply correctly:

--------------
 * Applying axis-1.2-gentoo.patch ...

 * Failed Patch: axis-1.2-gentoo.patch !
 *  ( /usr/local/portage/www-servers/axis/files/axis-1.2-gentoo.patch )
 *
 * Include in your bugreport the contents of:
 *
hu3cs41c ~ #
--------------
Comment 19 Tupone Alfredo gentoo-dev 2005-08-30 03:48:24 UTC
I have used the ebuild for axis 1.2 (from the attachment) and renamed to
axis-1.2.1.ebuild. It works, and does not use the patch file you cited in your
message.
(In reply to comment #18)
Comment 20 ProTech 2005-08-31 02:58:11 UTC
Sorry! I renamed the 1.2rc ebuild found in portage. The one in the attachment is
working for me too. Thanks!
(In reply to comment #19)
Comment 21 Thomas Matthijs (RETIRED) gentoo-dev 2005-10-31 08:31:52 UTC
Created attachment 71805 [details]
axis-1.3.ebuild
Comment 22 Josh Nichols (RETIRED) gentoo-dev 2006-01-08 18:38:06 UTC
It would probably be better to create a war file, and then java-pkg_dowar on it. 

It doesn't make so much sense to explicitly tie this to tomcat, as you should be easily able to this webapp in any other webcontainer, like resin or jetty.

I think it's been brought up at some point, but it would probably be nice to have like a java-webapp-config tool for installing webapps into a web container.
Comment 23 Tupone Alfredo gentoo-dev 2006-01-11 03:32:40 UTC
I had to apply this patch, as axis-ant.jar does not get build

--- axis-1.3.ebuild.old 2006-01-11 12:45:00.000000000 +0100
+++ axis-1.3.ebuild     2006-01-11 11:35:16.000000000 +0100
@@ -104,7 +104,7 @@
 }

 src_install() {
-       local axisjars="axis.jar axis-ant.jar jaxrpc.jar saaj.jar" jar
+       local axisjars="axis.jar jaxrpc.jar saaj.jar" jar
        for jar in ${axisjars}; do java-pkg_dojar build/lib/${jar}; done

        use source && java-pkg_dosrc src/{org,javax}
Comment 24 Martin Jansa 2006-06-25 13:10:13 UTC
Created attachment 90142 [details]
axis-1.4.ebuild
Comment 25 Martin Jansa 2006-06-25 13:10:38 UTC
Comment on attachment 90142 [details]
axis-1.4.ebuild

only renamed from axis-1.3.ebuild works
Comment 26 Martin Jansa 2006-06-25 13:11:27 UTC
Created attachment 90143 [details, diff]
add missing functions to non-abstract classes extended from abstract ascendant

I have to use attached diff to successfully merge. Maybe it's needed only with
newer xerces (2.8.0) or something.

It's adding functions from org.w3c.dom interfaces to solve "abstract class"
issues.
Please check it before using it.
Comment 27 Martin Jansa 2006-08-15 11:32:58 UTC
Created attachment 94341 [details]
axis-1.4.ebuild

Ebuild working with attached jdk1.5 patch
Comment 28 Martin Jansa 2006-08-15 11:33:49 UTC
Created attachment 94342 [details, diff]
files/axis-1.4-jdk15.patch
Comment 29 Josh Nichols (RETIRED) gentoo-dev 2006-08-16 00:28:43 UTC
Don't attach ebuilds as application/octet-stream. text/plain is the right type. Doing otherwise prevents you from viewing ebuilds from a browser.
Comment 30 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-10-02 05:09:30 UTC
Here's axis 1.4: https://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/www-servers/axis/

But didn't have time to look at the webapp install or trying to make it build with 1.5 jdk yet. If you care, make your patches against this one. Also after first look at the jdk15.patch attached, I think it should be throwing UnsupportedOperationException instead of returning null/false.
Comment 31 Miroslav Šulc gentoo-dev 2011-01-19 03:00:05 UTC
axis is already in tree for some time