[
https://issues.apache.org/jira/browse/TUSCANY-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630829#action_12630829
]
Jean-Sebastien Delfino commented on TUSCANY-2440:
-------------------------------------------------
I've attached 3 patches to the JIRA:
0001 - Creates the subset of modules currently in the android port branch from
the full set of modules in r643746
0002 - Add new files that are in the branch and were not initially in r643746
(new android-specific classes)
0003 - Represents the set of actual code changes currently in the branch on top
of r643746, with all the whitespace, formatting, and expanded $Rev $Date noise
filtered out.
The 3 patches should be independent of each other and applicable separately. So
we should be able to apply 0002 and 0003 on top of Oscar's reduced module set
patch for example.
I've used Git to create the patches as I found it easier and faster to use than
Svn for what I needed to do here, but patches 0002 and 0003 should work too
with the usual: patch p1 < patchfile.
Patch 0001 is just a sequence of deletes. I stripped the deleted file diff
output from it to make it smaller so the easiest way to apply it is a command
like: cat patchfile | grep "delete mode" | awk '{ print $4 }' | xargs svn rm.
I'm also starting to think that these patches as well as Oscar's patch should
be applicable too to a more recent revision of trunk, maybe even Head as patch
0003 shows that the actual code changes on top of r643746 are not so extensive.
I may try that if I find the time later this weekend.
Hope this helps.
> ClassNotFoundException on calculator-android after translating SCA and
> mobile-android code with Retrotranslator
> ---------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2440
> URL: https://issues.apache.org/jira/browse/TUSCANY-2440
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-1.2
> Environment: Mac OS X 10.5, Maven version: 2.0.6, java version
> "1.5.0_13", Apache Ant version 1.7.0
> Reporter: Oscar Castaneda
> Priority: Minor
> Fix For: Java-SCA-Next
>
> Attachments:
> 0001-Created-a-subset-of-the-modules-for-the-android-port.patch,
> 0002-Added-new-android-port-files-on-top-of-r643746.patch,
> 0003-Applied-android-port-changes-on-top-of-SVN-r643746.patch,
> patchfile25Jun2008, patchfile27Jun2008, retrotranslator_readme,
> tuscany_modules_reduced.tar.gz
>
> Original Estimate: 504h
> Remaining Estimate: 504h
>
> The current Android SDK does not support Annotations, as a result
> calculator-android runs with Annotation related errors. A suggested
> workaround [1] for issues related to Annotations is to translate source code
> with Retrotranslator [1]. After succesfully translating the SCA modules and
> modified Android modules with Retrotranslator the Annotation related errors
> cease. However, running calculator-android results in ClassNotFound errors
> for java.rmi.Remote in the first test (Patch from 25Jun2008) and
> java.beans.Introspector in a more recent test (Patch from 27Jun2008). The
> difference between both tests being uncommented/commented code, respectively,
> in JavaRuntimeModuleActivator.java
> (org.apache.tuscany.sca.implementation.java.module).
> Three workarounds have been suggested:
> 1) Comment out all the code that uses the RMI API
> 2) Follow suggestions in [3] to either replace java.rmi.Remote with
> java.lang.Cloneable (as the result of using a retrotranslator option) or
> taking the RMI source from Apache Harmony and putting it in a retrotranslated
> JAR.
> 3) Removing RMI should be as simple as removing the tuscany-binding-rmi
> dependency from host-android.
> Upon failure of these workarounds the alternative is to minimize the number
> of component types supported (java) and bindings (default sca binding) and
> then try to run the calculator sample application. When calculator-android
> runs successfully further steps will be discussed on dev-list.
> A blocking-issues [4] and a porting limitations page [5] have been setup
> tracking these efforts.
> [1] http://code.google.com/p/android/issues/detail?id=29
> [2] http://retrotranslator.sourceforge.net/#android
> [3] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/18Jun2008-2
> [4] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Blocking+issues
> [5]
> http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Limitation+on+porting+SCA+to+Android+platform
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.