Author: rfeng
Date: Fri Aug 24 11:23:57 2007
New Revision: 569473

URL: http://svn.apache.org/viewvc?rev=569473&view=rev
Log:
Fix for TUSCANY-1576

Modified:
    
incubator/tuscany/branches/sca-java-0.99/modules/databinding-sdo-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer
    incubator/tuscany/branches/sca-java-0.99/samples/helloworld-ws-sdo/README

Modified: 
incubator/tuscany/branches/sca-java-0.99/modules/databinding-sdo-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.99/modules/databinding-sdo-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer?rev=569473&r1=569472&r2=569473&view=diff
==============================================================================
--- 
incubator/tuscany/branches/sca-java-0.99/modules/databinding-sdo-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer
 (original)
+++ 
incubator/tuscany/branches/sca-java-0.99/modules/databinding-sdo-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer
 Fri Aug 24 11:23:57 2007
@@ -1,20 +1,21 @@
-# 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.
-
-# Implementation classes for the transformers
-org.apache.tuscany.sca.databinding.sdo2om.DataObject2OMElement;source=commonj.sdo.DataObject,target=org.apache.axiom.om.OMElement,weight=10
-org.apache.tuscany.sca.databinding.sdo2om.XMLDocument2OMElement;source=commonj.sdo.helper.XMLDocument,target=org.apache.axiom.om.OMElement,weight=10
+# 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.
+
+# Implementation classes for the transformers
+# [rfeng] Increase the weight from 10 to 1000 (in favor of sdo --> stax --> 
axiom) to work around https://issues.apache.org/jira/browse/WSCOMMONS-226
+org.apache.tuscany.sca.databinding.sdo2om.DataObject2OMElement;source=commonj.sdo.DataObject,target=org.apache.axiom.om.OMElement,weight=1000
+org.apache.tuscany.sca.databinding.sdo2om.XMLDocument2OMElement;source=commonj.sdo.helper.XMLDocument,target=org.apache.axiom.om.OMElement,weight=1000

Modified: 
incubator/tuscany/branches/sca-java-0.99/samples/helloworld-ws-sdo/README
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.99/samples/helloworld-ws-sdo/README?rev=569473&r1=569472&r2=569473&view=diff
==============================================================================
--- incubator/tuscany/branches/sca-java-0.99/samples/helloworld-ws-sdo/README 
(original)
+++ incubator/tuscany/branches/sca-java-0.99/samples/helloworld-ws-sdo/README 
Fri Aug 24 11:23:57 2007
@@ -6,10 +6,70 @@
 general instructions about building and running samples. Take a look there 
 first. 
 
-If you just want to run it to see what happens you need to run the server 
first 
+If you just want to run it to see what happens, you need to run the server 
first 
 so open a command prompt, navigate to the helloworld-ws-service sample 
directory 
 and do 
 
+ant run-server
+
+OR if you don't have ant, on Windows do
+
+java -cp 
..\..\lib\tuscany-sca-manifest.jar;target\sample-helloworld-ws-sdo.jar 
helloworld-ws-sdo.HelloWorldServer
+
+and on *nix do
+
+java -cp 
../../lib/tuscany-sca-manifest.jar:target/sample-helloworld-ws-sdo.jar 
helloworld-ws-sdo.HelloWorldServer
+
+You should see the following output:
+
+Buildfile: build.xml
+
+run-server:
+     [java] log4j:WARN No appenders could be found for logger 
(org.apache.axiom.
+om.util.StAXUtils).
+     [java] log4j:WARN Please initialize the log4j system properly.
+     [java] Aug 24, 2007 11:17:33 AM org.apache.catalina.core.StandardEngine 
sta
+rt
+     [java] INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
+     [java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.ContextConfig 
d
+efaultWebConfig
+     [java] INFO: No default web.xml
+     [java] Aug 24, 2007 11:17:34 AM 
org.apache.catalina.startup.DigesterFactory
+ register
+     [java] WARNING: Could not get url for 
/javax/servlet/jsp/resources/jsp_2_0.
+xsd
+     [java] Aug 24, 2007 11:17:34 AM 
org.apache.catalina.startup.DigesterFactory
+ register
+     [java] WARNING: Could not get url for 
/javax/servlet/jsp/resources/web-jspt
+aglibrary_1_1.dtd
+     [java] Aug 24, 2007 11:17:34 AM 
org.apache.catalina.startup.DigesterFactory
+ register
+     [java] WARNING: Could not get url for 
/javax/servlet/jsp/resources/web-jspt
+aglibrary_1_2.dtd
+     [java] Aug 24, 2007 11:17:34 AM 
org.apache.catalina.startup.DigesterFactory
+ register
+     [java] WARNING: Could not get url for 
/javax/servlet/jsp/resources/web-jspt
+aglibrary_2_0.xsd
+     [java] Aug 24, 2007 11:17:34 AM 
org.apache.catalina.startup.DigesterFactory
+ register
+     [java] WARNING: Could not get url for 
/javax/servlet/resources/j2ee_web_ser
+vices_1_1.xsd
+     [java] Aug 24, 2007 11:17:34 AM org.apache.coyote.http11.Http11Protocol 
ini
+t
+     [java] INFO: Initializing Coyote HTTP/1.1 on http-8085
+     [java] Aug 24, 2007 11:17:34 AM org.apache.coyote.http11.Http11Protocol 
sta
+rt
+     [java] INFO: Starting Coyote HTTP/1.1 on http-8085
+     [java] Aug 24, 2007 11:17:34 AM 
org.apache.tuscany.sca.http.tomcat.TomcatSe
+rver addServletMapping
+     [java] INFO: Added Servlet mapping: 
http://localhost:8085/HelloWorldService
+
+     [java] HelloWorld server started (press enter to shutdown)
+
+The server is now ready.
+
+Then open another command window to run the client:
+
 ant run
 
 OR if you don't have ant, on Windows do
@@ -20,6 +80,20 @@
 
 java -cp 
../../lib/tuscany-sca-manifest.jar:target/sample-helloworld-ws-sdo.jar 
helloworld-ws-sdo.HelloWorldClient
 
+You should be able to see the following result:
+
+Buildfile: build.xml
+
+run:
+     [java] log4j:WARN No appenders could be found for logger 
(org.apache.axiom.
+om.util.StAXUtils).
+     [java] log4j:WARN Please initialize the log4j system properly.
+     [java] Injected helloWorldService
+     [java] Called getGreetings
+     [java] Hello David Haney
+
+BUILD SUCCESSFUL
+Total time: 9 seconds
 
 
 Sample Overview



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to