[Jpackage-commits] dist/jbossws/devel .cvsignore, 1.1, 1.2 jbossws-1.0.0-ContentHandlerRegistry.patch, NONE, 1.1 jbossws-1.0.0-build-thirdparty_xml.patch, NONE, 1.1 jbossws-1.0.0-build_xml.patch, NONE, 1.1 jbossws.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:52:42 CEST 2008


Update of /home/projects/jpackage/cvs/dist/jbossws/devel
In directory ryu.zarb.org:/tmp/cvs-serv16679/devel

Modified Files:
	.cvsignore sources 
Added Files:
	jbossws-1.0.0-ContentHandlerRegistry.patch 
	jbossws-1.0.0-build-thirdparty_xml.patch 
	jbossws-1.0.0-build_xml.patch jbossws.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jbossws/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:52:20 -0000	1.1
--- .cvsignore	28 May 2008 18:52:40 -0000	1.2
***************
*** 0 ****
--- 1,2 ----
+ jbossws-1.0.0.GA.tar.gz
+ jbossws-docbook-support.tar.gz

--- NEW FILE: jbossws-1.0.0-build_xml.patch ---
--- build.xml.sav	2006-04-28 11:48:41.000000000 -0400
+++ build.xml	2006-06-30 02:48:20.000000000 -0400
@@ -65,7 +65,9 @@
 
     <available property="jboss.thirdparty.available" file="${jboss.thirdparty.dir}" type="dir"/>
     <available property="jbossws.available" file="${jboss.client.dir}/jbossall-client.jar"/>
+<!--
     <fail message="Not available: ${jboss.client.dir}/jbossall-client.jar" unless="jbossws.available"/>
+-->
 
     <tstamp>
       <format property="build.id" pattern="yyyyMMddHHmm"/>
@@ -294,7 +296,7 @@
         <pathelement location="${thirdparty.dir}/javassist.jar"/>
         <pathelement location="${thirdparty.dir}/jbossretro.jar"/>
         <pathelement location="${thirdparty.dir}/jboss-backport-concurrent.jar"/>
-        <pathelement location="${env.ANT_HOME}/lib/ant.jar"/>
+        <pathelement location="${thirdparty.dir}/ant.jar"/>
         <pathelement path="${build.classes.dir}"/>
       </classpath>
       <classpath refid="javac.classpath"/>
@@ -750,4 +752,4 @@
     <ant antfile="${docs.userguide.dir}/build.xml" dir="${docs.userguide.dir}" target="all.doc"/>
   </target>
 
-</project>
\ No newline at end of file
+</project>

--- NEW FILE: jbossws-1.0.0-build-thirdparty_xml.patch ---
--- build-thirdparty.xml.sav	2006-06-29 13:45:57.000000000 -0400
+++ build-thirdparty.xml	2006-06-29 13:49:29.000000000 -0400
@@ -85,16 +85,16 @@
       <pathelement location="${jboss.lib}/jboss-jmx.jar"/>
       <pathelement location="${jboss.lib}/jboss-mbeans.jar"/>
       <pathelement location="${jboss.lib}/jboss-system.jar"/>
-      <pathelement location="${jboss.server.lib}/jboss.jar"/>
-      <pathelement location="${jboss.server.lib}/jboss-j2ee.jar"/>
-      <pathelement location="${jboss.server.lib}/jboss-jaxrpc.jar"/>
-      <pathelement location="${jboss.server.lib}/jboss-saaj.jar"/>
-      <pathelement location="${jboss.server.lib}/jbosssx.jar"/>
-      <pathelement location="${jboss.server.deploy}/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar"/>
-      <pathelement location="${jboss.server.deploy}/jboss-aop-jdk50.deployer/jboss-aspect-library-jdk50.jar"/>
-      <pathelement location="${jboss.server.deploy}/ejb3.deployer/jboss-annotations-ejb3.jar"/>
-      <pathelement location="${jboss.server.deploy}/ejb3.deployer/jboss-ejb3.jar"/>
-      <pathelement location="${jboss.server.deploy}/ejb3.deployer/jboss-ejb3x.jar"/>
+      <pathelement location="${jboss.lib}/jboss.jar"/>
+      <pathelement location="${jboss.lib}/jboss-j2ee.jar"/>
+      <pathelement location="${jboss.lib}/jboss-jaxrpc.jar"/>
+      <pathelement location="${jboss.lib}/jboss-saaj.jar"/>
+      <pathelement location="${jboss.lib}/jbosssx.jar"/>
+      <pathelement location="${jboss.lib}/jboss-aop-jdk50.jar"/>
+      <pathelement location="${jboss.lib}/jboss-aspect-library-jdk50.jar"/>
+      <pathelement location="${jboss.lib}/jboss-annotations-ejb3.jar"/>
+      <pathelement location="${jboss.lib}/jboss-ejb3.jar"/>
+      <pathelement location="${jboss.lib}/jboss-ejb3x.jar"/>
     </path>
     
   </target>

