diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-08 13:36:27 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-08 13:36:27 +0000 |
commit | f7c01911f4b2e942c2220be7a1df1f502966f34d (patch) | |
tree | 905a56b26cf2bbe2077cded13a73d6bd0e8d99a0 | |
parent | e9641e1c65b5c6754f2a621728f46a34c93b119f (diff) |
As a trial to see if we can rule out the tuscany eclipse compiler causing the too many open files problem on Hudson try changing to use the regular maven compiler
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@931936 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
5 files changed, 10 insertions, 25 deletions
diff --git a/sca-java-2.x/trunk/distribution/pom.xml b/sca-java-2.x/trunk/distribution/pom.xml index b8e399f4ce..0058a99177 100644 --- a/sca-java-2.x/trunk/distribution/pom.xml +++ b/sca-java-2.x/trunk/distribution/pom.xml @@ -32,7 +32,7 @@ <modules> <module>all</module> - <!-- module>tomcat</module --> + <module>tomcat</module> </modules> </project> diff --git a/sca-java-2.x/trunk/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceServlet.java b/sca-java-2.x/trunk/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceServlet.java index a792d167a4..1177940891 100644 --- a/sca-java-2.x/trunk/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceServlet.java +++ b/sca-java-2.x/trunk/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceServlet.java @@ -35,6 +35,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; +import org.apache.commons.codec.binary.Base64; import org.apache.tuscany.sca.assembly.Binding; import org.apache.tuscany.sca.interfacedef.Operation; import org.apache.tuscany.sca.invocation.Message; @@ -48,8 +49,6 @@ import org.json.JSONException; import org.json.JSONObject; import org.oasisopen.sca.ServiceRuntimeException; -import com.sun.xml.internal.messaging.saaj.util.Base64; - /** * Servlet that handles JSON-RPC requests invoking SCA services. * @@ -127,8 +126,7 @@ public class JSONRPCServiceServlet extends JSONRPCServlet { //parse the GET QueryString try { - String params = Base64.base64Decode(URLDecoder.decode(request.getParameter("params"),charset)); - + String params = new String(Base64.decodeBase64(URLDecoder.decode(request.getParameter("params"),charset).getBytes())); StringBuffer sb = new StringBuffer(); sb.append("{"); sb.append("\"method\": \"" + request.getParameter("method") + "\","); diff --git a/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java b/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java index f65371ac5f..a510219501 100644 --- a/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java +++ b/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java @@ -507,7 +507,7 @@ public class DeployerImpl implements Deployer { return (T)model; } - public <T> T loadXMLDocument(URL document, Monitor monitor) throws XMLStreamException, ContributionReadException { + public Object loadXMLDocument(URL document, Monitor monitor) throws XMLStreamException, ContributionReadException { init(); XMLStreamReader reader = staxHelper.createXMLStreamReader(document); reader.nextTag(); @@ -533,13 +533,13 @@ public class DeployerImpl implements Deployer { } @SuppressWarnings("unchecked") - public <T> T loadXMLElement(XMLStreamReader reader, Monitor monitor) throws ContributionReadException, + public Object loadXMLElement(XMLStreamReader reader, Monitor monitor) throws ContributionReadException, XMLStreamException { init(); - return (T)staxProcessor.read(reader, new ProcessorContext(monitor)); + return staxProcessor.read(reader, new ProcessorContext(monitor)); } - public <T> T loadXMLDocument(Reader document, Monitor monitor) throws XMLStreamException, ContributionReadException { + public Object loadXMLDocument(Reader document, Monitor monitor) throws XMLStreamException, ContributionReadException { init(); XMLStreamReader reader = staxHelper.createXMLStreamReader(document); ValidatingXMLInputFactory.setMonitor(reader, monitor); diff --git a/sca-java-2.x/trunk/modules/pom.xml b/sca-java-2.x/trunk/modules/pom.xml index a689391ca3..4e4a0cf403 100644 --- a/sca-java-2.x/trunk/modules/pom.xml +++ b/sca-java-2.x/trunk/modules/pom.xml @@ -113,7 +113,7 @@ <module>policy-transaction-runtime-geronimo</module> <module>sca-api</module> <module>sca-client-impl</module> - <module>sca-client-javascript</module> + <!-- module>sca-client-javascript</module --> <module>stripes</module> <module>tracing-aspectj</module> <module>xsd</module> diff --git a/sca-java-2.x/trunk/pom.xml b/sca-java-2.x/trunk/pom.xml index 01a7938bb6..89f011b86e 100644 --- a/sca-java-2.x/trunk/pom.xml +++ b/sca-java-2.x/trunk/pom.xml @@ -828,22 +828,9 @@ <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> - <compilerId>tuscany-eclipse</compilerId> - <source>1.5</source> - <target>1.5</target> - <compilerArguments> - <osgi>true</osgi> - </compilerArguments> + <source>1.6</source> + <target>1.6</target> </configuration> - - <dependencies> - <dependency> - <groupId>org.apache.tuscany.maven.plugins</groupId> - <artifactId>maven-eclipse-compiler</artifactId> - <version>1.0.2</version> - <scope>runtime</scope> - </dependency> - </dependencies> </plugin> <!-- surefire plugin configuration --> |