Friday, September 18, 2009

Tuscany SCA helloworld-jsp is up and running on Google App Engine

I managed to get an variant of Tuscany SCA helloworld-jsp working on Google App Engine. The application is now up and running at [1]. The composite contains implementation.java, implementation.web and a JSP using SCA taglibs.

During the bring-up, I made a few minor changes to Tuscany 2.x code base to fix the two classes that break the the App Engine JRE Class White List:

* org.apache.tuscany.sca.node.impl.NodeImpl (java.lang.management.ManagementFactory is restricted)
* org.apache.tuscany.sca.core.invocation.impl.JDKProxyFactory (subclassing java.lang.reflect.Proxy is not allowed: org.apache.tuscany.sca.core.invocation.CachedProxy)

I have checked in the fixes into trunk and the application into my sandbox at [2]. After checkout, you can run "mvn" to copy the Tuscany jars into the war/WEB-INF/lib folder. Then you can load the project into Eclipse if you have the Google App Engine Eclipse plugin is installed (See [3]).

We can try to get Web Service binding working as the next step.

[1] http://scacloud.appspot.com/
[2] http://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/helloworld-jsp-google-appengine/
[3] http://code.google.com/appengine/docs/java/tools/eclipse.html#Installing_the_Google_Plugin_for_Eclipse

Labels: , , ,

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home