--- NEW FILE: jbossws-1.0.0-ContentHandlerRegistry.patch ---
--- src/main/java/org/jboss/ws/soap/attachment/ContentHandlerRegistry.java.sav	2006-03-31 04:07:47.000000000 -0500
+++ src/main/java/org/jboss/ws/soap/attachment/ContentHandlerRegistry.java	2006-06-29 14:28:35.000000000 -0400
@@ -29,9 +29,12 @@
 import javax.activation.DataContentHandler;
 import javax.activation.MailcapCommandMap;
 
-import com.sun.mail.handlers.multipart_mixed;
-import com.sun.mail.handlers.text_html;
-import com.sun.mail.handlers.text_plain;
+//import com.sun.mail.handlers.multipart_mixed;
+import gnu.mail.handler.MultipartMixed;
+//import com.sun.mail.handlers.text_html;
+import gnu.mail.handler.TextHtml;
+//import com.sun.mail.handlers.text_plain;
+import gnu.mail.handler.TextPlain;
 
 /**
  * <code>ContentHandlerRegistry</code> is responsible for registering
@@ -49,9 +52,12 @@
    {
       addRegistryEntry(XmlDataContentHandler.class);
       addRegistryEntry(ImageDataContentHandler.class);
-      addRegistryEntry(text_plain.class);
-      addRegistryEntry(text_html.class);
-      addRegistryEntry(multipart_mixed.class);
+//      addRegistryEntry(text_plain.class);
+      addRegistryEntry(TextPlain.class);
+//      addRegistryEntry(text_html.class);
+      addRegistryEntry(TextHtml.class);
+//      addRegistryEntry(multipart_mixed.class);
+      addRegistryEntry(MultipartMixed.class);
    }
    
    private static void addRegistryEntry(Class contentHandler) 

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jbossws/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:52:20 -0000	1.1
--- sources	28 May 2008 18:52:40 -0000	1.2
***************
*** 0 ****
--- 1,2 ----
+ f2bfe9a5d0cfccaa5cc6c9921b665f1d  jbossws-1.0.0.GA.tar.gz
+ 54573262add5b16c7d1ec36a11822c96  jbossws-docbook-support.tar.gz

--- NEW FILE: jbossws.spec ---
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define section		free

Summary:	JBoss WS
URL:		http://www.jboss.org/wiki/Wiki.jsp?page=JBossWS
Source0:	jbossws-1.0.0.GA.tar.gz 
# svn export http://anonsvn.jboss.org/repos/jbossws/tags/jbossws-1.0.0.GA
Source1:	jbossws-docbook-support.tar.gz
# FIXME replace with standalone jboss-docbook-support package
Patch0:		jbossws-1.0.0-build_xml.patch
Patch1:		jbossws-1.0.0-build-thirdparty_xml.patch
Patch2:		jbossws-1.0.0-ContentHandlerRegistry.patch

Name:		jbossws
Version:	1.0.0
Release:	2jpp
Epoch:		1
License:	LGPL
Group:          Development/Libraries/Application Frameworks
Vendor:		JPackage Project
Distribution:	JPackage
BuildArch:	noarch
BuildRequires:	jpackage-utils >= 0:1.6
BuildRequires:	ant >= 0:1.6
BuildRequires:	java-devel >= 0:1.5.0
BuildRequires:	backport-util-concurrent >= 0:2.1
BuildRequires:	classpathx-jaf
BuildRequires:	classpathx-mail
BuildRequires:	concurrent
BuildRequires:	dom4j
BuildRequires:	javassist
BuildRequires:	jbossretro
BuildRequires:	jboss-aop
BuildRequires:	jboss-j2se
BuildRequires:	jboss-remoting
BuildRequires:	jboss4-common
BuildRequires:	jboss4-ejb3
BuildRequires:	jboss4-j2ee
BuildRequires:	jboss4-jmx
BuildRequires:	jboss4-server
BuildRequires:	jboss4-system
BuildRequires:	junit
BuildRequires:	log4j
BuildRequires:	qdox
BuildRequires:	tomcat5-servlet-2.4-api
BuildRequires:	wsdl4j-jboss4
BuildRequires:	xalan-j2 >= 0:2.7.0
BuildRequires:	xerces-j2 >= 0:2.7.1
BuildRequires:	xml-commons-apis
BuildRequires:	xml-security
BuildRequires:	xmlunit

Requires:	jpackage-utils >= 0:1.6
Requires:	ant >= 0:1.6
Requires:	backport-util-concurrent >= 0:2.1
Requires:	classpathx-jaf
Requires:	classpathx-mail
Requires:	dom4j
Requires:	javassist
Requires:	jboss-aop
Requires:	jboss-j2se
Requires:	jboss-remoting
Requires:	jboss4-common
Requires:	jboss4-ejb3
Requires:	jboss4-j2ee
Requires:	jboss4-jmx
Requires:	jboss4-server
Requires:	jboss4-system
Requires:	wsdl4j-jboss4
Requires:	xerces-j2 >= 0:2.7.1
Requires:	xml-commons-apis
Requires:	xml-security
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
After JBoss J2EE-1.4 certification in Jun/2004 we have decided 
to develop our own SOAP stack that is independent of the Apache 
Axis project, fits better in the overall JBoss architecture and 
is generally more geared towards the specific J2EE requirements 
for web services.
JBossWS currently supports these standard J2EE-1.4 features:
* RPC style endpoints
* Document style endpoints (wrapped and bare)
* SOAP header values bound/unbound to endpoint parameters
* J2EE endpoint development model for EJB and Java
* J2EE client development model
* Dynamic Invocation Interface (DII)
* JAXRPC client/server side handlers
* Holders for INOUT/OUT parameters
JBossWS also supports:
* Message style endpoints
* Attachments Profile Version 1.0
* Dynamic client/server side handler injection
* Web Service Metadata (JSR-181)
* EJB3 Stateless Session endpoints
* WS-Security for XML Encryption/Signature of the SOAP message
* WS-Addressing and JSR-261
* WS-Transaction
* WS-Eventing
* WS-Policy
* MTOM/XOP


%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%package manual
Summary:        Documents for %{name}
Group:          Development/Documentation

%description manual
%{summary}.

%package demo
Summary:        Samples for %{name}
Group:          Development/Libraries/Application Frameworks

%description demo
%{summary}.

%prep
%setup -q -n %{name}-%{version}.GA
chmod -R go=u-w *
for j in $(find . -name "*.jar"); do 
	mv $j $j.no
done
pushd docs
tar xzf %{SOURCE1}
popd

%patch0 -b .sav
%patch1 -b .sav
%patch2 -b .sav

mkdir -p thirdparty/apache-ant/1.6.5/lib
pushd thirdparty/apache-ant/1.6.5/lib
ln -sf $(build-classpath ant) .
popd

mkdir lib
pushd lib
ln -sf $(build-classpath jboss4/jboss-common) 
ln -sf $(build-classpath jboss4/jboss-ejb3) 
ln -sf $(build-classpath jboss-j2se/jboss-j2se) 
ln -sf $(build-classpath jboss4/jboss-jmx) 
#ln -sf $(build-classpath jboss4/jboss-mbeans) 
ln -sf $(build-classpath jboss4/jboss-system) 
ln -sf $(build-classpath jboss4/jboss) 
ln -sf $(build-classpath jboss4/jboss-j2ee) 
ln -sf $(build-classpath jboss4/jboss-jaxrpc) 
ln -sf $(build-classpath jboss4/jboss-saaj) 
ln -sf $(build-classpath jboss4/jbosssx) 
ln -sf $(build-classpath jboss-aop/jboss-aop-jdk50) 
popd


pushd thirdparty
ln -sf $(build-classpath ant) .
ln -sf $(build-classpath log4j) .
ln -sf $(build-classpath xalan-j2) xalan.jar
ln -sf $(build-classpath xalan-j2-serializer) serializer.jar
ln -sf $(build-classpath xerces-j2) xercesImpl.jar
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
ln -sf $(build-classpath xml-security) xmlsec.jar
ln -sf $(build-classpath dom4j) .
ln -sf $(build-classpath wsdl4j-jboss4) wsdl4j.jar
ln -sf $(build-classpath javassist) .
ln -sf $(build-classpath backport-util-concurrent) jboss-backport-concurrent.jar
ln -sf $(build-classpath jboss-remoting) .
ln -sf $(build-classpath jbossretro) .
ln -sf $(build-classpath jboss4/jboss-xml-binding) .
ln -sf $(build-classpath junit) .
ln -sf $(build-classpath concurrent) .
ln -sf $(build-classpath qdox) .
ln -sf $(build-classpath classpathx-jaf) activation.jar
ln -sf $(build-classpath javamail/mailapi) .
ln -sf $(build-classpath servletapi5) servlet-api.jar
ln -sf $(build-classpath xmlunit) xmlunit1.0.jar

popd


%build

export JAVA_HOME=/usr/lib/jvm/java-1.5.0
export JBOSS_HOME=/usr/share/jboss4
export ANT_HOME=/usr/share/ant
mkdir api
ant \
	-Dretro=true \
	-Dnoget=true \
	-Djboss.jdk15.home=$(pwd)/home \
	-Djboss.repository=$(pwd)/thirdparty \
	-Djboss.home=$(pwd) \
	-Dbuild.api=api \
	all javadoc


%install
rm -rf $RPM_BUILD_ROOT

# jar
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}

install -p -m 0644 output/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-%{version}.jar
install -p -m 0644 output/lib/%{name}14.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}14-%{version}.jar
install -p -m 0644 output/lib/%{name}-client.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-client-%{version}.jar
install -p -m 0644 output/lib/%{name}14-client.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}14-client-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{name}
install -p -m 0644 output/lib/%{name}.war $RPM_BUILD_ROOT%{_datadir}/%{name}
install -p -m 0644 output/lib/%{name}.sar $RPM_BUILD_ROOT%{_datadir}/%{name}
install -p -m 0644 output/lib/%{name}14.sar $RPM_BUILD_ROOT%{_datadir}/%{name}

install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{name}/etc
cp -pr output/etc/*.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/etc
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{name}/bin
cp -pr output/etc/*.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/bin

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

# manual
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr output/dist/docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}


# demo
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{name}/samples
cp -pr output/%{name}-samples-%{version}.GA/* $RPM_BUILD_ROOT%{_datadir}/%{name}/samples

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -sf %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
  rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}
%{_datadir}/%{name}/*.?ar
%{_datadir}/%{name}/etc
%dir %{_datadir}/%{name}/bin
%attr(0755,root,root) %{_datadir}/%{name}/bin/*.sh

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%files manual
%defattr(0644,root,root,0755)
%{_docdir}/%{name}-%{version}

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}/samples

%changelog
* Thu Jul 13 2006 Ralph Apel <r.apel at r-apel.de> 1:1.0.0-2jpp
- Fix (B)Requires
* Fri Jun 30 2006 Ralph Apel <r.apel at r-apel.de> 1:1.0.0-1jpp
- Downgrade to 1.0.0.GA
* Fri Jun 23 2006 Ralph Apel <r.apel at r-apel.de> 0:1.0.1-1jpp
- First JPP-5.0 release




More information about the JPackage-commits mailing list