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.
Created attachment 56588 [details] ebuild file
Created attachment 56590 [details] patch file to put in files/
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.
Created attachment 56946 [details] ebuild file compatible with new tomcat layout (tomcat-5.0.28)
Created attachment 56947 [details, diff] patch file for axis-1.2-r3
I updated the ebuild and patch file, for the new layout and I get the new rc3 axis
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 >} >
*** Bug 92257 has been marked as a duplicate of this bug. ***
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.
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.
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
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.
Created attachment 58985 [details] ebuild for axis 1.2 from Bug 92257
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?
Yeah ... if you see the new ebuild, moved from Bug 92257, does check it :)
Axis 1.2.1 is out, you might want to upgrade the ebuild...
(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
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 ~ # --------------
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)
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)
Created attachment 71805 [details] axis-1.3.ebuild
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.
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}
Created attachment 90142 [details] axis-1.4.ebuild
Comment on attachment 90142 [details] axis-1.4.ebuild only renamed from axis-1.3.ebuild works
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.
Created attachment 94341 [details] axis-1.4.ebuild Ebuild working with attached jdk1.5 patch
Created attachment 94342 [details, diff] files/axis-1.4-jdk15.patch
Don't attach ebuilds as application/octet-stream. text/plain is the right type. Doing otherwise prevents you from viewing ebuilds from a browser.
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.
axis is already in tree for some time