Author: nash
Date: Thu Dec 13 05:00:38 2007
New Revision: 603913
URL: http://svn.apache.org/viewvc?rev=603913&view=rev
Log:
Add webapp-service-with-exception scenario.
Added:
incubator/tuscany/sandbox/nash/scenarios/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/pom.xml
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/BusinessException.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClient.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClientImpl.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleService.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/META-INF/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/META-INF/sca-contribution.xml
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/exclient.composite
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/com/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/com/example/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/com/example/ExampleTestCase.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/pom.xml
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/BusinessException.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleService.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleServiceImpl.java
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/META-INF/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/META-INF/sca-deployables/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/META-INF/sca-deployables/example.composite
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/WEB-INF/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/WEB-INF/web.xml
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/target/
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/target/itest-exceptions-simple-ws.war
(with props)
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/pom.xml?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/pom.xml
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/pom.xml
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,85 @@
+<?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>1.1-incubating-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+ <artifactId>sample-exceptions-simple-ws-client</artifactId>
+ <name>Apache Tuscany SCA Simple Exceptions Web Service Sample Client</name>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-api</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-impl</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-java-runtime</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-ws-axis2</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-tomcat</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+
+</project>
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/BusinessException.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/BusinessException.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/BusinessException.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/BusinessException.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,41 @@
+/*
+ * 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 com.example;
+
+public class BusinessException extends Exception {
+
+ private String message;
+
+ public BusinessException() {
+ super();
+ }
+
+ public BusinessException(String message) {
+ super(message);
+ setMessage(message);
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClient.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClient.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClient.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClient.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,23 @@
+/*
+ * 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 com.example;
+
+public interface ExampleClient {
+ void runTest();
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClientImpl.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClientImpl.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClientImpl.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleClientImpl.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,44 @@
+/*
+ * 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 com.example;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Scope;
+import org.osoa.sca.annotations.Service;
+
[EMAIL PROTECTED](ExampleClient.class)
[EMAIL PROTECTED]("COMPOSITE")
+public class ExampleClientImpl implements ExampleClient {
+
+ private ExampleService myService;
+
+ @Reference
+ public void setMyService(ExampleService myService) {
+ this.myService = myService;
+ }
+
+ public void runTest() {
+ try {
+ Object result = myService.hello("John");
+ System.out.println("myService returned " +
result.getClass().getName());
+ } catch(BusinessException e) {
+ System.out.println("caught exception from hello(): " +
e.getMessage());
+ }
+ }
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleService.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleService.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleService.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/java/com/example/ExampleService.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,27 @@
+/*
+ * 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 com.example;
+
+import org.osoa.sca.annotations.Remotable;
+
[EMAIL PROTECTED]
+public interface ExampleService {
+
+ String hello(String name) throws BusinessException;
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/META-INF/sca-contribution.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/META-INF/sca-contribution.xml?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/META-INF/sca-contribution.xml
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/META-INF/sca-contribution.xml
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,22 @@
+<?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://www.osoa.org/xmlns/sca/1.0"
xmlns:exa="http://www.example.com">
+ <deployable composite="exa:exclient" />
+</contribution>
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/exclient.composite
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/exclient.composite?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/exclient.composite
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/main/resources/exclient.composite
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,32 @@
+<?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://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://www.example.com"
+ xmlns:hw="http://www.example.com"
+ name="exclient">
+
+ <component name="ExampleClientComponent">
+ <implementation.java class="com.example.ExampleClientImpl" />
+ <reference name="myService">
+ <interface.java interface="com.example.ExampleService" />
+ <binding.ws
uri="http://localhost:8080/itest-exceptions-simple-ws/ExampleComponent" />
+ </reference>
+ </component>
+</composite>
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/com/example/ExampleTestCase.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/com/example/ExampleTestCase.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/com/example/ExampleTestCase.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-client/src/test/java/com/example/ExampleTestCase.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,45 @@
+/*
+ * 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 com.example;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
+
+public class ExampleTestCase extends TestCase {
+
+ private SCANode node;
+ private ExampleClient client;
+
+ @Override
+ protected void setUp() throws Exception {
+ node = SCANodeFactory.createNodeWithComposite("exclient.composite");
+ client = node.getDomain().getService(ExampleClient.class,
"ExampleClientComponent");
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ node.destroy();
+ }
+
+ public void test() throws Exception {
+ client.runTest();
+ }
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/pom.xml?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/pom.xml
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/pom.xml
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,64 @@
+<?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>1.1-incubating-SNAPSHOT</version>
+ </parent>
+ <artifactId>itest-exceptions-simple-ws</artifactId>
+ <name>Apache Tuscany Simple Exceptions Web Service Sample Webapp</name>
+ <packaging>war</packaging>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-webapp</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-java-runtime</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-ws-axis2</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+
+</project>
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/BusinessException.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/BusinessException.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/BusinessException.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/BusinessException.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,41 @@
+/*
+ * 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 com.example;
+
+public class BusinessException extends Exception {
+
+ private String message;
+
+ public BusinessException() {
+ super();
+ }
+
+ public BusinessException(String message) {
+ super(message);
+ setMessage(message);
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleService.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleService.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleService.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleService.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,27 @@
+/*
+ * 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 com.example;
+
+import org.osoa.sca.annotations.Remotable;
+
[EMAIL PROTECTED]
+public interface ExampleService {
+
+ String hello(String name) throws BusinessException;
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleServiceImpl.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleServiceImpl.java?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleServiceImpl.java
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/java/com/example/ExampleServiceImpl.java
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,26 @@
+/*
+ * 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 com.example;
+
+public class ExampleServiceImpl implements ExampleService {
+ public String hello(String name) throws BusinessException {
+ throw new BusinessException("bad news");
+ //return "Hello, " + name;
+ }
+}
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/META-INF/sca-deployables/example.composite
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/META-INF/sca-deployables/example.composite?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/META-INF/sca-deployables/example.composite
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/META-INF/sca-deployables/example.composite
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,32 @@
+<?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://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://www.example.com"
+ xmlns:hw="http://www.example.com"
+ name="example">
+
+ <component name="ExampleComponent">
+ <implementation.java class="com.example.ExampleServiceImpl"/>
+ <service name="ExampleService">
+ <interface.java interface="com.example.ExampleService" />
+ <binding.ws />
+ </service>
+ </component>
+</composite>
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/WEB-INF/web.xml?rev=603913&view=auto
==============================================================================
---
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/WEB-INF/web.xml
(added)
+++
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/src/main/webapp/WEB-INF/web.xml
Thu Dec 13 05:00:38 2007
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * 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 web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
+Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+ <display-name>Apache Tuscany Simple Exceptions Web Service
Sample</display-name>
+
+ <filter>
+ <filter-name>tuscany</filter-name>
+
<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>tuscany</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <welcome-file-list id="WelcomeFileList">
+ <welcome-file>ExampleComponent?wsdl</welcome-file>
+ </welcome-file-list>
+
+</web-app>
Added:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/target/itest-exceptions-simple-ws.war
URL:
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/target/itest-exceptions-simple-ws.war?rev=603913&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
incubator/tuscany/sandbox/nash/scenarios/webapp-service-with-exception/exceptions-simple-ws-webapp/target/itest-exceptions-simple-ws.war
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]