summaryrefslogtreecommitdiffstats
path: root/sandbox/lresende
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-10-20 04:24:39 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-10-20 04:24:39 +0000
commit073fcab1cf3045ff6f31f2b42cd33cb99c069e51 (patch)
tree8885dd84371445ff4a80fea8307469e9553b29bb /sandbox/lresende
parentd2f1ac6abaa47da0dd051f8db7e40f8dda7acdc6 (diff)
Updating sample to use latest wink release
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1024518 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/lresende')
-rw-r--r--sandbox/lresende/sca-2.x/samples/store-jaxrs/.project52
-rw-r--r--sandbox/lresende/sca-2.x/samples/store-jaxrs/pom.xml37
-rw-r--r--sandbox/lresende/sca-2.x/samples/store-jaxrs/src/main/webapp/WEB-INF/web.xml33
3 files changed, 73 insertions, 49 deletions
diff --git a/sandbox/lresende/sca-2.x/samples/store-jaxrs/.project b/sandbox/lresende/sca-2.x/samples/store-jaxrs/.project
index 63959a34e6..7890010b31 100644
--- a/sandbox/lresende/sca-2.x/samples/store-jaxrs/.project
+++ b/sandbox/lresende/sca-2.x/samples/store-jaxrs/.project
@@ -1,34 +1,26 @@
-<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>sample-store-jaxrs-webapp</name>
- <comment>The Apache Software Foundation provides support for the Apache community of open-source software projects.
+ <name>sample-store-jaxrs-webapp</name>
+ <comment>The Apache Software Foundation provides support for the Apache community of open-source software projects.
The Apache projects are characterized by a collaborative, consensus based development process, an open and
pragmatic software license, and a desire to create high quality software that leads the way in its field.
We consider ourselves not simply a group of projects sharing a server, but rather a community of developers
- and users.</comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.common.project.facet.core.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
- <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
- <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
- </natures>
-</projectDescription>
+ and users. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription> \ No newline at end of file
diff --git a/sandbox/lresende/sca-2.x/samples/store-jaxrs/pom.xml b/sandbox/lresende/sca-2.x/samples/store-jaxrs/pom.xml
index 676dcbe956..7d536db3dc 100644
--- a/sandbox/lresende/sca-2.x/samples/store-jaxrs/pom.xml
+++ b/sandbox/lresende/sca-2.x/samples/store-jaxrs/pom.xml
@@ -7,15 +7,15 @@
* 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.
+ * under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
@@ -42,23 +42,44 @@
<url>http://repository.codehaus.org/</url>
</repository>
</repositories>
-
+
<dependencies>
+ <dependency>
+ <groupId>javax.ws.rs</groupId>
+ <artifactId>jsr311-api</artifactId>
+ <version>1.1</version>
+ </dependency>
+
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-common</artifactId>
- <version>1.0-incubating</version>
+ <version>1.1.2-incubating-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-server</artifactId>
- <version>1.0-incubating</version>
+ <version>1.1.2-incubating-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.wink</groupId>
+ <artifactId>wink-client</artifactId>
+ <version>1.1.2-incubating-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
- <version>1.4.1</version>
+ <version>1.6.0</version>
</dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-jdk14</artifactId>
+ <version>1.6.1</version>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -66,7 +87,7 @@
<scope>test</scope>
</dependency>
</dependencies>
-
+
<build>
<finalName>store-jaxrs</finalName>
</build>
diff --git a/sandbox/lresende/sca-2.x/samples/store-jaxrs/src/main/webapp/WEB-INF/web.xml b/sandbox/lresende/sca-2.x/samples/store-jaxrs/src/main/webapp/WEB-INF/web.xml
index b6f0c3db16..5060ad0fb2 100644
--- a/sandbox/lresende/sca-2.x/samples/store-jaxrs/src/main/webapp/WEB-INF/web.xml
+++ b/sandbox/lresende/sca-2.x/samples/store-jaxrs/src/main/webapp/WEB-INF/web.xml
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
- <display-name>store-jaxrs</display-name>
-
- <!--
- Wink SDK servlet configuration. This servlet handles HTTP requests
- of SDK web service on application server.
- -->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ id="WebApp_ID" version="2.5">
+ <display-name>store-jaxrs</display-name>
+
+ <!-- Wink SDK servlet configuration. This servlet handles HTTP requests
+ of SDK web service on application server. -->
<servlet>
<servlet-name>restSdkService</servlet-name>
<servlet-class>org.apache.wink.server.internal.servlet.RestServlet</servlet-class>
@@ -19,8 +20,18 @@
<servlet-name>restSdkService</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
-
- <welcome-file-list>
- <welcome-file>store.html</welcome-file>
- </welcome-file-list>
+
+ <servlet>
+ <servlet-name>restSdkAdmin</servlet-name>
+ <servlet-class>org.apache.wink.server.internal.servlet.AdminServlet</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>restSdkAdmin</servlet-name>
+ <url-pattern>/admin</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>store.html</welcome-file>
+ </welcome-file-list>
</web-app> \ No newline at end of file