[ 
https://issues.apache.org/jira/browse/TUSCANY-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oscar Castaneda updated TUSCANY-2440:
-------------------------------------

    Attachment: patchfile25Jun2008

Patch file generated on mobile-android folder. Eclipse workspace was created 
without copy projects option to avoid exceedingly large patches.

> ClassNotFoundErrors 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
>         Attachments: patchfile25Jun2008, retrotranslator_readme
>
>   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 and java.beans.Introspector in a more 
> recent test.
> 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.
> [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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to