Delete old RC tags
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@799575 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
50107a2916
commit
640dc24e25
2913 changed files with 0 additions and 261259 deletions
|
@ -1,44 +0,0 @@
|
|||
Building the Apache Tuscany SCA source distribution
|
||||
===================================================
|
||||
|
||||
Initial Setup
|
||||
-------------
|
||||
|
||||
1) Install J2SE 5.0 SDK, which can be downloaded from
|
||||
http://java.sun.com/j2se/1.5.0/download.jsp. Use version of 1.5.0_06 JDK or higher.
|
||||
|
||||
2) Make sure that your JAVA_HOME environment variable is set to the newly installed
|
||||
JDK location, and that your PATH includes %JAVA_HOME%\bin (windows) or
|
||||
$JAVA_HOME$/bin (unix).
|
||||
|
||||
3) Install Maven 2.0.7 or higher, which can be downloaded from
|
||||
http://maven.apache.org/download.html. Make sure that your PATH includes
|
||||
the MVN_HOME/bin directory.
|
||||
|
||||
4) Make sure that your MAVEN_OPTS environment variable has -Xmx128M (or more),
|
||||
you can manually do this by executing the following in your prompt :
|
||||
Windows users:
|
||||
set MAVEN_OPTS=-Xmx128M
|
||||
Unix users:
|
||||
export MAVEN_OPTS=-Xmx128M
|
||||
|
||||
|
||||
Building
|
||||
--------
|
||||
|
||||
1) Change to the top level directory of Apache Tuscany source distribution.
|
||||
2) Run
|
||||
|
||||
$> mvn
|
||||
|
||||
This will compile Apache Tuscany and run all of the tests in the source
|
||||
distribution.
|
||||
|
||||
Depending on the load of remote Maven 2.0 repositories, you may have
|
||||
to run "mvn" several times utill the required dependencies are
|
||||
all located in your local maven repository. It usually takes some time for
|
||||
maven to download required dependencies in the first build. Once all the
|
||||
dependencies have been downloaded you may use the -o option to run maven
|
||||
in offline mode, for example, 'mvn clean install -o'.
|
||||
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
Changes With Apache Tuscany SCA 2.0-M3 June 2009
|
||||
================================================
|
||||
|
||||
Highlights include:
|
||||
- Support for <implementation.bpel> and the OASIS BPEL specification
|
||||
- Support for <implementation.spring> and the draft OASIS Spring specification
|
||||
- Support for the new SCACleint API as defined in the OASIS spec drafts
|
||||
- Runtime support for SCA contributions in ZIP archives from the OASIS Assembly spec
|
||||
- New Maven archetype to simplify create ZIP contributions
|
||||
- New tuscany:run maven plugin for easy running SCA contributions
|
||||
- Clean up and simplify the Tuscany module structure
|
||||
- Various fixes for Assembly spec compliance and improved error reporting
|
||||
- New deep integration into Apache Tomcat
|
||||
|
||||
|
||||
Changes With Apache Tuscany SCA 2.0-M2 April 2009
|
||||
=================================================
|
||||
|
||||
Highlights include:
|
||||
- OSGi Enhancements including support for <implementation.osgi> and a new OSGi RFC119 prototype
|
||||
- Many updates towards support for OASIS OpenCSA specification and the use OASIS namespaces and schemas
|
||||
- Start to implement the SCA policy framework 1.1 spec draft from OASIS OpenCSA
|
||||
- New Endpoint and EndpoitReference structures
|
||||
- Webapps integration support including <implementation.web> and the web application composite along
|
||||
- with support for various web technologies and frameworks including JSP support, JSF support with
|
||||
- Apache MyFaces, and integration with the Stripes Web Framework
|
||||
- New Maven Archetypes to make developing SCA applications easier,
|
||||
see http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+Maven+Archetypes
|
||||
|
||||
Changes With Apache Tuscany SCA 2.0-M1 February 2009
|
||||
====================================================
|
||||
|
||||
The first milestone release for the 2.0 codebase
|
||||
|
||||
Features and/or Enhancements
|
||||
|
||||
* SCA Specification support
|
||||
- The change over from OSOA SCA specification support to OASIS SCA
|
||||
specification support is now in progress. As such we don't claim to
|
||||
support either the OSOA or OASIS SCA specifications in the
|
||||
2.0 codebase yet.
|
||||
|
||||
* Core
|
||||
- Enable Tuscany to run inside an OSGi runtime
|
||||
- Updated SCA API package names.
|
||||
|
||||
* Other Extensions
|
||||
- Binding RMI
|
||||
- RMI Binding
|
||||
- Binding WS
|
||||
- WebServices Binding
|
||||
|
||||
* Samples/Tutorial/Demos
|
||||
- binding-ws-calculator/
|
||||
- calculator/
|
||||
- calculator-equinox/
|
||||
- calculator-osgi/
|
||||
- calculator-rmi-reference/
|
||||
- calculator-rmi-service/
|
||||
- implementation-java-calculator
|
|
@ -1,485 +0,0 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
||||
===============================================================================================================
|
||||
|
||||
Apache Tuscany SCA for Java Subcomponents
|
||||
=========================================:
|
||||
|
||||
The Tuscany SCA for Java release includes a number of subcomponents with
|
||||
separate copyright notices and license terms. Your use of the source
|
||||
code for the these subcomponents is subject to the terms and
|
||||
conditions of the following licenses.
|
||||
|
||||
===============================================================================================================
|
||||
|
||||
The module itest/databindings/common includes the test schema; datagraph.xsd, sdoJava.xsd, and sdoModel.xsd
|
||||
under the following license:
|
||||
|
||||
License for the Service Data Objects JavaDoc, Interface Definition files
|
||||
and XSD files.
|
||||
|
||||
The Service Data Objects JavaDoc, Interface Definition files and XSD files
|
||||
are being provided by the copyright holders under the following license.
|
||||
By using and/or copying this work, you agree that you have read,
|
||||
understood and will comply with the following terms and conditions:
|
||||
|
||||
Permission to copy, display, make derivative works of and distribute
|
||||
the Service Data Objects JavaDoc, Interface Definition files and XSD files
|
||||
(the "Artifacts") in any medium without fee or royalty is hereby granted,
|
||||
provided that you include the following on ALL copies of the Artifacts,
|
||||
or portions thereof, that you make:
|
||||
|
||||
1. A link or URL to the Artifacts at this location:
|
||||
http://www.osoa.org/display/Main/Service+Data+Objects+Specifications
|
||||
|
||||
2. The full text of this copyright notice as shown in the Artifacts.
|
||||
|
||||
|
||||
|
||||
THE ARTIFACTS ARE PROVIDED "AS IS" AND THE AUTHORS MAKE NO
|
||||
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THE
|
||||
ARTIFACTS AND THE IMPLEMENTATION OF THEIR CONTENTS,
|
||||
INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OR TITLE.
|
||||
|
||||
THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
|
||||
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
|
||||
USE OR DISTRIBUTION OF THE ARTIFACTS.
|
||||
|
||||
The name and trademarks of the Authors may NOT be used in any manner,
|
||||
including advertising or publicity pertaining to the Service Data
|
||||
Objects Specification or its contents without specific, written prior
|
||||
permission. Title to copyright in the Service Data Objects
|
||||
Specification will at all times remain with the Authors.
|
||||
|
||||
No other rights are granted by implication, estoppel or otherwise.
|
||||
|
||||
Revision level 1.11, last updated on 2007/12/21
|
||||
|
||||
=================================================================================================================
|
||||
|
||||
The module implementation-script temporarily includes one file under the following BSD license:
|
||||
|
||||
Copyright (c) 2006, Sun Microsystems, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
- 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.
|
||||
|
||||
- Neither the name of the Sun Microsystems, Inc. nor the names of
|
||||
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.
|
||||
|
||||
=================================================================================================================
|
||||
|
||||
The module assembly-xsd includes XSD files under the following license:
|
||||
|
||||
License for the Service Component Architecture JavaDoc, Interface
|
||||
Definition files and XSD files.
|
||||
|
||||
The Service Component Architecture JavaDoc, Interface Definition files,
|
||||
and XSD files are being provided by the copyright holders under the
|
||||
following license. By using and/or copying this work, you agree that
|
||||
you have read, understood and will comply with the following terms and
|
||||
conditions:
|
||||
|
||||
Permission to copy, display, make derivative works of, and distribute
|
||||
the Service Component Architecture JavaDoc, Interface Definition Files
|
||||
and XSD files (the "Artifacts") in any medium without fee or royalty is
|
||||
hereby granted, provided that you include the following on ALL copies
|
||||
of the Artifacts, or portions thereof, that you make:
|
||||
|
||||
1. A link or URL to the Artifacts at this location:
|
||||
http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications
|
||||
|
||||
2. The full text of this copyright notice as shown in the Artifacts.
|
||||
|
||||
THE ARTIFACTS ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO
|
||||
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THE
|
||||
ARTIFACTS AND THE IMPLEMENTATION OF THEIR CONTENTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE, NON-INFRINGEMENT OR TITLE.
|
||||
|
||||
THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
|
||||
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
|
||||
USE OR DISTRIBUTION OF THE ARTIFACTS.
|
||||
|
||||
The name and trademarks of the Authors may NOT be used in any manner,
|
||||
including advertising or publicity pertaining to the Service Component
|
||||
Architecture Specification or its contents without specific, written
|
||||
prior permission. Title to copyright in the Service Component
|
||||
Architecture Specification and the JavaDoc, Interface Definition Files
|
||||
and XSD Files will at all times remain with the Authors.
|
||||
|
||||
No other rights are granted by implication, estoppel or otherwise.
|
||||
|
||||
Revision level 1.1, last updated on 2007/11/19
|
||||
|
||||
=================================================================================================================
|
||||
|
||||
The modules assembly-xsd and definitions-xml includes XSD and XML files under the following license:
|
||||
|
||||
Copyright OASIS 2005, 2009. All Rights Reserved.
|
||||
All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual
|
||||
Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website.
|
||||
This document and translations of it may be copied and furnished to others, and derivative works that
|
||||
comment on or otherwise explain it or assist in its implementation may be prepared, copied, published,
|
||||
and distributed, in whole or in part, without restriction of any kind, provided that the above copyright
|
||||
notice and this section are included on all such copies and derivative works. However, this document
|
||||
itself may not be modified in any way, including by removing the copyright notice or references to OASIS,
|
||||
except as needed for the purpose of developing any document or deliverable produced by an OASIS
|
||||
Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR
|
||||
Policy, must be followed) or as required to translate it into languages other than English.
|
||||
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors
|
||||
or assigns.
|
||||
This document and the information contained herein is provided on an "AS IS" basis and OASIS
|
||||
DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
|
||||
WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP
|
||||
RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
OASIS requests that any OASIS Party or any other party that believes it has patent claims that would
|
||||
necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard,
|
||||
to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to
|
||||
such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that
|
||||
produced this specification.
|
||||
OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of
|
||||
any patent claims that would necessarily be infringed by implementations of this specification by a patent
|
||||
holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR
|
||||
Mode of the OASIS Technical Committee that produced this specification. OASIS may include such
|
||||
claims on its website, but disclaims any obligation to do so.
|
||||
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that
|
||||
might be claimed to pertain to the implementation or use of the technology described in this document or
|
||||
the extent to which any license under such rights might or might not be available; neither does it represent
|
||||
that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to
|
||||
rights in any document or deliverable produced by an OASIS Technical Committee can be found on the
|
||||
OASIS website. Copies of claims of rights made available for publication and any assurances of licenses
|
||||
to be made available, or the result of an attempt made to obtain a general license or permission for the use
|
||||
of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS
|
||||
Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any
|
||||
information or list of intellectual property rights will at any time be complete, or that any claims in such list
|
||||
are, in fact, Essential Claims.
|
||||
The names "OASIS", are trademarks of OASIS, the owner and developer of this specification, and should
|
||||
be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and
|
||||
implementation and use of, specifications, while reserving the right to enforce its marks against misleading
|
||||
uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance.
|
||||
|
||||
=================================================================================================================
|
||||
|
||||
The module assembly-xsd includes XSD files under the following license:
|
||||
|
||||
http://www.w3.org/Consortium/Legal/copyright-software-19980720
|
||||
|
||||
W3C® SOFTWARE NOTICE AND LICENSE
|
||||
Copyright (c) 1994-2002 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche
|
||||
en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/
|
||||
|
||||
This W3C work (including software, documents, or other related items) is being provided by the copyright holders under
|
||||
the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood,
|
||||
and will comply with the following terms and conditions:
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its documentation, with or without modification,
|
||||
for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies
|
||||
of the software and documentation or portions thereof, including modifications, that you make:
|
||||
|
||||
1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
|
||||
2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short
|
||||
notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed
|
||||
or derivative code: "Copyright (c) [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of Technology,
|
||||
Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
|
||||
3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs
|
||||
to the location from which the code is derived.)
|
||||
|
||||
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE
|
||||
OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
||||
|
||||
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE
|
||||
OF THE SOFTWARE OR DOCUMENTATION.
|
||||
|
||||
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software
|
||||
without specific, written prior permission. Title to copyright in this software and any associated documentation will
|
||||
at all times remain with copyright holders.
|
||||
|
||||
=================================================================================================================
|
||||
|
||||
The module assembly-xsd includes XSD files under the following license:
|
||||
|
||||
The modules
|
||||
|
||||
binding-ws-xml
|
||||
databinding
|
||||
databinding-axiom
|
||||
databinding-jaxb
|
||||
databinding-json
|
||||
databinding-sdo
|
||||
databinding-sdo-axiom
|
||||
databinding-xmlbeans
|
||||
interface-wsdl-xml
|
||||
|
||||
Include the ipo.xsd and address.xsd information from the XML Schema Primer
|
||||
(http://www.w3.org/TR/2004/PER-xmlschema-0-20040318/) combined into the
|
||||
file ipo.xsd and extended with UK postcode structures.
|
||||
|
||||
The ipo.xsd file is also included under the following license:
|
||||
|
||||
W3C(c) SOFTWARE NOTICE AND LICENSE
|
||||
http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
|
||||
This work (and included software, documentation such as READMEs, or other
|
||||
related items) is being provided by the copyright holders under the following
|
||||
license. By obtaining, using and/or copying this work, you (the licensee) agree
|
||||
that you have read, understood, and will comply with the following terms and conditions.
|
||||
|
||||
Permission to copy, modify, and distribute this software and its documentation,
|
||||
with or without modification, for any purpose and without fee or royalty is
|
||||
hereby granted, provided that you include the following on ALL copies of the
|
||||
software and documentation or portions thereof, including modifications:
|
||||
|
||||
1. The full text of this NOTICE in a location viewable to users of the
|
||||
redistributed or derivative work.
|
||||
2. Any pre-existing intellectual property disclaimers, notices, or terms
|
||||
and conditions. If none exist, the W3C Software Short Notice should be
|
||||
included (hypertext is preferred, text is permitted) within the body of
|
||||
any redistributed or derivative code.
|
||||
3. Notice of any changes or modifications to the files, including the date
|
||||
changes were made. (We recommend you provide URIs to the location from which
|
||||
the code is derived.)
|
||||
|
||||
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
|
||||
NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,
|
||||
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
|
||||
USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS,
|
||||
COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
||||
|
||||
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
|
||||
|
||||
The name and trademarks of copyright holders may NOT be used in advertising or
|
||||
publicity pertaining to the software without specific, written prior permission.
|
||||
Title to copyright in this software and any associated documentation will at all
|
||||
times remain with copyright holders.
|
|
@ -1,55 +0,0 @@
|
|||
Apache Tuscany
|
||||
Copyright (c) 2005 - 2009 The Apache Software Foundation
|
||||
|
||||
This product includes software developed at
|
||||
The Apache Software Foundation (http://www.apache.org/).
|
||||
|
||||
This product also includes software under the BSD license
|
||||
(see the LICENSE file contained in this distribution), with
|
||||
the following copyright:
|
||||
Copyright (c) 2006, Sun Microsystems, Inc. All rights reserved.
|
||||
|
||||
This product includes software under the Service Component Architecture JavaDoc,
|
||||
Interface Definition files and XSD files license.
|
||||
(c) Copyright SCA Collaboration 2006, 2007
|
||||
|
||||
This product includes software under the Service Data Objects JavaDoc and
|
||||
Interface Definition file license
|
||||
|
||||
(c) Copyright BEA Systems, Inc., International Business Machines Corporation,
|
||||
Oracle Corporation, Primeton Technologies Ltd., Rogue Wave Software, SAP AG.,
|
||||
Software AG., Sun Microsystems, Sybase Inc., Xcalia, Zend Technologies,
|
||||
2005, 2006. All rights reserved.
|
||||
|
||||
This product includes software under the OASIS specification License
|
||||
with the following copyright:
|
||||
|
||||
Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
|
||||
OASIS trademark, IPR and other policies apply.
|
||||
|
||||
This product includes software under the W3C(c) Software License
|
||||
with the following copyright:
|
||||
|
||||
Copyright (c) 2008 World Wide Web Consortium, (Massachusetts Institute of Technology,
|
||||
European Research Consortium for Informatics and Mathematics, Keio University).
|
||||
All Rights Reserved. This work is distributed under the W3C(c) Software License [1] in
|
||||
the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
|
||||
This product includes software under the W3C(c) Software License
|
||||
with the following copyright:
|
||||
|
||||
Copyright 2001 The Internet Society and W3C (Massachusetts Institute
|
||||
of Technology, Institut National de Recherche en Informatique et en
|
||||
Automatique, Keio University). All Rights Reserved.
|
||||
http://www.w3.org/Consortium/Legal/
|
||||
|
||||
This document is governed by the W3C Software License [1] as described
|
||||
in the FAQ [2].
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
|
||||
[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
Apache Tuscany SCA 2.0-M3 June 2009 README
|
||||
===========================================
|
||||
|
||||
Welcome to the Tuscany SCA 2.0-M3 release.
|
||||
|
||||
See the RELEASE_NOTES file for information specific to this release.
|
||||
|
||||
In the binary release see the INSTALL file for information on how to
|
||||
install the release.
|
||||
|
||||
In the source distribution see the BUILDING file for information on
|
||||
building the source code.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
Apache Tuscany SCA 2.0-M3 June 2009 Release Notes
|
||||
==================================================
|
||||
|
||||
Apache Tuscany provides a runtime based on the Service Component
|
||||
Architecture. SCA is a set of specifications aimed at simplifying SOA
|
||||
Application Development which are being standardized at OASIS as part
|
||||
of Open Composite Services Architecture (Open CSA) - http://www.oasis-opencsa.org/.
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
The Apache Tuscany SCA 2.0-M3 release includes implementations of the
|
||||
main SCA specifications and recent updates from Open CSA drafts including:
|
||||
|
||||
SCA Assembly Model V1.1
|
||||
SCA Policy Framework V1.1
|
||||
SCA Java Common Annotations and APIs V1.1
|
||||
SCA Java Component Implementation V1.1
|
||||
SCA Client & Implementation: Spring
|
||||
SCA Web Services Binding V1.1
|
||||
SCA WS-BPEL Client and Implementation V1.1
|
||||
(portions of) SCA JEE Integration V1.1
|
||||
|
||||
It also includes implementations of many features not yet defined
|
||||
by SCA specifications, including:
|
||||
|
||||
- SCA bindings for RMI.
|
||||
- Databindings for JAXB, Axis2's AXIOM, DOM, SAX and StAX
|
||||
- Integration with various web frameworks
|
||||
|
||||
The Tuscany SCA Runtime can be configured as a single node SCA domain or
|
||||
as an SCA domain distributed across multiple nodes.
|
||||
In addition Tuscany SCA supports the following host-deployment options: -
|
||||
- running standalone
|
||||
- running in a OSGi enabled runtime Environment (Equinox)
|
||||
- running with distributed nodes across multiple JVMs
|
||||
|
||||
See the CHANGES file for a detailed list of the features in this release.
|
||||
|
||||
Support
|
||||
-------
|
||||
|
||||
For more information on Apache Tuscany visit the website at:
|
||||
|
||||
http://tuscany.apache.org/tuscany/
|
||||
|
||||
Any issues with this release can be reported to Apache Tuscany
|
||||
using the mailing lists or in the JIRA issue tracker.
|
||||
|
||||
Mailing list archives:
|
||||
|
||||
http://mail-archives.apache.org/mod_mbox/tuscany-user/
|
||||
http://mail-archives.apache.org/mod_mbox/tuscany-dev/
|
||||
|
||||
Jira:
|
||||
|
||||
http://issues.apache.org/jira/browse/TUSCANY
|
||||
|
||||
To join the project's mailing lists follow the instructions at:
|
||||
|
||||
http://incubator.apache.org/tuscany/mailing-lists.html
|
||||
|
||||
To find out more about OASIS Open CSA go to:
|
||||
|
||||
http://www.oasis-opencsa.org.
|
||||
|
||||
Apache Tuscany welcomes your help. Any contribution, including code,
|
||||
testing, improving the documentation, or bug reporting is always
|
||||
appreciated.
|
||||
|
||||
Thank you for using Apache Tuscany!
|
||||
|
||||
- The Tuscany Team.
|
|
@ -1,11 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-Name: Apache Tuscany SCA Contribution JAR
|
||||
Created-By: 1.6.0_07 (Sun Microsystems Inc.)
|
||||
Bundle-Vendor: The Apache Software Foundation
|
||||
Bundle-Version: 2.0.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Bundle-Description: Apache Tuscany SCA Quickstart Archetype
|
||||
Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.jar
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-contribution-jar</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Create an SCA JAR contribution project</name>
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype-descriptor name="myproject">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.composite</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype>
|
||||
<id>tuscany-contribution-jar</id>
|
||||
<sources>
|
||||
<source>src\main\java\HelloworldImpl.java</source>
|
||||
<source>src\main\java\HelloworldService.java</source>
|
||||
</sources>
|
||||
<resources>
|
||||
<resource>src\main\hello.composite</resource>
|
||||
<resource>src\main\webapp\META-INF\sca-contribution.xml</resource>
|
||||
</resources>
|
||||
</archetype>
|
|
@ -1,110 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>${version}</version>
|
||||
#literal()<!-- TODO project name -->
|
||||
<name>quickstart</name>
|
||||
<description></description>
|
||||
|
||||
<dependencies>
|
||||
<!-- TUSCANY DEPENDENCIES -->
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca-api</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- JUNIT DEPENDENCY FOR TESTING -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<inherited>true</inherited>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<optimise>true</optimise>
|
||||
<debug>true</debug>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-eclipse-plugin</artifactId>
|
||||
<configuration>
|
||||
<downloadSources>true</downloadSources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.tuscany.maven.plugins</groupId>
|
||||
<artifactId>maven-tuscany-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<properties>
|
||||
<tuscany.version>2.0-M3</tuscany.version>
|
||||
</properties>
|
||||
#end
|
||||
</project>
|
|
@ -1,36 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package};
|
||||
|
||||
import org.oasisopen.sca.annotation.Init;
|
||||
import org.oasisopen.sca.annotation.Scope;
|
||||
import org.oasisopen.sca.annotation.EagerInit;
|
||||
|
||||
@Scope("COMPOSITE") @EagerInit
|
||||
public class HelloworldImpl implements HelloworldService {
|
||||
|
||||
public String sayHello(String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
@Init
|
||||
public void init() {
|
||||
System.out.println(sayHello("world"));
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package};
|
||||
|
||||
import org.oasisopen.sca.annotation.Remotable;
|
||||
|
||||
@Remotable
|
||||
public interface HelloworldService {
|
||||
|
||||
String sayHello(String name);
|
||||
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:sample="http://${package}">
|
||||
<deployable composite="sample:${artifactId}"/>
|
||||
</contribution>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
|
||||
targetNamespace="http://${package}"
|
||||
name="${artifactId}">
|
||||
|
||||
<component name="HelloworldComponent">
|
||||
<implementation.java class="${package}.HelloworldImpl"/>
|
||||
</component>
|
||||
|
||||
</composite>
|
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-zip-contribution-descriptor</artifactId>
|
||||
<name>Tuscany SCA ZIP contribution Shared Assembly Descriptor</name>
|
||||
|
||||
|
||||
</project>
|
|
@ -1,40 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<assembly>
|
||||
<id>zip-contribution</id>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<dependencySets>
|
||||
<dependencySet>
|
||||
<unpack>false</unpack>
|
||||
<scope>runtime</scope>
|
||||
<outputDirectory>lib</outputDirectory>
|
||||
<useProjectArtifact>false</useProjectArtifact>
|
||||
</dependencySet>
|
||||
</dependencySets>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>${project.build.outputDirectory}</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
|
@ -1,11 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-Name: Apache Tuscany SCA Contribution ZIP
|
||||
Created-By: 1.6.0_07 (Sun Microsystems Inc.)
|
||||
Bundle-Vendor: The Apache Software Foundation
|
||||
Bundle-Version: 2.0.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Bundle-Description: Apache Tuscany SCA ZIP Contribution Archetype
|
||||
Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.zip
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-contribution-zip</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Create an SCA ZIP contribution project</name>
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype-descriptor name="myproject">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.composite</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype>
|
||||
<id>tuscany-contribution-zip</id>
|
||||
<sources>
|
||||
<source>src\main\java\AddImpl.java</source>
|
||||
<source>src\main\java\AddService.java</source>
|
||||
</sources>
|
||||
<resources>
|
||||
<resource>src\main\resources\add.composite</resource>
|
||||
<resource>src\main\resources\META-INF\sca-contribution.xml</resource>
|
||||
</resources>
|
||||
</archetype>
|
|
@ -1,153 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>${version}</version>
|
||||
#literal() <!-- TODO project name -->
|
||||
<name>quickstart</name>
|
||||
<description></description>
|
||||
|
||||
<dependencies>
|
||||
<!-- TUSCANY DEPENDENCIES -->
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca-api</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!--
|
||||
AN EXAMPLE APPLICATION DEPENDENCY TO BE INCLUDED IN ZIP
|
||||
-->
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<!-- AN EXAMPLE APPLICATION DEPENDENCY TO BE INCLUDED IN ZIP -->
|
||||
<dependency>
|
||||
<groupId>commons-math</groupId>
|
||||
<artifactId>commons-math</artifactId>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- JUNIT DEPENDENCY FOR TESTING -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<inherited>true</inherited>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<optimise>true</optimise>
|
||||
<debug>true</debug>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-eclipse-plugin</artifactId>
|
||||
<configuration>
|
||||
<downloadSources>true</downloadSources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.2-beta-3</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-zip-contribution-descriptor</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<!-- This is where we use our shared assembly descriptor -->
|
||||
<descriptors>
|
||||
<descriptor>tuscany-zip-contribution.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.tuscany.maven.plugins</groupId>
|
||||
<artifactId>maven-tuscany-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<properties>
|
||||
<tuscany.version>2.0-M3</tuscany.version>
|
||||
</properties>
|
||||
#end
|
||||
</project>
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package};
|
||||
|
||||
import org.apache.commons.math.util.MathUtils;
|
||||
|
||||
import org.oasisopen.sca.annotation.Init;
|
||||
import org.oasisopen.sca.annotation.Scope;
|
||||
import org.oasisopen.sca.annotation.EagerInit;
|
||||
|
||||
@Scope("COMPOSITE") @EagerInit
|
||||
public class AddImpl implements AddService {
|
||||
|
||||
public int add(int x, int y) {
|
||||
return MathUtils.addAndCheck(x, y);
|
||||
}
|
||||
|
||||
@Init
|
||||
public void init() {
|
||||
System.out.println("1 + 2 = " + add(1, 2));
|
||||
}
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package};
|
||||
|
||||
public interface AddService {
|
||||
|
||||
int add(int x, int y);
|
||||
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:sample="http://${package}">
|
||||
<deployable composite="sample:${artifactId}"/>
|
||||
</contribution>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
|
||||
targetNamespace="http://${package}"
|
||||
name="${artifactId}">
|
||||
|
||||
<component name="AddComponent">
|
||||
<implementation.java class="${package}.AddImpl"/>
|
||||
</component>
|
||||
|
||||
</composite>
|
|
@ -1,51 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>tuscany-archetype</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Apache Tuscany SCA Maven Archetypes</name>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>default</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
|
||||
<modules>
|
||||
<module>contribution-jar</module>
|
||||
<module>contribution-zip</module>
|
||||
<module>contribution-zip-discriptor</module>
|
||||
<module>quickstart</module>
|
||||
<module>quickstart-jsf</module>
|
||||
<module>quickstart-stripes</module>
|
||||
<module>quickstart-bpel</module>
|
||||
</modules>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
|
@ -1,11 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-Name: Apache Tuscany SCA Quickstart Archetype
|
||||
Created-By: 1.6.0_07 (Sun Microsystems Inc.)
|
||||
Bundle-Vendor: The Apache Software Foundation
|
||||
Bundle-Version: 2.0.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Bundle-Description: Apache Tuscany SCA Quickstart Archetype
|
||||
Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-quickstart-bpel</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Create an SCA Webapp project using BPEL</name>
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -1,43 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype-descriptor name="myproject">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/webapp</directory>
|
||||
<includes>
|
||||
<include>**/*.jsp</include>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.composite</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype>
|
||||
<id>tuscany-quickstart</id>
|
||||
<sources>
|
||||
<source>src\main\java\HelloworldImpl.java</source>
|
||||
<source>src\main\java\HelloworldService.java</source>
|
||||
</sources>
|
||||
<resources>
|
||||
<source>src\main\resources\helloworld.bpel</source>
|
||||
<source>src\main\resources\helloworld.wsdl</source>
|
||||
<resource>src\main\webapp\hello.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.composite</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.xml</resource>
|
||||
</resources>
|
||||
</archetype>
|
|
@ -1,182 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>${version}</version>
|
||||
#literal()<!-- TODO project name -->
|
||||
<name>quickstart</name>
|
||||
<description></description>
|
||||
|
||||
<dependencies>
|
||||
<!-- TUSCANY DEPENDENCIES -->
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca-api</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-implementation-web-runtime</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-implementation-bpel-runtime</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- JUNIT DEPENDENCY FOR TESTING -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- JETTY DEPENDENCIES FOR TESTING -->
|
||||
<dependency>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty-util</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty-management</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>unpack</id>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>unpack</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>org.apache.ode</groupId>
|
||||
<artifactId>ode-dao-jpa-ojpa-derby</artifactId>
|
||||
<version>1.1.1</version>
|
||||
<type>zip</type>
|
||||
<overWrite>false</overWrite>
|
||||
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
||||
<includes>**/*</includes>
|
||||
</artifactItem>
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<inherited>true</inherited>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<optimise>true</optimise>
|
||||
<debug>true</debug>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>maven-jetty-plugin</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<configuration>
|
||||
<systemProperties>
|
||||
<systemProperty>
|
||||
<!-- this property is needed to avoid a problem in openjpa -->
|
||||
<name>openjpa.QueryCompilationCache</name>
|
||||
<value>false</value>
|
||||
</systemProperty>
|
||||
</systemProperties>
|
||||
<!-- need to override the src dir so src/main/resources are also included -->
|
||||
<webAppSourceDirectory>${basedir}/src/main</webAppSourceDirectory>
|
||||
<webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-eclipse-plugin</artifactId>
|
||||
<configuration>
|
||||
<downloadSources>true</downloadSources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<properties>
|
||||
<tuscany.version>2.0-M3</tuscany.version>
|
||||
<jetty.version>6.1.18</jetty.version>
|
||||
</properties>
|
||||
#end
|
||||
</project>
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package};
|
||||
|
||||
import org.oasisopen.sca.annotation.Remotable;
|
||||
|
||||
@Remotable
|
||||
public interface HelloworldService {
|
||||
|
||||
String hello(String name);
|
||||
|
||||
}
|
|
@ -1,66 +0,0 @@
|
|||
<!--
|
||||
~ Licensed to the Apache Software Foundation (ASF) under one
|
||||
~ or more contributor license agreements. See the NOTICE file
|
||||
~ distributed with this work for additional information
|
||||
~ regarding copyright ownership. The ASF licenses this file
|
||||
~ to you under the Apache License, Version 2.0 (the
|
||||
~ "License"); you may not use this file except in compliance
|
||||
~ with the License. You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
<process name="HelloWorld"
|
||||
targetNamespace="http://tuscany.apache.org/implementation/bpel/example/helloworld"
|
||||
xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
|
||||
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
|
||||
xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:test="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"
|
||||
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
|
||||
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
|
||||
|
||||
<import location="helloworld.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"
|
||||
namespace="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"/>
|
||||
|
||||
<partnerLinks>
|
||||
<partnerLink name="helloPartnerLink" partnerLinkType="test:HelloPartnerLinkType" myRole="me" />
|
||||
</partnerLinks>
|
||||
|
||||
<variables>
|
||||
<variable name="myVar" messageType="test:HelloMessage"/>
|
||||
<variable name="tmpVar" type="xsd:string"/>
|
||||
</variables>
|
||||
|
||||
<sequence>
|
||||
<receive
|
||||
name="start"
|
||||
partnerLink="helloPartnerLink"
|
||||
portType="test:HelloPortType"
|
||||
operation="hello"
|
||||
variable="myVar"
|
||||
createInstance="yes"/>
|
||||
|
||||
<assign name="assign1">
|
||||
<copy>
|
||||
<from variable="myVar" part="TestPart"/>
|
||||
<to variable="tmpVar"/>
|
||||
</copy>
|
||||
<copy>
|
||||
<from>concat($tmpVar,' World')</from>
|
||||
<to variable="myVar" part="TestPart"/>
|
||||
</copy>
|
||||
</assign>
|
||||
<reply name="end"
|
||||
partnerLink="helloPartnerLink"
|
||||
portType="test:HelloPortType"
|
||||
operation="hello"
|
||||
variable="myVar"/>
|
||||
</sequence>
|
||||
</process>
|
|
@ -1,82 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
~ Licensed to the Apache Software Foundation (ASF) under one
|
||||
~ or more contributor license agreements. See the NOTICE file
|
||||
~ distributed with this work for additional information
|
||||
~ regarding copyright ownership. The ASF licenses this file
|
||||
~ to you under the Apache License, Version 2.0 (the
|
||||
~ "License"); you may not use this file except in compliance
|
||||
~ with the License. You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
|
||||
<wsdl:definitions
|
||||
targetNamespace="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"
|
||||
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
|
||||
xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
|
||||
|
||||
<wsdl:types>
|
||||
<schema elementFormDefault="qualified"
|
||||
targetNamespace="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<element name="hello">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="message" type="xsd:string"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
</schema>
|
||||
</wsdl:types>
|
||||
|
||||
<wsdl:message name="HelloMessage">
|
||||
<wsdl:part element="tns:hello" name="TestPart"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:portType name="HelloPortType">
|
||||
<wsdl:operation name="hello">
|
||||
<wsdl:input message="tns:HelloMessage" name="TestIn"/>
|
||||
<wsdl:output message="tns:HelloMessage" name="TestOut"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
|
||||
<wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
|
||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="hello">
|
||||
<wsdlsoap:operation soapAction=""/>
|
||||
<wsdl:input name="TestIn">
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="TestOut">
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
<wsdl:service name="HelloService">
|
||||
<wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
|
||||
<soap:address location="http://localhost:8085/ode/processes/helloWorld"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
|
||||
<plnk:partnerLinkType name="HelloPartnerLinkType">
|
||||
<plnk:role name="me" portType="tns:HelloPortType"/>
|
||||
<plnk:role name="you" portType="tns:HelloPortType"/>
|
||||
</plnk:partnerLinkType>
|
||||
</wsdl:definitions>
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
|
||||
xmlns:hns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
|
||||
targetNamespace="http://${package}"
|
||||
name="${artifactId}">
|
||||
|
||||
<component name="WebComponent">
|
||||
<implementation.web web-uri=""/>
|
||||
<reference name="service" target="HelloworldComponent">
|
||||
<interface.java interface="${package}.HelloworldService"/>
|
||||
</reference>
|
||||
</component>
|
||||
|
||||
<component name="HelloworldComponent">
|
||||
<implementation.bpel process="hns:HelloWorld"/>
|
||||
</component>
|
||||
|
||||
</composite>
|
|
@ -1,41 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<web-app version="2.4"
|
||||
xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
|
||||
|
||||
<display-name>${artifactId}</display-name>
|
||||
|
||||
<filter>
|
||||
<filter-name>tuscany.${artifactId}</filter-name>
|
||||
<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>tuscany.${artifactId}</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<welcome-file-list id="WelcomeFileList">
|
||||
<welcome-file>hello.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
</web-app>
|
|
@ -1,36 +0,0 @@
|
|||
<%--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %>
|
||||
|
||||
<sca:reference name="service" type="${package}.HelloworldService" />
|
||||
|
||||
<html>
|
||||
<body >
|
||||
|
||||
<h2>${artifactId}</h2>
|
||||
|
||||
Calling HelloworldService sayHello("world") returns:
|
||||
|
||||
<p>
|
||||
|
||||
<%= service.hello("world") %>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-quickstart-jsf</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Create a Tuscany SCA and JSF project</name>
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-4</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.0-alpha-4</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -1,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype-descriptor name="myproject">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/webapp</directory>
|
||||
<includes>
|
||||
<include>**/*.jsp</include>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.html</include>
|
||||
<include>**/*.composite</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
|
@ -1,38 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype>
|
||||
<id>quickstart-stripes</id>
|
||||
<sources>
|
||||
<source>src\main\java\sample\stripes\action\BaseActionBean.java</source>
|
||||
<source>src\main\java\sample\stripes\action\HomeActionBean.java</source>
|
||||
<source>src\main\java\sample\sca\HelloworldService.java</source>
|
||||
<source>src\main\java\sample\sca\HelloworldServiceImpl.java</source>
|
||||
</sources>
|
||||
<resources>
|
||||
<resource>src\main\resources\log4j.properties</resource>
|
||||
<resource>src\main\resources\StripesResources.properties</resource>
|
||||
<resource>src\main\webapp\index.html</resource>
|
||||
<resource>src\main\webapp\WEB-INF\jsp\home.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\jsp\layout.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\jsp\taglibs.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.composite</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.xml</resource>
|
||||
</resources>
|
||||
</archetype>
|
|
@ -1,154 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>${version}</version>
|
||||
#literal()<!-- TODO project name -->
|
||||
<name>quickstart-jsf</name>
|
||||
<description></description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- Tuscany dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca-api</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-myfaces</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- MyFaces JSF dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.apache.myfaces.core</groupId>
|
||||
<artifactId>myfaces-api</artifactId>
|
||||
<version>1.2.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.myfaces.core</groupId>
|
||||
<artifactId>myfaces-impl</artifactId>
|
||||
<version>1.2.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.myfaces.tomahawk</groupId>
|
||||
<artifactId>tomahawk</artifactId>
|
||||
<version>1.1.6</version>
|
||||
<scope>runtime</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>jstl</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>jstl</groupId>
|
||||
<artifactId>jstl</artifactId>
|
||||
<version>1.2</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<inherited>true</inherited>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<optimise>true</optimise>
|
||||
<debug>true</debug>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>maven-jetty-plugin</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-eclipse-plugin</artifactId>
|
||||
<configuration>
|
||||
<downloadSources>true</downloadSources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<properties>
|
||||
<tuscany.version>2.0-M3</tuscany.version>
|
||||
<myfaces.version>1.5</myfaces.version>
|
||||
<jetty.version>6.1.4</jetty.version>
|
||||
</properties>
|
||||
#end
|
||||
|
||||
</project>
|
|
@ -1,64 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package}.myfaces;
|
||||
|
||||
import org.oasisopen.sca.annotation.Reference;
|
||||
|
||||
import ${package}.sca.HelloworldService;
|
||||
|
||||
/**
|
||||
* A typical simple backing bean, that is backed to <code>helloworld.jsp</code>
|
||||
*
|
||||
*/
|
||||
public class HelloWorldController {
|
||||
|
||||
//properties
|
||||
private String name;
|
||||
|
||||
@Reference
|
||||
private HelloworldService service;
|
||||
|
||||
/**
|
||||
* default empty constructor
|
||||
*/
|
||||
public HelloWorldController(){
|
||||
}
|
||||
|
||||
//-------------------getter & setter
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method that is backed to a submit button of a form.
|
||||
*/
|
||||
public String send(){
|
||||
|
||||
// invoke the SCA reference
|
||||
name = service.sayHello(name);
|
||||
|
||||
return "success";
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package}.sca;
|
||||
|
||||
public interface HelloworldService {
|
||||
|
||||
String sayHello(String name);
|
||||
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package}.sca;
|
||||
|
||||
public class HelloworldServiceImpl implements HelloworldService {
|
||||
|
||||
public String sayHello(String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<faces-config version="1.2"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
|
||||
|
||||
<!-- managed beans of the simple hello world app -->
|
||||
<managed-bean>
|
||||
<managed-bean-name>helloWorld</managed-bean-name>
|
||||
<managed-bean-class>${package}.myfaces.HelloWorldController</managed-bean-class>
|
||||
<managed-bean-scope>request</managed-bean-scope>
|
||||
</managed-bean>
|
||||
|
||||
<!-- navigation rules for helloWorld.jsp -->
|
||||
<navigation-rule>
|
||||
<from-view-id>/helloWorld.jsp</from-view-id>
|
||||
<navigation-case>
|
||||
<from-outcome>success</from-outcome>
|
||||
<to-view-id>/page2.jsp</to-view-id>
|
||||
</navigation-case>
|
||||
</navigation-rule>
|
||||
|
||||
<!-- navigation rules for page2.jsp -->
|
||||
<navigation-rule>
|
||||
<from-view-id>/page2.jsp</from-view-id>
|
||||
<navigation-case>
|
||||
<from-outcome>back</from-outcome>
|
||||
<to-view-id>/helloWorld.jsp</to-view-id>
|
||||
</navigation-case>
|
||||
</navigation-rule>
|
||||
</faces-config>
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
|
||||
targetNamespace="http://${package}"
|
||||
name="${artifactId}">
|
||||
|
||||
<component name="${artifactId}WebComponent">
|
||||
<implementation.web web-uri=""/>
|
||||
<reference name="service" target="HelloworldComponent"/>
|
||||
</component>
|
||||
|
||||
<component name="HelloworldComponent">
|
||||
<implementation.java class="${package}.sca.HelloworldServiceImpl"/>
|
||||
</component>
|
||||
|
||||
</composite>
|
||||
|
|
@ -1,230 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
|
||||
version="2.4">
|
||||
|
||||
<display-name>${artifactId}</display-name>
|
||||
|
||||
<!-- The only web.xml change to the MyFaces Helloworld sample is to add
|
||||
the Tuscany listener and annotation processor context parameter -->
|
||||
<listener>
|
||||
<listener-class>org.apache.tuscany.sca.host.webapp.TuscanyContextListener</listener-class>
|
||||
</listener>
|
||||
<context-param>
|
||||
<param-name>org.apache.myfaces.config.annotation.LifecycleProvider</param-name>
|
||||
<param-value>org.apache.tuscany.sca.myfaces.TuscanyAnnotationLifecycleProvider</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--optional: context-param>
|
||||
<description>Comma separated list of URIs of (additional) faces config files.
|
||||
(e.g. /WEB-INF/my-config.xml)
|
||||
See JSF 1.0 PRD2, 10.3.2
|
||||
Attention: You do not need to put /WEB-INF/faces-config.xml in here.
|
||||
</description>
|
||||
<param-name>javax.faces.CONFIG_FILES</param-name>
|
||||
<param-value>/WEB-INF/examples-config.xml</param-value>
|
||||
</context-param-->
|
||||
<context-param>
|
||||
<description>State saving method: "client" or "server" (= default)
|
||||
See JSF Specification 2.5.3</description>
|
||||
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
|
||||
<param-value>client</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>Only applicable if state saving method is "server" (= default).
|
||||
Defines the amount (default = 20) of the latest views are stored in session.</description>
|
||||
<param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
|
||||
<param-value>20</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>Only applicable if state saving method is "server" (= default).
|
||||
If true (default) the state will be serialized to a byte stream before it
|
||||
is written to the session.
|
||||
If false the state will not be serialized to a byte stream.</description>
|
||||
<param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>Only applicable if state saving method is "server" (= default) and if
|
||||
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default)
|
||||
If true (default) the serialized state will be compressed before it
|
||||
is written to the session. If false the state will not be compressed.</description>
|
||||
<param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>This parameter tells MyFaces if javascript code should be allowed in the
|
||||
rendered HTML output.
|
||||
If javascript is allowed, command_link anchors will have javascript code
|
||||
that submits the corresponding form.
|
||||
If javascript is not allowed, the state saving info and nested parameters
|
||||
will be added as url parameters.
|
||||
Default: "true"</description>
|
||||
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>If true, rendered HTML code will be formatted, so that it is "human readable".
|
||||
i.e. additional line separators and whitespace will be written, that do not
|
||||
influence the HTML code.
|
||||
Default: "true"</description>
|
||||
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>If true, a javascript function will be rendered that is able to restore the
|
||||
former vertical scroll on every request. Convenient feature if you have pages
|
||||
with long lists and you do not want the browser page to always jump to the top
|
||||
if you trigger a link or button action that stays on the same page.
|
||||
Default: "false"</description>
|
||||
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<description>Used for encrypting view state. Only relevant for client side
|
||||
state saving. See MyFaces wiki/web site documentation for instructions
|
||||
on how to configure an application for diffenent encryption strengths.
|
||||
</description>
|
||||
<param-name>org.apache.myfaces.SECRET</param-name>
|
||||
<param-value>NzY1NDMyMTA=</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<description>
|
||||
Validate managed beans, navigation rules and ensure that forms are not nested.
|
||||
</description>
|
||||
<param-name>org.apache.myfaces.VALIDATE</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<description>
|
||||
Treat readonly same as if disabled attribute was set for select elements.
|
||||
</description>
|
||||
<param-name>org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<description>
|
||||
Use the defined class as the class which will be called when a resource is added to the
|
||||
ExtensionFilter handling. Using StreamingAddResource here helps with performance. If you want to add
|
||||
custom components and want to use the ExtensionFilter, you need to provide your custom implementation here.
|
||||
</description>
|
||||
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
|
||||
<param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<description>
|
||||
Virtual path in the URL which triggers loading of resources for the MyFaces extended components
|
||||
in the ExtensionFilter.
|
||||
</description>
|
||||
<param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
|
||||
<param-value>/faces/myFacesExtensionResource</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<description>
|
||||
Check if the extensions-filter has been properly configured.
|
||||
</description>
|
||||
<param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<description>
|
||||
Define partial state saving as true/false.
|
||||
</description>
|
||||
<param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Extensions Filter -->
|
||||
<filter>
|
||||
<filter-name>extensionsFilter</filter-name>
|
||||
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
|
||||
<init-param>
|
||||
<description>Set the size limit for uploaded files.
|
||||
Format: 10 - 10 bytes
|
||||
10k - 10 KB
|
||||
10m - 10 MB
|
||||
1g - 1 GB</description>
|
||||
<param-name>uploadMaxFileSize</param-name>
|
||||
<param-value>100m</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<description>Set the threshold size - files
|
||||
below this limit are stored in memory, files above
|
||||
this limit are stored on disk.
|
||||
|
||||
Format: 10 - 10 bytes
|
||||
10k - 10 KB
|
||||
10m - 10 MB
|
||||
1g - 1 GB</description>
|
||||
<param-name>uploadThresholdSize</param-name>
|
||||
<param-value>100k</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>extensionsFilter</filter-name>
|
||||
<url-pattern>*.jsf</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>extensionsFilter</filter-name>
|
||||
<url-pattern>/faces/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<!-- Listener, to allow Jetty serving MyFaces apps -->
|
||||
<listener>
|
||||
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<!-- Faces Servlet -->
|
||||
<servlet>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<!-- Faces Servlet Mapping -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<url-pattern>*.jsf</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Welcome files -->
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
</web-app>
|
|
@ -1,37 +0,0 @@
|
|||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello World</title>
|
||||
</head>
|
||||
<body>
|
||||
<f:view>
|
||||
<h:form id="mainForm">
|
||||
<h:panelGrid columns="2">
|
||||
<h:outputLabel for="name" value="Please enter your name" />
|
||||
<h:inputText id="name" value="#{helloWorld.name}" required="true"/>
|
||||
<h:commandButton value="Press me" action="#{helloWorld.send}"/>
|
||||
<h:messages showDetail="true" showSummary="false"/>
|
||||
</h:panelGrid>
|
||||
</h:form>
|
||||
</f:view>
|
||||
</body>
|
||||
</html>
|
|
@ -1,22 +0,0 @@
|
|||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<%@ page session="false"%>
|
||||
<%
|
||||
response.sendRedirect("helloWorld.jsf");
|
||||
%>
|
|
@ -1,35 +0,0 @@
|
|||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello World</title>
|
||||
</head>
|
||||
<body>
|
||||
<f:view>
|
||||
<h:form id="mainForm">
|
||||
<h2><h:outputText value="#{helloWorld.name}. We hope you enjoy SCA and JSF with Apache Tuscany and MyFaces"/></h2>
|
||||
<h:commandLink action="back">
|
||||
<h:outputText value="Home"/>
|
||||
</h:commandLink>
|
||||
</h:form>
|
||||
</f:view>
|
||||
</body>
|
||||
</html>
|
|
@ -1,11 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-Name: Apache Tuscany SCA Quickstart Stripes Archetype
|
||||
Created-By: 1.6.0_07 (Sun Microsystems Inc.)
|
||||
Bundle-Vendor: The Apache Software Foundation
|
||||
Bundle-Version: 2.0.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Bundle-Description: Apache Tuscany SCA Quickstart Stripes Archetype
|
||||
Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart.stripes
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-quickstart-stripes</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Create a simple Apache Tuscany SCA webapp project using the Stripes Web Framework</name>
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-4</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.0-alpha-4</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -1,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype-descriptor name="myproject">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/webapp</directory>
|
||||
<includes>
|
||||
<include>**/*.jsp</include>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.html</include>
|
||||
<include>**/*.composite</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
|
@ -1,38 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype>
|
||||
<id>quickstart-stripes</id>
|
||||
<sources>
|
||||
<source>src\main\java\sample\stripes\action\BaseActionBean.java</source>
|
||||
<source>src\main\java\sample\stripes\action\HomeActionBean.java</source>
|
||||
<source>src\main\java\sample\sca\HelloworldService.java</source>
|
||||
<source>src\main\java\sample\sca\HelloworldServiceImpl.java</source>
|
||||
</sources>
|
||||
<resources>
|
||||
<resource>src\main\resources\log4j.properties</resource>
|
||||
<resource>src\main\resources\StripesResources.properties</resource>
|
||||
<resource>src\main\webapp\index.html</resource>
|
||||
<resource>src\main\webapp\WEB-INF\jsp\home.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\jsp\layout.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\jsp\taglibs.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.composite</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.xml</resource>
|
||||
</resources>
|
||||
</archetype>
|
|
@ -1,124 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>${version}</version>
|
||||
#literal()<!-- TODO project name -->
|
||||
<name>quickstart-stripes</name>
|
||||
<description></description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- Tuscany dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca-api</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-stripes</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Stripes Framework dependencies -->
|
||||
<dependency>
|
||||
<groupId>net.sourceforge.stripes</groupId>
|
||||
<artifactId>stripes</artifactId>
|
||||
<version>${stripes.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>taglibs</groupId>
|
||||
<artifactId>standard</artifactId>
|
||||
<version>1.1.2</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<inherited>true</inherited>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<optimise>true</optimise>
|
||||
<debug>true</debug>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>maven-jetty-plugin</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-eclipse-plugin</artifactId>
|
||||
<configuration>
|
||||
<downloadSources>true</downloadSources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<properties>
|
||||
<tuscany.version>2.0-M3</tuscany.version>
|
||||
<stripes.version>1.5</stripes.version>
|
||||
<jetty.version>6.1.4</jetty.version>
|
||||
</properties>
|
||||
#end
|
||||
|
||||
</project>
|
|
@ -1,28 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package}.sca;
|
||||
|
||||
public interface HelloworldService {
|
||||
|
||||
String sayHello(String name);
|
||||
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package}.sca;
|
||||
|
||||
|
||||
public class HelloworldServiceImpl implements HelloworldService {
|
||||
|
||||
public String sayHello(String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package}.stripes.action;
|
||||
|
||||
import net.sourceforge.stripes.action.ActionBean;
|
||||
import net.sourceforge.stripes.action.ActionBeanContext;
|
||||
|
||||
public class BaseActionBean implements ActionBean {
|
||||
private ActionBeanContext context;
|
||||
|
||||
public ActionBeanContext getContext() {
|
||||
return context;
|
||||
}
|
||||
public void setContext(ActionBeanContext context) {
|
||||
this.context = context;
|
||||
}
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package}.stripes.action;
|
||||
|
||||
import net.sourceforge.stripes.action.DefaultHandler;
|
||||
import net.sourceforge.stripes.action.ForwardResolution;
|
||||
import net.sourceforge.stripes.action.Resolution;
|
||||
import net.sourceforge.stripes.action.UrlBinding;
|
||||
|
||||
import org.oasisopen.sca.annotation.Reference;
|
||||
|
||||
import ${package}.sca.HelloworldService;
|
||||
|
||||
@UrlBinding("/Home.htm")
|
||||
public class HomeActionBean extends BaseActionBean {
|
||||
|
||||
@Reference
|
||||
HelloworldService service;
|
||||
|
||||
@DefaultHandler
|
||||
public Resolution view() {
|
||||
return new ForwardResolution("/WEB-INF/jsp/home.jsp");
|
||||
}
|
||||
|
||||
public String getHello() {
|
||||
return service.sayHello("world");
|
||||
}
|
||||
|
||||
}
|
|
@ -1,77 +0,0 @@
|
|||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
|
||||
${symbol_pound} Resource strings used by the <stripes:errors> tag when there are no nested tags
|
||||
stripes.errors.header=<div style="color:${symbol_pound}b72222; font-weight: bold">Please fix the following errors:</div><ol>
|
||||
stripes.errors.beforeError=<li style="color: ${symbol_pound}b72222;">
|
||||
stripes.errors.afterError=</li>
|
||||
stripes.errors.footer=</ol>
|
||||
|
||||
${symbol_pound} Resource strings used by the <stripes:errors> tag when displaying errors for a
|
||||
${symbol_pound} specific field (e.g. <stripes:errors field="password"/>). If not supplied the
|
||||
${symbol_pound} values above will be used instead.
|
||||
stripes.fieldErrors.header=
|
||||
stripes.fieldErrors.beforeError=<span style="color: ${symbol_pound}b72222;">
|
||||
stripes.fieldErrors.afterError=</span><br />
|
||||
stripes.fieldErrors.footer=
|
||||
|
||||
${symbol_pound} Resource strings used by the stripes:messages tag
|
||||
stripes.messages.header=<ul class="messages">
|
||||
stripes.messages.beforeMessage=<li>
|
||||
stripes.messages.afterMessage=</li>
|
||||
stripes.messages.footer=</ul>
|
||||
|
||||
${symbol_pound} Validation error messages produced by Stripes' built-in converter classes. These
|
||||
${symbol_pound} are default error messages and can be overridden on per-field and per-form levels.
|
||||
${symbol_pound} Using the 'invalidNumber' error for a field 'age' of a form posting to
|
||||
${symbol_pound} '/user/Profile.action', the keys looked for (in order) would be:
|
||||
${symbol_pound} 1: /user/Profile.action.age.invalidNumber
|
||||
${symbol_pound} 2: /user/Profile.action.age.errorMessage
|
||||
${symbol_pound} 3: age.errorMessage
|
||||
${symbol_pound} 4: /user/Profile.action.invalidNumber
|
||||
${symbol_pound} 5: converter.number.invalidNumber
|
||||
converter.number.invalidNumber=The value ({1}) entered in field {0} must be a valid number
|
||||
converter.byte.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3}
|
||||
converter.short.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3}
|
||||
converter.integer.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3}
|
||||
converter.float.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3}
|
||||
converter.enum.notAnEnumeratedValue=The value "{1}" is not a valid value for field {0}
|
||||
converter.date.invalidDate=The value ({1}) entered in field {0} must be a valid date
|
||||
converter.email.invalidEmail=The value ({1}) entered is not a valid email address
|
||||
converter.creditCard.invalidCreditCard=The value ({1}) entered is not a valid credit card number
|
||||
|
||||
${symbol_pound} Validation error messages produced by Stripes' annotation based validations. These
|
||||
${symbol_pound} are default error messages and can be overridden on per-field and per-form levels.
|
||||
${symbol_pound} Using the 'valueNotPresent' required field error for a field 'username' of a form
|
||||
${symbol_pound} posting to '/user/Register.action', the keys looked for (in order) would be:
|
||||
${symbol_pound} 1: /user/Register.action.username.valueNotPresent
|
||||
${symbol_pound} 2: /user/Register.action.username.errorMessage
|
||||
${symbol_pound} 3: username.errorMessage
|
||||
${symbol_pound} 4: /user/Register.action.valueNotPresent
|
||||
${symbol_pound} 5: validation.required.valueNotPresent
|
||||
validation.required.valueNotPresent={0} is a required field
|
||||
validation.minlength.valueTooShort={0} must be at least {2} characters long
|
||||
validation.maxlength.valueTooLong={0} must be no more than {2} characters long
|
||||
validation.minvalue.valueBelowMinimum=The minimum allowed value for {0} is {2}
|
||||
validation.maxvalue.valueAboveMaximum=The maximum allowed value for {0} is {2}
|
||||
validation.mask.valueDoesNotMatch=<em>{1}</em> is not a valid {0}
|
||||
validation.expression.valueFailedExpression=The value supplied ({1}) for field {0} is invalid
|
||||
validation.file.postBodyTooBig=Total upload size of {3} KB exceeds the maximum size of {2} KB
|
|
@ -1,51 +0,0 @@
|
|||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
${symbol_pound} log4j.properties
|
||||
|
||||
${symbol_pound} Set up a logger to the console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n
|
||||
|
||||
${symbol_pound} Use this to only see log messages beyond a certain threshold in the console
|
||||
${symbol_pound}log4j.appender.stdout.Threshold=WARN
|
||||
|
||||
${symbol_pound} Set up a logger to a log file
|
||||
log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.logfile.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n
|
||||
log4j.appender.logfile.File=${symbol_dollar}{user.home}/stripesquick.log
|
||||
log4j.appender.logfile.DatePattern='.'yyyy-MM-dd
|
||||
|
||||
${symbol_pound} Use this to only see log messages beyond a certain threshold in the log file
|
||||
${symbol_pound}log4j.appender.logfile.Threshold=WARN
|
||||
|
||||
${symbol_pound} Logger settings
|
||||
log4j.rootLogger=INFO, stdout, logfile
|
||||
|
||||
${symbol_pound} Valid levels are TRACE, DEBUG, INFO, WARN, ERROR, FATAL
|
||||
${symbol_pound} Change to TRACE or DEBUG to see more log messages
|
||||
log4j.logger.net.sourceforge.stripes=WARN
|
||||
log4j.logger.org.stripesbook.quickstart=INFO
|
||||
log4j.logger.org.mortbay.log=INFO
|
||||
log4j.logger.org=WARN
|
||||
log4j.logger.com=WARN
|
||||
log4j.logger.net=WARN
|
|
@ -1,29 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<%--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
--%>
|
||||
<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>
|
||||
|
||||
<s:layout-render name="/WEB-INF/jsp/layout.jsp" title="Welcome">
|
||||
<s:layout-component name="body">
|
||||
<p>sayHello returns: ${symbol_dollar}{actionBean.hello}</p>
|
||||
<p>Congratulations, you've set up a Stripes SCA project!</p>
|
||||
</s:layout-component>
|
||||
</s:layout-render>
|
|
@ -1,42 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<%--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
--%>
|
||||
<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>
|
||||
|
||||
<s:layout-definition>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>${symbol_dollar}{title}</title>
|
||||
<link rel="stylesheet" type="text/css" href="${symbol_dollar}{contextPath}/css/style.css">
|
||||
<s:layout-component name="head">
|
||||
</s:layout-component>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<s:layout-component name="body">
|
||||
</s:layout-component>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</s:layout-definition>
|
|
@ -1,32 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<%--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
--%>
|
||||
<%-- Stripes TLD --%>
|
||||
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
|
||||
<%@ taglib prefix="sdyn" uri="http://stripes.sourceforge.net/stripes-dynattr.tld" %>
|
||||
|
||||
<%-- JSTL TLDs --%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
|
||||
<%-- This is so that you can conveniently refer to the context path with ${symbol_dollar}{contextPath} --%>
|
||||
<c:set var="contextPath" value="${symbol_dollar}{pageContext.request.contextPath}"/>
|
|
@ -1,34 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
|
||||
targetNamespace="http://${package}"
|
||||
name="${artifactId}">
|
||||
|
||||
<component name="${artifactId}WebComponent">
|
||||
<implementation.web web-uri=""/>
|
||||
<reference name="service" target="HelloworldComponent"/>
|
||||
</component>
|
||||
|
||||
<component name="HelloworldComponent">
|
||||
<implementation.java class="${package}.sca.HelloworldServiceImpl"/>
|
||||
</component>
|
||||
|
||||
</composite>
|
|
@ -1,68 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||
|
||||
<display-name>${artifactId}</display-name>
|
||||
|
||||
<listener>
|
||||
<listener-class>org.apache.tuscany.sca.host.webapp.TuscanyContextListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<filter>
|
||||
<filter-name>StripesFilter</filter-name>
|
||||
<filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>ActionResolver.Packages</param-name>
|
||||
<param-value>${package}.stripes.action</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>Extension.Packages</param-name>
|
||||
<param-value>org.apache.tuscany.sca.stripes</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>DispatcherServlet</servlet-name>
|
||||
<servlet-class>net.sourceforge.stripes.controller.DispatcherServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>StripesFilter</filter-name>
|
||||
<servlet-name>DispatcherServlet</servlet-name>
|
||||
<dispatcher>REQUEST</dispatcher>
|
||||
<dispatcher>FORWARD</dispatcher>
|
||||
</filter-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>DispatcherServlet</servlet-name>
|
||||
<url-pattern>*.htm</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
</web-app>
|
|
@ -1,27 +0,0 @@
|
|||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;url=Home.htm">
|
||||
</head>
|
||||
</html>
|
|
@ -1,11 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-Name: Apache Tuscany SCA Quickstart Archetype
|
||||
Created-By: 1.6.0_07 (Sun Microsystems Inc.)
|
||||
Bundle-Vendor: The Apache Software Foundation
|
||||
Bundle-Version: 2.0.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Bundle-Description: Apache Tuscany SCA Quickstart Archetype
|
||||
Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-quickstart</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Create a simple Apache Tuscany SCA webapp project</name>
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype-descriptor name="myproject">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/webapp</directory>
|
||||
<includes>
|
||||
<include>**/*.jsp</include>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.composite</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
|
@ -1,31 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<archetype>
|
||||
<id>tuscany-quickstart</id>
|
||||
<sources>
|
||||
<source>src\main\java\HelloworldImpl.java</source>
|
||||
<source>src\main\java\HelloworldService.java</source>
|
||||
</sources>
|
||||
<resources>
|
||||
<resource>src\main\webapp\hello.jsp</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.composite</resource>
|
||||
<resource>src\main\webapp\WEB-INF\web.xml</resource>
|
||||
</resources>
|
||||
</archetype>
|
|
@ -1,137 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>${version}</version>
|
||||
#literal()<!-- TODO project name -->
|
||||
<name>quickstart</name>
|
||||
<description></description>
|
||||
|
||||
<dependencies>
|
||||
<!-- TUSCANY DEPENDENCIES -->
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca-api</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-implementation-web-runtime</artifactId>
|
||||
<version>${tuscany.version}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- JUNIT DEPENDENCY FOR TESTING -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- JETTY DEPENDENCIES FOR TESTING -->
|
||||
<dependency>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty-util</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty-management</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<inherited>true</inherited>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<optimise>true</optimise>
|
||||
<debug>true</debug>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>maven-jetty-plugin</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-eclipse-plugin</artifactId>
|
||||
<configuration>
|
||||
<downloadSources>true</downloadSources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<properties>
|
||||
<tuscany.version>2.0-M3</tuscany.version>
|
||||
<jetty.version>6.1.18</jetty.version>
|
||||
</properties>
|
||||
#end
|
||||
</project>
|
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package};
|
||||
|
||||
public class HelloworldImpl implements HelloworldService {
|
||||
|
||||
public String sayHello(String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package ${package};
|
||||
|
||||
public interface HelloworldService {
|
||||
|
||||
String sayHello(String name);
|
||||
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
|
||||
targetNamespace="http://${package}"
|
||||
name="${artifactId}">
|
||||
|
||||
<component name="${artifactId}WebComponent">
|
||||
<implementation.web web-uri=""/>
|
||||
<reference name="service" target="HelloworldComponent"/>
|
||||
</component>
|
||||
|
||||
<component name="HelloworldComponent">
|
||||
<implementation.java class="${package}.HelloworldImpl"/>
|
||||
</component>
|
||||
|
||||
</composite>
|
|
@ -1,41 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<web-app version="2.4"
|
||||
xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
|
||||
|
||||
<display-name>${artifactId}</display-name>
|
||||
|
||||
<filter>
|
||||
<filter-name>tuscany.${artifactId}</filter-name>
|
||||
<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>tuscany.${artifactId}</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<welcome-file-list id="WelcomeFileList">
|
||||
<welcome-file>hello.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
</web-app>
|
|
@ -1,36 +0,0 @@
|
|||
<%--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %>
|
||||
|
||||
<sca:reference name="service" type="${package}.HelloworldService" />
|
||||
|
||||
<html>
|
||||
<body >
|
||||
|
||||
<h2>${artifactId}</h2>
|
||||
|
||||
Calling HelloworldService sayHello("world") returns:
|
||||
|
||||
<p>
|
||||
|
||||
<%= service.sayHello("world") %>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,48 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: Axiom API
|
||||
Bundle-SymbolicName: org.apache.ws.commons.axiom.axiom-api
|
||||
Bundle-Version: 1.2.7
|
||||
Bundle-ClassPath: axiom-api-1.2.7.jar
|
||||
Bundle-Vendor: Apache Software Foundation
|
||||
Export-Package: org.apache.axiom.attachments,
|
||||
org.apache.axiom.attachments.impl,
|
||||
org.apache.axiom.attachments.lifecycle,
|
||||
org.apache.axiom.attachments.lifecycle.impl,
|
||||
org.apache.axiom.attachments.utils,
|
||||
org.apache.axiom.om,
|
||||
org.apache.axiom.om.ds,
|
||||
org.apache.axiom.om.ds.custombuilder,
|
||||
org.apache.axiom.om.impl,
|
||||
org.apache.axiom.om.impl.builder,
|
||||
org.apache.axiom.om.impl.exception,
|
||||
org.apache.axiom.om.impl.serialize,
|
||||
org.apache.axiom.om.impl.traverse,
|
||||
org.apache.axiom.om.impl.util,
|
||||
org.apache.axiom.om.util,
|
||||
org.apache.axiom.om.xpath,
|
||||
org.apache.axiom.soap,
|
||||
org.apache.axiom.soap.impl.builder
|
||||
Archiver-Version: Plexus Archiver
|
||||
Build-Jdk: 1.5.0_15
|
||||
Created-By: Apache Maven
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Built-By: dims
|
||||
Import-Package: javax.activation,
|
||||
javax.mail,
|
||||
javax.mail.internet,
|
||||
javax.xml.namespace,
|
||||
javax.xml.stream,
|
||||
org.apache.axiom.om.impl.dom.factory;resolution:=optional,
|
||||
org.apache.axiom.om.impl.llom.factory;resolution:=optional,
|
||||
org.apache.axiom.soap.impl.dom.factory;resolution:=optional,
|
||||
org.apache.axiom.soap.impl.llom.soap11;resolution:=optional,
|
||||
org.apache.axiom.soap.impl.llom.soap12;resolution:=optional,
|
||||
org.apache.commons.logging,
|
||||
org.jaxen;resolution:=optional,
|
||||
org.jaxen.saxpath;resolution:=optional,
|
||||
org.jaxen.util;resolution:=optional,
|
||||
org.w3c.dom,
|
||||
org.xml.sax,
|
||||
org.xml.sax.helpers
|
|
@ -1,229 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
Archiver-Version: Plexus Archiver
|
||||
Created-By: 1.4.2_17 (Sun Microsystems Inc.)
|
||||
Built-By: dims
|
||||
Build-Jdk: 1.4.2_17
|
||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Import-Package: com.ibm.wsdl.util,
|
||||
com.ibm.wsdl.util.xml,
|
||||
javax.wsdl,
|
||||
javax.wsdl.extensions,
|
||||
javax.wsdl.extensions.soap,
|
||||
javax.wsdl.factory,
|
||||
javax.wsdl.xml,
|
||||
javax.xml.namespace,
|
||||
javax.xml.parsers,
|
||||
org.apache.woden;version="1.0",
|
||||
org.apache.woden.internal;version="1.0.0",
|
||||
org.apache.woden.internal.resolver;version="1.0.0",
|
||||
org.apache.woden.internal.schema;version="1.0.0",
|
||||
org.apache.woden.internal.util;version="1.0.0",
|
||||
org.apache.woden.internal.util.dom;version="1.0.0",
|
||||
org.apache.woden.internal.wsdl20;version="1.0.0",
|
||||
org.apache.woden.internal.wsdl20.assertions;version="1.0.0",
|
||||
org.apache.woden.internal.wsdl20.extensions;version="1.0.0",
|
||||
org.apache.woden.internal.wsdl20.extensions.http;version="1.0.0",
|
||||
org.apache.woden.internal.wsdl20.extensions.rpc;version="1.0.0",
|
||||
org.apache.woden.internal.wsdl20.extensions.soap;version="1.0.0",
|
||||
org.apache.woden.internal.wsdl20.validation;version="1.0.0",
|
||||
org.apache.woden.internal.xml;version="1.0.0",
|
||||
org.apache.woden.internal.xpointer;version="1.0.0",
|
||||
org.apache.woden.resolver;version="1.0",
|
||||
org.apache.woden.schema;version="1.0",
|
||||
org.apache.woden.tool.converter;version="1.0.0",
|
||||
org.apache.woden.types;version="1.0",
|
||||
org.apache.woden.wsdl20;version="1.0",
|
||||
org.apache.woden.wsdl20.enumeration;version="1.0",
|
||||
org.apache.woden.wsdl20.extensions;version="1.0",
|
||||
org.apache.woden.wsdl20.extensions.http;version="1.0",
|
||||
org.apache.woden.wsdl20.extensions.rpc;version="1.0",
|
||||
org.apache.woden.wsdl20.extensions.soap;version="1.0",
|
||||
org.apache.woden.wsdl20.fragids;version="1.0",
|
||||
org.apache.woden.wsdl20.validation;version="1.0",
|
||||
org.apache.woden.wsdl20.xml;version="1.0",
|
||||
org.apache.woden.xml;version="1.0",
|
||||
org.apache.woden.xpointer;version="1.0",
|
||||
org.apache.ws.commons.schema,
|
||||
org.apache.ws.commons.schema.resolver,
|
||||
org.apache.ws.commons.schema.utils,
|
||||
org.apache.xerces.parsers,
|
||||
org.apache.xml.serialize,
|
||||
org.w3c.dom,
|
||||
org.xml.sax
|
||||
Bnd-LastModified: 1208980539265
|
||||
Export-Package: javax.xml.namespace,
|
||||
org.apache.woden.internal;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.schema,
|
||||
org.apache.xerces.parsers,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.xml,
|
||||
org.apache.woden.wsdl20.extensions,
|
||||
org.apache.woden.resolver,
|
||||
org.apache.woden.internal.schema,
|
||||
javax.xml.parsers,
|
||||
org.apache.woden.wsdl20.xml,
|
||||
org.xml.sax,
|
||||
org.apache.ws.commons.schema,
|
||||
org.w3c.dom,
|
||||
org.apache.woden,
|
||||
org.apache.woden.internal.wsdl20,
|
||||
org.apache.woden.internal.xpointer,
|
||||
org.apache.woden.internal.util.dom,
|
||||
org.apache.ws.commons.schema.resolver,
|
||||
org.apache.woden.internal.wsdl20.extensions,
|
||||
org.apache.woden.xpointer,
|
||||
org.apache.woden.internal.wsdl20.validation,
|
||||
org.apache.woden.wsdl20.enumeration,
|
||||
org.apache.woden.types,
|
||||
org.apache.woden.internal.resolver,
|
||||
org.apache.woden.internal.util",
|
||||
org.apache.woden.internal.resolver;version="1.0.0";
|
||||
uses:="org.apache.ws.commons.schema.resolver,
|
||||
org.xml.sax,
|
||||
org.apache.xml.serialize,
|
||||
org.w3c.dom,
|
||||
org.apache.woden,
|
||||
org.apache.woden.resolver,
|
||||
org.apache.woden.internal.util",
|
||||
org.apache.woden.internal.schema;version="1.0.0";
|
||||
uses:="org.apache.woden.schema,
|
||||
org.apache.ws.commons.schema,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden",
|
||||
org.apache.woden.internal.util;version="1.0.0",
|
||||
org.apache.woden.internal.util.dom;version="1.0.0";
|
||||
uses:="javax.xml.namespace,
|
||||
org.w3c.dom,
|
||||
org.apache.woden,
|
||||
org.apache.woden.internal.util",
|
||||
org.apache.woden.internal.wsdl20;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.schema,
|
||||
org.apache.woden.wsdl20.extensions.rpc,
|
||||
org.apache.ws.commons.schema,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.xml,
|
||||
org.apache.woden,
|
||||
org.apache.woden.wsdl20.extensions,
|
||||
org.apache.woden.wsdl20.fragids,
|
||||
org.apache.woden.internal,
|
||||
org.apache.woden.internal.wsdl20.extensions,
|
||||
org.apache.ws.commons.schema.utils,
|
||||
org.apache.woden.internal.schema,
|
||||
org.apache.woden.wsdl20.enumeration,
|
||||
org.apache.woden.wsdl20.xml,
|
||||
org.apache.woden.types",
|
||||
org.apache.woden.internal.wsdl20.assertions;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.wsdl20.validation,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.wsdl20.xml,
|
||||
org.apache.woden,
|
||||
org.apache.woden.resolver,
|
||||
org.apache.woden.internal",
|
||||
org.apache.woden.internal.wsdl20.extensions;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.wsdl20.extensions.http,
|
||||
org.apache.woden.internal.wsdl20.extensions.http,
|
||||
org.apache.woden.internal.xml,
|
||||
org.apache.woden.internal.wsdl20.extensions.soap,
|
||||
org.apache.woden.wsdl20.extensions.rpc,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.xml,
|
||||
org.apache.woden,
|
||||
org.apache.woden.wsdl20.extensions,
|
||||
org.apache.woden.internal.wsdl20.extensions.rpc,
|
||||
org.apache.woden.wsdl20.xml,
|
||||
org.apache.woden.wsdl20.extensions.soap,
|
||||
org.apache.woden.internal.util",
|
||||
org.apache.woden.internal.wsdl20.extensions.http;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.wsdl20.extensions.http,
|
||||
org.apache.woden.internal.xml,
|
||||
org.apache.ws.commons.schema,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.xml,
|
||||
org.apache.woden.internal.wsdl20,
|
||||
org.apache.woden,
|
||||
org.apache.woden.wsdl20.extensions,
|
||||
org.apache.woden.internal,
|
||||
org.apache.woden.internal.wsdl20.extensions,
|
||||
org.apache.woden.wsdl20.xml",
|
||||
org.apache.woden.internal.wsdl20.extensions.rpc;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.wsdl20.extensions.rpc,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.xml,
|
||||
org.apache.woden.wsdl20.xml,
|
||||
org.apache.woden,
|
||||
org.apache.woden.wsdl20.extensions",
|
||||
org.apache.woden.internal.wsdl20.extensions.soap;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.wsdl20.extensions.http,
|
||||
org.apache.woden.internal.xml,
|
||||
org.apache.ws.commons.schema,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.xml,
|
||||
org.apache.woden,
|
||||
org.apache.woden.internal.wsdl20,
|
||||
org.apache.woden.wsdl20.extensions,
|
||||
org.apache.woden.internal,
|
||||
org.apache.woden.internal.wsdl20.extensions,
|
||||
org.apache.woden.wsdl20.xml,
|
||||
org.apache.woden.wsdl20.extensions.soap",
|
||||
org.apache.woden.internal.wsdl20.validation;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20,
|
||||
org.apache.woden.wsdl20.validation,
|
||||
org.apache.woden.schema,
|
||||
org.apache.woden.internal.wsdl20.assertions,
|
||||
org.apache.ws.commons.schema,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden,
|
||||
org.apache.woden.wsdl20.extensions,
|
||||
org.apache.woden.resolver,
|
||||
org.apache.woden.internal,
|
||||
org.apache.woden.types,
|
||||
org.apache.woden.wsdl20.xml",
|
||||
org.apache.woden.internal.xml;version="1.0.0";
|
||||
uses:="org.apache.woden.wsdl20.extensions.http,
|
||||
org.apache.woden.wsdl20.extensions.rpc,
|
||||
javax.xml.namespace,
|
||||
org.apache.woden.xml,
|
||||
org.apache.woden,
|
||||
org.apache.woden.internal.util,
|
||||
org.apache.woden.internal",
|
||||
org.apache.woden.internal.xpointer;version="1.0.0";
|
||||
uses:="org.apache.woden.xpointer,
|
||||
org.apache.woden.types,
|
||||
org.w3c.dom,
|
||||
org.apache.woden,
|
||||
org.apache.woden.internal",
|
||||
org.apache.woden.tool.converter;version="1.0.0";
|
||||
uses:="javax.wsdl,
|
||||
javax.wsdl.extensions,
|
||||
javax.wsdl.extensions.soap,
|
||||
javax.wsdl.xml,
|
||||
javax.wsdl.factory,
|
||||
javax.xml.namespace,
|
||||
com.ibm.wsdl.util,
|
||||
com.ibm.wsdl.util.xml"
|
||||
Bundle-Version: 1.0.0
|
||||
Bundle-Description: The Woden project is a subproject of the Apache We
|
||||
b Services Project to develop a Java class library for reading, ma
|
||||
nipulating, creating and writing WSDL documents, initially to supp
|
||||
ort WSDL 2.0 but with the longer term aim of supporting past, present
|
||||
and future versions of WSDL. There are two main deliverables:
|
||||
an API and an implementation. The Woden API consists of a set of J
|
||||
ava interfaces. The WSDL 2.0-specific portion of the Woden API confor
|
||||
ms to the W3C WSDL 2.0 specification. The implementation will be a
|
||||
high performance implementation directly usable in other Apache p
|
||||
rojects such as Axis2.
|
||||
Bundle-Name: Woden - DOM
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Vendor: Apache Software Foundation
|
||||
Bundle-SymbolicName: org.apache.woden.woden-impl-dom
|
||||
Tool: Bnd-0.0.238
|
||||
|
||||
|
|
@ -1,115 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-distribution</artifactId>
|
||||
<version>2.0-M3</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>tuscany-distribution-all</artifactId>
|
||||
<name>Apache Tuscany SCA All-in-one Distribution</name>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-feature-all</artifactId>
|
||||
<type>pom</type>
|
||||
<version>2.0-M3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.tuscany.maven.plugins</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>distribution-modules</id>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>generate-modules</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<targetDirectory>target/modules</targetDirectory>
|
||||
<useDistributionName>false</useDistributionName>
|
||||
<generateManifestJar>true</generateManifestJar>
|
||||
<artifactManifests>
|
||||
<artifactManifest>
|
||||
<groupId>org.apache.ws.commons.axiom</groupId>
|
||||
<artifactId>axiom-api</artifactId>
|
||||
<version>1.2.7</version>
|
||||
<manifestFile>${basedir}/manifests/axiom-api-1.2.7.MF</manifestFile>
|
||||
</artifactManifest>
|
||||
<artifactManifest>
|
||||
<groupId>org.apache.woden</groupId>
|
||||
<artifactId>woden-impl-dom</artifactId>
|
||||
<version>1.0M8</version>
|
||||
<manifestFile>${basedir}/manifests/woden-impl-dom-1.0M8.MF</manifestFile>
|
||||
</artifactManifest>
|
||||
<artifactManifest>
|
||||
<groupId>org.apache.axis2</groupId>
|
||||
<artifactId>*</artifactId>
|
||||
<version>*</version>
|
||||
</artifactManifest>
|
||||
</artifactManifests>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.eclipse</groupId>
|
||||
<artifactId>osgi</artifactId>
|
||||
<version>3.3.0-v20070530</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>distribution-package</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/bin.xml</descriptor>
|
||||
<descriptor>src/main/assembly/src.xml</descriptor>
|
||||
</descriptors>
|
||||
<tarLongFileMode>gnu</tarLongFileMode>
|
||||
<finalName>apache-tuscany-sca-all-${version}</finalName>
|
||||
<appendAssemblyId>true</appendAssemblyId>
|
||||
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<assembly>
|
||||
<!-- id typically identifies the "type" (src vs bin etc) of the assembly -->
|
||||
<id></id>
|
||||
<includeBaseDirectory>true</includeBaseDirectory>
|
||||
<baseDirectory>tuscany-sca-${version}</baseDirectory>
|
||||
<formats>
|
||||
<format>tar.gz</format>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
|
||||
<componentDescriptors>
|
||||
<componentDescriptor>src/main/components/bin-common.xml</componentDescriptor>
|
||||
<componentDescriptor>src/main/components/bin-modules.xml</componentDescriptor>
|
||||
<componentDescriptor>src/main/components/bin-samples.xml</componentDescriptor>
|
||||
<componentDescriptor>src/main/components/bin-launcher.xml</componentDescriptor>
|
||||
</componentDescriptors>
|
||||
</assembly>
|
|
@ -1,45 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<assembly>
|
||||
<!-- id typically identifies the "type" (src vs bin etc) of the assembly -->
|
||||
<id>src</id>
|
||||
<includeBaseDirectory>true</includeBaseDirectory>
|
||||
<baseDirectory>tuscany-sca-${version}-src</baseDirectory>
|
||||
<formats>
|
||||
<format>tar.gz</format>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>../..</directory>
|
||||
<outputDirectory></outputDirectory>
|
||||
<excludes>
|
||||
<exclude>**/.*</exclude>
|
||||
<exclude>**/.*/**</exclude>
|
||||
<exclude>**/*.log</exclude>
|
||||
<exclude>**/target</exclude>
|
||||
<exclude>**/target/**/*</exclude>
|
||||
<exclude>**/maven-eclipse.xml</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
|
||||
</assembly>
|
|
@ -1,43 +0,0 @@
|
|||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<component>
|
||||
<fileSets>
|
||||
|
||||
<!-- Add the text files to the top-level directroy -->
|
||||
<fileSet>
|
||||
<directory>../..</directory>
|
||||
<outputDirectory></outputDirectory>
|
||||
<includes>
|
||||
<include>CHANGES</include>
|
||||
<include>README</include>
|
||||
<include>RELEASE_NOTES</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>src/main/release/bin</directory>
|
||||
<outputDirectory></outputDirectory>
|
||||
<includes>
|
||||
<include>INSTALL</include>
|
||||
<include>LICENSE</include>
|
||||
<include>NOTICE</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
|
||||
</component>
|
|
@ -1,41 +0,0 @@
|
|||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<component>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>src/main/release/launcher</directory>
|
||||
<outputDirectory>bin</outputDirectory>
|
||||
<includes>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
|
||||
<dependencySets>
|
||||
<dependencySet>
|
||||
<outputDirectory>bin</outputDirectory>
|
||||
<unpack>false</unpack>
|
||||
<includes>
|
||||
<include>org.apache.tuscany.sca:tuscany-launcher</include>
|
||||
</includes>
|
||||
<outputFileNameMapping>launcher.jar</outputFileNameMapping>
|
||||
</dependencySet>
|
||||
|
||||
</dependencySets>
|
||||
|
||||
</component>
|
|
@ -1,33 +0,0 @@
|
|||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<component>
|
||||
<fileSets>
|
||||
|
||||
<fileSet>
|
||||
<directory>target</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<includes>
|
||||
<include>modules/**/*</include>
|
||||
<include>features/**/*</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
</fileSets>
|
||||
|
||||
</component>
|
|
@ -1,80 +0,0 @@
|
|||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<component>
|
||||
<fileSets>
|
||||
<!-- Add top level samples files -->
|
||||
<fileSet>
|
||||
<directory>../../samples</directory>
|
||||
<outputDirectory>samples</outputDirectory>
|
||||
<includes>
|
||||
<include>README</include>
|
||||
<include>logging.properties</include>
|
||||
<include>build-common.xml</include>
|
||||
<include>binding-ws-calculator/**/*</include>
|
||||
<include>calculator/**/*</include>
|
||||
<include>calculator-equinox/**/*</include>
|
||||
<include>calculator-osgi/**/*</include>
|
||||
<include>calculator-rmi-reference/**/*</include>
|
||||
<include>calculator-rmi-service/**/*</include>
|
||||
<include>implementation-java-calculator/**/*</include>
|
||||
<include>dosgi-calculator/**/*</include>
|
||||
<include>dosgi-calculator-operations/**/*</include>
|
||||
<include>webapps/helloworld/**/*</include>
|
||||
<include>webapps/helloworld-bpel/**/*</include>
|
||||
<include>webapps/helloworld-jsf/**/*</include>
|
||||
<include>webapps/helloworld-jsp/**/*</include>
|
||||
<include>webapps/helloworld-stripes/**/*</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<!-- General file/folders to exclude -->
|
||||
<exclude>**/.*</exclude>
|
||||
<exclude>**/.*/**</exclude>
|
||||
<exclude>**/*.log</exclude>
|
||||
<exclude>**/*.svg</exclude>
|
||||
<exclude>**/maven-eclipse.xml</exclude>
|
||||
|
||||
<!-- Sample specific files/folders to exclude -->
|
||||
<exclude>pom.xml</exclude>
|
||||
<!-- exclude>**/target</exclude -->
|
||||
<!-- exclude>**/target/**/*</exclude -->
|
||||
<exclude>*/target/mvn-eclipse-cache.properties</exclude>
|
||||
<exclude>*/target/pom-transformed.xml</exclude>
|
||||
<exclude>*/target/classes</exclude>
|
||||
<exclude>*/target/classes/**/*</exclude>
|
||||
<exclude>*/target/dependency-maven-plugin-markers</exclude>
|
||||
<exclude>*/target/dependency-maven-plugin-markers/**/*</exclude>
|
||||
<exclude>*/target/.felix</exclude>
|
||||
<exclude>*/target/.felix/**/*</exclude>
|
||||
<exclude>*/target/maven-archiver</exclude>
|
||||
<exclude>*/target/maven-archiver/**/*</exclude>
|
||||
<exclude>*/target/test-classes</exclude>
|
||||
<exclude>*/target/test-classes/**/*</exclude>
|
||||
<exclude>*/target/surefire-reports</exclude>
|
||||
<exclude>*/target/surefire-reports/**/*</exclude>
|
||||
<exclude>*/target/surefire-osgi-reports</exclude>
|
||||
<exclude>*/target/surefire-osgi-reports/**/*</exclude>
|
||||
<exclude>webapps/helloworld/target/**/*</exclude>
|
||||
<exclude>webapps/helloworld-bpel/target/**/*</exclude>
|
||||
<exclude>webapps/helloworld-jsf/target/**/*</exclude>
|
||||
<exclude>webapps/helloworld-jsp/target/**/*</exclude>
|
||||
<exclude>webapps/helloworld-stripes/target/**/*</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</component>
|
|
@ -1,24 +0,0 @@
|
|||
Installing the Apache Tuscany SCA 2.0-M3 June 2009 Release binary distribution
|
||||
===============================================================================
|
||||
|
||||
Unzip Tuscany binary distribution archive and you get the following:
|
||||
|
||||
tuscany-sca-2.0-M3
|
||||
CHANGES - A note of the major changes in this release
|
||||
INSTALL - this help file
|
||||
LICENSE - the Apache License and any dependecy licenses
|
||||
NOTICE - attribution notices associated with the licenses
|
||||
README - readme for the release
|
||||
RELEASE_NOTES - description of this release
|
||||
|
||||
/bin - Tuscany launcher (for use when running tuscany from the command line)
|
||||
|
||||
/features - OSGi runtime configuration, Tuscany manifest and PDE target
|
||||
|
||||
/modules - all of the individual Tuscany jars and their dependencies
|
||||
|
||||
/samples - all the Tuscany samples, see the README in that directory
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -1,79 +0,0 @@
|
|||
Apache Tuscany
|
||||
Copyright (c) 2005 - 2009 The Apache Software Foundation
|
||||
|
||||
This product includes software developed at
|
||||
The Apache Software Foundation (http://www.apache.org/).
|
||||
|
||||
This product includes/uses the Axion : the Open Source Java Database (http://axion.tigris.org/)
|
||||
Copyright (c) 2002-2003 Axion Development Team. All rights reserved.
|
||||
|
||||
This product includes/uses XmlSchema developed at
|
||||
The Apache Software Foundation (http://ws.apache.org/commons/XmlSchema)
|
||||
Portions Copyright 2006 International Business Machines Corp.
|
||||
|
||||
This product includes/uses the Jetty Servlet Engine (http://jetty.mortbay.org),
|
||||
developed by Mort Bay Consulting (http://www.mortbay.com)
|
||||
|
||||
This product includes/uses DOM4J : the flexible XML framework for java (http://www.dom4j.org/)
|
||||
Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
|
||||
|
||||
This product includes/uses software, AOP alliance (http://aopalliance.sourceforge.net)
|
||||
License: Public Domain
|
||||
|
||||
This product includes/uses javacc (https://javacc.dev.java.net/)
|
||||
Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
|
||||
This product includes software from the GlassFish project (https://glassfish.dev.java.net/)
|
||||
Copyright (c) 2006, Sun Microsystems, Inc.
|
||||
|
||||
This product includes/uses the Sourceforge wsdl4j project (http://sourceforge.net/projects/wsdl4j/)
|
||||
|
||||
This product includes/uses JDOM (http://www.jdom.org/)
|
||||
Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin. All rights reserved.
|
||||
|
||||
This product includes/uses javacc (https://javacc.dev.java.net/)
|
||||
Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
|
||||
This product includes/uses ASM (http://asm.objectweb.org)
|
||||
Copyright (c) 2000-2005 INRIA, France Telecom. All rights reserved.
|
||||
|
||||
This product includes/uses Jaxen (http://jaxen.codehaus.org/)
|
||||
Copyright 2003-2006 The Werken Company. All Rights Reserved.
|
||||
|
||||
This product includes/uses Serp (http://serp.sourceforge.net/) under the BSD license:
|
||||
Copyright (c) 2002, A. Abram White. All rights reserved.
|
||||
|
||||
This product also includes software under the BSD license
|
||||
with the following copyright:
|
||||
Copyright (c) 2006, Sun Microsystems, Inc. All rights reserved.
|
||||
|
||||
The Program includes all or portions of the following software: "The
|
||||
Saxon XSLT and XQuery Processor from Saxonica Limited" distributed under
|
||||
an MPL v1.0 license. Please refer to the homepage URL at
|
||||
http://www.saxonica.com/.
|
||||
|
||||
This product includes/uses Serp (http://serp.sourceforge.net/) under the BSD license:
|
||||
Copyright (c) 2002, A. Abram White. All rights reserved.
|
||||
|
||||
This product also includes "OSGi Materials."
|
||||
Copyright (c) 2000, 2006
|
||||
OSGi Alliance Bishop Ranch 6
|
||||
2400 Camino Ramon, Suite 375
|
||||
San Ramon, CA 94583 USA
|
||||
All Rights Reserved.
|
||||
|
||||
This product includes software under the Service Component Architecture JavaDoc,
|
||||
Interface Definition files and XSD files license.
|
||||
(c) Copyright SCA Collaboration 2006, 2007
|
||||
|
||||
This product includes software under the Service Data Objects JavaDoc and
|
||||
Interface Definition file license
|
||||
|
||||
(c) Copyright BEA Systems, Inc., International Business Machines Corporation,
|
||||
Oracle Corporation, Primeton Technologies Ltd., Rogue Wave Software, SAP AG.,
|
||||
Software AG., Sun Microsystems, Sybase Inc., Xcalia, Zend Technologies,
|
||||
2005, 2006. All rights reserved.
|
||||
|
||||
This product includes software under the OASIS license
|
||||
Copyright (C) OASIS(R) 2005, 2009. All Rights Reserved.
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
The bin folder contains bat and shell scripts to help with using Tuscany.
|
||||
You can use the "tuscany.bat" script to start a standalone runtime and
|
||||
deploy your SCA contributions.
|
||||
|
||||
For example, change to the implementation-java-calculator sample included
|
||||
in the Tuscany distribution and enter the following command:
|
||||
|
||||
..\..\bin\tuscany.bat target\implementation-java-calculator.jar
|
||||
|
||||
The script also supports things such as using a Java remote debugger,
|
||||
for help enter use the "/?" parameter, eg:
|
||||
|
||||
..\..\bin\tuscany.bat /?
|
||||
|
||||
To simplify the use of the script add the absolute file path of the bin
|
||||
folder to your environment path:
|
||||
|
||||
set PATH=%PATH%;\Tuscany\tuscany-sca-2.0-M3\bin
|
||||
|
||||
and that enables running the script by just "tuscany", for example, in the
|
||||
implementation-java-calculator sample again you can enter:
|
||||
|
||||
tuscany target\implementation-java-calculator.jar
|
||||
|
||||
Tuscany developers may find it useful to add the script from their SVN checkout
|
||||
development build to their environment so as to start runtimes using their local
|
||||
trunk build, for example:
|
||||
|
||||
set PATH=%PATH%;\Tuscany\SVN\trunk\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPSHOT-dir\tuscany-sca-2.0-SNAPSHOT\bin
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
classpath=modules/**
|
||||
mainClass=[firstArgJarManifestMainClass]|org.apache.tuscany.sca.node.NodeMain2
|
||||
-Djava.util.logging.config.file={TUSCANY_HOME}/samples/logging.properties
|
||||
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
classpath=modules/**
|
||||
-Djava.util.logging.config.file={TUSCANY_HOME}/samples/logging.properties
|
||||
mainClass=org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher2
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
@echo off
|
||||
|
||||
REM # Licensed to the Apache Software Foundation (ASF) under one
|
||||
REM # or more contributor license agreements. See the NOTICE file
|
||||
REM # distributed with this work for additional information
|
||||
REM # regarding copyright ownership. The ASF licenses this file
|
||||
REM # to you under the Apache License, Version 2.0 (the
|
||||
REM # "License"); you may not use this file except in compliance
|
||||
REM # with the License. You may obtain a copy of the License at
|
||||
REM #
|
||||
REM # http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM #
|
||||
REM # Unless required by applicable law or agreed to in writing,
|
||||
REM # software distributed under the License is distributed on an
|
||||
REM # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
REM # KIND, either express or implied. See the License for the
|
||||
REM # specific language governing permissions and limitations
|
||||
REM # under the License.
|
||||
|
||||
if "%1"=="/?" goto help
|
||||
|
||||
if not "%TUSCANY_HOME%"=="" goto gotHome
|
||||
SET TUSCANY_HOME=%~dp0\..
|
||||
if not "%TUSCANY_HOME%"=="" goto gotHome
|
||||
echo.
|
||||
echo cannot find TUSCANY_HOME please set TUSCANY_HOME variable to the Tuscany installation dir
|
||||
echo.
|
||||
goto error
|
||||
:gotHome
|
||||
|
||||
|
||||
set _XDEBUG=
|
||||
if not %1==debug goto skipDebug
|
||||
set _XDEBUG=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
|
||||
shift
|
||||
:skipDebug
|
||||
|
||||
set _FORK=
|
||||
if not %1==fork goto skipFork
|
||||
set _FORK=start
|
||||
shift
|
||||
:skipFORK
|
||||
|
||||
set _CMD_LINE_ARGS=
|
||||
:argsLoop
|
||||
if %1a==a goto doneInit
|
||||
set _CMD_LINE_ARGS=%_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto argsLoop
|
||||
|
||||
|
||||
:doneInit
|
||||
|
||||
%_FORK% java %_XDEBUG% -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS%
|
||||
|
||||
goto end
|
||||
|
||||
:help
|
||||
|
||||
echo Apache Tuscany SCA runtime launcher
|
||||
echo TUSCANY [debug] [fork] contributions
|
||||
echo debug enable Java remote debugging
|
||||
echo fork start a new command prompt window to run the contributions
|
||||
echo contributions list of SCA contribution file names seperated by spaces. All
|
||||
echo deployable composites found in the contributions will be run.
|
||||
|
||||
goto end
|
||||
|
||||
:error
|
||||
set ERROR_CODE=1
|
||||
|
||||
|
||||
:end
|
||||
@endlocal
|
||||
exit /B %ERROR_CODE%
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# copied from tomcat catalina.sh
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ]; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
# Get standard environment variables
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
|
||||
# Only set CATALINA_HOME if not already set
|
||||
[ -z "$TUSCANY_HOME" ] && TUSCANY_HOME=`cd "$PRGDIR/.." ; pwd`
|
||||
|
||||
if [ "$1" = "/?" ] ; then
|
||||
echo "Apache Tuscany SCA runtime launcher"
|
||||
echo "TUSCANY [debug] contributions"
|
||||
echo " debug enable Java remote debugging"
|
||||
echo " contributions list of SCA contribution file names seperated by spaces. All"
|
||||
echo " deployable composites found in the contributions will be run."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
_XDEBUG=""
|
||||
if [ "$1" = "debug" ] ; then
|
||||
_XDEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"
|
||||
shift
|
||||
fi
|
||||
|
||||
java $_XDEBUG -jar $TUSCANY_HOME/bin/launcher.jar "$@"
|
|
@ -1,21 +0,0 @@
|
|||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
classpath=modules/**
|
||||
-Djava.util.logging.config.file={TUSCANY_HOME}/samples/logging.properties
|
||||
mainClass=[firstArgJarManifestMainClass]
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
<version>2.0-M3</version>
|
||||
</parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-distribution</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Apache Tuscany SCA Distributions</name>
|
||||
|
||||
<modules>
|
||||
<module>all</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
This builds the Tuscany Tomcat Distribution.
|
||||
|
||||
After building the distribution .war file will be
|
||||
found in the tomcat-war/target directory.
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
<version>2.0-M3</version>
|
||||
</parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-distribution-tomcat</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Apache Tuscany SCA Distribution Tomcat</name>
|
||||
|
||||
<modules>
|
||||
<module>tomcat-hook</module>
|
||||
<module>tomcat-servlet</module>
|
||||
<module>tomcat-war</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
|
@ -1,55 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<project name="getTomcat">
|
||||
|
||||
<property name="download.location" value="${basedir}/download"/>
|
||||
<property name="downloaded.name" value="${download.location}/apache-tomcat-${tomcat.version}.zip"/>
|
||||
|
||||
<property name="unzip.location" value="${basedir}/target"/>
|
||||
<property name="unzipped.name" value="${unzip.location}/apache-tomcat-${tomcat.version}"/>
|
||||
|
||||
<target name="check-downloaded">
|
||||
<condition property="already.downloaded" >
|
||||
<available file="${downloaded.name}"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="check-unziped">
|
||||
<condition property="already.unziped" >
|
||||
<available file="${unzipped.name}"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="download" depends="check-downloaded" unless="already.unziped">
|
||||
<mkdir dir="${download.location}"/>
|
||||
<get src="http://www.apache.org/dist/tomcat/tomcat-6/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip"
|
||||
dest="${downloaded.name}"
|
||||
verbose="true"
|
||||
usetimestamp="true"/>
|
||||
</target>
|
||||
|
||||
<target name="unzip-files" depends="download" unless="already.unziped">
|
||||
<unzip src="${downloaded.name}"
|
||||
dest="${unzip.location}"
|
||||
overwrite="false">
|
||||
</unzip>
|
||||
</target>
|
||||
|
||||
</project>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue